You are not logged in.

#1 2010-04-04 22:45:12

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

upgrade unmapped keys

hi,

just noticed, but it must have been an upgrade today or yesterday, but my volume key have totally lost there mapping! they still have numbered scan codes, but no mapped code (used to be XF86AudioLowerVolume, XF86AudioRaiseVolume & XF86AudioMute). Tested with "xev".

All the other keys are still found and work fine (eg XF86HomePage etc)

any idea on a quick fix, or simple solution?

Thanks


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#2 2010-04-05 01:49:29

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: upgrade unmapped keys

ninjaprawn,

you can map the keys with 'xmodmap'.

First, find out the keycode with 'xev' by pressing the keys with the mouse positioned in the xev window.

then in a file, f.e. ~/.Xmodmad insert the lines:

keycode 80 = XF86AudioLowerVolume
keycode 81 = XF86AudioRaiseVolume

above keycodes are just an example.

Execute xmodmap ~/.Xmodmap

If it works, put above command on your startup file.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2010-04-05 19:39:01

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: upgrade unmapped keys

hmmmm, below is the xev output from 2 different keys! one is play/pause which works perfectly, the other is XF86AudioRaiseVolume which doesnt. as you can see, xev is not generating a keycode for either!

FocusOut event, serial 39, synthetic NO, window 0x2200001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 39, synthetic NO, window 0x2200001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 39, 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   

FocusOut event, serial 39, synthetic NO, window 0x2200001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 39, synthetic NO, window 0x2200001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 39, 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

2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#4 2010-04-05 19:41:42

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: upgrade unmapped keys

oooh, just noticed as well, the key that used to be XF86AudioMute is mow mapped to XF86AudioMedia

what has been going on?

in fact it just seems to be completely messed up!!! with no real work at all, have changed my openbox rc.xml to use XF86AudioMedia to mute, and then reset ob, then tried the key, and it didnt work, went back to xev, and it is no logger mapped there, now the hot key called webcam is mapped to XF86AudioMedia.!!!!

kept pressin buttons in xev and my volume keys have started workin again, but mute has gone walkies. hmmmmm very odd!

Last edited by ninjaprawn (2010-04-05 19:46:39)


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

Board footer

Powered by FluxBB