SilverstoneTek LC16M
From MythTV
The SilverstoneTek LC16M
Contents |
Drivers
WARNING! There is now a currently unsupported version of this case going around with usbid 15c2:0036, although the remote appears to be detected as a usbhid device the VFD is non functional There are now Experimental Patches standalone VFD Remote & VFD
LIRC
Versions 0.7 and 0.8.1 of LIRC have included a working driver for the iMON_PAD remote control used in most of the Silverstone cases. It is listed under the USB remote controls. In order to use the "PAD Controller", a pressure sensitive mouse cursor control, as a directional pad use the patch from here under the first section entitled lirc-imon-pad2keys.patch. He also provides a sample lircd.conf with all 58 keys of the iMON_PAD. Version 0.8.1 does not require the 2.6.16 patch he has listed as the changes should already be made.
Click Wheel
The case has a front click wheel which is integrated as part of the iMON setup. In order to use the wheel, make sure you have the remote control working properly and add the following to you lircd.conf file,
begin remote
name ClickWheel
bits 24
eps 30
aeps 100
one 0 0
zero 0 0
post_data_bits 8
post_data 0xFF
gap 131993
toggle_bit 0
begin codes
WheelCC 0x010000
WheelCW 0x000100
WheelClick 0x000008
# alternate code, 0x000008 does not seem to work for me (SilverstoneTek LC16M silver), this one does:
#WheelClick 0x000001
end codes
end remote
VFD
The latest LCDproc driver as of 0.5.0 has support for the VFD display built in! Configure using ./configure --enable-drivers=imon
Front Media Buttons
The front buttons work as a keyboard and so need to be mapped using an .xmodmaprc file in the home directory of the user running X. For most this will be the mythtv user, so include this in your /home/mythtv/.xmodmaprc file (or create it if it doesn't exist), (note this is what I have, I don't need volume control, so you will have to change that part if you do.)
!Skip Back keycode 144 = Left !Skip Forward keycode 153 = Right !Stop keycode 164 = Escape !PlayPause keycode 162 = Ctrl+P !VolUp keycode 176 = Up !VolDn keycode 174 = Down
Some help in customizing this file to your own needs can be had here.
Front Power Button
This is rather general, but since I've got this going for my setup I figure I'd put it here. Since MythTV lets you shutdown through the menu system I've changed the behavior of the front panel to kill mythfrontend as a crash/hang fix which will improve the "WAF/GAF". In reality what I have it do is kill Xorg, which will kill mythfrontend, mplayer, xine, etc. All in one swoop, in case any of them crash.
I run Debian, so this may be in a different location, or may be managed differently,
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Kills MythTV frontend when the power putton has been
# pressed.
if `ps -A | grep -q 'mythfrontend'`
then
while `ps -A | grep -q 'mythfrontend'`
do
echo "mythfrontend still running!"
killall mythfrontend
killall Xorg
sleep 1
done
fi
