Re: Behaviour of USB Device in low powered state



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

  • Re: Behaviour of USB Device in low powered state
    ... Please do not send e-mail directly to this alias. ... similarly i want the system wake when the device is disconnected too. ... notification to my driver when a USB device gets disconnected. ...
    (microsoft.public.development.device.drivers)
  • Re: Behaviour of USB Device in low powered state
    ... similarly i want the system wake when the device is disconnected too. ... Please do not send e-mail directly to this alias. ... notification to my driver when a USB device gets disconnected. ...
    (microsoft.public.development.device.drivers)
  • Re: finding the parent of a device
    ... device relations / BusRelations to the driver in question. ... So for a usb device it would be L"USB", ... parallel device probably L"LPT". ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)
  • Re: Behaviour of USB Device in low powered state
    ... Please do not send e-mail directly to this alias. ... newsgroup purposes only. ... some reason then the user need to be intimated and hence i need to wake ... up the system when the usb device get disc. ...
    (microsoft.public.development.device.drivers)
  • Re: Behaviour of USB Device in low powered state
    ... notification to my driver when a USB device gets disconnected. ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)

Loading