Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't enable the display-manager service
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Sun Nov 06, 2022 8:40 pm    Post subject: Can't enable the display-manager service Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3652

PostPosted: Sun Nov 06, 2022 10:09 pm    Post subject: Reply with quote

Try
Code:

 rc-update add display-manager default

_________________
:)
Back to top
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Sun Nov 06, 2022 11:04 pm    Post subject: Reply with quote

As I said, that doesn't work.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Sun Nov 06, 2022 11:34 pm    Post subject: Reply with quote

Do you get an error message ? What is the output of "rc-update" ?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3652

PostPosted: Mon Nov 07, 2022 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 12:55 am    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Mon Nov 07, 2022 10:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Mon Nov 07, 2022 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Mon Nov 07, 2022 11:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 11:26 am    Post subject: Reply with quote

I'm not using nogui. Here's my system log: https://dpaste.com/BEVGA3UPP
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Mon Nov 07, 2022 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3652

PostPosted: Mon Nov 07, 2022 11:53 am    Post subject: Reply with 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.
_________________
:)
Back to top
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 11:56 am    Post subject: Reply with quote

If you mean /var/log/messages, it's empty.
Back to top
View user's profile Send private message
sabayonino
l33t
l33t


Joined: 03 Jan 2012
Posts: 994

PostPosted: Mon Nov 07, 2022 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 12:00 pm    Post subject: Reply with quote

Quote:
I see that you missed dbus runlevel service.

dbus is in needed/wanted.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Mon Nov 07, 2022 12:03 pm    Post subject: Reply with quote

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.


???

:evil:

If your /var/log/messages is empty please repair first your rc-service for logging.
Back to top
View user's profile Send private message
sabayonino
l33t
l33t


Joined: 03 Jan 2012
Posts: 994

PostPosted: Mon Nov 07, 2022 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3217
Location: Bavaria

PostPosted: Mon Nov 07, 2022 12:18 pm    Post subject: Reply with quote

Pay08 wrote:
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.


Have you added it to runlevel ? If yes:

I dont know how you have configured it. Default configuration is to use file /var/log/messages . Maybe you have changed it.
See more here:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Tools#System_logger
https://wiki.gentoo.org/wiki/Sysklogd
https://wiki.gentoo.org/wiki/Security_Handbook/Logging
Back to top
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3652

PostPosted: Mon Nov 07, 2022 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Mon Nov 07, 2022 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum