5

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?

  • 2
    I've seen you on a similar question that i answered can you try running the following can you try running it like this starts -- -nocursor – Mohammad Ali Aug 5 '16 at 7:27
  • Yea, but it didn't work. – ThN Aug 8 '16 at 21:26
  • 2
    i meant to say startx -- -nocursor also, have you tried using unclutter and simply setting the time to zero? – Mohammad Ali Aug 8 '16 at 21:27
  • i read about unclutter and it says that it only makes the cursor disappear momentarily not permanently. If there is no mouse movement, pointer appears. If not, it disappears after sometimes. I don't want any mouse pointer at any one time just like on the smartphones. – ThN Aug 8 '16 at 21:31
  • 2
    editing the /etc/lightdm/lightdm.conf file. Find the line which starts with xserves-command and edit it to start the X server without cursor. and make it look like this xserver-command=X -nocursor then reboot and startx – Mohammad Ali Aug 8 '16 at 21:43
7

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.

  • I do want to point out that this answer only seem to work on pitft DISPLAY raspberry pi operating system. I tried this on a regular raspberry PI operating system and it did not work for reason. – ThN Sep 18 '17 at 20:33
  • 2
    Make sure to add it at the bottom in the [Seat*] section, not above that. – brittohalloran Dec 6 '17 at 18:42
1

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"

0

I tried it. It works fabulously!

Just look for xserver-command=X, then add -nocursor

It should look like this: xserver-command=X -nocursor

Save it and restart. Enjoy.

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.

  • Is there any indication the OP runs the PI without X? – RalfFriedl Mar 9 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.