

If they are commented out, remove the # on the front of the line, then run sudo apt-get update to update the repositories, then rerun the sudo apt-get install unclutter. If it is not found for install, edit your /etc/apt/sources.list file and make sure that the following lines are not commented # out: deb trusty universe To have it start now without the system restarting, type in the following: nohup unclutter -idle 2 & This also auto-starts when the system boots up. Install it by typing in the following at a terminal window: sudo apt-get install unclutterĪfter it is installed, you can change the timeout to 2 seconds in the following file: /etc/default/unclutterĪnd change the following line: EXTRA_OPTS="-idle 1 -root" There is an application called unclutter that will do it. Is it possible doing such a thing with X display? I guess I need to achieve this by tinkering with the X display instead of relying on my code since the mouse isn't detected when the kiosk is freshly booted.

The solution has to work immediately after booting the X display, so when I boot the X display the mouse is at the middle of the screen and even if I don't touch it at boot it will disappear after 2 seconds of being idle. When the user attempts to move the mouse, show it once again. What I want to do is that if the mouse hasn't been moved for 2 seconds, hide it. Since the problem isn't related to my code as it seems to execute just fine. It seems like the browser doesn't detect the mouse until I make even a minor movement with it which results in the mouse being shown at the middle of the screen. It seems like when I boot up the kiosk the code executes as expected and I can see the overlay inserted but since the mouse was just "loaded" it won't disappear until I make even a minor movement with it. I simply leverage the cursor:none on an injected invisible overlay and remove that overlay when needed. I have a kiosk application running on Ubuntu Server 14.04.3 with Google Chrome and X display (xorg and xsession).Ĭurrently I have some script to hide the mouse after 2 seconds of being idle and when the user attempts to move the mouse it appears.
