Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] How can i tell if dvb drivers are properly loaded ?



"- or how does VDR tell if drivers are properly loaded ?"

Hi,

last time i was on vacation my VDR machine should do some recording for me - 
unfortunately the driver got stuck and (i guess) couldn't be loaded 
successfully anymore - VDR reported "no video device found ..." and restarted 
itself over and over again (see log for details).

Tomorrow i'm again on vacation and VDR should also make some recordings !

This time i want to change the runvdr script to check if drivers are properly 
loaded (after the make rmmod; make insmod) and if NOT simply reboot the whole 
machine !
But how can the runvdr script tell if drivers are up and running ?
I could simply use if [ $LSMOD -eq 0 ] as the runvdr script does - but i'd 
like to use the same way that vdr uses to be able to detect the problem ... 
Otherwise the runvdr might fail to detect it and then vdr still does not run 
:-(
So can anyone tell me how *exactly* vdr does detect this ?

Or any other reasonable ideas ?

Martin.



Nov 10 01:11:02 linux su: (to root) root on none
Nov 10 01:11:02 linux PAM-unix2[2129]: session started for user root, service 
su
Nov 10 01:11:02 linux vdr[2130]: VDR version 0.96 started
Nov 10 01:11:02 linux vdr[2130]: loading /video0/setup.conf
Nov 10 01:11:02 linux vdr[2130]: loading /video0/channels.conf
Nov 10 01:11:02 linux vdr[2130]: loading /video0/timers.conf
Nov 10 01:11:02 linux vdr[2130]: probing /dev/ost/frontend0
Nov 10 01:11:02 linux modprobe: modprobe: Can't locate module char-major-250
Nov 10 01:11:02 linux vdr[2130]: ERROR: no video device found, giving up!
Nov 10 01:11:02 linux PAM-unix2[2129]: session finished for user root, service 
su
Nov 10 01:11:14 linux su: (to root) root on none
Nov 10 01:11:14 linux PAM-unix2[2254]: session started for user root, service 
su
Nov 10 01:11:14 linux vdr[2255]: VDR version 0.96 started
Nov 10 01:11:14 linux vdr[2255]: loading /video0/setup.conf
Nov 10 01:11:14 linux vdr[2255]: loading /video0/channels.conf
Nov 10 01:11:14 linux vdr[2255]: loading /video0/timers.conf
Nov 10 01:11:14 linux vdr[2255]: probing /dev/ost/frontend0

[and so on ...]

Martin.




Home | Main Index | Thread Index