Ubuntu 6.10 HowTo

Linux support for Soundgraph iMON USB IR/VFD modules used in Ahanix, Silverstone, Uneed, Accent and other cases.

Moderator: Venky

LightScape66
Posts: 1
Joined: Sun Nov 26, 2006 9:29 am

Ubuntu 6.10 HowTo

Post by LightScape66 » Sun Nov 26, 2006 9:37 am

Hello,

does anyone have an Ubuntu 6.10 HowTo for iMON Soundgraph?

I tried to compile the several sources, but nothing works. I got so many errors I can't report them all. I suppose, I followed all prerequisites. The first error begun with lirc 0.72.... there was no autogen.sh-script there.....

I am no developer, I am no programmer, so I need an easy guide how to get these drivers working with my Silverstone LaScala 16M.

What ist wrong?

Regards,
Thomas

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Thu Dec 28, 2006 1:07 pm

Got myself a Silverstone LC11M and just reinstalled with Ubuntu 6.10 (edgy-eft).

So here is what I did.


Use synaptic to install the following:
  • libtool (1.5.22-4 in my repository)
    automake1.9
    autoconf2.13 (there is a higher version, but select this one)
    cvs (1:1.12.13-3)
    dialog <------------ missed this one

Edit: Dialog is required when you run ./setup.sh otherwise you will get an error message "dialog missing" or something similar



Open a terminal and type the following command:

Code: Select all

uname -r
The response is the exact version of linux you are using. Mine was:
2.6.17-10-generic
From this you want to search for the linux headers for your configuration. So again in synaptic search for "linux-header". Then select the one that matches your result from above.

Ensure that the headers have been installed correctly by viewing /usr/src/ to see the folder(s) for your headers.

OK?


No we are ready to download:

Open a terminal and enter the following commands (copy and paste is best)

{you should be at your home directory - no need to change}

Code: Select all

cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login
(press <enter> for password):

and then

Code: Select all

cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc

now to start installing:

Code: Select all

cd lirc
./autogen.sh
./setup.sh
During the setup ensure you select USB and the "Soundgraph iMON MultiMedian IR/VFD" (think its around option d)

Once selected you need to select "Save configuration & run configure"

Then do the following commands:

Code: Select all

sudo make

so long as there were no errors:

Code: Select all

sudo make install

and now to finish it off

Code: Select all

sudo modprobe lirc_dev

sudo modprobe lirc_imon
to check it all out run the following:

Code: Select all

mode2
As you press buttons on your remote things should come up on the screen.


Now to install LCDproc


Using synaptic install the following:
  • libncurses5-dev

Download the file from Venky's site. (lcdproc-0.4.5)

Extract the contents to your home folder. { I always prefer to keep the Desktop clear and tidy :wink: }

Open a terminal window:

Code: Select all

tar xvzf lcdproc-0.4.5-imon.tgz
{of course the tgz file must be in the same directory we are currently in}

Now prepare the installation:

Code: Select all

aclocal; autoheader; autoconf; automake -a

Code: Select all

./configure

Code: Select all

sudo make

Code: Select all

sudo make install

Before we can use the the driver we need to change the permissions of the lcd0 file.

We will now open nautilus as the root user:

Code: Select all

sudo su
<enter password>
nautilus

Navigate to the /dev folder

Right-click on lcd0 file and select properties.

Click on the Permissions tab

Ensure that all are set to: READ and WRITE

Ensure that the file is NOT executable.


Now we can test it.

Code: Select all

echo "Hello World" > /dev/lcd0

You should hopefully have something on your display.


One thing I haven't worked out is how to exclude the cursor.


NB even though you have 2 lines of 16 chars the second row is counted as an extension to the first. Also the cursor counts as a character so you may only ever echo 31 chars to the display with the cursor taking up the last spot.


Oh and if you want to use the lcdproc program you will also need to do the following:

Code: Select all

sudo LCDd

