You are not logged in.

#1 2019-01-01 22:10:54

Tharbad
Member
Registered: 2016-02-27
Posts: 333

[SOLVED] PC wakes up from suspend due to USB events

Hi everyone,

My PC wakes up from suspend when lights turn on in the same circuit. So I googled and found this: https://superuser.com/questions/634465/ … n-the-room.
Then I moved to the Arch wiki: https://wiki.archlinux.org/index.php/Po … om_suspend.
I have a surge protector and those are the settings:

cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
PS2K      S3    *disabled
PS2M      S3    *disabled
P0P1      S4    *disabled
USB1      S3    *disabled
USB2      S3    *disabled
USB3      S3    *disabled
USB4      S3    *disabled
USB5      S3    *disabled
USB6      S3    *disabled
USB7      S3    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
PXSX      S4    *disabled  pci:0000:02:00.0
RP02      S4    *disabled
PXSX      S4    *disabled
RP03      S4    *disabled
PXSX      S4    *disabled
RP04      S4    *disabled
PXSX      S4    *disabled
RP05      S4    *disabled  pci:0000:00:1c.4
PXSX      S4    *enabled   pci:0000:03:00.0
RP06      S4    *disabled  pci:0000:00:1c.5
PXSX      S4    *disabled  pci:0000:04:00.0
RP07      S4    *disabled  pci:0000:00:1c.6
PXSX      S4    *disabled  pci:0000:06:00.0
RP08      S4    *disabled  pci:0000:00:1c.7
PXSX      S4    *disabled  pci:0000:07:00.0
PEG0      S4    *disabled  pci:0000:00:01.0
PEGP      S4    *disabled
PEG1      S4    *disabled
PEG2      S4    *disabled
PEG3      S4    *disabled
GLAN      S4    *disabled
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC       S4    *disabled  pci:0000:00:14.0
HDEF      S4    *disabled  pci:0000:00:1b.0
PWRB      S3    *enabled   platform:PNP0C0C:00

And I still can wake my PC from suspend using the USB keyboard and it still wakes itself up when some turns on the light...
I Also disabled the option for keyboard and mouse wakeup in the BIOS.
Hopefully I'll have enough money to buy a UPS soon but that's what I said to myself a year ago.

Ideas?

Thanks

Last edited by Tharbad (2019-01-08 21:35:15)

Offline

#2 2019-01-02 09:21:07

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

Re: [SOLVED] PC wakes up from suspend due to USB events

What is

PXSX      S4    *enabled   pci:0000:03:00.0

Offline

#3 2019-01-02 14:48:23

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC wakes up from suspend due to USB events

seth wrote:

What is

PXSX      S4    *enabled   pci:0000:03:00.0

No idea but when I try to disable it this one:

PXSX      S4    *enabled   pci:0000:02:00.0

is enabled instead.

Last edited by Tharbad (2019-01-02 14:49:17)

Offline

#4 2019-01-02 14:52:10

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

Re: [SOLVED] PC wakes up from suspend due to USB events

They've the same 4 letter code - ask "lspci" for what devices those are.

Offline

#5 2019-01-02 14:55:47

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC wakes up from suspend due to USB events

SATA controller.

02:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 11)

Offline

#6 2019-01-02 15:15:10

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

Re: [SOLVED] PC wakes up from suspend due to USB events

But you *had* 03:00.0 enabled…
Of course, if some dirty current leaks in, this could trigger anything.
What btw. happens if you unplug the USB devices and switch the lights?

Also, do you happen to have one of these: https://en.wikipedia.org/wiki/Power-line_communication
Is wake-on-lan enabled?

Offline

#7 2019-01-02 23:28:25

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC wakes up from suspend due to USB events

seth wrote:

But you *had* 03:00.0 enabled…
Of course, if some dirty current leaks in, this could trigger anything.
What btw. happens if you unplug the USB devices and switch the lights?

Also, do you happen to have one of these: https://en.wikipedia.org/wiki/Power-line_communication
Is wake-on-lan enabled?

Oops. My mistake.

03:00.0 USB controller: VIA Technologies, Inc. VL80x xHCI USB 3.0 Controller (rev 03)

Wake on LAN is off. Disconnecting All the usb is not an option (the PC is in some deep hole).

In the weekend I'll try to remove all the devices from this USB hub. Hopefully this will work.
Is it possible to find a way to target this PXSX?

Last edited by Tharbad (2019-01-03 00:34:04)

Offline

#8 2019-01-03 08:01:42

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

Re: [SOLVED] PC wakes up from suspend due to USB events

I'm not aware of isolating a particular device if they share codes, a question would of course be whether shifting the wakeup from the usb to the sdda controller makes any difference.
What you could try was to write "disabled" into /sys/bus/pci/devices/0000:03:00.0/power/wakeup (if that file exists, may also be …/pci_express/…)

Also you might want to elaborate on that "deep hole" thing - and test whether you can reproduce the effect w/ the PC outside that "deep hole"…

Offline

#9 2019-01-03 23:46:37

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC wakes up from suspend due to USB events

seth wrote:

I'm not aware of isolating a particular device if they share codes, a question would of course be whether shifting the wakeup from the usb to the sdda controller makes any difference.
What you could try was to write "disabled" into /sys/bus/pci/devices/0000:03:00.0/power/wakeup (if that file exists, may also be …/pci_express/…)

Also you might want to elaborate on that "deep hole" thing - and test whether you can reproduce the effect w/ the PC outside that "deep hole"…

That deep hole is not so deep but it is blocked by some books so it'll be much easier in the weekend. By blocked I mean I need to move them to get to the back of the computer. Everything there is connected and OK, I just can't see it clearly.

I used echo to change it to disabled. Will check soon.

Offline

#10 2019-01-04 20:16:56

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC wakes up from suspend due to USB events

Seems working now. To make it permanent: Just create a script that runs at startup and disables all of the USB devices?
(Using the echo cmd, not tempfiles. Writing 2 scripts seems like a bad idea)

Offline

#11 2019-01-04 20:48:23

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

Re: [SOLVED] PC wakes up from suspend due to USB events

For /proc/acpi/wakeup you'll have to run a script, for the /sys/bus/… stuff or single usb devices you can use udev rules, https://wiki.archlinux.org/index.php/Ud … USB_device

Offline

#12 2019-01-06 02:45:24

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC wakes up from suspend due to USB events

seth wrote:

For /proc/acpi/wakeup you'll have to run a script, for the /sys/bus/… stuff or single usb devices you can use udev rules, https://wiki.archlinux.org/index.php/Ud … USB_device

udev is for specific devices. I'll script it to run after gui is up.

Offline

Board footer

Powered by FluxBB