Re: [mythtv-users] Automatic startup
On Jul 27, 2005, at 7:39 PM, Bruce Pennypacker wrote: Hi all, I have a FC3 box running myth 0.81 on KDE. I'm now trying to get it to start up automatically on bootup but I'm only having partial luck. I used the init scripts from contrib to start up mythbackend during bootup and that works fine. I've tried following the directions on Jarod Wilsons site to get FC3 to automatically log in as mythtv and run mythfrontend but that's where I'm having trouble. I ran gdmsetup and specified that it should automatically log in as mythtv but that didn't work. Rebooting still leaves me at the login screen. Running gdmsetup a second time shows that it did remember my settings. I've also tried going into the KDE control center and setting both the option to log in automatically and the option to log in as a specific user after a specified period of time has passed but neither of them work either. Has anybody gotten this successfully working on FC3 with KDE? If you don't really want to run KDE (if your only using your frontend for Myth, you don't need it), there is a solution posted a couple of places that has worked very well for me. You edit your /etc/inittab file to spawn startx. It even restarts it when X exits. I use the following line: 2:345:respawn:/usr/bin/openvt -fwc 2 -- /bin/su - mythtv -c /usr/X11R6/bin/startx The options to openvt are a little different than what were posted, I had to mess around with them since the options seem to have changed between openvt versions. This replaces the old line in inittab for tty2. It basically opens a virtual terminal on tty2, and as the mythtv user, calls startx. My mythtv user has a .xinitrc file that starts a window manager in the background, and then starts mythfrontend. When myth exits (or dies), X stops, the init process notices, and starts it up again. If I don't want mythfrontend to run, I can switch to runlevel 2. -Michael ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] Automatic startup
--- Bruce Pennypacker <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a FC3 box running myth 0.81 on KDE. I'm now > trying to get it to > start up automatically on bootup but I'm only having > partial luck. I > used the init scripts from contrib to start up > mythbackend during bootup > and that works fine. I've tried following the > directions on Jarod > Wilsons site to get FC3 to automatically log in as > mythtv and run > mythfrontend but that's where I'm having trouble. I > ran gdmsetup and > specified that it should automatically log in as > mythtv but that didn't > work. Rebooting still leaves me at the login > screen. Running gdmsetup a > second time shows that it did remember my settings. > I've also tried > going into the KDE control center and setting both > the option to log in > automatically and the option to log in as a specific > user after a > specified period of time has passed but neither of > them work either. > Has anybody gotten this successfully working on FC3 > with KDE? > > -Bruce I'm by no means an FC3 expert (if it were Slackware I could help), but maybe you should check whether kdm is running as opposed to gdm. I followed Jarod's guide and had no problem with auto login BUT I'm not using KDE, I went the lightweight route and am using windowmaker. I really don't need the functionality, and weight, of KDE, I just ssh into myth from my desktop. Howard ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
[mythtv-users] Automatic startup
Hi all, I have a FC3 box running myth 0.81 on KDE. I'm now trying to get it to start up automatically on bootup but I'm only having partial luck. I used the init scripts from contrib to start up mythbackend during bootup and that works fine. I've tried following the directions on Jarod Wilsons site to get FC3 to automatically log in as mythtv and run mythfrontend but that's where I'm having trouble. I ran gdmsetup and specified that it should automatically log in as mythtv but that didn't work. Rebooting still leaves me at the login screen. Running gdmsetup a second time shows that it did remember my settings. I've also tried going into the KDE control center and setting both the option to log in automatically and the option to log in as a specific user after a specified period of time has passed but neither of them work either. Has anybody gotten this successfully working on FC3 with KDE? -Bruce ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
RE: [mythtv-users] Automatic startup with tv-out - solved
Mark wrote: > > On Thu, 06 Jan 2005 21:41:02 +0100, Sigurd Nes > <[EMAIL PROTECTED]> wrote: > > sigurdne wrote: > > > The X-seesion won't start because /dev/fb1 is not present at the > > > time it tries to start. I do all the modprobes from a > start-script > > > (usr/local/bin/start-ivtv) initiated from '/etc/rc.d/rc.local' > > > I guess what I need to do is to make sure that the > start-script is initiated > > > before the X-session is started. How can I accomplish this ? > > > > > > Sigurd > > > > > > > > Sollution: > > 1) Configure gdm to autologin with user mythtv > > 2) Start gdm with /usr/bin/gdm at the end of the start-script > > > > i'm having a similar problem to this one i think. > setup: > PVR 350 w/ TV out > > Behavior: > ON Startup. > Computer boots up normaly > rc.local runs but cannot complete stuff becuase /dev/fb1 is > not there X crashes. gdm does not start ...basically > autostart all is dead > > I can then recover it by > manualy run rc.local again > startx > login (auto login doesn't work now) > start mythfrontend (KDE autostart didnt' work either) A problem I came across is that sometimes the device driver modules needed a slight pause inbetween loading to allow the /dev char devices to be created, there are two ways round this. 1) stick a couple of sleep statements in your rc.local, ie modprobe ivtv sleep 5 modprobe ivtv-fb sleep 5 2) stick a little loop in there to check for the devices and loop until they're there, eg (this is the script I use) #/bin/bash # Name: load-ivtv # Author : David Sharp @ 04/01/2005 # Purpose : Load ivtv driver checking for char devices before continuing to load # next module. # Mod.Hist: # 04/01/05: New script # Functions function wait_for_device(){ Device=${1} # device is full path name, eg /dev/fb1 Count=1 Count_Timeout=100 # number of seconds to wait before timing out # needed as otherwise this will loop forever # if for whatever reason the device never appears echo -n "Waiting for device ${Device} to appear." while [ ! -c ${Device} ] do let Count=Count+1 sleep 1 echo -n "." if [ ${Count} = ${Count_Timeout} ] then echo echo "Timeout waiting for device ${Device}" sleep 1 return 1 break fi done } # Main script modprobe ivtv wait_for_device /dev/video0 RETVAL=$? if [ $RETVAL -eq 0 ] then /usr/lib/ivtv/ptune.pl -f pal-europe-west --channel 53 # tune in channel otherwise errors in log dd if=/dev/video0 of=/dev/video16 bs=64k & # output to /video16 otherwise ivtvdev/X tv out doesn't work sleep 5 kill %1 modprobe ivtv-fb wait_for_device /dev/fb1 fi HTH Druid ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] Automatic startup with tv-out - solved
On Thu, 06 Jan 2005 21:41:02 +0100, Sigurd Nes <[EMAIL PROTECTED]> wrote: > sigurdne wrote: > > The X-seesion won't start because /dev/fb1 is not present at the time it > > tries > > to start. > > I do all the modprobes from a start-script (usr/local/bin/start-ivtv) > > initiated from '/etc/rc.d/rc.local' > > I guess what I need to do is to make sure that the start-script is initiated > > before the X-session is started. How can I accomplish this ? > > > > Sigurd > > > > > Sollution: > 1) Configure gdm to autologin with user mythtv > 2) Start gdm with /usr/bin/gdm at the end of the start-script i'm having a similar problem to this one i think. setup: PVR 350 w/ TV out Behavior: ON Startup. Computer boots up normaly rc.local runs but cannot complete stuff becuase /dev/fb1 is not there X crashes. gdm does not start ...basically autostart all is dead I can then recover it by manualy run rc.local again startx login (auto login doesn't work now) start mythfrontend (KDE autostart didnt' work either) ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] Automatic startup with tv-out - solved
sigurdne wrote: The X-seesion won't start because /dev/fb1 is not present at the time it tries to start. I do all the modprobes from a start-script (usr/local/bin/start-ivtv) initiated from '/etc/rc.d/rc.local' I guess what I need to do is to make sure that the start-script is initiated before the X-session is started. How can I accomplish this ? Sigurd Sollution: 1) Configure gdm to autologin with user mythtv 2) Start gdm with /usr/bin/gdm at the end of the start-script Sigurd ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
[mythtv-users] Automatic startup with tv-out
The X-seesion won't start because /dev/fb1 is not present at the time it tries to start. I do all the modprobes from a start-script (usr/local/bin/start-ivtv) initiated from '/etc/rc.d/rc.local' I guess what I need to do is to make sure that the start-script is initiated before the X-session is started. How can I accomplish this ? Sigurd ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users