OpenBox Hides Cursor on Raspberry Pi Autostart GUI Application
If you're using Raspberry Pi and you've set up an autostart GUI application with OpenBox, you might have encountered an issue where the cursor is visible in the middle of the screen, even though the application is running. This article will provide you with a detailed explanation of the issue and a step-by-step guide to resolving it.
Understanding the Issue
The issue arises because OpenBox does not hide the cursor by default when launching an application at startup. The cursor remains visible, even if the application is running in full-screen mode, causing a distraction and taking away from the overall user experience.
Resolving the Issue
To resolve this issue, you need to modify the autostart configuration file to include a command that hides the cursor. Here's how to do it:
- Open the autostart configuration file. This file is located at
/home/pi/.config/lxsession/LXDE-pi/autostart. - Add the following line to the end of the file:
xset s noblank s off s reset && xset s noblank s off s reset && xset -dpms && unclutter &This command disables the screensaver, turns off DPMS (Energy Star) features, and hides the cursor using the
uncluttercommand. - Save the changes and close the file.
- Restart the Raspberry Pi for the changes to take effect.
Verifying the Fix
After restarting the Raspberry Pi, the cursor should no longer be visible in the middle of the screen. If the cursor is still visible, double-check the autostart configuration file to ensure that the command was added correctly.
By following the steps outlined in this article, you should be able to resolve the issue where the cursor is visible in the middle of the screen when launching an application at startup with OpenBox on Raspberry Pi. This simple modification will improve the overall user experience and provide a cleaner, more professional look for your GUI application.