Skip to content

Start_gui is not being called while booting #264

Open

Description

@JPZV

On a Kiosk OS that I'm making I just realize that start_gui is not being called. First I thought it was matchbox-window-manager crashing on Trixie, but after all it happened the same in bookworm, then I added a simple sudo touch /etc/hi at the beginning of the start_gui and after reboot no /etc/hi file was found, so, for me, somehow start_gui is not being called (a year ago I used CustomPiOS for the same Kiosk OS and it worked fine, now I just changed some lines of code and it stopped working).

The dmseg doesn't show any error message, but lightdm.service shows the following message:

lightdm.service - Light Display Manager
     Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-11-13 11:32:37 -03; 19min ago
       Docs: man:lightdm(1)
   Main PID: 528 (lightdm)
      Tasks: 6 (limit: 370)
        CPU: 3.807s
     CGroup: /system.slice/lightdm.service
             ├─528 /usr/sbin/lightdm
             ├─679 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
             └─734 lightdm --session-child 14 22

Nov 13 11:32:37 raspberrypi systemd[1]: Starting lightdm.service - Light Display Manager...
Nov 13 11:32:37 raspberrypi lightdm[528]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Nov 13 11:32:37 raspberrypi systemd[1]: Started lightdm.service - Light Display Manager.
Nov 13 11:32:42 raspberrypi lightdm[629]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Nov 13 11:32:42 raspberrypi lightdm[629]: pam_unix(lightdm-autologin:session): session opened for user pi(uid=1000) by (uid=0)
Nov 13 11:32:45 raspberrypi lightdm[684]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Nov 13 11:32:45 raspberrypi lightdm[684]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=105) by (uid=0)

(Those errors are in yellow so it's seems the service trait them as warning rather than errors)

I've attached both the start_chroot_script (I had to upload it as .txt because of GitHub limitations) and the build.log

build.log

start_chroot_script

Edit: By the way, I'm using Bookworm as CustomPiOS has no support for Trixie yet (On Trixie I had a black screen and on Bookworm I have a terminal login prompt. On both no GUI whatsoever)

Activity

  1. JPZV commented on Nov 14, 2025

    @JPZV
    Author

    Workaround for Bookworm: I had to set the autologin-user-timeout to 5 seconds (maybe a lower value as 2s would also work), so I had to add this to my end_chroot_script

    #Fix desktop loading
    sed -i 's/#autologin-user-timeout=.*/autologin-user-timeout=5/g' /etc/lightdm/lightdm.conf

    The only caveat is that the login screen (asking for the password) will appear for a moment (something near to a second or two, even if the timeout is set to 5)

  2. guysoft commented on Nov 18, 2025

    @guysoft
    Owner

    Workaround for Bookworm: I had to set the autologin-user-timeout to 5 seconds (maybe a lower value as 2s would also work), so I had to add this to my end_chroot_script

    #Fix desktop loading
    sed -i 's/#autologin-user-timeout=.*/autologin-user-timeout=5/g' /etc/lightdm/lightdm.conf

    Huh strange for it to be a timing issue. will have to look in to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions