lørdag den 7. juli 2007

Installere Imon VDF

Mit media Center projekt er bygget ind i et kabinet af mærket Silverstone LC11. Et pænt stuekabinet med en nogenlunde WAF-faktor (Wife-Acceptance-Factor). Det har et VDF display af mærket Soundgraph Imon indbygget som samtidigt også fungerer som IR med den medfølgende remote. En eller anden har hacket modulet og skrevet drivere som er med i de nyeste Lirc pakker så hvorfor ikke se om vi kan få det til at spille med mythtv.

1: INSTAL LCDPROC

Brug Synaptics til at hentet lcdproc:

apt-get install lcdproc

ow if that install was doing everything right we could jump to the next step, but there's a few problems with it which we must fix manually.Do the following:

Code:

gksudo gedit /etc/LCDd.conf

Search for the section [server] and comment out the Driver=CFontzPacket.

Uncomment the line Driver=imon

Search for DriverPath and change it to read

Code:

DriverPath=/usr/lib/lcdproc/

Save the file.

Now edit the following file:

Code:
gksudo gedit /etc/init.d/LCDd

Change the line DAEMON_OPTS to read:

Code:
DAEMON_OPTS="-s true -f true -c /etc/LCDd.conf"

Yes, eventhough the MAN pages for LCDd don't mention this, it really needs the "true" arguments.

STEP 2: INSTALL IMON_VFD

Now download the file from Venky for the standalone Imon VFD Driver:http://venky.ws/projects/imon/#standalone

Untar it:

Code:
tar xvzf imon_vfd.tgz

cd imon

Donwload the following patch from Garth Dahlstrom's web site and put it in the imon directory:

http://stacktrace.org/index_html/200...imon-2.6.patch

Then apply the patch and compile:

Code:
cat imon-2.6.patch | patch

make -C /usr/src/linux-headers-2.6.17-10-generic/ SUBDIRS=$PWD modules

sudo make install

This will have created the /dev/lcd0 device that you need to talk to the LCD.

STEP 3: LOAD EVERYTHING

Now let's do the final steps: loading the drivers and testing if everything works.

Code:
modprobe imon_vfd

# Run /usr/sbin/LCDd manually to check all is good.

sudo /usr/sbin/LCDd

If it worked without error you should see something on your VFD. We can now kill LCDd:

Code:
sudo killall LCDd

And start it like it should be started, in the background:

Code:
sudo /etc/init.d/LCDd start

Now we need to make sure all this gets loaded properly when rebooting.

Edit /etc/modules and add the following line at the end:

gedit /etc/modules

Code:
imon_vfd

That's it! All you have to do is reboot.

STEP 4: ACTIVATE LCD IN MYTHTV

Now start MythTV front-end and go to the Setup/Appearance section.

In there you will find the "Enable LCD device" option. By setting it ON, the mythlcdserver be started and it will communicate with LCDd and display info on the LCD during various MythTV operations.

Enjoy !

Troubleshooting: If you cannot find the module LCDd when you do a "ps ax grep LCDd" then you may have to:

Code:
sudo update-rc.d LCDd defaults

If you want to figure out what is happening, you will find the LCDd error messages in /var/log/syslog

Folderen “linux-headers-2.6.17-10-generic” skal eksakt modsvare det der ligger /usr/src/!

Ingen kommentarer:

Blog-arkiv