On Mon 22 Jan 2024 at 11:43:36 (-0600), Mike McClain wrote:
>     On my keyboard there are some buttons in the top right corner above
> the number pad. one marked with  circle with an x over it, one with a
> moon the third with analarm clock ringing.
>     Wondering what they were and how they were handled I typed
> 'Control v' in bash on the command line then the button with the Xed
> out circle. Much to my chagrin my computer shutdown while I had files
> open for editing. OOPs.
>     I think I now know what those buttons do but am wondering if there
> is a way to disable them short of dismantling the keyboard.
> 
>     mike@DevuanPI4b:~> uname -a
>     Linux MikesDevuanPI 6.1.70 #1 SMP PREEMPT Sun Jan  7 04:13:59 CET 2024
>         aarch64 GNU/Linux
> 
> I'm now on a Raspberry PI running Devuan but also run Debian on a
> different PI and MS Windows 2000 on a Pentium based tower.
> 
> Bumping one of those buttons and inadvertently killing the system
> while in the midst of a task is something I'd like to avoid,
> 
> Be well and Thanks for any suggestions,

You could try running:

  $ xmodmap -e 'keycode 124=' # to override XF86PowerOff

  $ xmodmap -e 'keycode 150=' # to override XF86Sleep

  $ xmodmap -e 'keycode 151=' # to override XF86WakeUp perhaps.

Perhaps don't redefine XF86WakeUp until XF86Sleep is overridden.

Cheers,
David.

Reply via email to