LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2005, 05:33 PM   #1
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Automatically load ittv drivers at startup


I've got an Hauppauge WinTV PVR 150 tv card, which works very well with the ivtv 0.3.x drivers. The only thing I can't get to work is that they won't load automatically at startup - I've googled a bit and it seems all the advice out there is to add stuff to /etc/modprobe.conf, which I've done thus:

Code:
#TV Card settings

alias char-major-81 videodev
alias char-major-81 ivtv
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options tveeprom debug=2
options msp3400 debug=1
options cx25840 i2c_enable=1 debug=2 cardtype=0
options tuner type=38 pal=i
options ivtv ivtv_debug=255 ivtv_std=2 cardtype=6
install ivtv /sbin/modprobe --ignore-install ivtv
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install lirc_i2c
As I understand it, this should mean that the first time /dev/video0 is accessed, the ivtv drivers should automatically load. However this isn't happening - because /dev/video0 doesn't exist until the ivtv stuff loads.

I'm wondering if it's something to do with the fact that the system doesn't know which driver is associated with the TV card; here's an extract from /etc/sysconfig/hwconf (very similar to lspci, but it shows which drivers each device is using):

Code:
class: CAPTURE
bus: PCI
detached: 0
driver: unknown
desc: "Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder"
vendorId: 4444
deviceId: 0016
subVendorId: 0070
subDeviceId: 8003
pciType: 1
pcidom:    0
pcibus:  0
pcidev:  8
pcifn:  0
If it doesn't know which driver it's supposed to be using, kudzu probably can't pick an appropriate module to load. Am I interpreting this correctly? Is this fixable?

Any suggestions?

Last edited by cdhgee; 07-26-2005 at 05:45 PM.
 
Old 12-29-2005, 08:01 AM   #2
awing_pilot
LQ Newbie
 
Registered: Jul 2003
Location: Earth
Distribution: FC4, Suse10, pcLinux
Posts: 25

Rep: Reputation: 15
I have the exact same problem what did you do to resolve this issue? or do you still have it.

I am using FC4 and am trying to get lirc working correctly. I've used the jarod's tutorial but it does not seem to help me. When my box boots the service lircd kind of starts then hangs. From a fresh boot up if i type in "irw", it returns me to a command line instead of reading my remote.
If i stop the service:
# service lircd stop
then I start the lirc_i2c module:
# modprobe lirc_i2c
then restart the service:
# service lircd start
That makes everything happy and my system works again. The remote functions as needed and I couldn't be happier. But how in the world do i get it to boot correctly without doing all those steps.

Heres my hardware:
P4 1.7Ghz
1GB Ram
2 40GB HD's
PVR-150
Asus Mobo

Heres a copy of my modprobe.conf:

alias eth0 sis900
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
options snd-intel8x0 index=0
remove snd-intel8x0 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
alias usb-controller ehci-hcd
alias usb-controller1 ohci-hcd
# nvidia kernel module
alias char-major-195 nvidia-1_0-8178
alias nvidia nvidia-1_0-8178
# ivtv (PVR-150)
alias char-major-81 ivtv
alias char-major-81-0 ivtv
alias tveeprom tveeprom-ivtv
alias tuner tuner-ivtv
alias msp3400 msp3400-ivtv
alias tda9887 tda9887-ivtv
# lirc module refrence
alias char-major-61 lirc_i2c
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install lirc_i2c

If anyone can help the two of us it would be greatly appreciated
 
Old 12-29-2005, 11:44 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
awing_pilot,
Well, the proper way to do this would be to find out why it is not working, and fix it.
The quick-and-dirty solution would be to put those commands at the end of the file /etc/rc.d/rc.local, where they will be executed after everything else has been done, but before you are offered a login. I'll let you guess which option I'd go for!

FWIW I have a PVR-150 (PAL) and have not managed to get it working at all, with either Knoppmyth 5A16, or the current MythDora. It is correctly recognised as a Tuner=38, PAL card and I seem to be able to tune it, but all I see is static, and there's no sound at all with alsa. I think this might be a long-term project!
 
Old 12-29-2005, 12:59 PM   #4
awing_pilot
LQ Newbie
 
Registered: Jul 2003
Location: Earth
Distribution: FC4, Suse10, pcLinux
Posts: 25

Rep: Reputation: 15
my pvr works wonderfully, unfortunately i don't know much about how different the pal setup is from NTSC. However your idea did work to perfection. Been looking for the "right" solution for a few days now no one had any advice, so yours works and now i don't have to worry about it till something else breaks i guess. Thank you so much for your assistance
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load modules automatically kulmis Linux - Newbie 4 08-08-2005 09:59 AM
how do i get modules to load automatically behmjose Linux - General 2 04-13-2004 08:32 PM
ATI drivers won't load at startup Preiselbeere Mandriva 1 03-28-2004 02:59 AM
how can i pre-load applications into ram automatically at startup??? win32sux Linux - General 10 02-24-2004 05:20 AM
snd_emu10k1 doesnt load automatically in 2.6 yenonn Slackware 3 12-19-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration