Bug 216025 - Changes to /proc/acpi/wakeup dont have any effect - potential regression?
Summary: Changes to /proc/acpi/wakeup dont have any effect - potential regression?
Status: NEEDINFO
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: AMD Linux
: P1 normal
Assignee: acpi_power-sleep-wake
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-25 06:39 UTC by Michal
Modified: 2022-06-13 01:52 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.17.9-arch1-1
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Dmesg output (21.00 KB, text/plain)
2022-05-25 06:39 UTC, Michal
Details

Description Michal 2022-05-25 06:39:02 UTC
Created attachment 301038 [details]
Dmesg output

This is my first kernel bug report, so apologies in advance if i messed it up or reported it under a wrong kernel component. 

1. My motherboard is Gigabyte X570 Aorus Master, i have also tried several different BIOS versions, including the latest one.
2. I have tried Arch Linux and Manjaro with the latest 5.17.9-arch1-1 kernel and the latest LTS kernel (5.15.41-1) - all are affected by the same issue.
3. Previously i was using Linux Mint 20.3 with 5.4 kernel which was not affected by the issue.
4. I have also created a topic on Archlinux forums about this issue: https://bbs.archlinux.org/viewtopic.php?pid=2037649

Long story - in the past when i was using Linux Mint 20.3, i had a problem with my usb wireless keyboard and mouse randomly waking up the computer overnight. I remediated this by disabling XHC0 wakeup: echo XHC0 >> /proc/acpi/wakeup
This was preventing my USB devices from waking up the computer and I have been using this workaround for a several months until i have migrated to Arch Linux.
On Arch Linux (with a newer kernel), i have been trying to implement the same workaround, but even if i disable *all* the devices in /proc/acpi/wakeup my computer still wakes up from sleep whenever i press a key or move my mouse:
[dinth@dinth-desktop ~]$ cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
GPP0	  S4	*disabled  pci:0000:00:01.1
GPP2	  S4	*disabled
GPP3	  S4	*disabled
GPP4	  S4	*disabled
GPP5	  S4	*disabled
GPP6	  S4	*disabled
GPP7	  S4	*disabled
GPP8	  S4	*disabled  pci:0000:00:03.1
GPP9	  S4	*disabled
GPPA	  S4	*disabled
GPPB	  S4	*disabled
GPPC	  S4	*disabled
GPPD	  S4	*disabled
GPPE	  S4	*disabled
GPPF	  S4	*disabled
GP10	  S4	*disabled
GP11	  S4	*disabled
GP12	  S4	*disabled  pci:0000:00:07.1
GP13	  S4	*disabled  pci:0000:00:08.1
XHC0	  S4	*disabled  pci:0000:0c:00.3
GP30	  S4	*disabled
GP31	  S4	*disabled
PS2K	  S3	*disabled
BXBR	  S4	*disabled  pci:0000:00:01.2

Im also attaching dmesg log of sleep/resume process in case its going to be handy.
Comment 1 Zhang Rui 2022-06-13 01:52:17 UTC
can you install an old kernel, which used to work for you to confirm if this is a kernel regression?

Note You need to log in before you can comment on or make changes to this bug.