PDA

View Full Version : HOWTO: Antec Fusion Black 430 LCD, Volume Knob, AND Hauppauge Remote w/ 8.04


gazer22
May 2nd, 2008, 10:34 PM
For those (millions) of you with an Antec Black 430 Case and a Hauppauge (non-MCE) remote, here's how I got mine all working together with Mythbuntu 8.04.

(Note: typos updated as of 26may08, 0700 UTC)

This hauppauge remote does not work with the IR receiver on the front of the Antec case. These instructions are for those hauppauge remotes that have their own receivers that plug into the PCI card.

If you're trying to use a MCE remote with Antec's IR module on this case, I can't help you, but feel free to reply with instructions! (Hint: it's made by soundgraph, and likely ONLY works with an MCE remote)

Thanks to venky and the codeka folks for all of their work!

Before beginning, make sure you have some required development packages:
sudo apt-get install build-essential automake autoconf autotools-dev libtool cvs

Now, let's get the LCD working:

First, download lcdproc and codeka's patch, compile it and install it:
cd /usr/local/src
wget http://internap.dl.sourceforge.net/sourceforge/lcdproc/lcdproc-0.5.2.tar.gz
tar -zxvf lcdproc-0.5.2.tar.gz
cd /usr/local/src/lcdproc-0.5.2
wget http://codeka.com/blogs/imon/lcdproc-0.5.2-imonlcd-0.3.patch
patch -p1 < lcdproc-0.5.2-imonlcd-0.3.patch
aclocal && autoconf && automake
./configure --enable-drivers=imonlcd
make
sudo make install
sudo cp scripts/init-LCDd.debian /etc/init.d/LCDd
sudo chmod +x /etc/init.d/LCDd
sudo update-rc.d LCDd defaults
Next, copy the attached gz file to a convenient directory and untar it:
tar -zxvf antec_lirc_lcd.tar.gz

This will create a subdirectory named "antec" from whatever directory the tar.gz file is in.

Copy the file "LCDd.conf" from the antec subdirectory to /usr/local/etc:
sudo cp antec/LCDd.conf /usr/local/etc/.



Now, lets get the volume knob and Hauppauge remote working via lirc.

First, download the source code for lirc from cvs (login is anonymous, no password - just hit enter):

cd /usr/local/src
cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login
cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc
cd lirc
./autogen.sh
./configure --prefix=/usr --with-driver=all


Manually edit this file: /usr/local/src/lirc/drivers/Makefile to remove any drivers from that list you aren't interested in.
The three parameters in that file you want to edit are: lirc_driver, DIST_SUBDIRS, and SUBDIRS - want imon_dev imon imon_i2c
OR: just copy my example over:
cp antec/lirc.drivers.Makefile /usr/local/src/lirc/drivers/Makefile

Edit config.h so that the line: /* #undef LIRC_IMON_LCD */ becomes: #define LIRC_IMON_LCD 1
OR: just copy my example over:
cp antec/lirc.config.h /usr/local/src/lirc/config.h

Make lirc, but DO NOT INSTALL IT!!:

cd /usr/local/src/lirc
make


Backup the default drivers and add these new ones:

export rev_temp=`uname -r`
sudo mkdir /lib/modules/$rev_temp/misc
sudo cp -a /usr/local/src/lirc/drivers/lirc_i2c/lirc_i2c.ko /lib/modules/$rev_temp/misc/.
sudo cp -a /usr/local/src/lirc/drivers/lirc_dev/lirc_dev.ko /lib/modules/$rev_temp/misc/.
sudo cp -a /usr/local/src/lirc/drivers/lirc_imon/lirc_imon.ko /lib/modules/$rev_temp/misc/.

sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/lirc_dev.ko{,.OLD}
sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/lirc_imon.ko{,.OLD}
sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/lirc_i2c.ko{,.OLD}

sudo ln -s /lib/modules/$rev_temp/misc/lirc_imon.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/.
sudo ln -s /lib/modules/$rev_temp/misc/lirc_i2c.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/.
sudo ln -s /lib/modules/$rev_temp/misc/lirc_dev.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/.


Go ahead and load the new modules and start up the LCD:


sudo modprobe lirc_imon
sudo modprobe lirc_i2c
sudo /etc/init.d/LCDd start


Add the following two lines to /etc/modules using sudo and your favorite editor:
lirc_imon
lirc_i2c

Backup default configuration files:
sudo mv /etc/lirc/hardware.conf /etc/lirc/hardware.conf.orig
sudo mv /etc/lirc/lircd.conf /etc/lirc/lircd.conf.orig
mv ~/.lirc/mythtv ~/.lirc/mythtv.orig

Copy files from the tar.gz files over:
sudo cp antec/hardware.conf /etc/lirc/.
sudo cp antec/lircd.conf /etc/lirc/.
sudo cp antec/lirc /etc/init.d/.
cp antec/mythtv ~/.lirc/mythtv

Note that the file which now resides in ~/.lirc/mythtv is highly personal, and you should feel free to modify the mappings from the remote to MythTV commands. It's configured for my specific hauppauge remote and the volume knob.

Start lirc:
sudo update-rc.d lirc defaults
sudo /etc/init.d/lirc start


TROUBLESHOOTING:

To troubleshoot the remote and/or volume knob:

Make sure that no lircd processes are running:
sudo /etc/init.d/lirc stop
Ensure that there are (at least) two lirc devices, lirc0 and lirc1:
ls -l /dev/lirc*
Use mode2 for each of the devices - after running the command from the command line, press some buttons on the remote and/or rotate the volume knob. You should get some codes appearing in the terminal window. If not, the modules (lirc_imon and lirc_i2c) aren't configured quite right. Hit CTRL-C to exit:
sudo mode2 -d /dev/lirc0
sudo mode2 -d /dev/lirc1
If mode2 works for both lirc devices, go ahead and restart lirc:
sudo /etc/init.d/lirc start
Run irw from the command line and then press some buttons on the remote and move the volume knob around. You should get codes from each button press/volume knob turn. They should identify the button/knob correctly. If not, check your hardware.conf, lircd.conf, and /etc/init.d/lirc for errors. Hit CTRL-C to exit:
irw
If that works, but myth isn't responding to your commands, check your .lirc/mythtv file and your .lircrc file, which should include .lirc/mythtv.


Good luck!

:guitar:

wombo
May 3rd, 2008, 03:23 AM
Hey this looks fantastic. nice work.

My comments
I think this is a spelling mistake in Section 3
sudo cp antec/LCDd.conf /etc/local/etc/
sudo cp antec/LCDd.conf /usr/local/etc/

I fixed my first problem, for everyone else you need to have the following installed.
build-essentials
aclocal
libtool

Currently I have both the knob and IR working ok!! But I am still having some troubles with the LCD.

I get this result
htpc@htpc:/dev$ sudo echo -e "lirc_imon\nlirc_i2c" >> /etc/modules
-bash: /etc/modules: Permission denied
htpc@htpc:/dev$

tedder
May 3rd, 2008, 10:55 AM
I'm also having issues getting LCDd started:

Starting LCDproc display server daemon: Could not open driver module server/drivers/curses.so: server/drivers/curses.so: cannot open shared object file: No such file or directory

There's no "curses.so" on my machine. In the \[curses\] section, I could always set File=libcurses.so, but the path would be wrong. What's supposed to be done? Do you have a curses.so on your machine, and what installed it?

tedder
May 3rd, 2008, 11:12 AM
okay, so I needed to manually copy curses.so from the source tree over to my machine.

Still doesn't work, though. When I start LCDd, it displays in my ssh window (console). I assume I need to set "device=" to something. But what?

lsusb gives this:
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

I don't have a /dev/lcd.

gazer22
May 3rd, 2008, 11:48 AM
Hey this looks fantastic. nice work.

Thanks!

sudo cp antec/LCDd.conf /usr/local/etc/
Yup, thanks. Unless you change the configuration in lcdproc, it will install the configuration files in /usr/local/etc


I fixed my first problem, for everyone else you need to have the following installed.
build-essentials
aclocal
libtool

Yes, additional things need to be installed from the base Mythbuntu install. I have a hard time tracking which packages I've added... :)

I get this result
htpc@htpc:/dev$ sudo echo -e "lirc_imon\nlirc_i2c" >> /etc/modules
-bash: /etc/modules: Permission denied
htpc@htpc:/dev$
It's probably trying to ask for your password, but is thwarted by the redirection. Go ahead and manually add the two lines:

lirc_imon
lirc_i2c
to /etc/modules using sudo and your favorite editor.

gazer22
May 3rd, 2008, 11:55 AM
Starting LCDproc display server daemon: Could not open driver module server/drivers/curses.so: server/drivers/curses.so: cannot open shared object file: No such file or directory

This is likely related to the typo wombo found in my original instructions (now fixed!).

Make sure you copy antec/LCDd.conf to /usr/local/etc/.

Double check that the Driver= line reads Driver=imonlcd and any other Driver= lines are commented out (around line 45 in LCDd.conf).

wombo
May 3rd, 2008, 12:26 PM
IT WORKED!!!

YOUR A CHAMPION!!!

Thank you so much its been sitting there dead for ages and now its working.:)

Juzz
May 3rd, 2008, 01:19 PM
The package is:
build-essential

I can't find aclocal in the repository - do you have other repositories added?
EDIT:
According to this:
http://ubuntuforums.org/archive/index.php/t-6149.html

aclocal is in the automake package.

You also need the cvs package!

Juzz
May 3rd, 2008, 02:09 PM
What distro are you running?

On a Mythbuntu install I am having trouble getting this to get past the lirc make.

Either some packages are missing or you are running another distro with mythbuntu added through repository.

gazer22
May 3rd, 2008, 09:58 PM
What distro are you running?

I started with the regular Mythbuntu 8.04 distro, asked it to install Ubuntu desktop (for other reasons), and added quite a few packages on top of that (mostly for other stuff).

Thanks, I fixed the apt-get install line for build-essential, added cvs, and switched aclocal to automake.

Might also be missing autoconf and autotools-dev, so they're on the apt-get line now too.

wombo
May 3rd, 2008, 10:48 PM
On a Mythbuntu install I am having trouble getting this to get past the lirc make.

I think I had to add libtool to get that to work

Juzz
May 5th, 2008, 03:12 PM
By the way:
There's a shorthand for your backup copying:

sudo mv /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev/lirc_dev.ko{,.OLD}
sudo mv /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_imon/lirc_imon.ko{,.OLD}
sudo mv /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_i2c/lirc_i2c.ko{,.OLD}

;)

gazer22
May 6th, 2008, 03:06 PM
By the way:
There's a shorthand for your backup copying:

sudo mv /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev/lirc_dev.ko{,.OLD}
sudo mv /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_imon/lirc_imon.ko{,.OLD}
sudo mv /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_i2c/lirc_i2c.ko{,.OLD}

;)


Nice one. Thanks.

bwooster0
May 10th, 2008, 09:54 AM
Before I could do "sudo /etc/init.d/LCDd start" I had to do:

