You are not logged in.

#1 2015-06-05 06:48:35

erykroom
Member
Registered: 2013-12-06
Posts: 25

[Solved] Pressing AltGr for a few seconds shuts down the computer

Hi

A couple of months ago I had some water damage on my Thinkpad x220. Cleaned it dried it and everything expect one keyboard key works fine.

The problem is when im pressing the AltGr key for longer than a second it shuts down the computer. It basically acts the same way as my power button. It's even possible to turn on my computer with the AltGr key. I know its caused from the water damage and it would be easier to buy a new keyboard but a couple of days ago I booted up a Ubuntu on a usb stick and the AltGr key worked as expected. So instead of buying a new keyboard I thought maybe its possible to re-map my key somehow so it would work as its supposed to.

I tried to identify the keycode. When I push the key for a short time it gives me:

[root@arch:erykroom master▲]#  showkey --keycodes
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 100 press
keycode 100 release

When I try to get the keycode for the longer press it just shuts down.

Any help would be appriciated

EDIT:

Managed to solve the issue.
I had to edit my /etc/systemd/logind.conf and change the power key to ignore

HandlePowerKey=ignore

Last edited by erykroom (2015-06-05 07:14:00)

Offline

Board footer

Powered by FluxBB