Hope this helps. 8)
Last edited by Scorpuk on Wed Feb 21, 2007 10:47 am, edited 1 time in total.

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Fri Dec 29, 2006 7:31 pm

Update:


You need to add the two modules lirc_dev and lirc_imon to the /etc/modules file. This will ensure the drivers are loaded anytime the computer boots up.

Oh and you will also need to run as a cron job:

chmod 666 /dev/lcd0

Set the cron job to run when the computer starts up. This will alow any user to echo to the /dev/lcd0. Otherwise you will have to switch to superuse (sudo su) before you echo anything to /dev/lcd0. You cannot just add sudo to the front as you will still be sending the data as your logged in user!


See my /etc/modules file below:

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
sbp2
lirc_dev
lirc_imon

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Sun Dec 31, 2006 6:48 am

Not sure if I got the correct remote when I installed as when I do mode2 I get nothing like what was in my lircd.conf file.


Anywho I used irrecord and got the following config file, but the cursor movement buttons are a bit iffy and sometimes work and sometimes dont.

Code: Select all

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.1pre4(default) on Sat Dec 30 12:06:34 2006
#
# contributed by  John Downie
#
# brand:                      Soundgraph iMON (As supplied with Silverstone LC11M)
# model no. of remote control:  05036653  <- Number in battery comp[artment
# devices being controlled by this remote: HTPC
#

begin remote

  name  lircd.conf
  bits           32
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          235989
  min_repeat      16
  toggle_bit      0


      begin codes
          Power                    0x289115B7
          AppExit                  0x288195B7
          Record                   0x298115B7
          Play                     0x2A8115B7
          Eject1                   0x29B195B7
          Rewind                   0x2A8195B7
          Pause                    0x2A9115B7
          FastForward              0x2B8115B7
          Skip-                    0x2B9115B7
          Stop                     0x2B9715B7
          Skip+                    0x298195B7
          MouseKeyboard            0x299115B7
          Backspace                0x28A115B7
          SelectSpace              0x2A9315B7
          CursorUp                 0x6902B9B7
          CursorDown               0x6882A1B7
          CursorLeft               0x6B3AF9B7
          CursorRight              0x68A281B7
          LeftClick                0x688301B7
          Enter                    0x28A195B7
          RightClick               0x688481B7
          ESC                      0x2BB715B7
          Eject2                   0x299395B7
          AppLauncher              0x29B715B7
          BigBlue                  0x2AB195B7
          TaskSwitcher             0x2A9395B7
          Mute                     0x2B9595B7
          Vol+                     0x28A395B7
          Vol-                     0x28A595B7
          Ch+                      0x289395B7
          Ch-                      0x288795B7
          Timer                    0x2B8395B7
          1                        0x28B595B7
          2                        0x2BB195B7
          3                        0x28B195B7
          4                        0x2A8595B7
          5                        0x299595B7
          6                        0x2AA595B7
          7                        0x2B9395B7
          8                        0x2A8515B7
          9                        0x2AA115B7
          Left                     0x28B515B7
          0                        0x2BA595B7
          Right                    0x29A115B7
          MyMovie                  0x2B8515B7
          MyMusic                  0x299195B7
          MyPhoto                  0x2BA115B7
          MyTV                     0x28A515B7
          Bookmark                 0x288515B7
          Thumbnail                0x2AB715B7
          AspectRatio              0x29A595B7
          FullScreen               0x2AA395B7
          MyDVD                    0x29A295B7
          Menu                     0x2BA385B7
          Caption                  0x298595B7
          Language                 0x2B8595B7
          MenuTop                  0x28B715B7
          MenuBottom               0x2B8195B7
      end codes

end remote

As you can see my remotes signal codes are nowhere near as long as the ones that originally got installed.

Anywho the above works fine with my .lircrc file and I can now control rythmbox, but still having probs with kaffiene.

Once I get an aerial installed it will al lbe a moot point as I will then be able to install mythTV and let it control everything. 8)
Last edited by Scorpuk on Sun Dec 31, 2006 2:48 pm, edited 1 time in total.

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Sun Dec 31, 2006 2:47 pm

