Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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...
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.