Skip to main content
Topic: sddm on s6 (Read 3081 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

sddm on s6

How to enable sddm on s6 so it starts on system boot ?

Re: sddm on s6

Reply #1
I tried enabling it with following command and get error

# s6-rc-bundle-update add default sddm
s6-rc: fatal: unable to read /run/s6-rc/state: Broken pipe

Attached picture shows when I tried executing this command from chroot environment to enable sddm

Re: sddm on s6

Reply #2
I recommend to try different install method. As mentioned in TG you are getting more errors than just s6 and 2nd time with chroot install.  Boot from a Artix iso and use the graphical installer or install manually following guide

Re: sddm on s6

Reply #3
Ah, this actually exposes a subtle issue with the s6-rc-bundle-update that should be fixed. A couple things here.

First, s6-rc-bundle-update only works on existing bundles. If you use it on one that doesn't exist, it will give you an error message. That's normally what should have happened here. However, the call to s6-rc-bundle within the script itself failed. This is because you're in a chroot environment and the s6-rc-bundle-update script operates on live databases only. You aren't actually running a live database, you want to edit a compiled one. In that case, you need to execute a command like (note that you probably need elogind for sddm to work) within chroot.

Code: [Select]
# s6-rc-bundle -c /etc/s6/rc/compiled add default sddm elogind

Anyways, on our end, we basically just need to add the "-c" argument to everything in s6-rc-bundle-update so you can use it within a chroot environment as well.

Re: sddm on s6

Reply #4
Ah, this actually exposes a subtle issue with the s6-rc-bundle-update that should be fixed. A couple things here.

First, s6-rc-bundle-update only works on existing bundles. If you use it on one that doesn't exist, it will give you an error message. That's normally what should have happened here. However, the call to s6-rc-bundle within the script itself failed. This is because you're in a chroot environment and the s6-rc-bundle-update script operates on live databases only. You aren't actually running a live database, you want to edit a compiled one. In that case, you need to execute a command like (note that you probably need elogind for sddm to work) within chroot.

Code: [Select]
# s6-rc-bundle -c /etc/s6/rc/compiled add default sddm elogind

Anyways, on our end, we basically just need to add the "-c" argument to everything in s6-rc-bundle-update so you can use it within a chroot environment as well.

Thanks for reply ,

I tried from chroot the above command and got error for elogind becuse I had enabled previously ( though i guess it wasnt enabled correctly )

# s6-rc-bundle -c /etc/s6/rc/compiled add default elogind dhcpcd
s6-rc-bundle: fatal: identifier default already exists in database /etc/s6/rc/compiled

how to remove all three i.e sddm dhcpcd and elogind and re add them again?

Re: sddm on s6

Reply #5
You'll have to manually delete it with s6-rc-bundle -c /etc/s6/rc/compiled delete default and then you can run the s6-rc-bundle add command again.

Re: sddm on s6

Reply #6
You'll have to manually delete it with s6-rc-bundle -c /etc/s6/rc/compiled delete default and then you can run the s6-rc-bundle add command again.

Followed these commands and got things added , fired up system but did not get any display manager , startx crashes once again

here is xorg log
https://nopaste.xyz/?5198bae4cb265462#SG1aeBPfjstMJUm4L/ObwBKJWx3qcoBnWa4WrB4Eiu8=

I am wondering why is this log not present in /var/log directory , I got this log from /.local/share/xorg/ rather

 

Re: sddm on s6

Reply #7
Xorg logs are on .local since people don't run it as root anymore. That part is normal.

It looks like your user is not allowed to access /dev/dri/card0 which means no graphics. Try adding yourself to the video group and then logging out and back in?

Re: sddm on s6

Reply #8
Xorg logs are on .local since people don't run it as root anymore. That part is normal.

It looks like your user is not allowed to access /dev/dri/card0 which means no graphics. Try adding yourself to the video group and then logging out and back in?

Here is what  I did now

# usermod -a -G video saleem
usermod: group 'video' does not exist
# groupadd video
# usermod -a -G video saleem

Will reboot and test

I normally follow this command for adding user on Arch Linux

# useradd -m -g users -G adm,lp,scanner,audio,video,rfkill,optical,storage,network,power,games,wheel -s /bin/bash user

But on Artix wiki this command has been mentioned

# useradd -m user

may be this is the reason user is not added to groups



Re: sddm on s6

Reply #9
no success and im clueless now

Re: sddm on s6

Reply #10
Hmm, are you certain elogind is running properly? Try "loginctl" and see if you have a session (you should though). Is the xorg log different now than it was before?

Re: sddm on s6

Reply #11
Hmm, are you certain elogind is running properly? Try "loginctl" and see if you have a session (you should though). Is the xorg log different now than it was before?

1) I am not sure if elogind is running or not ...how to confirm it?

Here is the output to loginctl

# loginctl

Failed to create bus connection : No such file or directory


2) Latest Xorg log

https://nopaste.xyz/?97096aaf9c2defa9#JAZlaPrxzToK0fR7pzMoDpZPsljohuQntg48o5nY1JI=

3)
I cant reboot or poweroff system both as user or root once I login to either on tty2 and not even by keeping poweroff button pressed for infinite time , only by removing battery I can re use laptop ( what is causing this ? )




Re: sddm on s6

Reply #14
1) I am not sure if elogind is running or not ...how to confirm it?

Here is the output to loginctl

# loginctl

Failed to create bus connection : No such file or directory

Well now you know that elogind isn't running properly on your machine. No wonder you can't start xorg. ;)

A simple "s6-rc -u change elogind" should bring the service up. After logging out and back in, "loginctl" should show a session with your username. If it still does not, then something else is wrong. elogind-s6 depends on dbus-s6, so check to see if you have dbus running as well ("ps aux | grep dbus-daemon"). If you don't see anything there, you can try "s6-rc -u change dbus" to start it manually.


Quote
I cant reboot or poweroff system both as user or root once I login to either on tty2 and not even by keeping poweroff button pressed for infinite time , only by removing battery I can re use laptop ( what is causing this ? )

This definitely doesn't sound right. Try reinstalling s6-linux-init (it remakes the poweroff/reboot/etc. binaries) if you haven't already.