Re: Behaviour of USB Device in low powered state

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Mr. Doron Holon,

The same is working well with the USB Certified Mouse, and also couple
of other devices too, this observation is hidering me to doubt on HC.

Acoording to me,
The doubt on Device is discarded bcoz, the device is dettached.
The Doubt on HC is discarded bcoz other devices are working well.
so the on left is my Driver and where i'm struck !!!

Thanks and Regards,
Neo


Doron Holan [MS] wrote:
you are asking for undefined behavior. I think it will depend on the HC you
are attached to

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Neo" <rksandilya@xxxxxxxxx> wrote in message
news:1168926055.543452.312580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Mr. Doron Holan,

yeah our device is remote capable, and i am getting the descriptors
right, and also i would like to mention that, there is a switch in our
board to send a wakeup signal which will wakeup the system from
standby.
this is working fine, i mean send the device into standby, press the
switch and then the system wakes up.

similarly i want the system wake when the device is disconnected too.

Thanks and Regards,
Neo

Doron Holan [MS] wrote:
is your device remote wake capapble? is it reporting this capability in
the
appropriate descriptor?

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Neo" <rksandilya@xxxxxxxxx> wrote in message
news:1168595024.966780.248840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Mr.Doron,

i did sending the IRP_MN_WAIT_WAKE before going to the low powered
state, but my driver is not getting notified when the USB device got
disconnected, my wakecompletion is only getting called when an external
wakeup(thru mouse or keyboard) occcurs.

The other question will be is there any other way where i can get
notification to my driver when a USB device gets disconnected.

Thanks and Regards,
Neo

Doron Holan [MS] wrote:
send an IRP_MN_WAIT_WAKE irp before powering off (by calling
PoRequestPowerIrp)

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Neo" <rksandilya@xxxxxxxxx> wrote in message
news:1168511903.310681.182760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

Thanks Mr.Tim and Mr.Doron,
Thanks for your support.

my device will be used for desktop system and it is such that the
USB
Device need to be always attached to the system and if it get disc.
for
some reason then the user need to be intimated and hence i need to
wake
up the system when the usb device get disc.

can you help me telling what to do in the driver to wakeup the
system
when the USB Device got disc. in the low powered state.

Regards,
Neo

Doron Holan [MS] wrote:
and IMHO, waking the system on unplug is an awful experience for
the
user.
imagine a laptop that is in a docking station with usb devices
attached
through the dock and is put into standby and then undocked. you
want
the
machine to wake b/c the devices in the dock disappeared? yuck.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Tim Roberts" <timr@xxxxxxxxx> wrote in message
news:e7mbq29edf14l3fp6vb267s5n7t2vq7b61@xxxxxxxxxx
"Neo" <rksandilya@xxxxxxxxx> wrote:

i am naive and writing driver for a usb device, i just wanted to
know
the behaviour of a USB Device when disconnected(surprise removal,
plug
out) in the low powered state(standby).

i see some of the devices get the system wakeup when the USB
Devices
are disconnected in the standby mode, and some do not.

which is the correct behaviour ???

It depends entirely on your device. If you don't need to take
any
particular action when your device is unplugged (and most
driver's
don't),
then there is no need for you to wake the system.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.




.



Relevant Pages

  • Sound, dual soundcards, second attempt (better I hope)
    ... PCI: PCI BIOS revision 2.10 entry at 0xfdb01, ... Journalled Block Device driver loaded ... usb.c: new USB bus registered, ... alias char-major-10-175 agpgart ...
    (comp.os.linux)
  • Re: EvtDeviceArmWakeFromSx not called
    ... Could not retrieve WDF IFR log header for driver eepromburner. ... Please do not send e-mail directly to this alias. ... I can still wake the system from a USB mouse and PS/2 keyboard. ... But EvtDeviceArmWakeFromSx is never called when I go to standby. ...
    (microsoft.public.development.device.drivers)
  • Re: KMDF: how can I get usb continuous reader callbacks always in order?
    ... the driver needs to be aware that io can come out of order if it sends more than one read on an endpoint at a time. ... Please do not send e-mail directly to this alias. ... the usb stack does its best to make sure that packets return back to the caller in order, but out of order packets can happen. ...
    (microsoft.public.development.device.drivers)
  • Does WinXP USB default driver support to wake from hibernate and S5
    ... does WinXP USB default driver support to wake from hibernate ... I saw a lot posts that USB drivers can wake up system from S4 and S5. ...
    (microsoft.public.development.device.drivers)
  • Re: Power Policy Settings
    ... are you calling WdfDeviceStopIdle in your USB driver ... Please do not send e-mail directly to this alias. ... Im developing a USB-Serial driver using KMDF. ... I have handled idle power policy for USB as described in osrusbfx2. ...
    (microsoft.public.development.device.drivers)