Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-29-2009, 05:31 AM   #1
LQ Newbie
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Scroll Lock disables default Alt and Win key functions

So, I have a keyboard with a backlight function (at night it's very annoying when I have to turn on the light just to se what I'm typing). The backlight is controled by the scroll lock led: when the led is on, the backlight is too and oposite. I spent a few hours the other day figuring out how to turn on the scroll lock led, because pushing the Scroll Lock key in Xorg (by default) doesn't do anything. I knew that xset led 3 would work, so I try'ed to setup xbindkeys so that a shell script would be executed whenever I pressed the Scroll Lock key. It worked, the script was getting executed, but I didn't know how to setup the script so that it turned the led on when it is off and off when it's on. So I gave up on xbindkeys, and found xmodmap. Then after a hour or so i figured out that I could set mod3 (a modifier key witch was empty) to Scroll_Lock and everithing worked. I was happy. Well sort of: by that time I also discovered that the keyboard ain't worth shit.

Everything was ok after that, till today. I turned Scroll Lock on, and then tryed to switch windows with Alt+Tab. Nothing happend. Then I tryed Pressing Alt+F in firefox (to check if the Alt key is disabled all together) and it opend the File menu just like it is suposed to. My conclusion is that any spetial action of the modifier keys is disabled when Scroll Lock is enabled, but other actions work (WTF am I even saying). The Win key doesn't work properly either. I use those keys all the time so this type of behaviour isn't acceptable.

Can I make the keys unrelated to Scroll Lock? When I turn the scroll lock led on via xset, all the keys work normally. So the Scroll Lock functionality is not set in that case.

PS: I'm on Gnome if it makes a difference.

Note: I have asked the same question over at arch linux forum, but nobody replied.
Old 09-30-2009, 02:42 PM   #2
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Would you post your configurations and scripts that you use to do this? The ones that you have edited, so we might be able to diagnose the problem...
Old 10-01-2009, 06:35 AM   #3
LQ Newbie
Registered: Aug 2007
Posts: 2

Original Poster
Rep: Reputation: 0
All I did was:
xmodmap -e "add mod3 = Scroll_Lock"
That enables the standard use of the Scroll Lock key on a keyboard. Then if I activate scroll lock in X, the standard functionality doesn't work anymore. For example, I can't do Alt+Tab to switch windows, nor can I use the Win key to controll my music player. But, on the other hand, Alt works for menues. If I press Alt+F in firefox, it opens the menu as normal.


keyboard, xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM-switch problem no scroll-lock key agts Linux - Newbie 8 12-21-2011 09:44 PM
all software installs hang scroll lock and caps lock lights flash jcorrnt Linux - Hardware 6 02-07-2009 12:44 PM
Alt-tab not letting me walk thru windows || Win key not working SP7 MEPIS 2 08-13-2006 09:36 PM
Scroll Lock key broke in xorg? jon_k Linux - Software 1 06-11-2006 11:11 AM
Scroll Lock key recognition Spritegeezer Linux - Hardware 1 01-28-2005 11:58 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration