Skip to main content
Topic: How do I get sddm to start on boot? (Read 9606 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How do I get sddm to start on boot?

I can run X with startx and I can start sddm typing it in as root, but I haven't figured out how to get it to start on boot.

Re: How do I get sddm to start on boot?

Reply #1
First, make sure you have the accountsservice and displaymanager-openrc packages installed. Then,e dit the relevant line in the file: "/etc/conf.d/xdm" to
Code: [Select]
DISPLAYMANAGER="sddm"

If you want sddm to start automatically everytime you boot, then:
Code: [Select]
# rc-update add xdm

And finally, to start the DM:
Code: [Select]
# rc-service xdm start

Re: How do I get sddm to start on boot?

Reply #2
First, make sure you have the accountsservice and displaymanager-openrc packages installed. Then,e dit the relevant line in the file: "/etc/conf.d/xdm" to
Code: [Select]
DISPLAYMANAGER="sddm"

If you want sddm to start automatically everytime you boot, then:
Code: [Select]
# rc-update enable xdm

And finally, to start the DM:
Code: [Select]
# rc-service xdm start
sudo rc-update add xdm default and sudo openrc
I think is better as it echos back if service was able to be started, it will only try to start the recently added, if you add many  services this at the end will start them all and works well in a script.

Re: How do I get sddm to start on boot?

Reply #3
Ooops, yes, it is add and not enable. Sorry, bad habits from a cruel world  :P . I will edit the previous post.

Re: How do I get sddm to start on boot?

Reply #4
[Thanks for your help.

Re: How do I get sddm to start on boot?

Reply #5
I don't want to open up another thread for this as it is very related.
1  If you run runit would
Code: [Select]
ln -s /etc/runit/sv/sddm /run/runit/service/sddm

be all that is different from those instructions?

2  Where does /etc/sddm.conf come from?  In a VB installation I used sddm sddm-artix-theme and sddm-runit but /etc/sddm.conf doesn't exist.  I would expect it to come with sddm itself but it didn't.  This is the first time I encountered this.

3  Looking at sddm.conf in my main installation the commands for shutdown/reboot use loginctl which don't exist in artix, right?
Not a big problem but at some point some of this should be revised to match openrc and runit



Re: How do I get sddm to start on boot?

Reply #6
I don't want to open up another thread for this as it is very related.
1  If you run runit would
Code: [Select]
ln -s /etc/runit/sv/sddm /run/runit/service/sddm

be all that is different from those instructions?
No. Assuming you meant the runit ln command and openrc rc-service enable command. Both enable the service, so the service would start immediately.

2  Where does /etc/sddm.conf come from?  In a VB installation I used sddm sddm-artix-theme and sddm-runit but /etc/sddm.conf doesn't exist.  I would expect it to come with sddm itself but it didn't.  This is the first time I encountered this.
It's the old configuration file kept for compatibility as the new configuration file are typically placed in /etc/sddm.conf.d/<file>.conf. Probably autogenerated. See man 5 sddm.conf for more information.

3  Looking at sddm.conf in my main installation the commands for shutdown/reboot use loginctl which don't exist in artix, right?
Not a big problem but at some point some of this should be revised to match openrc and runit
loginctl is part of elogind, which should exist in both openrc and runit systems.
now only the dinit guy in artix

Re: How do I get sddm to start on boot?

Reply #7
Got you.  Thanks.
I still didn't find anything in /etc/sdd*
Maybe  I will remove and reinstall, something didn't work right with sddm.
One of the problems I've had with sddm is that its conf file doesn't allow root, or if it is modified with minimum and maximum ids then all those pseudo-nologi-users appear on the list.  Then you have to block them from being listed.  When I use an AUR theme for sddm which includes a different conf file the problem is solved, only real users and root appear.

 

Re: How do I get sddm to start on boot?

Reply #8
default conf is located in

Code: [Select]
/usr/lib/sddm/sddm.conf.d/