LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2007, 02:24 PM   #1
Caesar Tjalbo
Member
 
Registered: Aug 2006
Location: Ņuņoa
Distribution: KaOS
Posts: 93

Rep: Reputation: 16
Question Win key sometimes not working


I use FC6 with KDE 3.5.6. For Amarok I've defined a shortcut to play/pause: Win key + Z.
The weird thing is: it sometimes works, sometimes don't during a session. Logging on again/rebooting may enable the combination or not; it's unpredictable to me.
Other than setting up the shortcut I've done nothing, no changes to Xmodmap etc.

Can anyone explain to me why it only functions "sometimes"? Or how to get it to work always as a modifier (comparable to alt or control key)?


(I've posted this question 2 months ago on FedoraForum but got no reply)
 
Old 02-28-2007, 01:15 AM   #2
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 30
The next time your key isn't working, try running xev in a terminal. This will open up a window and any key you press will give an output on the terminal.

If there is no output on the terminal on pressing the Win key, that means the X server itself is not recognizing the key.

On the other hand, if there is a output, then maybe its a problem with amarok.

I know this is not a "solution". But atleast you'll know where the problem lies...
 
Old 03-01-2007, 06:54 AM   #3
Caesar Tjalbo
Member
 
Registered: Aug 2006
Location: Ņuņoa
Distribution: KaOS
Posts: 93

Original Poster
Rep: Reputation: 16
akudewan: I wasn't expecting a solution but hoping for it. Thanks for the reply and suggestion.

xev output with the win key working as intended:
Code:
KeyPress event, serial 28, synthetic NO, window 0x2600001,
    root 0x4d, subw 0x0, time 142532086, (409,-80), root:(413,456),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x2600001,
    root 0x4d, subw 0x0, time 142532161, (409,-80), root:(413,456),
    state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
xev output, 'not working' win key:
Code:
KeyPress event, serial 28, synthetic NO, window 0x2200001,
    root 0x4d, subw 0x0, time 180450651, (177,-272), root:(181,264),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x2200001,
    root 0x4d, subw 0x0, time 180450734, (177,-272), root:(181,264),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
So the difference is in the KeyRelease event, "state 0x40" vs. "state 0x0", at least the other differences don't seem meaningfull to me here. According to KDE's Control Center, the KDE win key is X11-Mod mod4.

Does this makes some sense to someone? Would it help to 'hardcode' things in Xmodmap?
 
  


Reply


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
xmodmap win key triplemaya Linux - General 4 06-07-2007 04:32 PM
Win-key Changing help. phlppmrtns5 Linux - General 1 09-28-2006 02:03 AM
Alt-tab not letting me walk thru windows || Win key not working SP7 MEPIS 2 08-13-2006 10:36 PM
Win key doesn't work sus SUSE / openSUSE 1 10-18-2004 11:07 AM
X + win key alaios Linux - Software 1 10-11-2004 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration