# System boots into black screen with auto login for user dietpi

**URL:** <https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858>\
**Category:** Troubleshooting\
**Created:** [10 January 2026 22:55 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858 "2026-01-10T22:55:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Motte](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@Motte](https://dietpi.com/forum/u/Motte)\
**Post date:** [10 January 2026 22:55 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/1 "2026-01-10T22:55:20Z")

</div>

#### Required Information

- DietPi version | `9.20`
- Distro version | `trixie`
- Kernel version | `6.12.58`
- Architecture | `arm64`
- SBC model | `Pine A64`
- Power supply used | RPi 5V 1A
- SD card used | Samsung Evo

#### Additional Information (if applicable)

- Software title | X11 & Xfce

#### Steps to reproduce

1. Install X11 and Xfce
2. Set auto login to DE for user dietpi
3. Reboot

#### Expected behaviour

- System boots into Xfce

#### Actual behaviour

- System only shows a black screen
- When auto login is set to DE for user root, the screen shows Xfce

Since booting into Xfce using root works flawlessly, I suspect my dietpi user isn’t allowed to access the xserver. I tried to allow any user to use xinit ([stackexchange](https://unix.stackexchange.com/questions/478742/error-when-trying-to-use-xorg-only-console-users-are-allowed-to-run-the-x-serve/529945#529945)) but there was no Xwrapper.config. I created that file and put in

`allowed_users = anybody`

but that didn’t work.

Using CTRL + ALT + F1 i see:

`failed to open /dev/dri/renderD128: Permission denied`  
`glx: failed to create dri3 screen`  
`failed to load driver: sun41-drm`  
`(II) AIGLX: Suspending AIGLX clients for VT Switch`  
`(II) AIGLX: Suspending AIGLX clients for VT Switch`  
`(II) AIGLX: Suspending AIGLX clients for VT Switch`

Can somebody please help me? Is there any additional info I can provide to fix this?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 January 2026 23:08 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/2 "2026-01-10T23:08:51Z")

</div>

Did you tried adding user `dietpi` to group `video`?

---

<div class="post-metadata">

**Author:** ![Motte](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@Motte](https://dietpi.com/forum/u/Motte)\
**Post date:** [11 January 2026 20:56 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/3 "2026-01-11T20:56:57Z")

</div>

Thanks for the quick answer. There was only `octoprint` in the group `video`. I added user `dietpi` and rebooted. Sadly, the screen still turns black.

In virtual console 1, there are the same errors like before:

`failed to open /dev/dri/renderD128: Permission denied`  
`glx: failed to create dri3 screen`  
`failed to load driver: sun41-drm`  
`(II) AIGLX: Suspending AIGLX clients for VT Switch`

(The last one is now displayed only once.)  
Edit: `(II) AIGLX: Suspending AIGLX clients for VT Switch `is shown evertime i switch to tty1.

Virtual console 2 is black and in VT3 I get an error after logging in with user `dietpi:`

```auto
(EE) 
Fatal server error:
(EE) Server is alread active for display 0
        If this server is no longer running, remove /tmp/.X0-lock and start again

(EE)
(EE)
Please consult the The X.Org Foundation support at http://wiki.x.org for help.
(EE)
X connection to :0 broken (explicit kill or server shutdown).

```

I guess this is because another session uses X already.

Edit #2: I switched to `Light DM login mask` instead of `auto login`. This also results in a black screen. `Auto login` for user `root` still works.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [11 January 2026 22:47 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/4 "2026-01-11T22:47:27Z")

</div>

> [@Motte](#):
>
> failed to open /dev/dri/renderD128: Permission denied

can you check owner and group

```auto
ls -la /dev/dri/renderD128

```

---

<div class="post-metadata">

**Author:** ![Motte](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@Motte](https://dietpi.com/forum/u/Motte)\
**Post date:** [12 January 2026 12:32 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/5 "2026-01-12T12:32:56Z")

</div>

Sure:

`dietpi@OctoPine:~$ ls -la /dev/dri/renderD128`  
`crw-rw---- 1 root render 226, 128 Jan 12 13:10 /dev/dri/renderD128`

I tried `sudo chmod 777 renderD128` and did `ls -la renderD128` again (switched to the directory before that of course). Output:  
`crwxrwxrwx 1 root render 226, 128 Jan 12 13:12 /dev/dri/renderD128`

But after reboot the permissions were reverted:

`dietpi@OctoPine:~$ ls -la /dev/dri/renderD128`  
`crw-rw---- 1 root render 226, 128 Jan 12 13:17 /dev/dri/renderD128`

Since the owner’s group is `render`, I added user `dietpi` to that group. Then I switched `desktop auto login` to user `dietpi` and rebootet. Now it seems that everything works. I can’t see Xfce because Octodash directly shows up (it’s configured for auto boot) but that is the intended behavior so I guess I’m fine.

Thanks for your quick help! I’ll report back IF something is still off.

Edit: I marked this post as solution. Is that alright or is marking one’s own post as solution regarded arrogant?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [12 January 2026 13:46 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/6 "2026-01-12T13:46:38Z")

</div>

All good. Yes adding user to render group was the solution. Sometimes video group is enough. Sometimes not 😄

---

<div class="post-metadata">

**Author:** ![Motte](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@Motte](https://dietpi.com/forum/u/Motte)\
**Post date:** [13 January 2026 09:25 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/7 "2026-01-13T09:25:00Z")

</div>

Which depends on where the actual issue is, right? So i’ts actually good when solving an issue to look at file permissions. Which makes sense in my mind because in linux, everything is a file.

Thanks again for your guidance!

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [13 April 2026 09:25 UTC](https://dietpi.com/forum/t/system-boots-into-black-screen-with-auto-login-for-user-dietpi/24858/8 "2026-04-13T09:25:40Z")

</div>

Closed on 13 April 2026 09:25 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
