LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 09-29-2009, 06:31 AM   #1
KRTac
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, 03:42 PM   #2
sploot
Member
 
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, 07:35 AM   #3
KRTac
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.
 
  


Reply

Tags
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 10:44 PM
all software installs hang scroll lock and caps lock lights flash jcorrnt Linux - Hardware 6 02-07-2009 01:44 PM
Alt-tab not letting me walk thru windows || Win key not working SP7 MEPIS 2 08-13-2006 10:36 PM
Scroll Lock key broke in xorg? jon_k Linux - Software 1 06-11-2006 12:11 PM
Scroll Lock key recognition Spritegeezer Linux - Hardware 1 01-29-2005 12:58 AM


All times are GMT -5. The time now is 11:54 PM.

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