With bullseye this line in /etc/rc.local worked:
echo enabled > /sys/bus/usb/devices/usb3/power/
... to enable a keypress to wake up the system from suspend. Doesn't work in bookworm. These other efforts were suggested: (hopefully adding resume via mouse as well as keyboard):
echo enabled > /sys/bus/usb/devices/5-2/power/wakeup
echo enabled > /sys/bus/usb/devices/8-1/power/wakeup
... or:
echo enabled > /sys/class/usbmisc/hiddev0/power/wakeup
echo enabled > /sys/class/usbmisc/hiddev1/power/wakeup
... but nothing works. Is this functionality still available?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Solved] resume from suspend via keyboard
-
- Posts: 117
- Joined: 2014-01-31 21:32
- Has thanked: 6 times
- Been thanked: 1 time
[Solved] resume from suspend via keyboard
Last edited by rayandrews on 2024-03-17 17:50, edited 1 time in total.
- fabien
- Forum Helper
- Posts: 688
- Joined: 2019-12-03 12:51
- Location: Anarres (Toulouse, France actually)
- Has thanked: 62 times
- Been thanked: 161 times
Re: resume from suspend via keyboard
/sys/bus/usb/devices/usb3/power/ is a directory, you can't echo to it.
try
?
Code: Select all
$> ls /sys/bus/usb/devices/usb3/power/
active_duration autosuspend_delay_ms level runtime_enabled runtime_usage wakeup_active wakeup_expire_count wakeup_total_time_ms
async connected_duration runtime_active_kids runtime_status wakeup wakeup_active_count wakeup_last_time_ms
autosuspend control runtime_active_time runtime_suspended_time wakeup_abort_count wakeup_count wakeup_max_time_ms
Code: Select all
#> echo "enabled" >/sys/bus/usb/devices/usb3/power/wakeup
-
- Posts: 117
- Joined: 2014-01-31 21:32
- Has thanked: 6 times
- Been thanked: 1 time
Re: resume from suspend via keyboard
@fabien: my first quote there was mistyped but thanks for noticing.
Glorious success:
https://www.makeuseof.com/wake-your-lin ... b-devices/
... they've just made it a wee bit harder, like they do:
echo enabled > /sys/bus/usb/devices/5-2/power/wakeup
echo enabled > /sys/bus/usb/devices/8-1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/usb8/power/wakeup
... seems you now have to wake up the port *and* the device on the port.
Glorious success:
https://www.makeuseof.com/wake-your-lin ... b-devices/
... they've just made it a wee bit harder, like they do:
echo enabled > /sys/bus/usb/devices/5-2/power/wakeup
echo enabled > /sys/bus/usb/devices/8-1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/usb8/power/wakeup
... seems you now have to wake up the port *and* the device on the port.