Remote with LIRC 8.0 guide and ALSA on a 1.6

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
H3g3m0n
Newbie
Posts: 2
Joined: Fri Jun 17, 2005 11:18 am

Remote with LIRC 8.0 guide and ALSA on a 1.6

Post by H3g3m0n » Sat Jul 08, 2006 8:09 pm

I spent quite a few days working out exactly how to get the remote working for my mythtv xbox on a stock Gentoox 5.0 Home. There are quire a few diffrent ways, a whole lot of outdated information and alot of stuff that refuses to compile with more modern software/kernel2.4

I wrote a wiki entry on xbox linux site for anyone interested:
http://www.xbox-linux.org/wiki/LIRC_Gentoox


Getting the ALSA 1.0.11 modules to work on a 1.6 with Gentoox Home 5.0
My xbox was giving me error when i attemped to modprobe the required modules, solution is to use the xbox.patch not xbox2.patch.

Code: Select all

emerge -C alsa-driver-xbox
cd /usr/portage/media-sound/alsa-driver
ebuild alsa-driver-1.0.11.ebuild unpack
cd /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/
patch -p1 < /usr/share/gentoox/portage/media-sound/alsa-driver-xbox/files/xbox.patch
cd -
ebuild alsa-driver-1.0.11.ebuild compile install qmerge
rmmod snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd snd-page-alloc
modprobe snd-intel8x0 xbox=1
modprobe snd-pcm-oss
test with

Code: Select all

cat /dev/urandom > /dev/dsp

User avatar
roofus
Novice
Posts: 41
Joined: Sun Nov 06, 2005 7:57 pm
Location: United States
Contact:

Post by roofus » Sun Jul 09, 2006 3:32 am

*bump*

You're a godsend my friend. ShallaX please sticky this one.

And could this possibly be fixed in future releases, or patched?

orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi » Sun Jul 09, 2006 1:21 pm

doesnt

Code: Select all

magic fix alsa && magic
do this for you?

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Sun Jul 09, 2006 4:22 pm

alsa is no longer in magic, so no.. that wont work for anyone. Also, thats not the correct way to modify the ebuild.

Code: Select all

pico /usr/share/gentoox/portage/media-sound/alsa-driver-xbox/alsa-driver-xbox-1.0.11.ebuild
look for
# epatch "${FILESDIR}/xbox.patch"
epatch "${FILESDIR}/xbox2.patch"
Change to:
epatch "${FILESDIR}/xbox.patch"
# epatch "${FILESDIR}/xbox2.patch"

Code: Select all

ebuild /usr/share/gentoox/portage/media-sound/alsa-driver-xbox/alsa-driver-xbox-1.0.11.ebuild digest

