View previous topic :: View next topic |
Author |
Message |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Sun Nov 06, 2022 8:40 pm Post subject: Can't enable the display-manager service |
|
|
I can't add display-manager to the default runlevel. Using Code: | rc-update add display-manager default | seemingly works, but rc-status doesn't list it at all among services (rc-status -s) and gives an error saying "display-manager is the name of a real and virtual service". display-manager doesn't start, but Code: | rc-service display-manager start | works perfectly. What can I do?
Last edited by Pay08 on Sun Nov 06, 2022 11:06 pm; edited 3 times in total |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3652
|
Posted: Sun Nov 06, 2022 10:09 pm Post subject: |
|
|
Try
Code: |
rc-update add display-manager default
|
_________________
 |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Sun Nov 06, 2022 11:04 pm Post subject: |
|
|
As I said, that doesn't work. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
Posted: Sun Nov 06, 2022 11:34 pm Post subject: |
|
|
Do you get an error message ? What is the output of "rc-update" ? |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3652
|
Posted: Mon Nov 07, 2022 12:04 am Post subject: |
|
|
Quote: |
As I said, that doesn't work.
|
You didnt.
You said
Quote: |
rc-update add display-manager
|
"doesnt work".
Plz dont edit your original initial posting.
At least have the courtesy to indicate an edit.
Plz post
Code: |
ls /etc/init.d
rc-update
emerge -pv display-manager-init
|
_________________
 |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 12:55 am Post subject: |
|
|
Quote: | What is the output of "rc-update"? |
Code: |
NetworkManager | default
binfmt | boot
bootmisc | boot
cgroups | sysinit
chronyd | default
cronie | default
devfs | sysinit
dhcpcd | default
display-manager | default
dmesg | sysinit
elogind | boot
emacs.gabor | default
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
kmod-static-nodes | sysinit
local | default nonetwork
localmount | boot
loopback | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.enp3s0 | default
netmount | default
nftables | default
procfs | boot
root | boot
save-keymaps | boot
save-termencoding | boot
savecache | shutdown
seedrng | boot
swap | boot
sysctl | boot
sysfs | sysinit
sysklogd | default
systemd-tmpfiles-setup | boot
systemd-tmpfiles-setup-dev | sysinit
termencoding | boot
udev | sysinit
udev-trigger | sysinit
|
Quote: | Do you get an error message? |
The only error I get is the one I got through rc-status in the original posting, but I forgot how I got it.
Quote: | You said
rc-update add display-manager "doesnt work". |
Yes, that was a typo. I ran "rc-update add display-manager default". Sorry.
Code: | $ ls /etc/init.d/
acpilight cgroups devfs dmeventd fuse keymaps loopback mit-krb5kpropd netmount pciparm root save-termencoding swclock termencoding
agetty chronyd device-mapper elogind git-daemon killprocs lvm modemmanager net-online postgresql-14 rsyncd seedrng syncthing twistd
avahi-daemon consolefont dhcpcd emacs gpm kmod-static-nodes lvm-monitoring modules NetworkManager procfs runsvdir smartd sysctl udev
avahi-dnsconfd cronie display-manager emacs.gabor hostname libreoffice lvmpolld mount-ro nftables pwcheck s6-svscan sshd sysfs udev-settle
binfmt cups-browsed display-manager-setup fancontrol hwclock lm_sensors ly mtab nscd pydoc-3.10 saslauthd stdiscosrv sysklogd udev-trigger
bootlogd cupsd dmcrypt fsck ip6tables local mit-krb5kadmind net.enp3s0 numlock pydoc-3.8 savecache strelaysrv systemd-tmpfiles-setup wpa_supplicant
bootmisc dbus dmesg functions.sh iptables localmount mit-krb5kdc net.lo osclock pydoc-3.9 save-keymaps swap systemd-tmpfiles-setup-dev xdm
|
Code: | $ emerge -pv display-manager-init
[ebuild R ] gui-libs/display-manager-init-1.0-r4
|
|
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
Posted: Mon Nov 07, 2022 10:55 am Post subject: |
|
|
Pay08 wrote: | Quote: | What is the output of "rc-update"? |
Code: | ...
display-manager | default |
|
This is looking good. Now, what happens if you boot ? What service will be started ?
Maybe look into your /etc/conf.d/display-manager. I start SDDM - here is mine:
Code: | # more display-manager
# We always try and start the DM on a static VT. The various DMs normally
# default to using VT7. If you wish to use the display-manager init
# script, then you should ensure that the VT checked is the same VT your
# DM wants to use.
# We do this check to ensure that you haven't accidentally configured
# something to run on the VT in your /etc/inittab file so that
# you don't get a dead keyboard.
CHECKVT=7
# What display manager do you use ?
# [ xdm | greetd | gdm | sddm | gpe | lightdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="sddm" |
Maybe this topic is a misunderstanding. Some people may think "rc-update add" will add a service to a runlevel AND start this service - which is wrong; it will ONLY add a service to a runlevel - you have to reboot to see the impact. |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 11:00 am Post subject: |
|
|
It doesn't start at all at boot. The only way I can start is manually, through rc-service. My /etc/conf.d/display-manager is the exact same as yours. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
Posted: Mon Nov 07, 2022 11:06 am Post subject: |
|
|
Pay08 wrote: | It doesn't start at all at boot. |
What happens at boot time ? Do you get error message(-s) ? Do you land on a terminal ?
Do you see the starting of display-manager in your first terminal ? If it is correct it says:
"Setting up sddm ..."
Maybe it is a problem with sddm !? |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 11:11 am Post subject: |
|
|
I don't see "Setting up sddm..." at all. I get no error messages and I do indeed land in a tty. I'm using sddm-0.18.1-r6. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
Posted: Mon Nov 07, 2022 11:21 am Post subject: |
|
|
Do you use the boot parameter "nogui" ? If no, we would need your systemlog. Please use wgetpaste for the output of your "dmesg". |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
Posted: Mon Nov 07, 2022 11:46 am Post subject: |
|
|
Your syslog is looking good ! Now I would ask for your message log. Just copy all messages after: "[...] localhost elogind-daemon[1561]: New seat seat0." into your post here. |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3652
|
Posted: Mon Nov 07, 2022 11:53 am Post subject: |
|
|
Ok if you manually run
Code: |
sudo rc-service display-manager restart
|
does sddm start?
Your problem might not be about display-manager at all but kernel related. _________________
 |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 11:56 am Post subject: |
|
|
If you mean /var/log/messages, it's empty. |
|
Back to top |
|
 |
sabayonino l33t


Joined: 03 Jan 2012 Posts: 994
|
Posted: Mon Nov 07, 2022 11:58 am Post subject: |
|
|
I see that you missed dbus runlevel service .
Code: | equery d dbus
[...]
sys-auth/elogind-246.10-r2 (sys-apps/dbus)
[...]
|
_________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Last edited by sabayonino on Mon Nov 07, 2022 12:04 pm; edited 3 times in total |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 11:58 am Post subject: |
|
|
Quote: | Ok if you manually run
Code: | sudo rc-service display-manager restart |
does sddm start?
Your problem might not be about display-manager at all but kernel related. |
That throws me back into a tty. |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 12:00 pm Post subject: |
|
|
Quote: | I see that you missed dbus runlevel service. |
dbus is in needed/wanted. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
Posted: Mon Nov 07, 2022 12:03 pm Post subject: |
|
|
Pay08 wrote: | [...], but Code: | rc-service display-manager start | works perfectly. What can I do? |
<==>
Pay08 wrote: | Quote: | Ok if you manually run
Code: | sudo rc-service display-manager restart |
does sddm start?
Your problem might not be about display-manager at all but kernel related. |
That throws me back into a tty. |
???
If your /var/log/messages is empty please repair first your rc-service for logging. |
|
Back to top |
|
 |
sabayonino l33t


Joined: 03 Jan 2012 Posts: 994
|
Posted: Mon Nov 07, 2022 12:05 pm Post subject: |
|
|
Pay08 wrote: | Quote: | I see that you missed dbus runlevel service. |
dbus is in needed/wanted. |
Code: | equery d dbus
[...]
sys-auth/elogind-246.10-r2 (sys-apps/dbus)
[...] |
and many other packages need dbus service _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 12:06 pm Post subject: |
|
|
Quote: | If your /var/log/messages is empty please repair first your rc-service for logging. |
Do you mean /var/log/rc.log? My logging should be set up fine through sysklogd. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 3217 Location: Bavaria
|
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 12:20 pm Post subject: |
|
|
I disabled log rotation, it caused issues for some reason. Here's my log after a fresh boot: https://dpaste.com/83LZ4QSNZ |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3652
|
Posted: Mon Nov 07, 2022 12:22 pm Post subject: |
|
|
So you CANT start an X session.
What DE are you trying to start?
Plz post your emerge --info
Then possibly you need to check your kernel also. _________________
 |
|
Back to top |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Mon Nov 07, 2022 12:22 pm Post subject: |
|
|
emerge --info: http://dpaste.com/DL39JX93P
I can start X. In fact, I'm writing this from KDE.
Last edited by Pay08 on Mon Nov 07, 2022 12:27 pm; edited 1 time in total |
|
Back to top |
|
 |
|