Difference between revisions of "Category talk:R61i"

From ThinkWiki
Jump to: navigation, search
(4.2.1 Hotkeys that worked out-of-the-box)
m
Line 1: Line 1:
4.2 Hotkeys
+
== 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).
 
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).
Line 54: Line 54:
 
If I could only remember how I figured out the "key <I#>" part... It had something to do with xev and comparing with some other files...
 
If I could only remember how I figured out the "key <I#>" part... It had something to do with xev and comparing with some other files...
  
== 4.2.1 Hotkeys that worked out-of-the-box ==
+
=== 4.2.1 Hotkeys that worked out-of-the-box ===
  
 
anyway, here's the keys that worked ootb for me:
 
anyway, here's the keys that worked ootb for me:

Revision as of 20:34, 23 December 2008

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)"
  
  [...]
  
  };

If I could only remember how I figured out the "key <I#>" part... It had something to do with xev and comparing with some other files...

4.2.1 Hotkeys that worked out-of-the-box

anyway, here's the keys that worked ootb for me:

Fn+Page Up -- small light on the edge of the screen. Seems to be built into the hardware

Fn+Pos 1 Fn+End -- increase/dim screen brightness (KDE) Fn+Roll -- Num lock/enables "numeric keypad"


Fn+F5 -- Bluetooth (plus Wireless?) Fn+F12 -- Suspend to RAM