emerge alsa-driver-xbox
I cant "fix" this, because it seems one patch is needed for Xbox <=1.6 and another for Xbox >=1.6 :( - this is why I created both patches... I guess I'll look into it to see if that is true.
The original Xbox adaptation of Gentoo

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Sun Jul 09, 2006 5:15 pm

I've just tested xbox.patch on my 1.5.. and it works fine! So i'll make a patch.

*Update*
Done!
The original Xbox adaptation of Gentoo

Nicklas
Newbie
Posts: 4
Joined: Fri Jul 21, 2006 10:12 am

Re: Remote with LIRC 8.0 guide and ALSA on a 1.6

Post by Nicklas » Fri Jul 21, 2006 10:18 am

H3g3m0n wrote:I wrote a wiki entry on xbox linux site for anyone interested:
http://www.xbox-linux.org/wiki/LIRC_Gentoox
I tried that guide and the remote is still not working :(

Also, I had to do a "emerge --digest lirc" to update the Manifest after modifying the file...
- Otherwise emerge would halt saying that the files had been tampered with...

Anyhow, lirc is still not working (after I modprobe'd there's no /dev/lirc/0)
tail from dmesg:

Code: Select all

lirc_dev: IR Remote Control driver registered, at major 61

lirc_atiusb: USB remote driver for LIRC v0.5
lirc_atiusb: Paul Miller <pmiller9@users.sourceforge.net>
usb.c: registered new driver lirc_atiusb
Btw, I'm trying to get lirc working to use it later in mythtv... that excludes lirc 0.6.6 right?

Nicklas
Newbie
Posts: 4
Joined: Fri Jul 21, 2006 10:12 am

Post by Nicklas » Fri Jul 21, 2006 3:06 pm

Ok, I've solved it.

The command

Code: Select all

echo 'LIRC_DEVICES="atiusb"' >> /etc/make.conf
needed to be changed to

Code: Select all

echo 'LIRC_DEVICES="xboxusb"' >> /etc/make.conf
aswell...

But one should still use atiusb in the other places...
- e.g. modprobe etc...

Please observe that there are a few misspellings (missing /share/) in the paths in the HOWTO...

b8zs
Linux User
Posts: 11
Joined: Mon Jul 10, 2006 2:02 am

lirc problems..

Post by b8zs » Mon Jul 24, 2006 8:42 am

I followed the guide and still cant get the device /dev/lirc/0 to ever be created.

Here is some useful output I am seeing: http://pastebin.ca/98043

I have no clue what that error means in my dmesg output, and google hasnt come up with any answers either.

Is the guide working for anyone else?

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Wed Jul 26, 2006 1:38 pm

For all those wondering... ALSA has been fixed - you need to first run magic, then run "emerge alsa-driver-xbox" (this was posted as front-page news... but you may have missed it).
The original Xbox adaptation of Gentoo

b8zs
Linux User
Posts: 11
Joined: Mon Jul 10, 2006 2:02 am

lirc

Post by b8zs » Fri Jul 28, 2006 5:30 am

Anyone get LIRC working with the microsoft dvd remote? I cant get the device created no matter what I do :x

Nicklas
Newbie
Posts: 4
Joined: Fri Jul 21, 2006 10:12 am

Re: lirc

Post by Nicklas » Fri Jul 28, 2006 7:56 am

b8zs wrote:Anyone get LIRC working with the microsoft dvd remote? I cant get the device created no matter what I do :x
That's exactly what I did when I followed the guide's instructions with the changes I wrote about above...
- Then it all worked like a charm :)

Although, after getting it all working I realized that the XBox is too slow for linux environments (1.5min boot time is a little too much for me), plus the fact that the hardware is a little slow (menu items don't feel "snappy")...
- So, I decided to go for XBMC instead :?

b8zs
Linux User
Posts: 11
Joined: Mon Jul 10, 2006 2:02 am

Post by b8zs » Mon Jul 31, 2006 8:57 am

No matter what I do, I always get the "Inbound endpoint not found error" message showing up in dmesg, and no /dev/lirc/0 devices gets created.

The guide mentions this, but only as happening when you dont have XIR as a module, and I DO have XIR compiled as a module :(

Nicklas
Newbie
Posts: 4
Joined: Fri Jul 21, 2006 10:12 am

Post by Nicklas » Mon Jul 31, 2006 9:00 am

Then perhaps you should try it without XIR compiled :wink:
- Simply reconfigure your kernel without it...

b8zs
Linux User
Posts: 11
Joined: Mon Jul 10, 2006 2:02 am

Post by b8zs » Tue Aug 01, 2006 12:01 am

Nicklas wrote:Then perhaps you should try it without XIR compiled :wink:
- Simply reconfigure your kernel without it...
YESSS!~!!~!!!

that did it :)

Thanks for all your help

MrGadget
Newbie
Posts: 1
Joined: Mon Nov 13, 2006 8:26 am

Post by MrGadget » Mon Nov 13, 2006 8:34 am

Well, I 've spent the last 2 days fiddling with the LIRC modules to get rid of the "Inbound endpoint not found" but sofar no go.

* Followed the WIKI
* Changed atiusb to xboxusb
* removed xir as an option in my kernel compile.

recompiled everything and still get the error and no devices under /dev

So I've run out of ideas to try.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests