The duplicated event can be from various sources so it may need some try & error to figure out.
For example, one can try to disable platform driver (i.e. sudo rmmod hp- wmi) and verify whether only one sleep event (i.e. from ACPI) is received. It is also possible to check "less /proc/bus/input/devices) and use evtest to check 142 events. Take my system as an example: $ less /proc/bus/input/devices ... I: Bus=0019 Vendor=0000 Product=0003 Version=0000 N: Name="Sleep Button" P: Phys=PNP0C0E/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2 U: Uniq= H: Handlers=kbd event2 B: PROP=0 B: EV=3 B: KEY=4000 0 0 ... $evtest /dev/input/event2 ... Finally, udev rules can be found in /lib/udev/hwdb.d and modifying scripts may help too. I am no expert on input events or udev rules but let's try to narrow down and identify possible root causes first. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1930110 Title: Wake-up after suspend only on second keypress Status in linux package in Ubuntu: New Bug description: My computer is a HP Z240 tower workstation, Ubuntu version: Description: Ubuntu 18.04.5 LTS Release: 18.04 I can and do suspend my computer by pressing Fn-Key + F1-key on the HP keyboard. The F1 key is marked with a crescent moon to indicate this functionality. The suspend state is indicated by a blinking led on the computer case. From 16.04 I was used, that in suspend state any keypress on the keyboard would wake up the computer again immediately: The screen would (if turned on) display what was last visible when suspend was executed through the abovementioned function key. The led on the computer case would light steadily. Now a keypress on the suspended computer leads to a short activation of the harddisk, the led on the computer case will light steadily but the monitor (also if on) remains dark. After about 2-5 seconds the harddisk stands still again, the computer becomes silent and the led on the computer case is blinking again, as in suspend mode. I presume the computer is now again in suspend mode. When this state is reached, a second keypress leads to a correct awake from suspend, the harddisk spins, the led on the case lights steadily and the monitor displays what is expected. The computer can then be used as expected. Note: I have 64 GByte of RAM and only 32GB Swap partition, so I presume (and hope) that hibernation (RAM to Disk) plays no role here, only suspend and wake-up from suspend. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1930110/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp