Eu estou tentando configurar o wake-on-usb no meu Thinkpad W541 com Fedora 26 no kernel 4.14.18-200.fc26.x86_64. Depois de googling ao redor eu fiz
echo enabled > /sys/bus/usb/devices/**/power/wakeup
echo on > /sys/bus/usb/devices/**/power/control
para todos os dispositivos em usb3
e confirmou que informa enabled
/ on
. Este é o meu lsusb -t
quando sentado na estação de encaixe:
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
|__ Port 3: Dev 16, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 17, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M <-- this is the wireless mouse/keyboard on common dongle
|__ Port 1: Dev 17, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M <-- this is the wireless mouse/keyboard on common dongle
|__ Port 2: Dev 18, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 9: Dev 13, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 4: Dev 14, If 0, Class=Hub, Driver=hub/3p, 480M
|__ Port 3: Dev 15, If 0, Class=Human Interface Device, Driver=usbhid, 12M <-- this is the wired mouse
|__ Port 11: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 11: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 12: Dev 6, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 12: Dev 6, If 1, Class=Video, Driver=uvcvideo, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
Eu estava experimentando com diferentes configurações hw, tentando o mouse com fio conectado a portas de laptop, o acima está na estação de encaixe em uma porta sempre ativa (amarelo). Nada funcionou até agora. cat /proc/acpi/wakeup
me dá
Device S-state Status Sysfs node
LID S4 *enabled platform:PNP0C0D:00
SLPB S3 *enabled platform:PNP0C0E:00
IGBE S4 *disabled pci:0000:00:19.0
EXP2 S4 *enabled pci:0000:00:1c.1
EXP3 S4 *enabled pci:0000:00:1c.2
XHCI S3 *enabled pci:0000:00:14.0
EHC1 S3 *enabled pci:0000:00:1d.0
EHC2 S3 *enabled pci:0000:00:1a.0
e enquanto isso não mencionar USBx
, o XHCI
parece ser o correto, já que
lrwxrwxrwx. 1 root root 0 Jul 9 23:08 /sys/bus/usb/devices/3-9 -> ../../../devices/pci0000:00/0000:00:14.0/usb3/3-9
Quando faço systemctl suspend
, a roda de rolagem do mouse é desativada, mas quando eu clico nela ela pisca novamente, então há alguma energia. Depois de começar a usar o botão liga / desliga, posso ver em dmesg
:
[3552.733915] ACPI: Preparing to enter system sleep state S3
[ 3552.835302] ACPI: EC: event blocked
[ 3552.835303] ACPI: EC: EC stopped
[ 3552.835303] PM: Saving platform NVS memory
[ 3552.835320] Disabling non-boot CPUs ...
[ 3552.843587] smpboot: CPU 1 is now offline
... (other cpus redacted)
[ 3552.916995] ACPI: Low-level resume complete
[ 3552.917041] ACPI: EC: EC started
[ 3552.917041] PM: Restoring platform NVS memory
[ 3552.919325] Enabling non-boot CPUs ...
[ 3552.919358] x86: Booting SMP configuration:
[ 3552.919359] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 3552.949279] cache: parent cpu1 should not be sleeping
[ 3552.949410] CPU1 is up
... (other cpus redacted)
[ 3553.132777] ACPI: Waking up from system sleep state S3
[ 3553.550844] thinkpad_acpi: EC reports that Thermal Table has changed
[ 3553.563468] usb usb3: root hub lost power or was reset
[ 3553.563472] usb usb4: root hub lost power or was reset
[ 3553.567170] sd 0:0:0:0: [sda] Starting disk
[ 3553.567284] ACPI: EC: event unblocked
Verifiquei se pm_qos_remote_wakeup
e pm_qos_no_power_off
estão definidos como 1
em todas as portas da estação de encaixe.
Eu passei pela BIOS, mas não vi nada que deveria estar relacionado ao wake on usb, apenas na lan (e essa configuração está ativada). Eu aprecio mais dicas.
Tags thinkpad acpi wake-on-lan wake-up