diff options
author | Trevor Woerner <twoerner@gmail.com> | 2017-03-25 01:19:47 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-27 08:15:06 +0100 |
commit | 1e3f04f86aac7f547b10c187f82983fa3137be55 (patch) | |
tree | f125d5274991c478bdd54027d8acb8932bc47ad0 | |
parent | d9f293892174ffb8a7c3e3dc23e58f4ba1b09ee4 (diff) | |
download | poky-1e3f04f86aac7f547b10c187f82983fa3137be55.tar.gz |
xserver-nodm-init: option to remove cursor
Add a PACKAGECONFIG option to allow the user to disable the mouse
cursor/pointer in the X server. This might be useful where a
touchscreen is used.
(From OE-Core rev: 680940250c9a1c7b43229c5e4f4fed5cc3e31033)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in index 757c23d95a..4a9670d8d2 100644 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in | |||
@@ -2,6 +2,6 @@ | |||
2 | 2 | ||
3 | XSERVER=/usr/bin/Xorg | 3 | XSERVER=/usr/bin/Xorg |
4 | DISPLAY=:0 | 4 | DISPLAY=:0 |
5 | ARGS=" -br -pn @BLANK_ARGS@ " | 5 | ARGS=" -br -pn @BLANK_ARGS@ @NO_CURSOR_ARG@ " |
6 | HOME=@HOME@ | 6 | HOME=@HOME@ |
7 | USER=@USER@ | 7 | USER=@USER@ |
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb index 62da11800c..345b589696 100644 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb | |||
@@ -24,6 +24,7 @@ REQUIRED_DISTRO_FEATURES = "x11" | |||
24 | PACKAGECONFIG ??= "blank" | 24 | PACKAGECONFIG ??= "blank" |
25 | # dpms and screen saver will be on only if 'blank' is in PACKAGECONFIG | 25 | # dpms and screen saver will be on only if 'blank' is in PACKAGECONFIG |
26 | PACKAGECONFIG[blank] = "" | 26 | PACKAGECONFIG[blank] = "" |
27 | PACKAGECONFIG[nocursor] = "" | ||
27 | 28 | ||
28 | do_install() { | 29 | do_install() { |
29 | install -d ${D}${sysconfdir}/default | 30 | install -d ${D}${sysconfdir}/default |
@@ -35,6 +36,7 @@ do_install() { | |||
35 | install X11/Xsession ${D}${sysconfdir}/X11/ | 36 | install X11/Xsession ${D}${sysconfdir}/X11/ |
36 | 37 | ||
37 | BLANK_ARGS="${@bb.utils.contains('PACKAGECONFIG', 'blank', '', '-s 0 -dpms', d)}" | 38 | BLANK_ARGS="${@bb.utils.contains('PACKAGECONFIG', 'blank', '', '-s 0 -dpms', d)}" |
39 | NO_CURSOR_ARG="${@bb.utils.contains('PACKAGECONFIG', 'nocursor', '-nocursor', '', d)}" | ||
38 | if [ "${ROOTLESS_X}" = "1" ] ; then | 40 | if [ "${ROOTLESS_X}" = "1" ] ; then |
39 | XUSER_HOME="/home/xuser" | 41 | XUSER_HOME="/home/xuser" |
40 | XUSER="xuser" | 42 | XUSER="xuser" |
@@ -44,6 +46,7 @@ do_install() { | |||
44 | fi | 46 | fi |
45 | sed -i "s:@HOME@:${XUSER_HOME}:; s:@USER@:${XUSER}:; s:@BLANK_ARGS@:${BLANK_ARGS}:" \ | 47 | sed -i "s:@HOME@:${XUSER_HOME}:; s:@USER@:${XUSER}:; s:@BLANK_ARGS@:${BLANK_ARGS}:" \ |
46 | ${D}${sysconfdir}/default/xserver-nodm | 48 | ${D}${sysconfdir}/default/xserver-nodm |
49 | sed -i "s:@NO_CURSOR_ARG@:${NO_CURSOR_ARG}:" ${D}${sysconfdir}/default/xserver-nodm | ||
47 | 50 | ||
48 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 51 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
49 | install -d ${D}${systemd_unitdir}/system | 52 | install -d ${D}${systemd_unitdir}/system |