Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the script on new Pi5 #12

Open
blacknell opened this issue Nov 27, 2024 · 1 comment
Open

Problems with the script on new Pi5 #12

blacknell opened this issue Nov 27, 2024 · 1 comment

Comments

@blacknell
Copy link

I've got Pi5 with the new display and I'm having the following problems and would appreciate some pointers.

unclutter -idle 0.1 -root yields unclutter: could not open display

Starting the service yields

Nov 27 15:44:14 raspberrypi systemd[1]: Started kiosk.service - Kiosk.
Nov 27 15:44:22 raspberrypi bash[2699]: Hiding the mouse cursor...
Nov 27 15:44:22 raspberrypi bash[2699]: Starting Chromium...
Nov 27 15:44:22 raspberrypi bash[2701]: unclutter: could not open display
Nov 27 15:44:22 raspberrypi bash[2702]: [2702:2702:1127/154422.895170:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY
Nov 27 15:44:22 raspberrypi bash[2702]: [2702:2702:1127/154422.895221:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
Nov 27 15:44:22 raspberrypi systemd[1]: kiosk.service: Main process exited, code=exited, status=1/FAILURE
Nov 27 15:44:22 raspberrypi systemd[1]: kiosk.service: Failed with result 'exit-code'.

I'm wondering if this has anything to do with recent wayland enhancements to the latest Raspian images

@BeingTomGreen
Copy link

BeingTomGreen commented Jan 16, 2025

@blacknell I'm currently running this on a Pi 5 without many issues.

However while trying to clear up some journal spam I tweaked the DISPLAY env variable to debug something and ran into the exact same error. Check the value in your kiosk.service, it should almost certainly be:

Environment="DISPLAY=:0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants