You are not logged in.

#1 2021-07-17 12:04:11

karcher
Member
Registered: 2018-01-09
Posts: 140

Either resuming or rebooting upon suspend

Hi all,

suspend does not work on my system. When I try to suspend it immediately resumes without any intervention from my side. This issue seems to be related with my wireless mouse. I tried this solution here:
https://askubuntu.com/questions/1151709 … -and-19-04
and then my system did a reboot instead of a suspend. Apart from that, this solution was only temporary, since the mouse reappeared in the enabled devices:

# grep . /sys/bus/usb/devices/*/power/wakeup

In order to make the solution permanent, it is suggested here to edit the /etc/rc.local:
https://askubuntu.com/questions/148481/ … ibernation

but there is no /etc/rc.local in Arch.

Then I found this one:
https://wiki.archlinux.org/title/User:H … al-Systemd
which explains, how /etc/rc.local can be activated in Arch.

Now even if I solve the first problem this way, the main problem of suspending my system will persist, so I wanted to ask if you guys have another idea.

Offline

#2 2021-07-17 14:01:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Either resuming or rebooting upon suspend

In order to make the solution permanent, it is suggested [in some ubuntu forum] …

https://wiki.archlinux.org/title/Power_ … om_suspend

Since it's a wireless mouse, you might rather get a wakeup call from bluetooth?

Offline

#3 2021-07-18 11:16:35

karcher
Member
Registered: 2018-01-09
Posts: 140

Re: Either resuming or rebooting upon suspend

@seth thanks for the reply!

It`s no clear to me, why in Arch the file: /proc/acpi/wakeup  is relevant whereas in Ubuntu the files: /sys/bus/usb/devices/*/power/wakeup and /sys/bus/usb/devices/*/power/wakeup are relevant for the same issue.
Anyway this is the content of the files:

$ cat /proc/acpi/wakeup
Device    S-state      Status   Sysfs node
GP12      S4    *enabled   pci:0000:00:07.1
GP13      S4    *enabled   pci:0000:00:08.1
XHC0      S4    *enabled   pci:0000:56:00.3
GP30      S4    *disabled
GP31      S4    *disabled
PS2K      S3    *disabled
PS2M      S3    *disabled
GPP0      S4    *enabled   pci:0000:00:01.1
GPP8      S4    *enabled   pci:0000:00:03.1
PTXH      S4    *enabled   pci:0000:02:00.0
PT20      S4    *enabled   pci:0000:03:00.0
PT24      S4    *enabled   pci:0000:03:04.0
PT26      S4    *disabled
PT27      S4    *disabled
PT28      S4    *enabled   pci:0000:03:08.0
PT29      S4    *enabled   pci:0000:03:09.0
$ cat /sys/bus/usb/devices/*/power/wakeup
disabled
disabled
enabled
disabled
disabled
disabled
disabled
enabled
disabled
disabled
disabled
disabled
disabled
disabled
$ ll /sys/bus/usb/devices/*/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-10/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-6.1/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-6.3.1/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-6.3.2/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-6.3/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-6/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/1-7/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/5-2/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/usb1/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/usb2/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/usb3/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/usb4/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/usb5/power/wakeup
-rw-r--r-- 1 root root 4096 Jul 17 00:32 /sys/bus/usb/devices/usb6/power/wakeup

This is how my 100-disable-usb-wake.conf currently looks like. Not sure if I did it correctly though. It doesn't look right with the entries in one line:

/etc/tmpfiles.d/100-disable-usb-wake.conf                                                                                                                            
#    Path                  Mode UID  GID  Age Argument
w    /proc/acpi/wakeup     -    -    -    -   PTXHUSBEXHC0

Suspending still does not work. The system just resumes immediately.

Offline

#4 2021-07-18 11:23:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Either resuming or rebooting upon suspend

They're different things.
There's only one USB device (XHC0) so try to disable that (by echo'ing it into the file) and what impact it has on your situation (nb. that it should™ disable wakeup from *all* usb devices)


Is the mouse wired via a usb dongle?
Also

lspci

Offline

Board footer

Powered by FluxBB