You are not logged in.

#1 2022-04-19 10:56:25

brulio
Member
Registered: 2021-12-20
Posts: 5

[SOLVED] Power button not detected

I have a custom made laptop (Slimbook TITAN), and for some reason the power button is not detected anymore: this is causing, i think, the fact that I can't resume from suspend by pressing the power button, so I have to shut it down forcibly. I'm running arch on the 5.17.3 linux stable kernel, and the problem remains even with the lts version regardless of the desktop environment.

Last edited by brulio (2022-04-23 11:38:31)

Offline

#2 2022-04-19 13:23:17

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

Re: [SOLVED] Power button not detected

sudo libinput list-devices
cat /proc/acpi/wakeup
xinput

Offline

#3 2022-04-19 18:38:43

brulio
Member
Registered: 2021-12-20
Posts: 5

Re: [SOLVED] Power button not detected

sudo libinput list-devices: http://0x0.st/ochq.txt
cat /proc/acpi/wakeup:     http://0x0.st/ocFI.txt
xinput:                                 http://0x0.st/ocFU.txt

my /etc/X11/xinit/xinitrc:   http://0x0.st/iUvk.bin

I have disabled Windows Fast-Boot but nothing changes, and I have no idea how I should fix my xinitrc.

Offline

#4 2022-04-21 13:26:01

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

Re: [SOLVED] Power button not detected

The power button is detected by libinput

Device:           Power Button
Kernel:           /dev/input/event0

and forwarded to xinput

 Power Button                            	id=8	[slave  keyboard (3)]

But it's not in the DSDT

Device	S-state	  Status   Sysfs node
GP17	  S4	*enabled   pci:0000:00:08.1
GPP1	  S4	*enabled   pci:0000:00:01.2
GPP0	  S4	*enabled   pci:0000:00:01.1

You can check lspci to match the devices that can (and are enabled to wake the system from hibernation/s4)

Since you apaprently have a parallel windows, make sure to reboot windows (twice for voodoo reasons) after disabling fast start (what is NOT the fast-boot feature in your BIOS) and:
can you hibernate windows and wake that w/ the power button?

I have disabled Windows Fast-Boot but nothing changes, and I have no idea how I should fix my xinitrc.

The bottom line is jsut my signature w/ stuff I need to tell people very frequently ;-)
Your xinitrc is fine, but it's not even clear that you're using it. And it's not relevnt to subject at hand either.

Offline

#5 2022-04-21 16:35:17

brulio
Member
Registered: 2021-12-20
Posts: 5

Re: [SOLVED] Power button not detected

Yes I can hibernate and wake Windows 10 by pressing the power button, and the problem persists in Arch even after rebooting in Windows two times.

Offline

#6 2022-04-21 18:26:40

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

Re: [SOLVED] Power button not detected

Try to lie to the acpi, pass eg

acpi_osi=! acpi_osi="Windows 2012"

to the kernel, https://wiki.archlinux.org/title/Kernel_parameters

Edit: oh, and see whether there BIOS updates for the device.

Last edited by seth (2022-04-21 18:27:00)

Offline

#7 2022-04-22 08:06:41

brulio
Member
Registered: 2021-12-20
Posts: 5

Re: [SOLVED] Power button not detected

When i set those kernel parameters my system won't boot, and there are no updates available for my BIOS. I should have noted that I've been using Arch Linux on this machine for almost a year and I've never had this kind of problem before.

Last edited by brulio (2022-04-22 08:12:16)

Offline

#8 2022-04-22 14:14:52

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

Re: [SOLVED] Power button not detected

So the obvious question is what has changed between "almost a year" and "anymore".
The obvious answer would be a kernel update but since the LTS kernel is affected likewise, that's probably not it?
Is the power button still in the wakeup device list of eg. the installation iso?

Offline

#9 2022-04-23 08:44:41

brulio
Member
Registered: 2021-12-20
Posts: 5

Re: [SOLVED] Power button not detected

Ok I fixed the problem by downgrading the kernel to the 5.17.2 version released on 10 April, but the outputs of

sudo libinput list-devices
cat /proc/acpi/wakeup
xinput

are the still the same. Other than that everything seems to work fine, thanks a lot!

Offline

#10 2022-04-23 13:51:41

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

Re: [SOLVED] Power button not detected

the problem remains even with the lts version

Still true?
Also maybe post the output of lspci so we see what's in the DSDT

Offline

Board footer

Powered by FluxBB