I would like to change the function of scroll lock. After pressing scroll lock, it should turn off the screen (and of course no backlight). I have tried the following:
- have set the custom command "xset dpms force off" for the scroll lock in the keyboard shortcuts in ubuntu system. But no effect.
- have tried also to set by script using autokey (which I use for other purposes). But no effect.
My target is to make it simple, and not to write some big scripts and to let them load every time I want the screen off.
I have read something about remaping through xmodmap, but... If I use xev in terminal, then after pressing scroll_lock:
FocusIn event, serial 38, synthetic NO, window 0x6200001, mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 38, 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 0FocusOut event, serial 38, synthetic NO, window 0x6200001, mode NotifyNormal, detail NotifyNonlinear
... and there is no info about keycode...
kind regards
Pepo