"sudo chmod +x /etc/init.d/LCDd"

bwooster0
May 10th, 2008, 11:00 AM
I think that step 9 needs a line to be changed to:

"sudo cp antec/lirc /etc/init.d/"

gazer22
May 10th, 2008, 07:33 PM
Correct on both - thanks.

OP updated.

justinux
May 11th, 2008, 10:41 PM
Thank you for this information, it's very helpful.

I have got my remote and volume knob working but still no luck with the display.

when starting LCDd, and MythTV nothing comes up on the display. Any suggestions?

wombo
May 12th, 2008, 06:03 AM
What would I have to modify your configuration to support a Windows MCE remote?

Thanks

axelsvag
May 12th, 2008, 08:10 AM
You could try this http://ubuntuforums.org/showthread.php?t=723003

gazer22
May 12th, 2008, 01:07 PM
...still no luck with the display. When starting LCDd, and MythTV nothing comes up on the display. Any suggestions?

If LCDd is working, you should get a rather generic text on the LCD (LCDproc... Cli... some #'s). If you get that, then you just need to ensure that you've turned on MythTV's lcd output in the frontend. (Utilities/Setup->Setup->Appearance)

If you have no text at all on the LCD, you should double check LCDd.conf to ensure that Driver=imonlcd and the device (/dev/lcd0) and contrast (200-ish) settings are reasonable in the [imonlcd] settings.

gazer22
May 12th, 2008, 01:15 PM
What would I have to modify your configuration to support a Windows MCE remote?


Completely guessing, but...


You might not have TWO lirc devices, assuming that the volume knob and MCE remote are treated as one device by the soundgraph module. This means that you don't need the modified hardware.conf and /etc/init.d/lirc
You need a different lircd.conf file. Can be generated via irremote, or find one to match the MCE remote. May need to add the portion for the volume knob.
Need a different .lirc/mythtv file to map the remote's buttons to mythtv.


If the volume knob is working, you should be able to get codes using "mode2" as described in the Troubleshooting section. If you get codes from mode2, then the next step is to ensure the lircd.conf file is configured correctly, then you should be able to get good output from "irw." After that, the .lirc/mythtv configuration is the last step to getting the buttons working with MythTV.

justinux
May 12th, 2008, 05:16 PM
If you have no text at all on the LCD, you should double check LCDd.conf to ensure that Driver=imonlcd ...

"imonlcd" ???

LCDd.conf from this post's attachment uses Driver=imon and has settings under [imon]. Is there a difference if we use imonlcd or just imon?

gazer22
May 12th, 2008, 07:56 PM
"imonlcd" ???

LCDd.conf from this post's attachment uses Driver=imon and has settings under [imon]. Is there a difference if we use imonlcd or just imon?

In the LCDd.conf in the original post's antec_lirc_lcd.tar.gz, it uses Driver=imonlcd (Driver=curses and Driver=imon are commented out).

Absolutely a difference between imon and imonlcd. That's what the codeka patch in the first step does. For more details on the codeka patch, go here (http://codeka.com/blogs/index.php?cat=30).

justinux
May 12th, 2008, 08:54 PM
Thank you for your help. I'm so close I can smell it.

I have double-checked that I am using the LCDd.conf attached with this post, and it does specify imonlcd as the driver.

I get the following when I set reporting to stderr and run LCDd directly (or through /etc/init.d/LCDd):
imonlcd: cannot read Backlight: off, using default -1209052337
imonlcd: sending command: 40

But still nothing shows up on the display. I know the hardware works because I can get it running in Windows just fine. I may end up trying again from a fresh install, but I hope not to.

gazer22
May 13th, 2008, 07:46 PM
I get the following when I set reporting to stderr and run LCDd directly (or through /etc/init.d/LCDd):
imonlcd: cannot read Backlight: off, using default -1209052337
imonlcd: sending command: 40

This comes from me accidentally leaving Backlight=off in LCDd.conf. It doesn't work, does generate that error, but shouldn't do anything else. Go ahead and comment it out to get rid of that error.

I don't have too much experience debugging the LCD, as "it just worked" with the patch from codeka.

That said, double check that the screen is getting power (the backlight should always be on), and that the usb header is plugged in correctly to your motherboard (lsusb should list a SoundGraph iMon PAD Remote Controller), and try running lcdproc in foreground mode (this runs instead of mythlcdserver) - first make sure to kill any running mythlcdserver processes, then:
sudo /etc/init.d/LCDd stop; sudo LCDd -f -r 5
Then, in a different window:
lcdproc -f

If you're still stuck, check out the codeka forums here (http://codeka.com/forums/).

justinux
May 14th, 2008, 03:14 PM
Well,
I ended up re-installing a fresh new build and everything works. I installed some updates, which broke it (/dev/lcd0 wouldn't come up) so I just followed the instructions through again, and everything was back up and working.

Thanks

gazer22
May 14th, 2008, 07:23 PM
Awesome! Glad it works.

/dev/lcd0 wouldn't come up

Yeah, if you don't have /dev/lcd0, that indicates something goofy with the /etc/init.d/LCDd script or the /usr/local/sbin/LCDd binary.

Shorty36
May 26th, 2008, 02:21 PM
Gazer22, you ROCK!! :guitar:

I just picked up one of these cases, and your instructions were spot on. Everything works!

Thanks so much for your work on this.

khanw
May 26th, 2008, 05:06 PM
Hi,

When trying to run through the steps you described I get an error while trying to build lirc:

configure: error: *** you need to have the Linux kernel source installed for this driver

I don't have the kernel source installed and remember from earlier attempts that I had trouble installing a source that matched my installed kernel. Could someone give me a pointer as to how I do that?

I'm running Mythbuntu 8.04 with kernel 2.6.24-17-generic

Thanks!

gazer22
May 26th, 2008, 10:48 PM
When trying to run through the steps you described I get an error while trying to build lirc:

configure: error: *** you need to have the Linux kernel source installed for this driver


Hmmm, I don't have linux-source* installed either (at least not to my knowledge!).

I just got the upgrade to 2.6.24-17, so I refreshed my lirc directory, and re-tried the configuration.

After running autogen.sh, configure gave me this line (among many others):
checking for Linux kernel sources... /lib/modules/2.6.24-17-generic/build/

No idea how it got there, though...

Configure worked fine for me.

Might want to check here: http://www.lirc.org/

boffyflow
May 28th, 2008, 02:58 PM
If LCDd is working, you should get a rather generic text on the LCD (LCDproc... Cli... some #'s). If you get that, then you just need to ensure that you've turned on MythTV's lcd output in the frontend. (Utilities/Setup->Setup->Appearance)

If you have no text at all on the LCD, you should double check LCDd.conf to ensure that Driver=imonlcd and the device (/dev/lcd0) and contrast (200-ish) settings are reasonable in the [imonlcd] settings.

I had everything working really nicely 2 days ago. But yesterday the LCD starting displaying a simple clock (that strangely was 9 minutes different than the CPU clock). I tried restarting the daemon and also restarting the machine but to no avail. The clock is now constantly displayed - even after shutting down the frontend. I have not updated the system since I followed these instructions. Does anybody have an idea what is going on?

Thanks.

gazer22
May 28th, 2008, 05:18 PM
I had everything working really nicely 2 days ago. But yesterday the LCD starting displaying a simple clock... Does anybody have an idea what is going on?

Are you sure you didn't update the system? Try:
uname -r

If you get 2.6.24-17 or similar (the 17 is important), then your kernel was updated over the past couple of days (as was mine).

If that's the case, I think the kernel is looking for the driver files where they are not yet located.

The simple thing might be to set up symbolic links from the expected location to your old location:

export rev_temp=`uname -r`
sudo ln -s /lib/modules/2.6.24-16-generic/misc/lirc_imon.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/.
sudo ln -s /lib/modules/2.6.24-16-generic/misc/lirc_i2c.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/.
sudo ln -s /lib/modules/2.6.24-16-generic/misc/lirc_dev.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/.

But, this might cause trouble if you get rid of the 2.6.24-16 kernel.

Another way would be to go back to your /usr/local/src/lirc directory and just re-copy the drivers to a new /lib/modules/2.6.24-17-generic/misc directory:

cd /usr/local/src/lirc
export rev_temp=`uname -r`
sudo mkdir /lib/modules/$rev_temp/misc
sudo cp -a /usr/local/src/lirc/drivers/lirc_i2c/lirc_i2c.ko /lib/modules/$rev_temp/misc/.
sudo cp -a /usr/local/src/lirc/drivers/lirc_dev/lirc_dev.ko /lib/modules/$rev_temp/misc/.
sudo cp -a /usr/local/src/lirc/drivers/lirc_imon/lirc_imon.ko /lib/modules/$rev_temp/misc/.

sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/lirc_dev.ko{,.OLD}
sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/lirc_imon.ko{,.OLD}
sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/lirc_i2c.ko{,.OLD}

sudo ln -s /lib/modules/$rev_temp/misc/lirc_imon.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/.
sudo ln -s /lib/modules/$rev_temp/misc/lirc_i2c.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/.
sudo ln -s /lib/modules/$rev_temp/misc/lirc_dev.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/.


Hope that's it!

Does anyone know if this has to be done with every kernel update?

boffyflow
May 28th, 2008, 07:04 PM
Are you sure you didn't update the system? Try:
uname -r

If you get 2.6.24-17 or similar (the 17 is important), then your kernel was updated over the past couple of days (as was mine).

If that's the case, I think the kernel is looking for the driver files where they are not yet located.

The simple thing might be to set up symbolic links from the expected location to your old location:

export rev_temp=`uname -r`
sudo ln -s /lib/modules/2.6.24-16-generic/misc/lirc_imon.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/.
sudo ln -s /lib/modules/2.6.24-16-generic/misc/lirc_i2c.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/.
sudo ln -s /lib/modules/2.6.24-16-generic/misc/lirc_dev.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/.

But, this might cause trouble if you get rid of the 2.6.24-16 kernel.

Another way would be to go back to your /usr/local/src/lirc directory and just re-copy the drivers to a new /lib/modules/2.6.24-17-generic/misc directory:

cd /usr/local/src/lirc
export rev_temp=`uname -r`
sudo mkdir /lib/modules/$rev_temp/misc
sudo cp -a /usr/local/src/lirc/drivers/lirc_i2c/lirc_i2c.ko /lib/modules/$rev_temp/misc/.
sudo cp -a /usr/local/src/lirc/drivers/lirc_dev/lirc_dev.ko /lib/modules/$rev_temp/misc/.
sudo cp -a /usr/local/src/lirc/drivers/lirc_imon/lirc_imon.ko /lib/modules/$rev_temp/misc/.

sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/lirc_dev.ko{,.OLD}
sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/lirc_imon.ko{,.OLD}
sudo mv /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/lirc_i2c.ko{,.OLD}

sudo ln -s /lib/modules/$rev_temp/misc/lirc_imon.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_imon/.
sudo ln -s /lib/modules/$rev_temp/misc/lirc_i2c.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_i2c/.
sudo ln -s /lib/modules/$rev_temp/misc/lirc_dev.ko /lib/modules/$rev_temp/ubuntu/media/lirc/lirc_dev/.


Hope that's it!

Does anyone know if this has to be done with every kernel update?


I don't have access the the mythbox right now, but wouldn't I have problems with the remote and the volume knob if I had upgraded the kernel? I will report back later tonight.

Thanks.

gazer22
May 28th, 2008, 08:05 PM
...but wouldn't I have problems with the remote and the volume knob if I had upgraded the kernel?

What?!? That sounds rational! ;)

No idea - my remote was still working, but the LCD was as described - the ugly clock.

boffyflow
May 29th, 2008, 12:58 AM
What?!? That sounds rational! ;)

No idea - my remote was still working, but the LCD was as described - the ugly clock.

Still no luck. I had not updated the kernel to 17. But just to be on the same page I now did update Ubuntu to the latest and greatest (incl. kernel 17) and followed your instructions. Remote and volume still working, but I still have the ugly clock. I went back to your original instructions and double checked everything and I think I may have found the culprit. It seems as if the LCDd daemon cannot start. There is no error message, but it just shows:
Starting LCDproc display server daemon:

I also noticed that I do not have a /dev/lcd device only a /dev/lcd0 device, so I tried changing the device in the /usr/local/etc/LCDd.conf file, but that didn't help either...

wonko69
May 29th, 2008, 03:19 PM
I have been tinkering with the volume button and LCD display for a few hours now. The volume button worked like a charm (only the box doesnt respond to the changes in volume, must be the wrong mixer) and after I installed imonlcd like it the howto the LCD worked. Now the thing is that during the boot process the time is displayed in am/pm format, that doesnt bother me. But for some reason after Mythtv starts the display changes to:
LCDproc server
cli: 1 src: 7

Any one got any ideas on howto get it working with mythtv?

I have setup mythtv to have a LCD display.

Best regards


PS Thanks for a super Howto guide.

gazer22
May 29th, 2008, 08:59 PM
It seems as if the LCDd daemon cannot start. There is no error message, but it just shows:
Starting LCDproc display server daemon:

If you get this by running:
sudo /etc/init.d/LCDd restart
Then something is likely goofy with /etc/init.d/LCDd a good response is:
user@mediapc:~$ sudo /etc/init.d/LCDd restart
[sudo] password for user:
Stopping LCDproc display server daemon: LCDd.Starting LCDproc display server daemon: imonlcd: sending command: 40



I also noticed that I do not have a /dev/lcd device only a /dev/lcd0 device...
You're supposed to have /dev/lcd0, not anything else.

gazer22
May 29th, 2008, 09:02 PM
...for some reason after Mythtv starts the display changes to:
LCDproc server
cli: 1 src: 7


If you have the LCDproc server screen, then the LCD is working okay.

mythlcdserver (make sure it's running via "ps -e | grep myth*") has been acting a little weird recently for me. After rebooting, and starting mythtv, the LCD would give me the above-mentioned LCDproc server screen until I started moving around in the mythtv screens and playing a recorded video. After that, it started acting normally, and stayed up.

Try moving around in the mythtv menus and playing some videos - does that bring up the normal myth lcd screens?

wonko69
May 30th, 2008, 11:11 AM
Try moving around in the mythtv menus and playing some videos - does that bring up the normal myth lcd screens?

If I go through the appreance setup, the screen comes up normal. But that might be from just restarting the Mythtv front app.
Would be interesting to know what causes the display change.

boffyflow
May 30th, 2008, 01:18 PM
If you get this by running:
sudo /etc/init.d/LCDd restart
Then something is likely goofy with /etc/init.d/LCDd a good response is:
user@mediapc:~$ sudo /etc/init.d/LCDd restart
[sudo] password for user:
Stopping LCDproc display server daemon: LCDd.Starting LCDproc display server daemon: imonlcd: sending command: 40



You're supposed to have /dev/lcd0, not anything else.

Yeh! Got it working again. I went back through your initial instructions and rebuilt everything against .17 kernel. I rebooted a couple of times and it seems as if the LCD and the remote/volume are stable now. I did notice that the LCD displays sometimes just the system setting and you have the move around the menus in myth before the display catches the menus. It seems a little flaky, but overall I am a pretty happy now. Thanks for you help gazer22.

eriklindered
June 15th, 2008, 07:03 PM
Hi

Im gettig this when im starting LCDd

Starting LCDproc display server daemon: imonlcd: sending command: 5000000000000040

and nothin happend on the screen

What do i do ?

gazer22
June 16th, 2008, 08:58 PM
I'm getting this when starting LCDd:

Starting LCDproc display server daemon: imonlcd: sending command: 5000000000000040

and nothing on the screen

What do i do ?

If you have no text at all on the LCD, you should double check LCDd.conf to ensure that Driver=imonlcd and the device (/dev/lcd0) and contrast (200-ish) settings are reasonable in the [imonlcd] settings.

If that's good, double check that the screen is getting power (the backlight should always be on), and that the usb header is plugged in correctly to your motherboard (lsusb should list a SoundGraph iMon PAD Remote Controller), and try running lcdproc in foreground mode (this runs instead of mythlcdserver) - first make sure to kill any running mythlcdserver processes, then:
sudo /etc/init.d/LCDd stop; sudo LCDd -f
Then, in a different window:
lcdproc -f

If you're still stuck, check out the codeka forums here (http://codeka.com/forums/).

spencer0749
July 6th, 2008, 08:11 PM
Ok. I followed the instructions given but I'm having problems.

When ever I start the LCDd program I get a bunch of random characters scrolling rapidly across the screen. If I kill LCDd I can use echo to print strings.

gazer22
July 8th, 2008, 04:43 PM
When ever I start the LCDd program I get a bunch of random characters scrolling rapidly across the screen. If I kill LCDd I can use echo to print strings.

Hmmm. Tough one. Haven't seen that before.

what's your output from lsusb?
Should include this:
Bus 003 Device 002: ID 15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller

If LCDd is stopped, you shouldn't be able to get anything on the screen, so that's weird.

The output of "ps -e | grep -si lcd" should be something like (if you're running mythtv):
user@htpc:~$ ps -e | grep -si lcd
5607 ? 00:00:20 LCDd
7205 ? 00:00:11 mythlcdserver

The output of "lsmod | grep -si imon" should look something like this:
user@htpc:~$ lsmod | grep -si imon
lirc_imon 18308 2
lirc_dev 15556 2 lirc_i2c,lirc_imon
usbcore 146028 5 lirc_imon,ohci_hcd,ehci_hcd


The output of "ls /dev/lcd*" should be:
user@htpc:~$ ls /dev/lcd*
/dev/lcd0

If all that looks good (and it probably will if you're able to get some text to the LCD), check out this post for getting debugging output from LCDd: post #25 from this thread (http://ubuntuforums.org/showpost.php?p=4952743&postcount=25)

The people over at codeka.com (http://codeka.com/forums/viewforum.php?f=3&sid=39f4bf6e0eb2a88a70c550a05feecb69) are the actual brains behind the lcd patch, and they have an active forum which might be able to provide more technical troubleshooting help: Codeka.com forum (http://codeka.com/forums/viewforum.php?f=3&sid=39f4bf6e0eb2a88a70c550a05feecb69)

semafour
July 23rd, 2008, 09:50 PM
Hi everyone.

This is probably the most detailed set of steps to get everything working on the Antec Fusion Black 430.

I'm right up with you, up until Step 4, when I have to make. I'm getting errors.

If this thread is still alive, and someone can help me, that would be great. I'm running the newest version of Ubuntu Server (8.04.1).

Thanks guys. This is incredibly frustrating, as the only reason I bought this case was because I saw threads like this where everyone was able to get the LCD working. I lack an IR remote, so I'm only interested in getting the LCD screen working and the right-hand-side knob.

If you need any (or all) output of my steps, let me know. I'm not posting at the moment because I'm not at the computer that I'm trying to install it on.

EDIT:
This works like a charm with mythbuntu. There must be some important differences or requirements that Ubuntu Server does not contain. Is there a chance anyone knows what those are?

Thanks so much!

gazer22
July 25th, 2008, 01:09 PM
I'm right up with you, up until Step 4, when I have to make. I'm getting errors...
I'm running the newest version of Ubuntu Server (8.04.1).

...I'm only interested in getting the LCD screen working and the right-hand-side knob.


Okay, starting with the last point first. To get the LCD and volume knob, you still need to do the modifications to LCDd and lirc. You won't need all of the modifications to hardware.conf and lircd.conf, but you'll need some of them. That shouldn't be a huge deal though, and isn't holding you up now.

Exactly what command is giving you trouble? You are correct that you're likely just missing a package that comes by default with the mythbuntu distribution, but not the ubuntu server distribution.

As noted at the top of the HOWTO, the following packages are required on top of the standard mythbuntu distro, so make sure those are installed on your system too!:
sudo apt-get install build-essential automake autoconf autotools-dev libtool cvs

semafour
July 27th, 2008, 01:52 AM
Thanks for the quick reply. The following is giving me trouble:

4. Make lirc, but DO NOT INSTALL IT!!:
Code:
cd /usr/local/src/lirc
make

Specifically, make. When running make, as root, here's my issue:

root@box:/usr/local/src/lirc# make
Makefile:187: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.


Makefile around line 187 is the following:
kernelcc =
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

where "include/linux/autoconf.h ..." is line 187.

I have installed all the packages suggested by you in your opening post. Thanks for the help.

gazer22
July 27th, 2008, 09:11 PM
The following is giving me trouble:
cd /usr/local/src/lirc
make
... When running make, as root, here's my issue...

Hmmm - a couple of things:

Do you have the linux-headers-generic package installed? (Check this before moving on. I'm guessing that it's required...)
user@htpc:/usr/local/src/lirc/drivers$ dpkg-query -l *headers*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=======================-=======================-================================================== ============
un libqt3-compat-headers <none> (no description available)
ii libqt3-headers 3:3.3.8-b-0ubuntu3 Qt3 header files
un libqt3-plugins-headers <none> (no description available)
ii libxmu-headers 2:1.0.4-1 X11 miscellaneous utility library headers
un linux-headers <none> (no description available)
un linux-headers-2.6 <none> (no description available)
ii linux-headers-2.6.24-16 2.6.24-16.30 Header files related to Linux kernel version 2.6.24
ii linux-headers-2.6.24-16 2.6.24-16.30 Linux kernel headers for version 2.6.24 on x86/x86_64
ii linux-headers-2.6.24-17 2.6.24-17.31 Header files related to Linux kernel version 2.6.24
ii linux-headers-2.6.24-17 2.6.24-17.31 Linux kernel headers for version 2.6.24 on x86/x86_64
ii linux-headers-2.6.24-18 2.6.24-18.32 Header files related to Linux kernel version 2.6.24
ii linux-headers-2.6.24-18 2.6.24-18.32 Linux kernel headers for version 2.6.24 on x86/x86_64
ii linux-headers-2.6.24-19 2.6.24-19.36 Header files related to Linux kernel version 2.6.24
ii linux-headers-2.6.24-19 2.6.24-19.36 Linux kernel headers for version 2.6.24 on x86/x86_64
ii linux-headers-generic 2.6.24.19.21 Generic Linux kernel headers
un linux-kernel-headers <none> (no description available)

What happens if you run the instructions NOT as root, but as a regular user? (You may need to sudo chmod go+rw /usr/local/src).
What are the outputs of the previous ./autogen.sh and ./configure lines? Should look like:
user@htpc:/usr/local/src/lirc$ ./autogen.sh
configure.ac:16: installing `./compile'
configure.ac:9: installing `./install-sh'
configure.ac:9: installing `./missing'
daemons/Makefile.am: installing `./depcomp'
Creating setup-driver.sh ...

user@htpc:/usr/local/src/lirc$ ./configure --prefix=/usr --with-driver=all
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
...
-bunch of checking for stuff-
...
config.status: creating doc/man/Makefile
config.status: creating config.h
config.status: executing depfiles commands

All kernel modules will be built.

Now enter 'make' and 'make install' to compile and install the package.

To check the above, it might be worthwhile to rm -fR /usr/local/src/lirc and go back to step 1 to re-download the lirc code into a fresh directory.


One other thing to check is the contents of /usr/local/src/lirc after the autogen.sh and configure commands. Should be something like this:
user@htpc:/usr/local/src/lirc$ ls
acinclude.m4 config.h CVS/ ltmain.sh setup-driver.sh
aclocal.m4 config.h.in daemons/ Makefile setup.sh*
ANNOUNCE config.log data2setup.sh* Makefile.am stamp-h1
AUTHORS config.status* depcomp* Makefile.in TODO
autogen.sh* config.sub* doc/ missing* tools/
autom4te.cache/ configure* drivers/ NEWS
ChangeLog configure.ac INSTALL README
compile* contrib/ install-sh* remotes/
config.guess* COPYING libtool* setup.data

semafour
August 9th, 2008, 09:59 PM
Thanks very much for all the help, gazer22.

What I've ended up doing was installing Ubuntu Desktop. For what I'm doing, I may eventually need X, so I figured why not. Something is seriously lacking for LCD output using lirc on the vanilla server version, and I can't spend the time to find out what.

Now what I need to figure out is how to get the LCD to output arbitrary text (my idea is to have it show the output of the CLI fortune program).

If anyone has any ideas, let me know?

gazer22
August 11th, 2008, 03:15 PM
Now what I need to figure out is how to get the LCD to output arbitrary text (my idea is to have it show the output of the CLI fortune program)...

I'd check out this guy's blog (http://mythtvblog.blogspot.com/2008/04/mythtv-imon-server-alpha-release-1.html) - Ron's done a lot of work to get all of the whiz-bang features of the screen working.

He has a thread running over at codeka's forums here (http://codeka.com/forums/viewtopic.php?f=3&t=46).

I haven't tried it yet, but remain severely tempted...

neoneddy
August 20th, 2008, 01:31 AM
I was able to get the LCD working fine, however if I do, the Microsoft MCe remote (1039) does not work. Any pointers? there is another post about this, but I'm still having problem. Thanks!

gazer22
August 24th, 2008, 09:55 AM
I was able to get the LCD working fine, however if I do, the Microsoft MCe remote (1039) does not work...

You mean this post: post 21 of this thread (http://ubuntuforums.org/showpost.php?p=4942457&postcount=21)?

Might also check the hardware.conf file.

I'm in the middle of a move right now, so the HTPC is packed up in a moving truck!

ljp
August 25th, 2008, 12:11 PM
I have followed these instructions to the letter and now (after much previous struggling, before switching to mythbuntu) have a working LCD. However, the hauppauge remote no longer works correctly (only a few buttons work - up, down left, right & 123456789) and mythtv doesn't respond to the volume control.

I had previously got the remote working correctly via the standard mythbuntu setup (without the LCD) after finding that it outputs to /dev/input/event6 NOT /dev/lirc0. Is there some way I can configure lirc to read both /dev/lirc0 (for the volume control) & /dev/input/event6 (for the remote)? Or should I be able to redirect the hauppauge output to /dev/lirc0 somehow?

I found that the Volume control was responding on /dev/lirc0 using the "mode2 -d /dev/lirc0". However, it doesn't seem to have any effect in mythtv. The button names appear to be locked to [ & ] correctly in .lirc/mythtv.

gazer22
September 13th, 2008, 04:08 PM
...However, the hauppauge remote no longer works correctly (only a few buttons work - up, down left, right & 123456789) and mythtv doesn't respond to the volume control.

...finding that it outputs to /dev/input/event6 NOT /dev/lirc0...


Hmmm, what Hauppauge card are you using, and what is the model of the remote (Look at the inside of the battery cover - mine reads A415 OH/S 1-4)?

In general, I'd follow the troubleshooting section in my first post.

wobri
September 22nd, 2008, 06:35 PM
i am stuck on step 2

where do i find this antec package ?

tar -zxvf antec_lirc_lcd.tar.gz

(woops missed the attachment

MY BET b:P:lolflag:

NoahsMyBro
November 11th, 2008, 05:28 AM
I'll hopefully have a chance to attempt this sometime this week. Frankly, I'm excited to try it, but first I have to actually get Mythbuntu installed on my Fusion that I bought (last Thanksgiving!), and haven't had time to put into use yet.

I have a quick question though - I've just set up a backend running 8.10, and plan to install 8.10 Frontend on the Fusion. Will this How-To work for 8.10 as well as 8.04? I'm assuming yes, and will try it and post my results if I don't see any reply first, but thought I'd ask here in case there are any known problems.

(Luckily for me, I have nearly the exact components described. I have a silver Antec Fusion with the LCD panel, and I also have the silver Hauppauge PVR-150 Remote, not the MCE edition.)

Thanks.

gazer22
November 11th, 2008, 08:11 PM
...Will this How-To work for 8.10 as well as 8.04?

No idea! I'm sticking with 8.04 for now. Let us know how it goes!

NoahsMyBro
November 14th, 2008, 01:18 AM
I won't be trying this out soon after all. I didn't read closely or think clearly before - my backend contains the Hauppauge PVR cards (with the IR sensor), but my Antec Fusion with the volume knob is the frontend. I haven't got a remote and sensor for the front end yet.

If anything changes and I do manage to give it a go, I'll post my results on 8.10.
-------------------------------------------------------------------------------------

I've been sucked in. Soon after writing the above I realized that I could try to get the LCD & volume knob working even if I don't have a remote to configure.

I'm too tired and clueless to understand some of thsi stuff, but I can follow directions. I tried to follow the steps in Post #1 as closely as I could. Some steps seemed to need me to add 'sudo' in front of, though. The fact that I did that could account for the problem I'm seeing, I suppose.

I'm seeing the same result as was mentioned in post #43 (http://ubuntuforums.org/showpost.php?p=5346449&postcount=43). If I start LCDd, I get a sequence of random characters scrolling across the LCD, too quickly to read. The scrolling display continues until I stop LCDd.

My output from lsusb DOES include:
"Bus 003 Device 002: ID 15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller"

I don't know how to use echo to send strings to the display, so I can't say whether or not that would happen on my system.

My output of "lsmod | grep -si imon" :

lirc_imon 18308 2
lirc_dev 15556 2 lirc_i2c,lirc_imon
usbcore 146028 5 lirc_imon,ehci_hcd,uhci_hcd


ls /dev/lcd* returns /dev/lcd0 .

Whenever I stop the LCDd daemon (service? process?), the display ALWAYS continues to scroll until reaching the end of its sequence, with the final display remaining static showing "_ _ _ _ _ _ _ Q". Interestingly to me, when I shutdown the system, the PC shuts off, the illuminated ring around the power button shuts off, but the LCD display remains lit.

In case it's relevant, my system is running Mythbuntu 8.10.


I'm too tired to even begin trying to understand the Codeka forums right now, but I figured a bit more info about this issue wouldn't hurt.

-- Steve

gazer22
November 15th, 2008, 10:11 AM
Easy things first:
Interestingly to me, when I shutdown the system, the PC shuts off, the illuminated ring around the power button shuts off, but the LCD display remains lit.
-That's a "feature" of the Antec case. The LCD screen is hard-wired to the power supply.

I tried to follow the steps in Post #1 as closely as I could. Some steps seemed to need me to add 'sudo' in front of, though. The fact that I did that could account for the problem I'm seeing, I suppose.

I've assumed that the directory /usr/local/src is readable and writable by everyone on your system. Check that first. Otherwise, every command given that requires sudo should have it in the instructions. The exceptions are the cases when you're asked to edit a file. Those may require 'sudo gedit /etc/modules' for example.


I'm seeing the same result as was mentioned in post #43 (http://ubuntuforums.org/showpost.php?p=5346449&postcount=43). If I start LCDd, I get a sequence of random characters scrolling across the LCD, too quickly to read. The scrolling display continues until I stop LCDd.

You can follow post #25 (http://ubuntuforums.org/showpost.php?p=4952743&postcount=25) for some help on debugging LCDd with lcdproc.

It may also be that mythtv is sending out gibberish - make sure that it's configured to give output to the lcd.

NoahsMyBro
November 15th, 2008, 09:51 PM
I moved my PVR-150 and remote control to the frontend machine, and while trying to get the remote to work, using the info in this thread: http://ubuntuforums.org/showpost.php?p=4850005&postcount=1, the LCD display on the Fusion suddenly stopped scrolling the thought-to-be-endless characters, and began showing the date and time. After a reboot the display reverted to the scrolling characters, but if it again goes to the calendar display I'll update this post with the exact display shown.

I don't have any other addl info to add to the thread yet, but thought what I saw was interesting and might help somebody here out.

fatmonk
November 18th, 2008, 08:57 AM
Great How To!

Now have a fully working LCD on my Fusion Black - looking good.

There were a couple of directory changes to make as I am running 8.10.

In Step 5 the lirc directory is now found at:
/lib/modules/$rev_temp/kernel/ubuntu/lirc/

changing this got me right through to the end and a working LCD.


Not so much luck with the remote though.

My unit came with an iMon PAD remote (which is nice).

After following this through I now have four lirc* entries in /dev/

/dev/lircd
/dev/lircd1
/dev/lirc0
/dev/lirc1

/dev/lirc1 seems to be where my remote commands are turning up as irw sees pad movements (mouse up/down/left/right I assume), mouse clicks (the remote has a left click and right click button) and number presses BUT nothing else. No other keys generate any output.

The two lircd entries seems a little odd to me.

This is an improvement on previous installs as previously if I hit any button other than those mentioned above the remote would stop working altogether until a reboot of the machine.

Also, the knob on the front isn't generating any output - I'm not too worried about that as I'm not using internal volume control, but I thought I shoudl mention it in case it gives any clues.

Am wondering what to try next - it's close, but not quite there yet.

-FM