You can run "sudo showkey" to monitor what keys are generated. When I press my power button keycode 116 press and release are generated (see keycode # on https://github.com/torvalds/linux/blob/master/include/uapi/linux/input- event-codes.h).
$ sudo showkey kb mode was ?UNKNOWN? [ if you are trying this under X, it might not work since the X server is also reading /dev/console ] press any key (program terminates 10s after last keypress)... keycode 116 press keycode 116 release Similarly, run "acpi_listen" to check whether power button events are generated, ex. $ acpi_listen button/power PBTN 00000080 00000000 button/power LNXPWRBN:00 00000080 00000003 If you are seeing both keycode and acpi power button events when typing "off" or "any", it can be the fault of the system BIOS. -- 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/1926527 Title: "Power off" dialog appears when any three keyboard keys are pressed quickly Status in linux package in Ubuntu: Confirmed Bug description: Fresh 21.04 install on a fresh Asus G713QR-HG016. Gnome desktop, Spanish language. I first noticed the bug while typing, but I can reduce it to this: when three keyboard keys are pressed fast enough (and it doesn't need to be really fast, I'm not a fast typist), the "Power off" dialog appears, announcing that the system is shutting down automatically in 60 seconds. It doesn't happen pressing the same key three times quickly. It doesn't happen either keeping a key pushed. It needs to be at least two different keys. Typing "aaa" really fast doesn't trigger the bug. Typing "off" or "any" does. This happens even when there is no text field in the focus. I can trigger it pushing keys in the desktop. Of course, this renders the system unusable for me. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu65 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: pete 1570 F.... pulseaudio /dev/snd/controlC2: pete 1570 F.... pulseaudio /dev/snd/controlC1: pete 1570 F.... pulseaudio CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.04 InstallationDate: Installed on 2021-04-28 (0 days ago) InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420) MachineType: ASUSTeK COMPUTER INC. ROG Strix G713QR_G713QR Package: linux (not installed) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=es_ES.UTF-8 SHELL=/bin/bash ProcFB: 0 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-16-generic root=UUID=8a599a27-c957-4af8-a0a1-3e3635010326 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12 RelatedPackageVersions: linux-restricted-modules-5.11.0-16-generic N/A linux-backports-modules-5.11.0-16-generic N/A linux-firmware 1.197 Tags: wayland-session hirsute Uname: Linux 5.11.0-16-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 12/30/2020 dmi.bios.release: 5.19 dmi.bios.vendor: American Megatrends International, LLC. dmi.bios.version: G713QR.308 dmi.board.asset.tag: ATN12345678901234567 dmi.board.name: G713QR dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: 1.0 dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: ASUSTeK COMPUTER INC. dmi.chassis.version: 1.0 dmi.ec.firmware.release: 0.41 dmi.modalias: dmi:bvnAmericanMegatrendsInternational,LLC.:bvrG713QR.308:bd12/30/2020:br5.19:efr0.41:svnASUSTeKCOMPUTERINC.:pnROGStrixG713QR_G713QR:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnG713QR:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0: dmi.product.family: ROG Strix dmi.product.name: ROG Strix G713QR_G713QR dmi.product.version: 1.0 dmi.sys.vendor: ASUSTeK COMPUTER INC. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu65 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: pete 1570 F.... pulseaudio /dev/snd/controlC2: pete 1570 F.... pulseaudio /dev/snd/controlC1: pete 1570 F.... pulseaudio CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 21.04 InstallationDate: Installed on 2021-04-28 (0 days ago) InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420) MachineType: ASUSTeK COMPUTER INC. ROG Strix G713QR_G713QR Package: linux (not installed) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=es_ES.UTF-8 SHELL=/bin/bash ProcFB: 0 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-16-generic root=UUID=8a599a27-c957-4af8-a0a1-3e3635010326 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12 RelatedPackageVersions: linux-restricted-modules-5.11.0-16-generic N/A linux-backports-modules-5.11.0-16-generic N/A linux-firmware 1.197 Tags: wayland-session hirsute Uname: Linux 5.11.0-16-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 12/30/2020 dmi.bios.release: 5.19 dmi.bios.vendor: American Megatrends International, LLC. dmi.bios.version: G713QR.308 dmi.board.asset.tag: ATN12345678901234567 dmi.board.name: G713QR dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: 1.0 dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: ASUSTeK COMPUTER INC. dmi.chassis.version: 1.0 dmi.ec.firmware.release: 0.41 dmi.modalias: dmi:bvnAmericanMegatrendsInternational,LLC.:bvrG713QR.308:bd12/30/2020:br5.19:efr0.41:svnASUSTeKCOMPUTERINC.:pnROGStrixG713QR_G713QR:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnG713QR:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0: dmi.product.family: ROG Strix dmi.product.name: ROG Strix G713QR_G713QR dmi.product.version: 1.0 dmi.sys.vendor: ASUSTeK COMPUTER INC. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1926527/+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