Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sddm/DM needs to restart to work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1286
Location: sweden

PostPosted: Fri Sep 15, 2023 4:02 pm    Post subject: sddm/DM needs to restart to work Reply with quote

Hi all

lately i have been having issues with sddm on my system :

Code:

00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5300 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:04.0 Signal processing controller: Intel Corporation Broadwell-U Processor Thermal Subsystem (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)


when i boot i will get a black screen with a _ in the upper left corner and a moving cursor . to get in to my DE/wayland i need to ctrl+alt+f11 to get to console , log in as root and restart the display-manager. is there a way to solve it ?

best regards hedmo
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3154

PostPosted: Sat Sep 16, 2023 2:10 pm    Post subject: Reply with quote

sddm/wayland or sddm/X?

If any plz show /etc/inittab & any file in /etc/sddm.conf.d/ .

tips might help.

Thks 4 ur attention, interest & support.
_________________
Unique LP assert induced thought agreed upon here: Poor testing hurts everyone... climate diversity included. ;)
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1286
Location: sweden

PostPosted: Sat Sep 16, 2023 4:44 pm    Post subject: Reply with quote

CaptainBlood wrote:
sddm/wayland or sddm/X?

If any plz show /etc/inittab & any file in /etc/sddm.conf.d/ .

Thks 4 ur attention, interest & support.


here you go :
Code:

hedmo@mychi ~ $ cat  /etc/inittab
#
# /etc/inittab:  This file describes how the INIT process should set up
#                the system in a certain run-level.
#
# Author:  Miquel van Smoorenburg, <miquels@cistron.nl>
# Modified by:  Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
# Modified by:  Daniel Robbins, <drobbins@gentoo.org>
# Modified by:  Martin Schlemmer, <azarah@gentoo.org>
# Modified by:  Mike Frysinger, <vapier@gentoo.org>
# Modified by:  Robin H. Johnson, <robbat2@gentoo.org>
# Modified by:  William Hubbs, <williamh@gentoo.org>
# Modified by:  Lars Wendler, <polynomial-c@gentoo.org>
# Modified by:  Aisha Tammy, <gentoo@aisha.cc>
#

# Default runlevel.
id:3:initdefault:

# System initialization, mount local filesystems, etc.
si::sysinit:/sbin/openrc sysinit

# Further system initialization, brings up the boot runlevel.
rc::bootwait:/sbin/openrc boot

l0u:0:wait:/sbin/telinit u
l0:0:wait:/sbin/openrc shutdown
l0s:0:wait:/sbin/halt.sh
l1:1:wait:/sbin/openrc single
l2:2:wait:/sbin/openrc nonetwork
l3:3:wait:/sbin/openrc default
l4:4:wait:/sbin/openrc default
l5:5:wait:/sbin/openrc default
l6u:6:wait:/sbin/telinit u
l6:6:wait:/sbin/openrc reboot
l6r:6:wait:/sbin/reboot -dkn
#z6:6:respawn:/sbin/sulogin

# new-style single-user
su0:S:wait:/sbin/openrc single
su1:S:wait:/sbin/sulogin

# TERMINALS
#x1:12345:respawn:/sbin/agetty 38400 console linux
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100

# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now

# Used by /etc/init.d/display-manager to control DM startup.
# Read the comments in /etc/init.d/display-manager for more
# info. Do NOT remove, as this will start nothing
# extra at boot if /etc/init.d/display-manager is not added
# to the "default" runlevel.
x:a:once:/usr/bin/startDM
hedmo@mychi ~ $ ls /etc/sddm.conf.d/
01gentoo.conf  kde_settings.conf
hedmo@mychi ~ $ cat /etc/sddm.conf.d/01gentoo.conf
[General]
# Remove qtvirtualkeyboard as InputMethod default
InputMethod=
hedmo@mychi ~ $ cat /etc/sddm.conf.d/kde_settings.conf
[Autologin]
Relogin=false
Session=plasmawayland
User=hedmo

[General]
HaltCommand=
RebootCommand=

[Theme]
Current=Peace-SDDM

[Users]
MaximumUid=60000
MinimumUid=1000
hedmo@mychi ~ $


regards hedmo
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2019
Location: United Kingdom

PostPosted: Sat Sep 16, 2023 9:09 pm    Post subject: Reply with quote

hedmo,

Could this 2020 SDDM bug report ('Plasma 5.20 has Black desktop screen when using wayland in conjunction with SDDM #1335') be applicable in your case?:

https://github.com/sddm/sddm/issues/1335#issuecomment-743933731

The approach by SDDM user torokati44 was to edit /usr/share/wayland-sessions/plasmawayland.desktop and replaced the line:
Code:
Exec=/usr/lib64/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland

by:
Code:
Exec=/usr/bin/dbus-run-session /usr/bin/startplasma-wayland

See if that works for you as well.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3154

PostPosted: Sat Sep 16, 2023 11:07 pm    Post subject: Reply with quote

U should either suspend inittab's:
Code:
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
or redirect sddm vt from VT1 to somewhere else as described in tips link.
Code:
cat /etc/sddm.conf.d/sddm.conf
[General]
DisplayServer=wayland

#mandatory with kwin_wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell

[Wayland]
CompositorCommand=kwin_wayland --no-lockscreen --locale1

Omitting --locale1 on the final line will set your keyboard to US, no matter what you do with the SDDM interface.
--locale1 sets here to fr which is the only keyboard locale setting here.

/etc/sddm.conf/01gentoo.conf may be removable.

Thks 4 ur attention, interest & support.
_________________
Unique LP assert induced thought agreed upon here: Poor testing hurts everyone... climate diversity included. ;)
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 246

PostPosted: Sun Sep 17, 2023 11:06 am    Post subject: Re: sddm/DM needs to restart to work Reply with quote

hedmo wrote:
when i boot i will get a black screen with a _ in the upper left corner and a moving cursor . to get in to my DE/wayland i need to ctrl+alt+f11 to get to console , log in as root and restart the display-manager. is there a way to solve it ?

best regards hedmo


I had the exact same thing on two machines and found that rc-config had "display-manager" enabled for "boot" and default"

I left only the "default" one installed and this appears to cure this bug.

Code:
rc-config delete display-manager boot


was all I needed. :)
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1286
Location: sweden

PostPosted: Sun Sep 17, 2023 2:35 pm    Post subject: Reply with quote

Fitzcarraldo

i tried the bugfix and i still have the same issue. no change and still need to drop to console and restart display-manager.

CaptainBlood

i tried your patched ebuild but it failed to compile . i need more help/info to test your way .

regards
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3154

PostPosted: Sun Sep 17, 2023 6:54 pm    Post subject: Reply with quote

hedmo wrote:
need to drop to console and restart display-manager.
Which console do you switch to?
Plz post:
- emerge -p sddm
- cat /etc/conf.d/display-manager
- rc-update

Thks 4 ur attention, interest & support.
_________________
Unique LP assert induced thought agreed upon here: Poor testing hurts everyone... climate diversity included. ;)
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1286
Location: sweden

PostPosted: Sun Sep 17, 2023 7:08 pm    Post subject: Reply with quote

CaptainBlood wrote:
hedmo wrote:
need to drop to console and restart display-manager.
Which console do you switch to?
Plz post:
- emerge -p sddm
- cat /etc/conf.d/display-manager
- rc-update

Thks 4 ur attention, interest & support.


i switch to f1 ( ctrl+alt+f11 then f1).
Code:

mychi /home/hedmo # emerge -p sddm

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.84 s.

[ebuild   R    ] x11-misc/sddm-0.20.0-r1

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * IMPORTANT: 1 news items need reading for repository 'src_prepare-overlay'.
 * Use eselect news read to view new items.

mychi /home/hedmo # cat /etc/conf.d/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"
mychi /home/hedmo # rc-update
       NetworkManager |      default                           
               binfmt | boot                                   
            bluetooth |      default                           
             bootmisc | boot                                   
              cgroups |                                 sysinit
                cupsd |      default                           
                 dbus |      default                           
                devfs |                                 sysinit
      display-manager |      default                           
              distccd |      default                           
                dmesg |                                 sysinit
              elogind | boot                                   
                 fsck | boot                                   
             hostname | boot                                   
              hwclock | boot                                   
     iio-sensor-proxy |      default                           
                  iwd |      default                           
              keymaps | boot                                   
            killprocs |                        shutdown       
    kmod-static-nodes |                                 sysinit
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
              modules | boot                                   
             mount-ro |                        shutdown       
                 mtab | boot                                   
             netmount |      default                           
                 ntpd |      default                           
               procfs | boot                                   
                 root | boot                                   
         save-keymaps | boot                                   
    save-termencoding | boot                                   
            savecache |                        shutdown       
              seedrng | boot                                   
                 sshd |      default                           
                 swap | boot                                   
               sysctl | boot                                   
                sysfs |                                 sysinit
 systemd-tmpfiles-setup | boot                                   
 systemd-tmpfiles-setup-dev |                                 sysinit
         termencoding | boot                                   
                 udev |                                 sysinit
         udev-trigger |                                 sysinit
mychi /home/hedmo #


regards
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3154

PostPosted: Sun Sep 17, 2023 9:52 pm    Post subject: Reply with quote

Oops my bad :oops:
In order to check USE flags:
Code:
user@amd64 ~ $ emerge -p -v sddm

These are the packages that would be merged, in reverse order:

Calculating dependencies  ....... .... ........... done!
Dependency resolution took 195.53 s.

[ebuild   R   *] x11-misc/sddm-9999::local  USE="X -doc elogind pam -systemd -test" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Thks 4 ur attention, interest & support.
_________________
Unique LP assert induced thought agreed upon here: Poor testing hurts everyone... climate diversity included. ;)
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 246

PostPosted: Tue Sep 19, 2023 3:05 am    Post subject: Reply with quote

sorry rc-config did not help.

I am at a loss. :(

Code:
 * NOTE: If SDDM startup appears to hang then entropy pool is too low.
 * This can be fixed by configuring one of the following:
 *   - Enable CONFIG_RANDOM_TRUST_CPU in linux kernel
 *   - # emerge sys-apps/haveged && rc-update add haveged boot
 *   - # emerge sys-apps/rng-tools && rc-update add rngd boot



I guess you have seen the above?
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3154

PostPosted: Tue Sep 19, 2023 11:52 am    Post subject: Reply with quote

rufnut wrote:
Code:
 * NOTE: If SDDM startup appears to hang then entropy pool is too low.
 * This can be fixed by configuring one of the following:
 *   - Enable CONFIG_RANDOM_TRUST_CPU in linux kernel
 *   - # emerge sys-apps/haveged && rc-update add haveged boot
 *   - # emerge sys-apps/rng-tools && rc-update add rngd boot
Not required here...

Thks 4 ur attention, interest & support
_________________
Unique LP assert induced thought agreed upon here: Poor testing hurts everyone... climate diversity included. ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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