All of lore.kernel.org
 help / color / mirror / Atom feed
* default value of power/wakeup
@ 2015-04-20 16:45 Tom Yan
  2015-04-20 17:41 ` Alan Stern
  0 siblings, 1 reply; 23+ messages in thread
From: Tom Yan @ 2015-04-20 16:45 UTC (permalink / raw)
  To: linux-usb, linux-pm

I have the following two USB wireless mouse/keyboard receivers:

logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID
v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-13/input2
hid-generic 0003:046D:C52E.0005: input,hidraw2: USB HID v1.11 Keyboard
[Logitech USB Receiver] on usb-0000:00:14.0-14/input0

The default values in their power/wakeup:
[tom@localhost ~]$ cat /sys/bus/usb/devices/3-13/power/wakeup
disabled
[tom@localhost ~]$ cat /sys/bus/usb/devices/3-14/power/wakeup
enabled

According to https://www.kernel.org/doc/Documentation/usb/power-management.txt:

power/wakeup

        This file is empty if the device does not support
        remote wakeup.  Otherwise the file contains either the
        word "enabled" or the word "disabled", ...

My question is, which part of the kernel or system determines the
default value? When I had a quick look on the source of the two driver
modules, I couldn't find any code related. So what caused the
difference?

P.S. I have no udev rule related to power/wakeup, which is the case I
am asking about.

[tom@localhost ~]$ cd /etc/udev/rules.d/
[tom@localhost rules.d]$ grep wakeup *
grep: *: No such file or directory
[tom@localhost rules.d]$ cd /lib/udev/rules.d/
[tom@localhost rules.d]$ grep wakeup *
42-usb-hid-pm.rules:# advertise remote wakeup support but don't
actually implement
42-usb-hid-pm.rules:# remote wakeup is working.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-04-23 17:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 16:45 default value of power/wakeup Tom Yan
2015-04-20 17:41 ` Alan Stern
     [not found]   ` <Pine.LNX.4.44L0.1504201339270.1321-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2015-04-20 18:34     ` Tom Yan
     [not found]       ` <CAGnHSE=AuGjAKq5TgoFN6iJQHOwAQmOOrBkk9D6GTz5na8wLpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-20 19:08         ` Alan Stern
2015-04-20 19:20           ` Tom Yan
2015-04-20 19:44             ` Alan Stern
     [not found]               ` <Pine.LNX.4.44L0.1504201527570.1321-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2015-04-20 21:20                 ` Tom Yan
     [not found]                   ` <CAGnHSEnrS9+4Kq_bx5S_gtRMm2pCbn5ETTa-Cegy+XBvN8sX1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-21 10:19                     ` Tom Yan
2015-04-21 15:51                       ` Alan Stern
     [not found]                         ` <Pine.LNX.4.44L0.1504211126530.1518-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2015-04-22 11:46                           ` Tom Yan
     [not found]                             ` <CAGnHSEkaEBeHdCGCGpLXtF3tKwT4Ck+7TZBpJoO5gNzvpNde4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-22 15:28                               ` Alan Stern
2015-04-22 15:52                                 ` Greg KH
2015-04-22 16:15                                   ` Alan Stern
     [not found]                                     ` <Pine.LNX.4.44L0.1504221213140.1630-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2015-04-22 17:10                                       ` Greg KH
     [not found]                                         ` <20150422171050.GB2551-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-04-22 18:22                                           ` Alan Stern
     [not found]                                             ` <Pine.LNX.4.44L0.1504221403380.1630-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2015-04-22 18:39                                               ` Greg KH
2015-04-23  1:21                                               ` Peter Chen
2015-04-23  5:16                                                 ` Tom Yan
     [not found]                                                   ` <CAGnHSEnPCL3PgA9-L5ECD=7WW3ykYrd-cDUXcT1dd-zE9WwXcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-23  5:22                                                     ` Peter Chen
2015-04-23  5:29                                                       ` Tom Yan
2015-04-23 14:40                                                     ` Alan Stern
2015-04-23 17:57                                                       ` Tom Yan
2015-04-21 15:23                   ` Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.