Disable Mouse Cursor in Touch Screen embedded Linux with X11 - Sarath

Sarath

  • Embedded
  • Linux
  • Android
  • OpenSource

Post Top Ad

Monday 7 August 2017

Disable Mouse Cursor in Touch Screen embedded Linux with X11



Disable Mouse Cursor in Touch Screen devices


When working with touch-screen interfaces or embedded systems you often don't want or need the mouse cursor.
 Most of the information I found about this specific topic described people either trying to use `xsetroot` or loading a cursor theme with all the cursors set to transparent. The following is, I believe, the correct solution.

Simply pass the nocursor option to the X server when you start it. There are a million ways to start X-Windows. 
I will list four variations. When using `startx` or `xinitrc` you can put these options in .xinitrc.

For my case i did ,
Edit : /etc/X11/Xserver

#!/bin/sh#XSERVER=/usr/bin/Xorg. /etc/profileARGS=" -br -pn  -nocursor"
DISPLAY=':0'exec xinit /etc/X11/Xsession -- $XSERVER $DISPLAY $ARGS $*

save the file and restart you machine.


Xorg -nocursor
X -nocursor
xinit -- -nocursor
startx -- -nocursor

2 comments:

  1. This is great post. Thanks for the share. Also, check this out if you are looking for professional website or logo design services:


    Buy Logo

    ReplyDelete
  2. I really like your blog!
    It's very helpful for me and I am so happy to see your blog.
    Thank you for sharing it with us.
    If you are looking Law essays help Then Visit our site we are giving you 5O& discount off.

    ReplyDelete