You are not logged in.

#1 2020-07-12 09:05:29

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

[SOLVED] Wake up from suspend with laptop built-in keyboard

Hi,

I would like my system to wake up from suspend by pressing any key. I saw that there are different ways to manage devices wake up behavior.

For instance, I did disable USB mouse wake up using a systemd tmpfile (see: https://wiki.archlinux.org/index.php/la … ake_events, please let me know downsides of this approach if any):

#Type  Path  Mode  UID  GID  Age  Argument

w /proc/acpi/wakeup - - - - XHC0

I tried to do the same to enable the keyboard device, but apparently is not listed in /proc/acpi/wakeup (since I tried to enable all entries there):

Device  S-state   Status   Sysfs node
GPP0      S3    *disabled
GPP1      S3    *disabled  pci:0000:00:01.2
GPP2      S3    *enabled   pci:0000:00:01.3
GPP3      S4    *enabled   pci:0000:00:01.4
GPP4      S3    *disabled
L850      S3    *disabled
GPP5      S4    *enabled   pci:0000:00:01.6
GPP6      S3    *disabled
GP17      S3    *enabled   pci:0000:00:08.1
XHC0      S3    *disabled  pci:0000:05:00.3
XHC1      S3    *enabled   pci:0000:05:00.4
GP18      S3    *disabled
LID       S3    *enabled   platform:PNP0C0D:00
SLPB      S3    *enabled   platform:PNP0C0E:00

At this point, I wanted to try with an udev rule instead (see: https://wiki.archlinux.org/index.php/ud … USB_device), but I am not sure that the keyboard is shown in lspci or lsusb:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. Device 816a (rev 0e)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. Device 816b (rev 0e)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. Device 816c (rev 0e)
03:00.4 USB controller: Realtek Semiconductor Co., Ltd. Device 816d (rev 0e)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev d2)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 003: ID 04f2:b681 Chicony Electronics Co., Ltd 
Bus 004 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So, apologize for the trivial question, but how do I find the keyboard device on the system ?

Also, what are the advantages/downside of those approaches (if any, the first one looks easier) ? Is there are better way ?

Last edited by DeletedUser210826 (2021-05-07 09:59:00)

Offline

#2 2020-09-05 07:23:18

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Any clue about this ?

Offline

#3 2020-10-05 16:07:42

rlopezc
Member
Registered: 2020-04-07
Posts: 8

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Hello, I have the same problem.

I already toggled the wakeup for ALL usbs and not-suspend each one and no success

Did you manage to solve it?

Offline

#4 2020-11-05 16:37:50

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Hi, unfortunately I haven't any news about this... still waiting for suggestions

Offline

#5 2020-11-05 20:01:14

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

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

> Bus 002 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
This one?

Seen https://wiki.archlinux.org/index.php/Lo … from_sleep ?

Offline

#6 2020-11-05 20:14:19

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

No, that's an usb mouse. I am talking about the laptop's built in keyboard.

Offline

#7 2020-11-05 20:29:37

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,452

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Change the title of your post to something like "How do I find the device ID of the built-in keyboard". Have you looked at Xinput?

Offline

#8 2020-11-05 20:30:47

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

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Probably i2c wired (Chicony Electronics is the webcam)
Did you try all the GP* devices and L850 in acpi/wakeup?

Offline

#9 2020-11-29 11:41:24

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Hello,

Thanks for the suggestions, and sorry for the late reply.

@seth: Yes I tried to enable all the available devices in acpi/wakeup. The only one that can be enabled is GPP1, the others remain disabled, and that didn't help though.

@twelveeighty: That's the output of xinput list command, though I don't know if I can do anything wake-up related with those IDs.

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=14   [slave  pointer  (2)]
⎜   ↳ TPPS/2 Elan TrackPoint                    id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=11   [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated I           id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=16   [slave  keyboard (3)]

Offline

#10 2021-05-07 09:58:31

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: [SOLVED] Wake up from suspend with laptop built-in keyboard

Found out it wakes up with the FN button! Good enough, solved.

Offline

Board footer

Powered by FluxBB