Difference between revisions of "SilverstoneTek LC14"

From MythTV Official Wiki
Jump to: navigation, search
(A little bit about using the Silverstone LC14 case buttons)
 
(added KnoppMyth version this has been tested with.)
Line 25: Line 25:
 
   xmodmap /home/mythtv/.xmodmaprc
 
   xmodmap /home/mythtv/.xmodmaprc
  
Now you need to make sure the above will come up each time the MythTV system is rebooted. Under KnoppMyth version this can be done by editing the file /usr/local/bin/KnoppMyth-run and changing
+
Now you need to make sure the above will come up each time the MythTV system is rebooted. Under KnoppMyth version R5F27 this can be done by editing the file /usr/local/bin/KnoppMyth-run and changing
 
the line:
 
the line:
  

Revision as of 00:14, 21 April 2008

The SilverstoneTek LC14

Front Media Buttons

The front buttons work as a keyboard and first need to be connected to the motherboard via an available motherboard USB connector. To use the buttons we edit (or if it doesn't already exit we create) the .xmodmaprc file in the mythtv users. For most this means we are working with the /home/mythtv/.xmodmaprc file.

 ! Keymap for Silverstone LC-14 case
 ! Skip Back
 keycode 144 = Left
 ! Skip Forward
 keycode 153 = Right
 ! Stop
 keycode 164 = Escape
 ! PlayPause
 keycode 162 = P
 ! VolUp
 keycode 176 = bracketright
 ! VolDn
 keycode 174 = bracketleft
 ! Mute
 keycode 160 = bar

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 version R5F27 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