Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 2.6.11, PVR 250, and LIRC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Obsidian_MH
Apprentice
Apprentice


Joined: 30 May 2004
Posts: 170
Location: Pittsburgh, PA, USA

PostPosted: Thu Apr 28, 2005 2:23 am    Post subject: Kernel 2.6.11, PVR 250, and LIRC Reply with quote

I've got my HTPC running with MythTV and a Hauppauge PVR250. Everything seems to be working wonderfully, with the exception of lirc.

LIRC will start, but I can't shut it back down (/etc/init.d/lircd stop). Restart also fails. I don't remember where the error messages are for this, as it only returns the [!!]. Additionally, I only have a /dev/lircd. I have no /dev/lirc0-9 or /dev/lirc

I've been searching the forums, but most of the problems similar seem to be different enough that they don't relate to my issue.

I followed the MythTV guide at gentoo-wiki completely... so... yay for me?
_________________
Obsidian
Back to top
View user's profile Send private message
bkunlimited
l33t
l33t


Joined: 18 Jun 2004
Posts: 672

PostPosted: Thu Apr 28, 2005 6:18 am    Post subject: Reply with quote

try to start lirc by hands, not with the init script. then you will see the error messages. Probably it will complain about non existing devices or about wrong permissions. i had the same problem at home. when i'm back at home i will check which devices i have and paste it here
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Thu Apr 28, 2005 10:52 am    Post subject: Reply with quote

Since you got everything running fine, you may be able to answer this question: Is it necessary to add bt848 support to the kernel/compile as a module beside ivtv for getting the pvr-250 running?

thanks in advance
trilexx
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
TheBigBug
n00b
n00b


Joined: 23 Jan 2003
Posts: 41
Location: Yerseke, Holland

PostPosted: Thu Apr 28, 2005 2:16 pm    Post subject: Reply with quote

Does anyone have a solution jet? I'm having exactly the same problem.

Thanks in advance!
_________________
Even MS can't find me...
Back to top
View user's profile Send private message
GBob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2004
Posts: 110
Location: Portland, Oregon

PostPosted: Thu Apr 28, 2005 2:22 pm    Post subject: Reply with quote

Try adding:
Code:
LIRCD_OPTS="-d /dev/lirc0"

to /etc/conf.d/lircd
_________________
rank[0]-=('n'-'d');
rank[3]-=('b'-'d');

It is better to say nothing and have people think your are an idiot,
Than open your mouth and remove all doubt.
Back to top
View user's profile Send private message
Obsidian_MH
Apprentice
Apprentice


Joined: 30 May 2004
Posts: 170
Location: Pittsburgh, PA, USA

PostPosted: Thu Apr 28, 2005 7:49 pm    Post subject: Reply with quote

The stuff is already in /etc/conf.d/lircd... Doesn't make any difference. -_-

*sighs*
_________________
Obsidian
Back to top
View user's profile Send private message
GBob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2004
Posts: 110
Location: Portland, Oregon

PostPosted: Thu Apr 28, 2005 7:54 pm    Post subject: Reply with quote

And I assume you've used:
modprobe lirc_i2c

or whatever it is to load the lirc module, correct? Tried adding that to your modules autoload and rebooting? (force the module to unload and then reload it. Finally start lircd with the proper parameters.)

[Edit] changed lirc to lirc_i2c, my mistake.[/Edit]
_________________
rank[0]-=('n'-'d');
rank[3]-=('b'-'d');

It is better to say nothing and have people think your are an idiot,
Than open your mouth and remove all doubt.
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Fri Apr 29, 2005 6:44 am    Post subject: Reply with quote

I've ran into that yesterday
Basically there are some /dev/lirc files created that prevented the module to create /dev/lirc/0 in devfs

So i did a quick workaround :
in the lirc rc script unload the modules, remove /dev/lirc*, reload the module
Now /dev/lirc/0 is properly created

(+symlink /dev/lirc0 to /dev/lirc/0)

