You are not logged in.
I've been trying to get my mediacentre to suspend and resume reliably, initially I found that I had no ethernet connection on resume and after finding several similar reports from some time back I tried
#echo "on" > /sys/class/net/enp2s5/power/controlwithout success.
My networking is handled entirely by dhcpcd - journalctl reports after resume:
dhcpcd[211]: enp2s5: carrier lost
dhcpcd[211]: enp2s5: deleting route to 192.168.1.0/24
dhcpcd[211]: enp2s5: deleting default route via 192.168.1.3I eventually wrote a script to restart the network device on resume in /usr/lib/systemd/system-sleep:
#!/bin/sh
case $1/$2 in
pre/*)
echo "Going to $2..."
;;
post/*)
ip link set enp2s5 down
ip link set enp2s5 up
;;
esacThis is working but I wanted to know if anyone was having similar problems and if there was a more elegant solution.
Secondly I found that I could not resume with a bluetooth connected wiimote (under cwiid) which I use to control the mediacentre nor could I resume with a usb keyboard.
cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PCI0 S5 *disabled no-bus:pci0000:00
PEX0 S5 *disabled pci:0000:00:1c.0
PEX1 S5 *disabled
PEX2 S5 *disabled
PEX3 S5 *disabled
PEX4 S5 *disabled
PEX5 S5 *disabled
HUB0 S5 *disabled pci:0000:00:1e.0
UAR1 S3 *disabled
UAR2 S3 *disabled
USB0 S3 *enabled pci:0000:00:1d.0
USB1 S3 *enabled pci:0000:00:1d.1
USB2 S3 *enabled pci:0000:00:1d.2
USB3 S3 *enabled pci:0000:00:1d.3
USBE S3 *enabled pci:0000:00:1d.7
AZAL S5 *disabled pci:0000:00:1b.0After searching the forums I found this post - https://bbs.archlinux.org/viewtopic.php … 9#p1206269
What you can try is to set /sys/bus/usb/devices/usb*/power/wakeup to enabled where * is the number of your usb device.
this worked for the usb keyboard, allowing it to resume from suspend but not for the wiimote.
When suspending the wiimote's light remains on showing a connection (in fact holding the off button can't turn it off) on resume (with keyboard or the computer's on switch) the light goes off and it has to be reconnected by putting it in discovery mode again.
I'm not sure if this is even possible but can anyone suggest anything else I could try to enable resume with a wiimote?
Offline