Microsoft Natural MultiMedia Keyboard 1.0A

From MythTV Official Wiki
Jump to: navigation, search

The Microsoft Natural MultiMedia Keyboard 1.0A Microsoft Natural MultiMedia Keyboard 1.0A

This is a natural style (split) style PS/2 wired keyboard. For the most part this acts like a typical PS/2 keyboard, what makes this keyboard interesting from a MythTV viewpoint are the extra function keys above the normal keyboard. The "extra" buttons some above 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.

 ! Keymap for Microsoft Natural Multimedia Keyboard 1.0A
 ! "My Documents" - Picture in picture
 keycode 239 = V
 ! "My Pictures" - No keycode
 ! "Mute"
 keycode 160 = bar
 ! PlayPause
 keycode 162 = P
 ! Stop
 keycode 164 = Escape
 ! VolUp
 keycode 176 = bracketright
 ! VolDn
 keycode 174 = bracketleft
 ! Skip Back
 keycode 144 = Left
 ! Skip Forward
 keycode 153 = Right
 ! "Media" - Switch capture cards
 keycode 237 = Y
 ! "Mail" - switch between screen modes 
 keycode 236 = W
 ! "Web/Home" - Program Guide
 keycode 178 = M
 ! "Messenger" - No keycode
 ! "Calculator" - On screen display
 keycode 161 = I
 ! "Log Off" - No keycode
 ! "Sleep" - Sleep timer
 keycode 223 = F8

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