Artix Linux Forum

Artix Linux => System => Topic started by: Trace171 on 07 March 2021, 11:08:55

Title: Keyboard and mouse powers off on suspend
Post by: Trace171 on 07 March 2021, 11:08:55
Hi, I'm trying to wake up my computer from suspend by pressing any key on the keyboard or mouse, but these seem to power off when I do loginctl suspend .
To begin with, when I do cat /proc/acpi/wakeup :
Code: [Select]
Device	S-state	  Status   Sysfs node
GPP0   S4 *disabled
GPP1   S4 *disabled
GPP3   S4 *disabled
GPP4   S4 *disabled
GPP5   S4 *disabled
GPP6   S4 *disabled
GPP7   S4 *disabled
GPP8   S4 *enabled   pci:0000:00:03.1
X161   S4 *disabled  pci:0000:08:00.0
GPP9   S4 *disabled
X162   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 *enabled   pci:0000:00:07.1
GP13   S4 *enabled   pci:0000:00:08.1
XHC0   S4 *enabled   pci:0000:0a:00.3
GP30   S4 *disabled
GP31   S4 *enabled   pci:0000:00:08.3
PS2K   S3 *disabled
PS2M   S3 *disabled
UAR1   S4 *disabled  pnp:00:04
GPP2   S4 *enabled   pci:0000:00:01.3
I211   S4 *enabled   pci:0000:03:00.0
X1_1   S4 *disabled
PX16   S4 *disabled
X1_2   S4 *disabled
X1_3   S4 *disabled
PTXH   S4 *enabled   pci:0000:01:00.0
This are the defaults when I power on the computer, but I have to disable PTXH, otherwise It will wake up instantly after suspend.
This is the result of lsusb -tv :
Code: [Select]
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        ID 04d9:a09f Holtek Semiconductor, Inc. E-Signal LUOM G10 Mechanical Gaming Mouse
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        ID 04d9:a09f Holtek Semiconductor, Inc. E-Signal LUOM G10 Mechanical Gaming Mouse
    |__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        ID 04d9:a09f Holtek Semiconductor, Inc. E-Signal LUOM G10 Mechanical Gaming Mouse
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 2: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        ID 1532:0243 Razer USA, Ltd
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        ID 1532:0243 Razer USA, Ltd
    |__ Port 2: Dev 2, If 3, Class=Human Interface Device, Driver=usbhid, 12M
        ID 1532:0243 Razer USA, Ltd
    |__ Port 2: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        ID 1532:0243 Razer USA, Ltd
    |__ Port 4: Dev 3, If 0, Class=Chip/SmartCard, Driver=usbfs, 12M
        ID 1050:0404 Yubico.com Yubikey 4 CCID
    |__ Port 8: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M
        ID 0d8c:0012 C-Media Electronics, Inc.
    |__ Port 8: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M
        ID 0d8c:0012 C-Media Electronics, Inc.
    |__ Port 8: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 12M
        ID 0d8c:0012 C-Media Electronics, Inc.
    |__ Port 8: Dev 4, If 3, Class=Human Interface Device, Driver=usbhid, 12M
        ID 0d8c:0012 C-Media Electronics, Inc.
And grep --color -E '|enabled'  /sys/bus/usb/devices/*/power/wakeup :
Code: [Select]
/sys/bus/usb/devices/1-2/power/wakeup:enabled
/sys/bus/usb/devices/3-1/power/wakeup:disabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled
/sys/bus/usb/devices/usb3/power/wakeup:disabled
/sys/bus/usb/devices/usb4/power/wakeup:disabled