There is certainely a better way (tm) but it works for me.
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Fri Apr 29, 2005 7:23 am    Post subject: Reply with quote

Quote:
Code:
(+symlink /dev/lirc0 to /dev/lirc/0)


I think this might do the trick! I have /dev/lirc/0 but no /dev/lirc0. When I cat /dev/lirc/0 it works, but when I set it in lirc.conf it doesnt. Setting a symlink will probably do it.
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
Obsidian_MH
Apprentice
Apprentice


Joined: 30 May 2004
Posts: 170
Location: Pittsburgh, PA, USA

PostPosted: Fri Apr 29, 2005 7:55 pm    Post subject: Reply with quote

It works. finally.

I looked around my kernel config for all the modules that the guide told me to enable. I added them to /etc/modules.autoload.d/kernel-2.6 and reboot... everything works wonderfully, except a minor MythTV issue now.
_________________
Obsidian
Back to top
View user's profile Send private message
TheBigBug
n00b
n00b


Joined: 23 Jan 2003
Posts: 41
Location: Yerseke, Holland

PostPosted: Sat Apr 30, 2005 2:50 pm    Post subject: Reply with quote

Obsidian_MH, I still have one question left. Which guide did you use???

Thnx, Bug
_________________
Even MS can't find me...
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Tue May 03, 2005 11:43 am    Post subject: Reply with quote

hmm...

it can't get it working using a symlink. could tell us how you finally got it working?
I have even tried a CVS version of lirc, which didnt work either... :(

trilexx
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
trilexx
Apprentice
Apprentice


Joined: 19 Jul 2004
Posts: 217
Location: Austria

PostPosted: Wed May 04, 2005 6:38 am    Post subject: Reply with quote

I re-emerged system the other day since experimenting with lirc accidentally broke some things. Etc-update all config files and after that I emerged lirc from portage with LIRC_OPTS="..." emerge lirc. Finally all worked! The IR Receiver has been detected and irw receives all the signals sent by the hauppauge remote.

As soon as I am back at home I will post the modules I have loaded. But I can tell there are no other special ones as the ivtv module.
_________________
if it lives, compile it :D
Back to top
View user's profile Send private message
generalgherk
n00b
n00b


Joined: 22 May 2003
Posts: 58

PostPosted: Wed May 04, 2005 9:26 pm    Post subject: Reply with quote

I am totally confused about lirc now. I too am making a myth tv box using the 2.6.11-gentoo-r6 kernel. I got that with emerge gentoo-sources (gentoo-dev-sources doesn't exist anymore).

http://gentoo-wiki.com/HARDWARE_Setup_MythTV#Getting_Started says:

"Note: As of December 2004 and Kernel 2.6.9, the LIRC patch is no longer included in either the Gentoo or Love sources. What finally worked for me were the plain-old, unpatched, vanilla 2.6.9 sources (emerge development-sources)"

This indeed seems to be the case, the kernel options I'm used to seeing aren't there. I am using a 'homemade' receiver which I've had working in windows & gentoo before, do i need to enable anything further in the kernel? Like the post at the top of this thread, I too have a /dev/lircd device but no lirc0 etc. This appears when i do /etec/init.d/lirc start. If I try modprobe lirc_serial I get 'Error inserting lirc_serial (..............) Device or resource busy'.

I emerged lirc with no LIRC_OPTS but I do have
LIRCD_OPTS="-d /dev/lirc0"
in my /etc/conf.d/lircd

What am I missing?
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Thu May 05, 2005 1:17 am    Post subject: Reply with quote

generalgherk wrote:
What am I missing?


Possibly a udev rule to create a suitable symlink? You could create a symlink manually:
Code:
# ln -s /dev/ttyS1 /dev/lirc0
(assuming a serial connected IR receiver) or change /etc/conf.d/lircd to use the correct device directly.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
jimhend~1
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 89

PostPosted: Thu May 05, 2005 7:40 am    Post subject: Reply with quote

hi , anyone know howto configure mythtv with native lirc support (ie ~/.mythtv/lircrc)
to work with buttons like page up and page down?
ive tried
begin
prog = mythtv
button = Replay/SkipBackward
# Use for backwards commercial skip
config = Page_Up
end
but to no avail

and also ctrl-q etc..?
tia
Back to top
View user's profile Send private message
generalgherk
n00b
n00b


Joined: 22 May 2003
Posts: 58

PostPosted: Thu May 05, 2005 8:33 am    Post subject: Reply with quote

Did you compile myth with the lirc USE flag?
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
generalgherk
n00b
n00b


Joined: 22 May 2003
Posts: 58

PostPosted: Thu May 05, 2005 9:09 am    Post subject: Reply with quote

Thx for suggestion Chris I'll try it.
Is anyone able to explain to me the setup with lirc now? If it has been removed from the kernel how can it be used without patching? Does emerging lirc install a kernel module itself?
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
GBob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2004
Posts: 110
Location: Portland, Oregon

PostPosted: Thu May 05, 2005 12:59 pm    Post subject: Reply with quote

Okay, so here's how I understanding it working.

Provided you've used genkernel atleast once (to build the kernel you are currently using) and you haven't clean out the kernel directory, when you emerge lirc, it uses the source files and such of your kernel to build the module. Thus, if you upgrade/rebuild your kernel then you need to re-emerge any packages depending on that source. From the gentoo-wiki:
Code:
grep -l '^dir /lib/modules' /var/db/pkg/*/*/CONTENTS | \
sed -e 's/\/var\/db\/pkg\//=/' -e 's/\/CONTENTS//' -e \
's/^=.*\///' -e 's/-[0-9].*$//' | sort -u | xargs emerge -1


If you have never built your kernel, then I recomend trying it, (just append do not replace your current kernel, and the 2.6 gen seems really stable.) It will take a few tries to get it right, and keep a gentoo live cd close by just in case. (So you can boot with that chroot and rebuild the kernel again if something breaks.) Also, I've encountered times where I had to emerge packages depending on the new kernel only after I've booted into it (most notable for this is the nvidia drivers.) Overall, I'd say to look at the gentoo wiki and try it out.
_________________
rank[0]-=('n'-'d');
rank[3]-=('b'-'d');

It is better to say nothing and have people think your are an idiot,
Than open your mouth and remove all doubt.
Back to top
View user's profile Send private message
generalgherk
n00b
n00b


Joined: 22 May 2003
Posts: 58

PostPosted: Thu May 05, 2005 1:43 pm    Post subject: Reply with quote

I've never used genkernel, but I guess what you said answers me anyway. I couldn't understand how modules like lirc-serial had appeared when I never selected them in my kernel. How can I see a list of all the modules available to be modprobed on my system?
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
GBob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2004
Posts: 110
Location: Portland, Oregon

PostPosted: Thu May 05, 2005 1:58 pm    Post subject: Reply with quote

Typically I look for them. I know it sounds somewhat simple, but it seems to work (that and watching while emerge installs for anything that installs into the /lib/modules directory.)

Try:
Code:
find /lib/modules/ -name "*.ko"


You should get atleast a partial list. If someone has a better way, I'm all ears.
_________________
rank[0]-=('n'-'d');
rank[3]-=('b'-'d');

It is better to say nothing and have people think your are an idiot,
Than open your mouth and remove all doubt.
Back to top
View user's profile Send private message
generalgherk
n00b
n00b


Joined: 22 May 2003
Posts: 58

PostPosted: Fri May 06, 2005 8:24 am    Post subject: Reply with quote

Ok the root of the problem was being unable to load lirc_serial due to the 'Device or resource busy' message. I was able to fix this by removing serial support from my kernel and rebooting. Once I did this I was able to modprobe lirc_serial and my device lirc0 appeared.
What I couldn't understand was where these modules came from without me having enabled them in the kernel but like you said they must be built when you emerge lirc.
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum