You are not logged in.

#1 2007-03-11 03:58:54

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Need some advice on startup scripts

This is for a MythTV box.  Grub's menu.lst is setup to give the option to boot into runlevel 5 (starts X-Windows and mythfrontend) or runlevel 3 (terminal).

When started in runlevel 5 the ivtv-fb module should load to put the X-Windows output to the PVR-350 so it displays on the TV.

When started in runlevel 3 the ivtv-fb module should not be loaded.  I want to use the monitor.

In both modes the command 'ivtv-tune -c3' should run to ensure the tuner card (PVR-350) is set to to channel 3 to pickup the signal from the DirecTV box.

I was thinking of putting all of this into rc.local... is that the Arch Way ?

Offline

#2 2007-03-11 13:14:53

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: Need some advice on startup scripts

well my mythbox is down needs a hard drive im waiting for
but i believe you put ivtv-fb in MODULE section of rc.conf
it will load at boot up & i dont belive it will interfere with runlevel3
if im understanding you correctly you seem to not want it till X (runlevel5) is started???

as for myth running on channel 3 when you start mythtv turn it to channel 3 & leave it
it should stay on channel 3 next time you start it for more info on mythtv see here

i set my X to start in /etc/inittab see here for more indepth details

Offline

#3 2007-03-11 20:33:32

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Re: Need some advice on startup scripts

If you put ifvtv-fb in MODULES section in /etc/rc.conf then it redirects everything to the TV at all runlevels.  It won't hurt runlevel 3, except it will be annoying to have no output if I take it into my office to work on it.  I'd have to ssh in and remove that from MODULES.

Offline

#4 2007-04-24 07:37:19

rivierrakid
Member
From: Newcastle, UK
Registered: 2006-06-28
Posts: 21

Re: Need some advice on startup scripts

Im not sure if/how well it'll work and Im pretty sure its not good practise, but could you add a 'modprobe ivtv-fb'  line to '/etc/gdm/PreSession/Default'.
Sorry..I dont know the other *dm's equivalent file.. 

This is where I placed my nvtv command (for full screen and -C CONVERT) when using ubuntu mythtv, I also set gdm to login to automatically and set inittab to 5.

Now I switched to arch mythtv, I just added the command in my ~/fluxbox/startup
which seemes to works just as well (for a single user).


I dont use a tv card.. yet. (I use myth to play emulators, watch downloaded movies, as a jukebox etc) So I dont know much about the 'ivtv-tune -c3' thingy so hopefully rayjgu3 pointed you in the right direction.

Offline

Board footer

Powered by FluxBB