19

I am running Raspbian Jessie on Raspberry PI 2 Model B along with a touchscreen. I just noticed that whenever I use the touchscreen display, mouse pointer also follows my finger tips. I don't want that. I want to be able to permanently hide the mouse pointer whenever I am using the touchscreen and be able to get it back whenever I want the mouse pointer.

I keep reading about unclutter program to hide the mouse pointer, but it doesn't totally hide the mouse pointer. As long as you don't touch the screen or move the mouse, the mouse pointer is hidden by the unclutter program, but when you do it shows the pointer. At least that's what I read.

Any idea?

ThN
  • 1,081
  • 6
  • 22
  • 37

4 Answers4

26

I simply added a nocursor option as follows in the file (/etc/lightdm/lightdm.conf)

xserver-command = X -nocursor

and it worked as it should. No cursor is displayed whatsoever. You can still put your finger on the touch screen and do what you normally do with your mouse pointer; Clicking and Dragging.

ThN
  • 1,081
  • 6
  • 22
  • 37
4

To work with any X server (I'm using the stretch version), Edit the /usr/bin/startx file and change the defaultserverargs line to: defaultserverargs="-nocursor"

1

An alternative would be to install unclutter and set it to idle 0:
This would disabled the mouse pointer when using a touch-screen.

sudo apt-get install unclutter
unclutter -idle 0

This could be made permantent by adding unclutter to the session:
vi ~/.config/lxsession/LXDE-pi/autostart
and add
@unclutter -idle 0

minni
  • 111
  • 2
0

If you use Raspbian Lite without X server, type:

export SDL1_VIDEODRIVER=“dispmanx” 

And run fuse.

The emulator gains performance, and the cursor is hidden.

Darth Vader
  • 4,218
  • 24
  • 47
  • 70