remapping the power button on my laptop keyborad
by j12i from LinuxQuestions.org on (#6E3GB)
Hi!
I have this Acer C720 Chromebook that runs Slackware64. I'm running a Wayland session.
It has the power key in the normal keyboard above backspace. From my other laptop I expect the delete key in this place. In this other thread I already managed to disable the key instantly shutting down the laptop.
This is how I did it:
The keyboard is /dev/input/event0 and the power button is /dev/input/event2. So how could I map the power button to delete?
Attached Thumbnails
I have this Acer C720 Chromebook that runs Slackware64. I'm running a Wayland session.
It has the power key in the normal keyboard above backspace. From my other laptop I expect the delete key in this place. In this other thread I already managed to disable the key instantly shutting down the laptop.
This is how I did it:
- in /etc/elogind/logind.conf I set HandlePowerKey=ignore
- in /etc/acpi/events/default I commented out
Code:#event=.*
#action=/etc/acpi/acpi_handler.sh %e(only comments left in the file)
The keyboard is /dev/input/event0 and the power button is /dev/input/event2. So how could I map the power button to delete?
Attached Thumbnails