~mil/sxmo-tickets#28: 
sxmo-utils: Hide X cursor

Ideally through a blank cursor

Status
RESOLVED FIXED
Submitter
~mil
Assigned to
No-one
Submitted
3 years ago
Updated
2 years ago
Labels
No labels applied.

~saba 3 years ago

in /etc/X11/xdm/Xservers add the option -nocursor:

:0 local /usr/bin/X -nocursor :0

~mil REPORTED FIXED 3 years ago

~saba thanks - applied! Fixed in sxmo-xdm 1.1.12r4 building on CI now - should be in repo soon. Feel free to send patches to the mailing list directly too

~stacyharper FIXED REPORTED 2 years ago*

With the recent xdm to tinydm switch, we lost this.

I think our best option is https://github.com/Airblader/unclutter-xfixes and its --hide-on-touch argument. This is still not released yet.

ps: this tool already is packaged in aports

~saba 2 years ago

as discussed on IRC, this could be fixed in a couple of ways.

1: we could just add the -nocursor option in /etc/X11/xinit/xserverrc

2: with unclutter-xfixes. We need newer than the current release of this so we need to see if they can make a new release or as stacy suggested a 9999 version. I've tested on both pinephone and pinetab with:

unclutter --hide-on-touch --start-hidden &

in my sxmo_xinit.sh. On pinetab the pointer appears when I use the trackpad (and presumably with a mouse too) and disappears if I touch the screen. I don't have a dock for my pinephone, but I assume it would work the same. If we go with this, then we need a newer release and to make unclutter a dependency. I don't know how any of this works in wayland, I can look into that though.

~stacyharper 2 years ago

in my sxmo_xinit.sh. On pinetab the pointer appears when I use the trackpad (and presumably with a mouse too) and disappears if I touch the screen. I don't have a dock for my pinephone, but I assume it would work the same. If we go with this, then we need a newer release and to make unclutter a dependency.

Yes we only need that unclutter release. Could you ask them to do ?

I don't know how any of this works in wayland, I can look into that though.

On Sway the mouse already disappear when using touch inputs.

~saba 2 years ago

Yes we only need that unclutter release. Could you ask them to do ?

Ok, version 1.6 was released on github. We just need to get an updated build in Alpine

~stacyharper 2 years ago

~saba 2 years ago

unclutter-xfixes 1.6 is now available on alpine.

~flimflam 2 years ago

I'm seeing a mouse cursor on the screen after the latest upgrade. Here are a few packages that might be relevant:

  • sxmo-dwm-6.2.14-r0 aarch64 {sxmo-dwm} (MIT) [installed]
  • sxmo-utils-1.5.2.1-r0 aarch64 {sxmo-utils} (MIT) [installed]
  • sxmo-utils-openrc-1.5.2.1-r0 aarch64 {sxmo-utils} (MIT) [installed]
  • unclutter-xfixes-1.5-r0 aarch64 {unclutter-xfixes} (MIT) [installed]
  • xinit-1.4.1-r0 aarch64 {xinit} (MIT) [installed]
  • xinput-1.6.3-r0 aarch64 {xinput} (MIT) [installed]
  • xkbcomp-1.4.5-r0 aarch64 {xkbcomp} (MIT) [installed]
  • xkeyboard-config-9999-r2 aarch64 {xkeyboard-config} (MIT) [installed]
  • xmodmap-1.0.10-r0 aarch64 {xmodmap} (MIT) [installed]
  • xorg-server-1.20.11-r0 aarch64 {xorg-server} (MIT) [installed]
  • xorg-server-common-1.20.11-r0 aarch64 {xorg-server} (MIT) [installed]
  • xprop-1.2.5-r0 aarch64 {xprop} (MIT) [installed]
  • xrandr-1.5.1-r0 aarch64 {xrandr} (MIT) [installed]
  • xrdb-1.2.0-r1 aarch64 {xrdb} (MIT) [installed]

~proycon 2 years ago

On 21-10-13 03:05, ~flimflam wrote:

I'm seeing a mouse cursor on the screen after the latest upgrade. Here are a few packages that might be relevant:

unclutter hides the cursor and is invoked from your xinit, did you run sxmo_migrate.sh and let it install the new template, or adapt your xinit hook manually?

--

Maarten van Gompel (proycon) https://proycon.anaproy.nl

~flimflam 2 years ago*

~proycon I sure didn't. Is that documented somewhere?

Edit: after running sxmo_migrate.sh, I have this at the bottom of my .config/sxmo/xinit:

# Auto hide cursor with touchscreen, Show it with a mouse
unclutter-xfixes --hide-on-touch --start-hidden &

But even after after rebooting I still have a mouse cursor.

Edit 2: think I found the problem:

$ unclutter-xfixes --hide-on-touch --start-hidden
unclutter-xfixes: unrecognized option: hide-on-touch
Usage: unclutter-xfixes [--timeout <n>] [--jitter <radius>] [--exclude-root] [--ignore-scrolling] [-b|--fork] [-v|--version] [-h|--help]

~saba 2 years ago

~flimflam you need unclutter-xfixes 1.6. I'm not sure why you're only getting 1.5 with an upgrade

~flimflam 2 years ago*

~saba probably because that's what's in https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/. Should I have a different repo?

Edit: ~anjan submitted a PR against pmOS that should fix this: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2603

~proycon 2 years ago

On 21-10-13 10:29, ~flimflam wrote:

~saba probably because that's what's in https://dl- cdn.alpinelinux.org/alpine/v3.14/community/aarch64/. Should I have a different repo?

No, we should probably backport unclutter-xfixes for postmarketos then if Alpine stable is on a version that's too old.

--

Maarten van Gompel (proycon) https://proycon.anaproy.nl

~proycon REPORTED FIXED 2 years ago

backport is complete, this should be fixed now

Register here or Log in to comment, or comment via email.