Getting the mute and volume keys working in x86

Around April I logged a bug to try and get this stuff working. I had managed a very kludgy binary patching process to get it working with Xsun, but had also decided to switch to Xorg (speed reasons mainly), so I was out in the cold again.

I'm running a modified version of the kb8042 driver which returns the right keycode/scancode mapping for them. The next trick was to see how how the Xorg xserver reacted to this. Not good. We get a whole lot of complaints in /var/log/Xorg.log.0 about KEY_UNUSED whenever I press or release one.

Hmmmm, ...

Time to hit the Xorg source code. It looks like there is a map into which I have to add in the keysymbol numbers. OK, I have patched those into the binary with mdb. The errors have stopped, but now whenever I try to map those keys to their functions in the gnome keyboard shortcuts, pressing the key undefines the function (just like if I had pressed backspace).

Gawd it's frustrating to be soooooo close. Maybe something will occur to me overnight.

Comments:

Post a Comment:
Comments are closed for this entry.
About

* - Solaris and Network Domain, Technical Support Centre


Alan is a kernel and performance engineer based in Australia who tends to have the nasty calls gravitate towards him

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Links
Blogroll

No bookmarks in folder

Sun Folk

No bookmarks in folder

Non-Sun Folk
Non-Sun Folks

No bookmarks in folder