Article 6E3GB remapping the power button on my laptop keyborad

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:
  1. in /etc/elogind/logind.conf I set HandlePowerKey=ignore
  2. in /etc/acpi/events/default I commented out
    Code:#event=.*
    #action=/etc/acpi/acpi_handler.sh %e(only comments left in the file)
But now I'm not receiving events in xev for the power button. I think I did before, but I'm not sure.

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 Thumbnailsattachment.php?attachmentid=41519&stc=1&
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments