Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old March 19th, 2005   #1
mayco
5 Cups of Ubuntu
 
Join Date: Dec 2004
Beans: 15
Ubuntu 6.06
Send a message via ICQ to mayco
Lirc: How to install?

Hi, I have almost all my hardware running in Hoary, except for my infrared remote. I used Fedora Core 3 before, and it worked perfectly there.
Can somebody give me a quick walktrough how to install lirc, because i'm a bit lost atm...
mayco is offline  
Old March 20th, 2005   #2
fido
First Cup of Ubuntu
 
Join Date: Mar 2005
Beans: 7
Re: Lirc: How to install?

Quote:
Originally Posted by mayco
Hi, I have almost all my hardware running in Hoary, except for my infrared remote. I used Fedora Core 3 before, and it worked perfectly there.
Can somebody give me a quick walktrough how to install lirc, because i'm a bit lost atm...
I also would like to know this it seems the ubuntu package is setup differently then the standard package and it would be useful to have a ubuntu specific tutorial
fido is offline  
Old March 23rd, 2005   #3
zoro_for_ubuntu
First Cup of Ubuntu
 
Join Date: Mar 2005
Beans: 1
Re: Lirc: How to install?

I know that in debian-like systems you have to install lirc package and lirc-modules-source package and compile modules in debian-way. I do it, but the result are modules with .o extension while right extension for 2.6 kernel is .ko;
in fact insmod answer the modules are in wrong format.
can anyone help us?
bye bye

zoro, who loves ubuntu
zoro_for_ubuntu is offline  
Old March 31st, 2005   #4
mayco
5 Cups of Ubuntu
 
Join Date: Dec 2004
Beans: 15
Ubuntu 6.06
Send a message via ICQ to mayco
Re: Lirc: How to install?

Quote:
Originally Posted by zoro_for_ubuntu
I know that in debian-like systems you have to install lirc package and lirc-modules-source package and compile modules in debian-way. I do it, but the result are modules with .o extension while right extension for 2.6 kernel is .ko;
in fact insmod answer the modules are in wrong format.
can anyone help us?
bye bye

zoro, who loves ubuntu
come on, i really want to use my remote, ubuntu is the best (most userfriendly) distro i've tried so far, but it just sucks that i can't use my remote!

i think the compilescripts aren't modified for 2.6

when i configure lirc-modules-source, i get this message:

/usr/src/linux/ is not a valid kernel source tree.

any idea's, or somebody who is so kind to help me (us) out?

thanks!

edit: a lot can be found here: http://bugs.debian.org/cgi-bin/pkgre...modules-source

Last edited by mayco; March 31st, 2005 at 06:41 PM..
mayco is offline  
Old April 11th, 2005   #5
Cary Litchford
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 1
Re: Lirc: How to install?

Yes, I just went through this headache yesterday. I spent hours trying to get my Hauppauge PVR-250 remote working.

First, do not bother installing lirc or lirc-x you've successfully built and installed the lirc modules. Once the lirc-modules are built and in place, the lirc install will configure for your hardware. At least it did for me.

I've tried so many things that there may be more steps missing, but here goes (oh, and you're better off trying to use EVERYTHING from Synaptic package manager and not compiling from source):

1. Install linux-source (I'm using 2.6.10 kernel), linux-headers, and lirc-modules-source.
2. Open a root terminal and go to /usr/src.
3. You should see 2 tar files and the new linux-headers-2.6.10 subdirectory
4. Extract the tar files: tar -xjvf linux-source-2.6.10.tar.bz2
5. tar -xvzf lirc-modules.tar.gz
6. Now you should have the source directories linux-source-2.6.10 and modules under /usr/src.
7. If you have a /usr/src/linux directory, check (ls -l /usr/src) to see that it is a symlink to the new linux-source-2.6.10 directory. If it isn't, move it to linux_old or something. Then, create the link: ln -s /usr/src/linux-source-2.6.10 /usr/src/linux
8. Follow the directions in /usr/src/modules/lirc/README for 'To recompile the LIRC kernel modules'. By the way, I left off the -revision flag and it still worked. If no errors, then proceed to the next step. If errors, then you may have some more steps to get your /usr/src/linux tree in shape. I can possibly help with that, but let's hope that it doesn't get to that.
9. If step 8 was successful, it created a debian package in /usr/src that begins lirc-modules-2.6.10... and has a suffix of .deb. If you made it this far, you're home free.
10. Install the .deb package: dpkg -i <full name of lirc-modules..deb here>
11. Check in /lib/modules. For me, it created a 2.6.10 subdirectory and basically put the modules in the wrong place. So, I had to move the entirer 'misc' subdirectory into the specific directory /lib/modules/2.6.10-5-386/.
12. Update the modules: depmod -ae && update-modules
13. Install the modules: modprobe lirc_dev
14. Install the modules: modprobe lirc_i2c

Once this has been successful, you can proceed with installing lirc and lirc-x from Synaptic Package Manager. You should check with the "terminal" screen available inside the Synaptic UI while these packages install. They may ask you to configure your card.

I apologize in advance if these steps seem sketchy. There's no current howto for lirc that I'm aware of. There are some really old ones out on the net that can give you grief.

Let me know if this helps out. Any errors you might encounter will probably jog my memory.

Cary
Cary Litchford is offline  
Old April 11th, 2005   #6
fido
First Cup of Ubuntu
 
Join Date: Mar 2005
Beans: 7
Re: Lirc: How to install?

ok I appreciate someone finally posting something that may be of some help to this ubuntu lirc issue. But could you go into a little more detail about how you made your .deb package I keep getting errors. I think its my tree if you could help me out I would really appreciate it. I made the symbolic link pointing the linux directory to my linux-source-2.6.10 directory but I still get some errors. Thanks.
fido is offline  
Old April 15th, 2005   #7
Rumo
Just Give Me the Beans!
 
Join Date: Apr 2005
Location: Germany
Beans: 50
Re: Lirc: How to install?

Thanks for the nice walkthrough, Cary.

I still have some problems: The modules_image builds and installs nicely but the lirc-modules won't load.

The .deb-package installed the modules in the following directory: /lib/modules/2.6.11/misc. I copied these directory to my actual module-directory /lib/modules/2.6.11-e3 (I tried ./misc ./drivers/input/i2c and several other places), but "depmod -ae && update.modules && modprobe lirc_dev" won't work - "FATAL: Module lirc_dev not found." I have absolutely no idea what went wrong.


Btw you won't need kernel-headers if kernel-source is installed.
Rumo is offline  
Old May 2nd, 2005   #8
lbm
First Cup of Ubuntu
 
Join Date: May 2005
Beans: 1
Re: Lirc: How to install?

Hi!
If you do not want to move the modules after installing you can install them in the correct dir by doing the following (with bash as shell):
  • Install and extract lirc-modules and kernel-source (see 04-11-2005 09:14 PM Cary Litchford [ahh -and thanks ])
  • Go to kernel-source-dir
  • Code:
    export MODULE_LOC=/usr/src/modules
  • Code:
    make-kpkg --append-to-version -5-686 modules_image
  • Code:
    cd ..
    and install the generated package

I assumed your kernel-package-suffix is -5-686 and you extracted the lirc-modules in /usr/src.

You can find out your kernel-version with:
Code:
cat /proc/version
in the case of the above example it was 2.6.10-5-686

Cheers,
Thorsten
lbm is offline  
Old December 19th, 2005   #9
syph
First Cup of Ubuntu
 
Join Date: Dec 2005
Beans: 1
Re: Lirc: How to install?

Quote:
Originally Posted by mayco

when i configure lirc-modules-source, i get this message:

/usr/src/linux/ is not a valid kernel source tree.
My apologies to bump an old thread, this is the first hit on google when doing a search on "/usr/src/linux/ is not a valid kernel source tree", so I figured I'd write the sollution here for other people to find.

Code:
touch /usr/src/linux/Rules.make
syph is offline  
Old December 20th, 2005   #10
Bananas21ca
5 Cups of Ubuntu
 
Join Date: Nov 2005
Beans: 14
Ubuntu 7.10 Gutsy Gibbon
Re: Lirc: How to install?

Now i get "Couldn't build LIRC kernel modules"
Bananas21ca is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:29 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry