On 20 Jan 2004 14:55:00 +0100
Sven Neumann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Roberto Ugoccioni <[EMAIL PROTECTED]> writes:
>
> > I have a Matrox G450 and use mplayer plus directfb (with "-vo
> > dfbmga") to play movies on the TV attached to the second head of the
> > G450. I run mplayer from the console (linux is at runlevel 3, X11
> > is not started). matroxfb is compiled in the kernel (2.4.22)
> >
> > It works *very well* (having found the ideal set of options to give
> > mplayer) if I start mplayer from the command line, interactively. If
> > I put the same identical line in a script (so that I don't retype
> > all options every time) and run the script ("./script",
> > interactively, not in background), directfb says it cannot init the
> > keyboard and aborts.
>
> DirectFB applications need to run with root priviledges. Your problem
> is most probably caused by the fact that the Linux kernel doesn't
> allow shell scripts to have setuid priviledges.
>
On Tue, 20 Jan 2004 15:50:24 +0100
Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:
>
> The DirectFB master application (first DirectFB process)
> needs to be setuid root for VT switching and raw keyboard input.
>
Thanks, this was indeed the problem: I ran the same script as root and it worked. I
didn't know about this kernel's behaviour.
Now, my PC is used only by me and is seldom connected to the internet, still I'd like
to run things as root as little as possible. I made mplayer suid root (it works). Is
this the right thing? Or is there some way to enable root privileges for the directfb
subsystem (e.g. within mplayer) only?
Cheers,
Roberto
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.