steam-input.rules: Only enable wakeup if the attribute exists#85
Conversation
Not all USB device nodes have this attribute, so only enable it if it's
there to be enabled. This avoids errors in the system log, like:
`(udev-worker)[6167]: 1-9:1.0:
/usr/lib/udev/rules.d/60-steam-input.rules:17 Failed to write
ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/power/wakeup},
ignoring: No such file or directory`
(in this case when plugging in a Steam Controller (2015) USB dongle)
steamrt/tasks#948
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
The Steam Controller 2015 dongle does support wakeup, so I wonder why that's not showing up? Is it disabled system-wide in this case? |
|
udev is notified about a single dongle several times, once for the USB device itself, plus one each for several logical devices representing USB endpoints, raw HID device nodes and evdev devices ( For the newer wakeup feature, the physical USB device does support waking the system (does have Unlike I tried putting a test machine in suspend-to-RAM, and my Steam Controller successfully wakes it up (this is still with the 2015 dongle and a matching controller, I don't have the 2026 device yet). |
Not all USB device nodes have this attribute, so only enable it if it's there to be enabled. This avoids errors in the system log, like:
(udev-worker)[6167]: 1-9:1.0: /usr/lib/udev/rules.d/60-steam-input.rules:17 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/power/wakeup}, ignoring: No such file or directory(in this case when plugging in a Steam Controller (2015) USB dongle)
steamrt/tasks#948