[mythtv-users] Odd permission behavior at boot up, timing issue?

Vinton Coffman vintonc at redzone.com
Thu Jun 29 06:11:26 UTC 2006


I've had this issue since upgrading to fc4 but since my mythtv box  
doesn't reboot too often its not a huge issue.  But none the less its  
a pain and causes myth to fail if the power goes off and the box  
boots up unattended.

The ivtv driver loads fine and finishes

Jun 29 01:32:59 pvr kernel: ivtv:  ====================  END INIT  
IVTV  ====================

The /dev/video show the correct permissions.

ls -lat --full-time /dev/video*
crw-------  1 mythtv root 81, 25 2006-06-29 01:32:42.797100750 -0400 / 
dev/video25
crw-------  1 mythtv root 81, 33 2006-06-29 01:32:42.669092750 -0400 / 
dev/video33
crw-------  1 mythtv root 81,  1 2006-06-29 01:32:42.633090500 -0400 / 
dev/video1
crw-------  1 mythtv root 81, 24 2006-06-29 01:32:40.756973250 -0400 / 
dev/video24
crw-------  1 mythtv root 81, 32 2006-06-29 01:32:40.684968750 -0400 / 
dev/video32
lrwxrwxrwx  1 root   root      6 2006-06-29 01:32:40.648966500 -0400 / 
dev/video -> video0
crw-------  1 mythtv root 81,  0 2006-06-29 01:32:40.648966500 -0400 / 
dev/video0

the log from mythbackend shows
2006-06-29 01:33:44.932 Channel(/dev/video0)::Open(): Can't open  
video device, error "Permission denied"
2006-06-29 01:33:44.946 EITHelper: localtime offset -4:00:00
2006-06-29 01:33:44.947 Channel(/dev/video1)::Open(): Can't open  
video device, error "Permission denied"
ERROR: no valid capture cards are defined in the database.

The odd thing is I can ssh in as soon as allowed and do multiple ls - 
la /dev/video* and it shows root root as owner of all video devs.  It  
seems like the permission change isn't happening until after  
mythbackend tries to access the video devs.  Stopping mythbackend and  
restarting allows it to access the /dev/video0 and /dev/video1.  I  
also have an issue with lirc.  I'm not sure if that is delaying some  
startup process enough to mess things up.  I tired sleep 30 in the  
mythbackend script to delay it's startup but that seemed to delay the  
permission change by that much too.  So the permissions are correct  
but not at the appropriate time.  Has anybody seen this, and solved  
it?  Any suggestions to help with lirc, pvr-250, and black and gray  
remote would be appreciated too.

Jun 29 01:33:11 pvr lircd-0.8.1-CVS[2566]: lircd(userspace) ready
Jun 29 01:33:11 pvr lircd-0.8.1-CVS[2566]: accepted new client on / 
dev/lircd
Jun 29 01:33:11 pvr lircd-0.8.1-CVS[2566]: could not get file  
information for /dev/lirc
Jun 29 01:33:11 pvr lircd-0.8.1-CVS[2566]: default_init(): No such  
file or directory
Jun 29 01:33:11 pvr lircd-0.8.1-CVS[2566]: caught signal

Thanks,
Vinton


More information about the mythtv-users mailing list