Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to enable scroll lock so I can toggle lights on my keyboard. This works on Arch.Funny thing it doesn't work on Ubuntu.

http://linuxtechie.wordpress.com/2008/04/07/getting-scroll-lock-to-work-in-ubuntu/

$ xmodmap -e ‘add mod3 = Scroll_Lock’
xmodmap:  unknown command on line commandline:1
xmodmap:  unable to open file 'mod3' for reading
xmodmap:  unable to open file '=' for reading
xmodmap:  unable to open file 'Scroll_Lock’' for reading
xmodmap:  4 errors encountered, aborting.
share|improve this question
    
Thank you , solved the problem –  RedBlue May 10 at 17:06
add comment

2 Answers 2

xmodmap -e 'add mod3 = Scroll_Lock'

(Note the difference in the single-quotes!)

Copy this and paste it in a terminal.

Then the error will no longer occur.

I have used this command successfully on my Ubuntu 12.04 system.

share|improve this answer
add comment

Or you can switch the lights with these:

On:

xset led named "Scroll Lock"

Off:

xset -led named "Scroll Lock"

Works on Ubuntu 12.04 x86 for my SpeedLink illuminated keyboard (SL-6453-SSV-A).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.