-
Notifications
You must be signed in to change notification settings - Fork 243
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
Failed to load lightdm at boot sporadically #388
Comments
|
Log from lightdm I am Using a Waveshare 7inch DSI Display. |
This seems like the error:
Someone here says its worth looking in journalctl. https://bbs.archlinux.org/viewtopic.php?pid=1453505#p1453505 Its unlikely that this is an OS issue, because its being used by thousands of people. Could it be the SD card is corrupted? |
OliverBissig, do you have any solution? |
I'm having the same issue. I'm using FullPageOS to display a web dashboard at a fire station. The system will run for up to a week but Chromium crashes leaving a mouse pointer on a black desktop. When I connect over SSH I can see Chromium is not running. When I try to take a screen shot using scrot I get
LightDM is running
There are no Chromium processes running but I can use VNC to connect. Again, it's just a mouse pointer on a black screen. I am running this on two Pi 3+'s with 2021-04-14_2021-03-04-fullpageos-buster-armhf-lite-0.12.0 and they behave the same. I'm thinking of writing a script to check for running Chromium processes and, when none found, restarting the Pi. |
any news of this issue? |
AFAIK I can't reproduce it and no one has attached the output from journalctl which I asked for here: #388 (comment) |
This problem is very reproducible. Multiple SD cards with 2022-03-17_2022-01-28-fullpageos-bullseye-armhf-lite-0.13.0 and RPi4 4GB Rev 1.5. This combination gives me 25% of hard boots resulting in the black screen and lightdm.log "Error connecting to XServer" Strangely the same SD cards used in a RPi3B+ never(20 hard boots so far) makes a black screen with lightdm.log "Error connecting to XServer" A soft boot (sudo reboot) during the black screen situation is a slow operation. Over 60 seconds before the boot messages start scrolling up the screen. Here are the logs. Jorunalctl is filtered starting at boot date and time. dmesg-black-desktop.txt |
I have made a little workaround to solve this problem. I am checking the error log of lightdm at startup. if the desktop cannot start, it tries again:
Add Execution Rights to script: Edit /etc/rc.local by adding: |
I added some logging (for Display OK and Display not OK) to the script from Oliver and tested manually. Logging works fine. I added the sleep 15... line to the bottom of rc.local but the script never executes. No idea why. |
rc.local is thanks to systemd hobbled in bullseye. Enabling here https://blog.wijman.net/enable-rc-local-in-debian-bullseye/ the script above executes but the screen still stays black. I think my quick and dirty solution will be just put a reboot in the script EDIT: rc.local has an error --dport option does not exist and the rest of the script won't execute, so comment it out
|
You can add it to a systemd service similar to how vnc is started: |
Hey guys, have you find out why the XServer fails in start? This doesn't seems to happen all the time. |
This is happening to me as well with 2023-05-03-fullpageos-bullseye-armhf-lite-0.13.0. As with prawnhead above, I can VNC in but only have a black screen. At first I thought it was happening once I changed the password from raspberry to something else, but it seems to happen even with a fresh copy. Here is what I get when attempting to run start_gui before and after: during a good start (chromium showing on screen):
during a bad start (no picture):
I've also attached lightdm logs for both situations, successful and unsuccessful. |
@OmgItsBkid might be a different issue. It sounda like;
|
I believe this is the same issue. I do have DISPLAY set to DISPLAY=:0 before running those commands, it just was not included in my comment. However, those were just tests after the main issue occurs, and still doesn't explain why it randomly fails to start on boot and I get what you see in the lightdm logs. |
Are there any updates on this issue or any new workarounds? |
@DFoxinator Perhaps adding some loop in the |
Sometimes fullpageos does not boot correctly. About 1 of 10 times after the splash screen all gets black.
I am able to connect to the Pi over SSH. Over SSH it is possible to restart lightdm again: sudo service lightdm restart
One possible solution by changing logind-check-graphical=true in /etc/lightdm/lightdm.conf did not work.
Version of FullPageOS?
2021-03-04-fullpageos-buster-armhf-lite-0.12.0
The text was updated successfully, but these errors were encountered: