Category talk:R61i

From ThinkWiki
Revision as of 21:22, 23 December 2008 by Pumba (Talk | contribs) (what I basically did to get my audio hotkeys working)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

4.2 Hotkeys

I got some of the Fn+Cursor-keys to work by doing some work within /etc/X11/xkb/symbols; it worked fine for me in the first set up (Ubuntu 8.04 amd64) though it kind of stopped working when I re-installed to 8.10 x86. What's working for me at the moment is the Play/Pause hotkey (globally; associated in amarok's global shortcuts) and the Previous/Next Track/Stop keys (only with amarok focussed).

Here's a couple of pieces which still need assembling for a fully functional piece of advice:

I created the file /etc/X11/xkb/symbols/lenovo-thinkpad-r61i-hotkeys with this content:

  // Layout for Lenovo Thinkpad R61i's multimedia keys
  //
  // $XFree86: xc/programs/xkbcomp/symbols/lenovo-thinkpad-r61i-hotkeys,v 0.1 2008/11/14 19:00:34 Pumba Exp $
  
  default partial
  
  xkb_symbols "audio" {
  
  key <I20>    { [ XF86AudioMute ] };
  key <I2E>    { [ XF86AudioLowerVolume ] };
  key <I30>    { [ XF86AudioRaiseVolume ] };
  
  // Play, Pause
  key <I22>    { [ XF86AudioPlay ] };
  
  // Previous track
  key <I10>    { [ XF86AudioPrev ] };
  
  // Next track
  key <I19>    { [ XF86AudioNext ] };
  
  // Stop
  key <I24>    { [ XF86AudioStop ] };
  
  };
  


Then I edited "my" language's file in /etc/X11/xkb/symbols (the one that looks like your country code, probably) to include the lines I just wrote:


  [...]
  
  default
  
  xkb_symbols "basic" {
  
  
  include "latin(type4)"
  include "lenovo-thinkpad-r61i-hotkeys(audio)"
  
  [...]
  
  };