2

I would like to run X11 (so that I can run mplayer from the console) without running lightdm or any other window manager. How do I start just the xserver without running a window manager?

X11 is the only -vo I've been able to get working with mplayer. OMXPlayer doesn't work for my use case. Thank you.

Max
  • 29
  • 1
  • 1
  • 2
  • 1
    Welcome to SE :) Plase have a look at http://meta.stackexchange.com/a/3021/180072 – XTL Dec 13 '12 at 07:51

2 Answers2

6
X

The X server is really usually called X and you can just start it. You can set the DISPLAY number as an argument along with some other things.

You might want to have some sort of session, though, and still go through xinit or such and start X with startx. You can use .xinitrc or such as a script and simply not start a wm there. You will need a "magic client" as the last command that stays running so X doesn't terminate immediately. In a traditional "failsafe" session, that was an xterm. If you know what to launch and launch once only, it could be that mplayer. Or any UI/wrapper that does the launching for you. When the last ("magic") client in the init script terminates, X terminates.

If all you want to do is play video, you might see if rpi can run mplayer with directfb instead and skip using X11 entirely.

Evan
  • 103
  • 3
XTL
  • 1,389
  • 9
  • 22
3

Usually to run a program within x without a desktop you would

startx <path/to/dir/filename.ft>

Personally I've never done this with mplayer, but a large variety of games which require x can be run in this way, upon exiting the program, you will be returned to the command-line.

Perhaps this will work for you or will help someone with a similar issue.

Adrinus
  • 31
  • 1