Motherboard supports wakeup via USB(enabled), keyboard(enabled), mouse(enabled), etc. in BIOS. Wakeup via keyboard & mouse works great (I need to do ‘echo “PS2K” > /proc/acpi/wakeup’), but not via USB. The only problem I could find so far is in /proc/acpi/wakeup - the S3 state is missing for USB.
Is there a way to replace S4 with S3, or force/add S3 for USB somehow. I know hardware supports it since it worked in Fedora and the usb device does have an power while in S3
Can somebody help me debug it/point me in the right direction?
Thanks, but I’m not quite sure how this issue relates to my problem aside from the fact that both devices are USB. My device does not freeze during normal usage - it’s an ir receiver/transmitter and it works. The problem is when PC is suspended in ram - system will not recognize its signal as a wakeup call (like it does with keyboard and mouse).
Anyway, I tried adding your udev rules, but that didn’t help.
Well autosuspend was not the problem here, nor was the setting(s) in /proc/acpi/wakeup. For those interested you need to find “wakeup” file responsible for your device. In my case it was:
/sys/devices/pci0000:00/0000:00:12.1/usb4/4-1/power/wakeup
Update!
To keep changes after a reboot there’s no need to create a rule in rules.d, you can create a script (e.g. “keyboardwakeup”, with rwx,r-x,r-x permissions) in /etc/init.d/:
#! /bin/bash# Copyright (c) You
#
# Author: You
#
# /etc/init.d/keyboardwakeup
#
### BEGIN INIT INFO
# Provides: keyboardwakeup
# Required-Start:
# Required-Stop:
# Default-Start: 5
# Default-Stop:
# Short-Description: keyboardwakeup
# Description: keyboardwakeup
### END INIT INFO
echo enabled > /sys/devices/.../wakeup
and enable it as a service with:
chkconfig --add keyboardwakeup
PS: change “echo enabled > /sys/devices/…/wakeup” according to the correct address.