A
A
AbNorman2014-02-19 05:55:15
linux
AbNorman, 2014-02-19 05:55:15

Why doesn't the Sleep button on the keyboard work?

System:
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
gnome-session 3.4.2.1

Keyboard:
Dell KB113T USB
The only multi-key is Sleep
When you press it, it calls Suspend
Instead of:
gsettings set org.gnome.settings-daemon.plugins.power button-suspend "suspend"
Written by:
gsettings set org.gnome.settings-daemon.plugins.power button-suspend "nothing"
Went to:
System Settings - Keyboard - Shortcuts - System Selected Lock Screen
I press the Sleep button in the Lock Screen settings, the Sleep button is written
But when pressed, nothing happens. Called xev
and pressed the Sleep button : FocusOut event, serial 37, synthetic NO, window 0x2600001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 37, synthetic NO, window 0x2600001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 37, synthetic NO , window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Called showkey pressed Sleep button : key code 142 code pressed keys 142 released





What would you advise to do so that when you click on Sleep , Lock Screen is still performed ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sinucs, 2014-02-19
@Sinucs

Maybe try to programmatically remap the key?
sudo gedit /usr/share/X11/xkb/keycodes/evdev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question