Jack Barber Design & Technology

01947 878108 info@jackbarber.co.uk

Hide Raspberry Pi Mouse Cursor in Raspbian (Kiosk)

Hide Raspberry Pi Mouse Cursor in Raspbian (Kiosk)

I've been working on a desktop arcade machine with my work experience student Cameron for a few weeks now.

We're nearly ready to put the whole thing together, and have been working through a few little jobs today, tidying up the UX, getting fonts running locally and so on.

One of the little jobs was to hide the mouse cursor once the Pi boots (into Raspbian) - as the interface is controlled entirely via our arcade buttons within Chrome browser running in kiosk mode.

Here's how we did it:

1. Install Unclutter

Log in to your Raspberry Pi via SSH - or open terminal directly on the Pi. Then install Unclutter, like this:

sudo apt-get install unclutter

2. Edit LXDE Autostart Script

Next we need to edit the LXDE Autostart script - for us this means running:

nano ~/.config/lxsession/LXDE-pi/autostart

3. Turn the Cursor Off

Finally you need to add this line to the autostart script:

@unclutter -idle 0

Press ctrl+X and then hit Y to save your changes.

4. Reboot

Finally, reboot your Pi using:

sudo reboot


You should find that the mouse cursor has entirely disappeared.

Simple!

Tags