RetroFed Forum
Your home away from modern life.
I can't get rootless xorg to work
Post Reply
AuthorMessage
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
(edited) Quote

Nvidia, voidlinux, sddm.

It doesn't get past plymouth (I can still get to the console with ctrl alt functionthing ofc)

I've tried setting the nvidia-drm.modeset=1 (i did xbps-reconfigure -fa after that) in console thing in /etc/default/grub. I've enabled elogind as a service. I obviously did

/etc/sddm.conf.d/rootless-x11.conf
[General]
DisplayServer=x11-user

sddm doesn't work after that until i change x11-user for x11.
I also did

/etc/X11/Xwrapper.config
needs_root_rights = no
allowed_users=anybody

But that one doesn't really seem to change much. I also removed the execs from some part of the xinit ig.

11   Original
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
#2 · (edited) Quote Reply

sddm just says it failrd to change owner of the socket if i do sddm in the console.

2
MyNameIsRichard lemmy.ml MyNameIsRichard@lemmy.ml
Joined: 2023-06-07
#3 · Quote Reply

needs_root_roghts = no

Is that correct?

9
A_norny_mousse piefed.social A_norny_mousse@piefed.social
Joined: 2026-09-27
#4 · Quote Reply

I'm feel you're jumping right into the problem from some tutorial or not-so-common knowledge. We do not have that context.

Is "x11-user" defined anywhere? sddm must know what to do with that setting.

2
MonkderVierte lemmy.zip MonkderVierte@lemmy.zip
Joined: 2025-05-30
#5 · Quote Reply

Shouldn't you replace "x11-user" with your username?

If you still can't get it to work, take a look here and try the startx comand on a tty first (a display-mamager is yet another layer of complexity and potential blockers). If you get permission errors, try adding your user to the video group.

If you want to do it manually (without some limitations of startx), take a look at sx.

2
DetachablePianist lemmy.ml DetachablePianist@lemmy.ml
Joined: 2023-06-13
#6 · Quote Reply

no idea if relevant, but isn't 'needs_root_roghts' a typo? not 'rights' ?

1
DetachablePianist lemmy.ml DetachablePianist@lemmy.ml
Joined: 2023-06-13
#7 · Quote Reply

needs_root_roghts = no Is that correct?

aka, is it RIGHT ?

3
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
#8 · Quote Reply

no idea if relevant, but isn't 'needs_root_roghts' a typo? not 'rights' ?

Oh sorry, I transcribed it from my phone it doesn't actually have that one typo :p

1
DetachablePianist lemmy.ml DetachablePianist@lemmy.ml
Joined: 2023-06-13
#9 · Quote Reply

Oh sorry, I transcribed it from my phone it doesn't actually have that one typo :p

oh well. it seemed too ez a fix, but still had to point it out

3
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
#10 · (edited) Quote Reply

I'm feel you're jumping right into the problem from some tutorial or not-so-common knowledge. We do not have that context. Is "x11-user" defined anywhere? sddm must know what to do with that setting.

Eh, I mean I did look at some tutorial but also some forums and at the archwiki for xorg, Idk if I looked at the one for sddm but it doesn't say anything different from what I saw, I kinda looked into the gentoo wiki for rootless xorg too or whatever but that didn't help much.

I am not expecting you to 100% know everything and help it's like well maybe someone might know what's wrong. idk.

1
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
#11 · Quote Reply

oh well. it seemed too ez a fix, but still had to point it out

Faie enough.

2
eldavi lemmy.ml eldavi@lemmy.ml
Joined: 2023-07-18
#12 · Quote Reply

sddm just says it failrd to change owner of the socket if i do sddm in the console.

doesn't sddm need to run as root? i thought that all managers did.

2
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
#13 · Quote Reply

Shouldn't you replace "x11-user" with your username? If you still can't get it to work, take a look here and try the startx comand on a tty first (a display-mamager is yet another layer of complexity and potential blockers). If you get permission errors, try adding your user to the video group. If you want to do it manually (without some limitations of startx), take a look at sx.

No apparently you don't need to replace it, if you do it just starts it as root. I can start xfce4 with startxfce4 as user but i can't start sddm as user from console, only as root. I did try changing it to x11-(username) and just (username) it was the same as just doing x11 or not having the file, although I could also have done something wrong there.

At this point just changing the dm might be easier tbh. Although idk if that woulf actually work. I believe it starts x with the sddm user and not your actual user because, well, you're not logged in

2
TrollAccount69 lemmy.ml TrollAccount69@lemmy.ml
Joined: 2026-08-10
#14 · Quote Reply

sddm just says it failrd to change owner of the socket if i do sddm in the console.

Hey, use namei with some flags to find out if the directory lets the socket be created by that user and if there’s a directory in the tree that keeps that user from traversing it.

1
UninterestingVoid reddthat.com UninterestingVoid@reddthat.com
Joined: 2026-07-17
#15 · Quote Reply

doesn't sddm need to run as root? i thought that all managers did.

sorry for answering 4 days later. Idk, it says sddm supports rootless xorg, also gdm supports it by defualt sometimes ig? (lightsm doesn't support rootless xorg)

It says that when I try to start it from the console with the file that sets the thing to x11-user otherwise o don't remember what it says probably just that I need root to run it.

1
Post Reply
Back to top