One last thing...


When I run lircd I need to add the device parameter as its lirc0 and not lirc as the default. So I have to enter:

Code: Select all

sudo lircd -d /dev/lirc0

Mattia
Posts: 10
Joined: Fri Jan 05, 2007 3:35 am

Post by Mattia » Wed Jan 10, 2007 7:45 am

Ciao, many thanks for the how-to but i've 2 problems:
Which is the right driver for the imon "station"
http://www.soundgraph.com/Eng_/Products ... eftMenu=22

And this:

mattia@ubuntu:~/Desktop/lirc$ ./autogen.sh
processing /home/mattia/Desktop/lirc
Running libtoolize...
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
Running aclocal ...
Running autoheader...
autoheader2.50: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader2.50: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader2.50: WARNING: is deprecated and discouraged.
autoheader2.50:
autoheader2.50: WARNING: Using the third argument of `AC_DEFINE' and
autoheader2.50: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader2.50: WARNING: `acconfig.h':
autoheader2.50:
autoheader2.50: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader2.50: [Define if a function `main' is needed.])
autoheader2.50:
autoheader2.50: WARNING: More sophisticated templates can also be produced, see the
autoheader2.50: WARNING: documentation.
Running automake --gnu ...
configure.in: installing `./install-sh'
configure.in: installing `./missing'
daemons/Makefile.am: installing `./compile'
daemons/Makefile.am: installing `./depcomp'
Ru
Second which is the right driver for thi controller:nning autoconf ...
Creating setup-driver.sh ...

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Wed Jan 10, 2007 9:32 am

So long as you didnt get any error messages during your install then everything should be ok. Those are only warning messages. :)


That's the same as my remote, which came with my Silverstone LC11M box.

I think you shoudl still select the same driver as I did in the how-to and then check what response codes you get from the remote by running

Code: Select all

irw

If they are not the same as the ones in the installed lircd.conf file then either copy mine (if they are the same) or run

Code: Select all

irrecord

to create a new config file with your exact remotes signal codes.



I would hazzard a guess that the codes have changed due to an update and is nothing sinister like a new driver. :idea:



Anywho good luck with your install :-)

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Wed Jan 10, 2007 9:43 am

If you look inside the battery compartment of your remote control you may find a label. On mine it said 05036653

Any help?

zupidupi
Posts: 6
Joined: Fri Jan 05, 2007 2:16 pm

Post by zupidupi » Wed Jan 10, 2007 9:52 am

Hiya folks,

I'm trying hard to get lirc up and running with my spanking new SilverstoneTek 11M box (http://www.silverstonetek.com/products-lc11m.htm). I've followed the steps in this thread quite closely, everything downloaded, got setup and compiled rather nicely, thank you. (I'm running Dapper - the manual is for Edgy)

Then I did

misha@salemcenter:~/lirc-0.8.0/lirc$ ls -l /dev/l*
crw-r--r-- 1 root root 61, 0 2007-01-08 21:36 /dev/lirc
prw-r--r-- 1 root root 0 2007-01-08 21:36 /dev/lircd
prw-r--r-- 1 root root 0 2007-01-08 21:36 /dev/lircm
srw-rw-rw- 1 root root 0 2007-01-09 07:37 /dev/log
crw-rw---- 1 root lp 6, 0 2007-01-08 21:17 /dev/lp0
crw------- 1 root root 109, 0 2007-01-08 21:20 /dev/lvm

/dev/loop:
total 0
brw------- 1 root root 7, 0 2006-08-06 02:45 0

which looks quite fine, I think. Then it was time for

sudo modprobe lirc_dev
sudo modprobe lirc_imon

followed by

misha@salemcenter:~/lirc-0.8.0/lirc$ lsmod | grep lirc
lirc_imon 13572 0
lirc_dev 14804 1 lirc_imon
usbcore 130820 5 lirc_imon,usb_storage,ehci_hcd,uhci_hcd

and I think it looks fine. But, when I'm about to testdrive the IR I do

misha@salemcenter:~/lirc-0.8.0/lirc$ mode2
mode2: error opening /dev/lirc
mode2: No such device

and that's not the way it should be, eh? If I do 'sudo fuser /dev/lirc' I get a blank output.

I've done lots of reading, but haven't found any helpful tricks or tips. Please, help me out here. Thx in advance

Zup

Mattia
Posts: 10
Joined: Fri Jan 05, 2007 3:35 am

Post by Mattia » Wed Jan 10, 2007 10:38 am

Scorpuk wrote:If you look inside the battery compartment of your remote control you may find a label. On mine it said 05036653

Any help?
many thanks for your help, but now i've the same problem than zupidupi

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Wed Jan 10, 2007 11:32 pm

zupidupi

Can you confirm, after a reboot, that you still have lirc in the /dev folder? I am pretty sure that mine changed from lirc to lirc0 after a reboot. Might be a 6.10 thing.

Also ensure you have chmod the file using:

Code: Select all

sudo chmod 666 /dev/lirc  (or lirc0)
This is to give other users / groups read and write access to the file.

This will have to be done every time you restart your computer. A good idea to set up a cron job to be run every time the computer starts up.



Mattia

Which version of Ubuntu are you useing?

At a terminal can you type:

Code: Select all

ls -l /dev/l*
and post the results. This will let us know the names of the lirc file (lirc / lirc0)


Depending on the above you may have to do as I do and add device to the command:

Code: Select all

mode2 -d /dev/lirc0



I will be hopefully more helpful at the weekend as I am away from my box and can't try things out. :(

Anywho goodluck :)

zupidupi
Posts: 6
Joined: Fri Jan 05, 2007 2:16 pm

Post by zupidupi » Fri Jan 12, 2007 8:40 am

Hiya, Thx for your reply. Shortly: When I boot my machine *all* /dev/lirc*-files disappear. Odd. Help, help! :)

Zup

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Fri Jan 12, 2007 8:45 am

Follow the instructions as above:
You need to add the two modules lirc_dev and lirc_imon to the /etc/modules file. This will ensure the drivers are loaded anytime the computer boots up.

Oh and you will also need to run as a cron job:

chmod 666 /dev/lcd0

Set the cron job to run when the computer starts up. This will alow any user to echo to the /dev/lcd0. Otherwise you will have to switch to superuse (sudo su) before you echo anything to /dev/lcd0. You cannot just add sudo to the front as you will still be sending the data as your logged in user!


See my /etc/modules file below:

Code:

Code: Select all

# /etc/modules: kernel modules to load at boot time. 
# 
# This file contains the names of kernel modules that should be loaded 
# at boot time, one per line. Lines beginning with "#" are ignored. 

lp 
sbp2 
lirc_dev 
lirc_imon 

or modprobe every time you reboot:

Code: Select all

sudo modprobe lirc_dev 

sudo modprobe lirc_imon


You will also have to change the access privilages, at every boot, of the lirc* files to r&r/w (chmod 666). I do this with a cron job to be run on system boot up.

zupidupi
Posts: 6
Joined: Fri Jan 05, 2007 2:16 pm

Post by zupidupi » Fri Jan 12, 2007 10:37 am

Hiya,

I forgot to mention in my earlier mail that the /dev/lirc*-files are missing, though I load the lirc_dev- and lirc_imon-modules (manually or at boot). They are created only when I do make install.

Still your confused

Zup

Scorpuk
Posts: 30
Joined: Fri Jul 07, 2006 3:24 am
Location: Scotland

Post by Scorpuk » Fri Jan 12, 2007 10:55 am

hmmm not sure about dapper, but I think before I upgraded to edgy I was having problems with both lcd and lirc.

Not saying upgrading is your answer especially if you need the LTS, but installation and running of lcd and lirc went way smoother on edgy than dapper for me.

Although still got same problems with wireless adapters. :roll:

Post Reply