Question

I have keyboard backlight when "Scroll Lock" is pressed.

But, by default in Gnome 3.6 i haven't xmodmap for "Scroll Lock":

$xmodmap

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

But i can add it:

$xmodmap -e 'add mod3 = Scroll_Lock'
$xmodmap

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3        Scroll_Lock (0x4e)
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

When i had Gnome 3.4, i just added to my .bashrc file:

xmodmap -e 'add mod3 = Scroll_Lock'

But, in Gnome 3.6 it don't work, because he redefine xmodmap without "Scroll Lock" support during user session.

How i can add Scroll Lock support in Gnome 3.6?

Thanks for you attention!

Was it helpful?

Solution

I found a solution on https://bbs.archlinux.org/viewtopic.php?id=151899.

Just will need execute:

gsettings set org.gnome.settings-daemon.plugins.keyboard active false

Redefinition for xmodmap is disabled for me now.

OTHER TIPS

It seems like gnome 3.6 scroll lock led does not work, but, the functionality is a s expected. Basically xmodmap settings are overwritten by gnome. If you do not want to disable keyboard via gnome, you can work around the issue using following instructions,

To get the LED on, one can add xmodmap entry as you said to get the LED back, but, the LED turns off itself after you unplug keyboard, logout/restart(gnome-session restart) So, to workaround this we need to have a 1)udev rule for keyboard - which enables scroll lock led on every hot plug.(call a script to add xmodmap entry for scroll lock) 2)gnome autostart function - To enable scroll lock led on every reboot.(call a script to add xmodmap entry for scroll lock)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top