Cannot start X server on rpb-desktop-image


#1

Hi Everyone,

I’m trying this Yocto OE image.
https://builds.96boards.org/snapshots/dragonboard410c/linaro/openembedded/jethro/36/rpb-desktop-image-dragonboard-410c-20160315155506-36.rootfs.ext4.gz

However, when I try to start X server, nothing can be seen after I do
X&
export DISPLAY=:0
openbox &
glxgears

Is anything wrong in my steps?

Thanks,
Daniel


#2

Hmnnn…

The build you are using have never had a released version, only snapshot pre-releases. Also it looks like the OE snapshots for DB410c have been switched off since I know there have been lots of changes to the distro since since March.

Do you experience the same problem with the (released) reference platform build:
https://builds.96boards.org/releases/reference-platform/openembedded/dragonboard410c/16.06/rpb/


#3

Actually… I just tested this myself and can confirm that X11 is working OK for me with this build (glxgears is 900fps :wink: ).


#4

@danielt I also tried the 16.06 build, but I find the problem is not X11. I can run glxgears on both 16.06 rpb & jethro-36 snapshot images, but cannot start openbox correctly. The error messages are as below.

Obt-Message: failed to open an Input Method
Openbox-Message: X server does not support locale.
Openbox-Message: Cannot set locale modifiers forthe X server.

#5

Aren’t those messages warnings rather than errors? Whilst we could look at improving the out-of-the-box locale setup to squash the warnings I can’t see anything wrong with openbox’s behaviour. It is drawing window decorations and both mouse and keyboard are functioning OK.


#6

@danielt It’s strange that I cannot see windows drawing and mouse cursor is not shown as well. Could you provide your commands to start openbox for me? Thank you!


#7

I ran the following lines (as root) via the serial port:

X&
export DISPLAY=:0
openbox &
glxgears &
xterm &

After running this I can see both windows, they are correctly decorated (e.g. they have a title bar), I am able to use the mouse to select the xterm window and the keyboard to issue commands.


#8

Actually I probably had a space between the X and the &…


#9

@danielt Thanks! I can see the same behavior now!


#10

Hello All,

I was just wondering. If I want to do the same than you did here but without the window manager xorg, like opening an app in fullscreen with accelerated graphics would that be possible (like the xinitrd of the archlinux)? with the rpb-console-image ?

If you have any idea, I would be very interested.

Thanks,

Jérôme.


#11

Yes, that should be possible.

It depends on your use case but you might find it better to run some kind of kiosk friendly window manager (such as matchbox) since it will handle things like dialog boxes much more gracefully. You may also be glad for matchbox on the day you want to open an xterm to debug something ;-).

Daniel.


#12

Thanks for your feedback Daniel.

I want the lighter system as possible and I only need to start an application in fullscreen mode. I don’t need to manage multiple windows.
I want to start a QT application as soon as possible with eglfs backend.

From your point of view is this use case necessarily needs a window manager?

Jérôme.


#13

I’d suggest its try-it-and-see time.

The main issue running without a window manager is that it makes the application responsible for ensuring its window covers the whole screen (i.e. select an appropriate initial window geometry). Normally applications realize full screen mode by setting their _NET_WM_STATE to fullscreen and letting the window manager worry how to do it. This means that it may not be enough to ask QT to run in fullscreen mode and you might have to find an alternative way to do it.


#14

I am able to resize the window through my application my main worry now is to being able to build qt with opengl without X11 and this is another story because apparently X11 was building (because of some nice dependencies I guess) all the necessary opengl libs (or opengl is X11 dependant?).

But this start to be a duplicate of my other post ^^ : http://www.96boards.org/forums/topic/yocto-opengl/#post-16882
and out of scope of this thread.

Thanks for your advices.

Jérôme.


#15

Ok. We can leave if for the other thread. In any case it sounds like we’ve not been understanding each other anyway. I’ve been describing how to run X11 without a window manager rather than how to do accelerated graphics without an X server.


#16

My bad, indeed, I haven’t been clear enough…
Let start again and if you have any idea about the other problem let me know ;).

Jérôme.