Artix Linux Forum

Artix Linux => System => Topic started by: rick.mccombs on 30 September 2017, 04:21:39

Title: How do I get sddm to start on boot?
Post by: rick.mccombs on 30 September 2017, 04:21:39
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.
Title: Re: How do I get sddm to start on boot?
Post by: physkets on 30 September 2017, 07:39:36
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
Title: Re: How do I get sddm to start on boot?
Post by: robin0800 on 30 September 2017, 14:10:18
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.
Title: Re: How do I get sddm to start on boot?
Post by: physkets on 30 September 2017, 19:01:34
Ooops, yes, it is add and not enable. Sorry, bad habits from a cruel world  :P . I will edit the previous post.
Title: Re: How do I get sddm to start on boot?
Post by: rick.mccombs on 01 October 2017, 06:08:52
[Thanks for your help.
Title: Re: How do I get sddm to start on boot?
Post by: fungalnet on 22 June 2018, 21:51:12
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


Title: Re: How do I get sddm to start on boot?
Post by: konimex on 23 June 2018, 10:03:25
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.
Title: Re: How do I get sddm to start on boot?
Post by: fungalnet on 23 June 2018, 12:54:06
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.
Title: Re: How do I get sddm to start on boot?
Post by: artoo on 23 June 2018, 13:43:49
default conf is located in

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