Difference between revisions of "SilverstoneTek LC14"

From MythTV Official Wiki
Jump to: navigation, search
m (Starting edits for Mythbuntu 11.04)
(Updates for Mythbuntu)
Line 5: Line 5:
 
=== Mythbuntu 11.04 Natty Narwhal Instructions ===
 
=== Mythbuntu 11.04 Natty Narwhal Instructions ===
  
'''Front Media Buttons'''
+
''' Media Buttons '''
 +
 
 +
To use the media buttons we edit (or if it doesn't already exit we create) the ''.xmodmap'' file in the home directory of the user(s) that are running MythTV. Most of the time this means we are working with the '''/home/{user name}/.xmodmap''' file.
 +
 
 +
  ! Keymap for Silverstone LC-14 case
 +
  ! Skip Back
 +
  keycode 173 = Left
 +
  ! Skip Forward
 +
  keycode 171 = Right
 +
  ! Stop
 +
  keycode 174 = Escape
 +
  ! PlayPause
 +
  keycode 172 = P
 +
  ! VolUp
 +
  keycode 123 = bracketright
 +
  ! VolDn
 +
  keycode 122 = bracketleft
 +
  ! Mute
 +
  keycode 121 = bar
 +
 
 +
Save the above. To bring the above functions up immediately enter:
 +
 
 +
  xmodmap /home/{user name}/.xmodmap
  
more to come...
 
  
 
=== KnoppMyth Instructions ===
 
=== 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.
  
 
'''Front Media Buttons'''
 
'''Front Media Buttons'''

Revision as of 13:07, 6 July 2011

The SilverstoneTek LC14

From a MythTV point of view what makes the no longer in production SilverstoneTek LC14 case both odd and interesting is a series of media buttons on the front of the case. From a software perspective these buttons look like an odd keyboard. For the buttons to work you must connect the front panel to the motherboard via the USB connector.

Mythbuntu 11.04 Natty Narwhal Instructions

Media Buttons

To use the media buttons we edit (or if it doesn't already exit we create) the .xmodmap file in the home directory of the user(s) that are running MythTV. Most of the time this means we are working with the /home/{user name}/.xmodmap file.

 ! Keymap for Silverstone LC-14 case
 ! Skip Back
 keycode 173 = Left
 ! Skip Forward
 keycode 171 = Right
 ! Stop
 keycode 174 = Escape
 ! PlayPause
 keycode 172 = P
 ! VolUp
 keycode 123 = bracketright
 ! VolDn
 keycode 122 = bracketleft
 ! Mute
 keycode 121 = bar

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

 xmodmap /home/{user name}/.xmodmap


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.

Front Media Buttons 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