All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xserver-nodm-init: option to remove cursor
@ 2017-03-25  5:19 Trevor Woerner
  2017-03-27 11:35 ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2017-03-25  5:19 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 .../recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.conf.in | 2 +-
 meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb              | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

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 @@
 
 XSERVER=/usr/bin/Xorg
 DISPLAY=:0
-ARGS=" -br -pn @BLANK_ARGS@ "
+ARGS=" -br -pn @BLANK_ARGS@ @NO_CURSOR_ARG@ "
 HOME=@HOME@
 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"
 PACKAGECONFIG ??= "blank"
 # dpms and screen saver will be on only if 'blank' is in PACKAGECONFIG
 PACKAGECONFIG[blank] = ""
+PACKAGECONFIG[nocursor] = ""
 
 do_install() {
     install -d ${D}${sysconfdir}/default
@@ -35,6 +36,7 @@ do_install() {
     install X11/Xsession ${D}${sysconfdir}/X11/
 
     BLANK_ARGS="${@bb.utils.contains('PACKAGECONFIG', 'blank', '', '-s 0 -dpms', d)}"
+    NO_CURSOR_ARG="${@bb.utils.contains('PACKAGECONFIG', 'nocursor', '-nocursor', '', d)}"
     if [ "${ROOTLESS_X}" = "1" ] ; then
         XUSER_HOME="/home/xuser"
         XUSER="xuser"
@@ -44,6 +46,7 @@ do_install() {
     fi
     sed -i "s:@HOME@:${XUSER_HOME}:; s:@USER@:${XUSER}:; s:@BLANK_ARGS@:${BLANK_ARGS}:" \
         ${D}${sysconfdir}/default/xserver-nodm
+    sed -i "s:@NO_CURSOR_ARG@:${NO_CURSOR_ARG}:" ${D}${sysconfdir}/default/xserver-nodm
 
     if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
         install -d ${D}${systemd_unitdir}/system
-- 
2.12.0.rc1.48.g076c053



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] xserver-nodm-init: option to remove cursor
  2017-03-25  5:19 [PATCH] xserver-nodm-init: option to remove cursor Trevor Woerner
@ 2017-03-27 11:35 ` Burton, Ross
  2017-03-27 15:10   ` Trevor Woerner
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-03-27 11:35 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

On 25 March 2017 at 05:19, Trevor Woerner <twoerner@gmail.com> wrote:

> 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.
>

This is what the touchscreen variable in the formfactor recipe is for.  Is
this not sufficient?

Ross

[-- Attachment #2: Type: text/html, Size: 746 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xserver-nodm-init: option to remove cursor
  2017-03-27 11:35 ` Burton, Ross
@ 2017-03-27 15:10   ` Trevor Woerner
  2017-03-27 15:14     ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2017-03-27 15:10 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Mon 2017-03-27 @ 12:35:51 PM, Burton, Ross wrote:
> On 25 March 2017 at 05:19, Trevor Woerner <twoerner@gmail.com> wrote:
> 
> > 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.
> >
> 
> This is what the touchscreen variable in the formfactor recipe is for.  Is
> this not sufficient?

To be honest I hadn't noticed formfactor before I created my patch. But
looking at it now, no, I don't think it would be sufficient. I'll take a
couple stabs at it, but I don't think it'll do what I want.

What I want is to get rid of the mouse pointer completely. Formfactor has
variables that would appear to affect things like rotation and whether or not
the calibration routine gets called when X starts up. I don't see anything in
there that can disable the showing of the pointer.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xserver-nodm-init: option to remove cursor
  2017-03-27 15:10   ` Trevor Woerner
@ 2017-03-27 15:14     ` Burton, Ross
  2017-03-27 18:01       ` Trevor Woerner
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-03-27 15:14 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

On 27 March 2017 at 16:10, Trevor Woerner <twoerner@gmail.com> wrote:

> What I want is to get rid of the mouse pointer completely. Formfactor has
> variables that would appear to affect things like rotation and whether or
> not
> the calibration routine gets called when X starts up. I don't see anything
> in
> there that can disable the showing of the pointer.
>

The touchscreen variable results in the X startup scripts hiding the cursor.

Ross

[-- Attachment #2: Type: text/html, Size: 868 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xserver-nodm-init: option to remove cursor
  2017-03-27 15:14     ` Burton, Ross
@ 2017-03-27 18:01       ` Trevor Woerner
  0 siblings, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2017-03-27 18:01 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Mon, Mar 27, 2017 at 11:14 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 27 March 2017 at 16:10, Trevor Woerner <twoerner@gmail.com> wrote:
>>
>> What I want is to get rid of the mouse pointer completely. Formfactor has
>> variables that would appear to affect things like rotation and whether or
>> not
>> the calibration routine gets called when X starts up. I don't see anything
>> in
>> there that can disable the showing of the pointer.
>
>
> The touchscreen variable results in the X startup scripts hiding the cursor.

Oh, I see what you're saying... on *SATO*. Agreed. On _sato_ setting
HAVE_TOUCHSCREEN set to 1 hides the cursor:
meta/recipes-sato/machbox-session-sato/session

But what about on plain ol' core-image-x11? Although I wasn't aware of
formfactor before, using it now it still doesn't solve the issue for
me. The existing mechanism tweaks the pointer at the window manager
level, my proposed patch tweaks the pointer at the X server level
which (I'm arguing) is a better place to adjust it. This way it's
independent of everything (except which display server you're using).


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-27 18:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-25  5:19 [PATCH] xserver-nodm-init: option to remove cursor Trevor Woerner
2017-03-27 11:35 ` Burton, Ross
2017-03-27 15:10   ` Trevor Woerner
2017-03-27 15:14     ` Burton, Ross
2017-03-27 18:01       ` Trevor Woerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.