Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XMMS GNOME key binding - no keycodes for xmodmap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mimmozzo
n00b
n00b


Joined: 11 Nov 2006
Posts: 13

PostPosted: Sat Nov 17, 2007 12:19 am    Post subject: XMMS GNOME key binding - no keycodes for xmodmap Reply with quote

Hello, i am trying to get the key bindings working for XMMS on Gnome, but i cant.

First of all, i installed the plugin XF86Audio Key Control for XMMS. This requires keys mapped like:
Code:
xmodmap -e 'keycode 161 = XF86AudioLowerVolume'
xmodmap -e 'keycode 163 = XF86AudioRaiseVolume'
xmodmap -e 'keycode 176 = XF86AudioMute'
xmodmap -e 'keycode 162 = XF86AudioPlay'
xmodmap -e 'keycode 146 = XF86AudioNext'
xmodmap -e 'keycode 164 = XF86AudioPrev'
xmodmap -e 'keycode 160 = XF86AudioStop'


(keycodes reported are examples).

Unluckily, keys i want to map (special keys on HP Pavilion dv9244ea laptop) have not a keycode.
Well, you say, find the scancode with xev, and associate a free keycode with xmodmap.
The problem is that xev doesn't give a scancode on the press event of these keys.

output of xev (pressing next track key)
Code:
KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   


output of xev (pressing a "normal" key, F10)
Code:
KeyPress event, serial 29, synthetic NO, window 0x3400001,
    root 0x1a5, subw 0x0, time 1256863135, (961,811), root:(967,886),
    state 0x10, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x3400001,
    root 0x1a5, subw 0x0, time 1256863204, (961,811), root:(967,886),
    state 0x10, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


Gnome, instead, maps these keys with a exadecimal code, example:
Code:
next track    0x99


I just cant understand why gnome can map these keys, why X cant...

Any help is appreciated, i am just getting crazy, so thanks in advance.
_________________
Try to know!
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sat Nov 17, 2007 3:57 am    Post subject: Reply with quote

http://www.linuxformat.co.uk/wiki/index.php/Setting_Key_Bindings_in_GNOME

Should help you.
Back to top
View user's profile Send private message
mimmozzo
n00b
n00b


Joined: 11 Nov 2006
Posts: 13

PostPosted: Sun Nov 18, 2007 2:15 am    Post subject: Reply with quote

Thanks for help...
I have only a doubt, if I swap to compiz, will these work? They seem to be handled by metacity... :roll:
_________________
Try to know!
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sun Nov 18, 2007 8:46 am    Post subject: Reply with quote

No idea. I got that link from a google search; I've never done what it says.
Back to top
View user's profile Send private message
mimmozzo
n00b
n00b


Joined: 11 Nov 2006
Posts: 13

PostPosted: Sun Nov 18, 2007 11:25 am    Post subject: Reply with quote

It didnt work... btw i emerged rhythmbox, was getting bored :P ty anyway :)
_________________
Try to know!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum