Skip to contentSkip to conversation

minnowboard-max: Start X on boot and run a few demos

PATCH New Ezequiel Garcia 2 participants 2 messages Jul 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minnowboard-max: Start X on boot and run a few demos

Now that we've merged nodm, the autologin display manager, we can get rid of xinit, and startx hack and use nodm to start X on boot. While here, let's start xterm and glmark2, just as demos.

---
I've chosen the demo apps somewhat arbitrarily:
* xterm because everyone loves terminals
* glmark2 to test OpenGL

 board/minnowboard/fs-overlay-graphical/etc/X11/Xsession | 7 +++++++
 board/minnowboard/fs-overlay-graphical/root/.xinitrc    | 1 -
 board/minnowboard/fs-overlay-graphical/usr/bin/startx   | 6 ------
 configs/minnowboard_max-graphical_defconfig             | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)
 create mode 100755 board/minnowboard/fs-overlay-graphical/etc/X11/Xsession
 delete mode 100644 board/minnowboard/fs-overlay-graphical/root/.xinitrc
 delete mode 100755 board/minnowboard/fs-overlay-graphical/usr/bin/startx
board/minnowboard/fs-overlay-graphical/etc/X11/Xsession new file +7 -0
new file mode 100755
index 000000000000..d8862f170cb1
@@ -0,0 +1,7 @@
+# Start a terminal on the top left corner
+xterm -geom 80x30+0+0 &
+
+# OpenGL demo
+glmark2 &
+
+exec /usr/bin/openbox-session
board/minnowboard/fs-overlay-graphical/root/.xinitrc deleted +0 -1
deleted file mode 100644
index 4274b24df1bc..000000000000
@@ -1 +0,0 @@
-exec /usr/bin/openbox-session
board/minnowboard/fs-overlay-graphical/usr/bin/startx deleted +0 -6
deleted file mode 100755
index 6f2c949d4607..000000000000
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-# Simplified custom startx script, which starts
-# the X server on vt7.
-
-xinit -- vt7
configs/minnowboard_max-graphical_defconfig +1 -1
index d84544be86c5..de803f023920 100644
@@ -48,12 +48,12 @@ BR2_PACKAGE_FB_TEST_APP=y
 BR2_PACKAGE_XORG7=y
 BR2_PACKAGE_XSERVER_XORG_SERVER=y
 BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX=y
-BR2_PACKAGE_XAPP_XINIT=y
 BR2_PACKAGE_XAPP_XRANDR=y
 BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV=y
 BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
 BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
 BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL=y
+BR2_PACKAGE_NODM=y
 BR2_PACKAGE_XTERM=y
 BR2_PACKAGE_OPENBOX=y
 
Signature · 1 line
2.9.0
#1 lore raw

PATCH 1/1 minnowboard-max: Start X on boot and run a few demos

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ezequiel" == Ezequiel Garcia <[email protected]> writes:

Now that we've merged nodm, the autologin display manager, we can get rid of xinit, and startx hack and use nodm to start X on boot. While here, let's start xterm and glmark2, just as demos.

---
I've chosen the demo apps somewhat arbitrarily:
* xterm because everyone loves terminals
* glmark2 to test OpenGL

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard