Microsoft Wireless Laser Keyboard 6000v2.0

From MythTV Official Wiki
Revision as of 13:15, 6 July 2011 by Colinmc151 (talk | contribs) (Small updates.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Microsoft Wireless Laser Keyboard 6000 v2.0 Microsoft Wireless Laser Keyboard 6000 v2.0

This is a wireless keyboard with more-or-less everything. Connection to the computer is via a USB based receiver. For the most part this acts like a typical USB keyboard, what makes this keyboard interesting from a MythTV viewpoint are the extra function keys. Some are above the normal keyboard and some are to the left hand side of the normal keyboard. The "extra" buttons some above and some to the left of the "normal" keyboard can be used to make this act like an oversized remote control.

KnoppMyth Instructions

Not sure how much of any of the following is of value, given that KnoppMyth has been replaced by LinHES, but is left here for possible historical interest.

Media Buttons

There is no obvious way to enable a few of the extra keys, so using the file below will leave a few "dead" buttons. To use the buttons we edit (or if it doesn't already exit we create) the .xmodmaprc file in the mythtv user. For most this means we are working with the /home/mythtv/.xmodmaprc file.

 ! Extra function keymap for 
 ! Microsoft Wireless Laser Keyboard 6000 v2.0
 !
 ! Above the "main" part of keyboard
 ! Play/Pause
 keycode 162 = P
 ! Rewind
 keycode 144 = Left
 ! Fast Forward
 keycode 153 = Right
 ! Mute
 keycode 160 = bar
 ! Vol-
 keycode 174 = bracketleft
 ! Vol+
 keycode 176 = bracketright
 ! calculator - used to bring up sleep timer
 keycode 161 = F8
 !
 ! Left of the "main" part of keyboard
 ! Back - Big jump back
 keycode 234 = Prior
 ! Forward - Big jump forward
 keycode 233 = Next
 ! Document - Used to bring up program guide
 keycode 240 = M
 ! Home - Used as stop
 keycode 130 = Escape
 ! Mail - Used to switch between screen modes
 keycode 236 = W

Unlike the fast forward or volume buttons there is no clearly linked function for some of the buttons. In my case I tied those keys to functions that seemed to work for me, but go with what ever "extra" functions work for you...

Save the above. To bring the above functions up immediately enter:

 xmodmap /home/mythtv/.xmodmaprc

Now you need to make sure the above will come up each time the MythTV system is rebooted. Under KnoppMyth Release 5 F27 this can be done by editing the file /usr/local/bin/KnoppMyth-run and changing the line:

 CMD2='exec mythfrontend --logfile /var/log/mythtv/mythfrontend.log'

to:

 CMD2='exec xmodmap /home/mythtv/.xmodmaprc | exec mythfrontend --logfile /var/log/mythtv/mythfrontend.log'

Lastly if you are running diskless frontends with the above hardware, you need to make sure the client machines will act appropriately. Under KnoppMyth you will need to edit the following file:

  /nfsroot/{machine name}/home/mythtv/.xmodmaprc