Re: vdr-sxfe from background script

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

 



Hi!
2009/2/20 Alex Betis <alex.betis@xxxxxxxxx>:> Hi all,>> I wonder what am I doing wrong.>> The problem is that when this script is run in background (& at the end),> the job is shown as "stopped".> I've tried to run vdr-sxfe itself in background, it opens the window and the> job stops.> I know there is a switch that will run it in daemon mode, but that's not> that good for the script I want to have.
I think I hit the problem you are having before, but in my currentsolution I do not need to face it. Currently, I log in automaticallyvia kdm, which loads KDE (could be xfce or whatever you want, though Ihaven't tested because currently I want to use KDE) and automaticallyruns a script (~/.kde/Autostart/vdr-sxfe.sh) that starts vdr-sxfe. Idon't background the vdr-sxfe.sh process in the script. I have twoloops there; the second is in case vdr-sxfe crashes, to restartvdr-sxfe (vdr-sxfe doesn't do that anymore quite often) and the secondis for suspend / resume (some parts of lirc/VFD don't like suspend onmy setup). The latter waits from the start of suspend until end ofresume to restart vdr-sxfe. And, also it looks for the errorlevel ofvdr-sxfe ehwn it exits; if it is not a "clean" one, it assumes it wasnot initiated by the user (and allows automatic shutdowns).
Do you really need to background vdr-sxfe the way you try to do it? Onmy setup, If I want to exit vdr-sxfe to use the desktop (actually, Idon't need to do that but I can, also this disable automatic shutdownson my setup via a kludge) I just press esc on my keyboard to shutdownvdr-sxfe (this leaves vdr running in the background). I have boundanother button to restart vdr-sxfe again (to enable automaticshutdowns etc.).  You could kill all running vdr-sxfe sessionswhenever you run the script again (so that would actually work as arestart, too, Though, I don't need restarting vdr-sxfe, so I haven'tdone it). I can send my script if you need it.

The rest might be offtopic or not, but I think in general your problemis related to a lack of documentation / examples / init scripts etc.needed when configuring VDR to display via X (as opposed to a fullfeatured card or some other deticated output device that doesn'trequire X)  At least for gentoo there are nice init sciŕipts andconfiguration files for VDR and its plugins. But it seems that theinit scripts assume that a user has a full-featured card or anotherdeticated ouput device for the TV. But if one needs X for the displayinstead (which more and more users will be using for several reasons),I'm still really in the dark how to do that elegantly. Not even thevdr-sxfe documentation had examples / ideas of ho to achieve theautomation! I.e. I want to have a VDR showing the picture via HDMIwithout having to log in and running vdr-sxfe manually every time.
The problem might actually lie in the several differen't use casesthere are; some setup might only use the X for a deticated VDR, butsome other users would need other software to run under the X session,too. In my case, I needed VDR to start automatically whenever I pushthe power button,  but still have an easy way to switch to otherprorams and / or desktop. Of course this is a complicated matter, asdepending on the distribution / init scripts used, VDR might be run asroot or a detidcated user 'vdr', but the additional software would notbe run as such. I found the dilemma very confusing.
So, I had sevveral questions but no ready solutions / answers; Howshould I start X.org / Which user should I run X as? Which user shouldrun vdr-sxfe (or some other X output backend)? And if I'm not using aclient/server setup, how on earth am I going to start an X sessionbefore the init scripts run VDR, to play along nicely with the initscripts? Do I need to log in as user 'vdr' (to start an X session)before running VDR? Is it possible to allow the VDR process (which isrun as the user 'vdr') to connect to a X sessions, which is "owned" bya different user?
Currently, I solved this via kdm's features and a script I made myselfto run at the start of a session as a regular user, and chose vdr-sxfeto run as a client/server solution (this was the only solution I wasable to run at all with the init scripts Gentoo came with). But I feelthe script I made is really a dirty kludge =).
So I see there might be a need for documentation and solutions /examples on this kind of setups (at least I didn't find any if therealready are). Can anyone point into such documentation? Does anyonehave any good personal examples? How do you run your VDR with an X11output? Do you use the VDR box for other uses? If yes, how do youintegrate the other applications?
Hope this stirs some conversation =)
-- Ville Aakko - ville.aakko@xxxxxxxxx
_______________________________________________vdr mailing listvdr@xxxxxxxxxxxxxxx://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux