Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDDM starts normally but shows black screen.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sbbg
n00b
n00b


Joined: 02 Feb 2013
Posts: 16

PostPosted: Tue Sep 05, 2017 12:54 am    Post subject: SDDM starts normally but shows black screen. Reply with quote

Hi, gentoo folks,

I'm kind of stuck with sddm-0.14 and 0.15. SDDM work for me at 0.13 before.
Laucnhing KDE/IceWM with startx or starting XDM work very fine, though.
But I can't find anything wrong in X or sddm related log.

/var/log/sddm.log goes like:
Code:
[06:55:26.959] (II) DAEMON: Initializing...
[06:55:26.974] (II) DAEMON: Starting...
[06:55:26.974] (II) DAEMON: Adding new display on vt 7 ...
[06:55:26.975] (II) DAEMON: Display server starting...
[06:55:26.975] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{9070df10-9f49-4a5e-a1ec-69c046a96a9f} -background none -noreset -displayfd 18 vt7
[06:55:27.872] (II) DAEMON: Setting default cursor
[06:55:27.880] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[06:55:27.885] (II) DAEMON: Display server started.
[06:55:27.885] (II) DAEMON: Socket server starting...
[06:55:27.886] (II) DAEMON: Socket server started.
[06:55:27.886] (II) DAEMON: Greeter starting...
[06:55:27.887] (II) DAEMON: Adding cookie to "/var/run/sddm/{9070df10-9f49-4a5e-a1ec-69c046a96a9f}"
[06:55:27.903] (II) HELPER: [PAM] Starting...
[06:55:27.903] (II) HELPER: [PAM] Authenticating...
[06:55:27.903] (II) HELPER: [PAM] returning.
[06:55:27.908] (II) DAEMON: Greeter session started successfully
[06:55:27.930] (II) DAEMON: Message received from greeter: Connect


I also made sure that sddm user is in video group, and the permission of /var/lib/sddm looks fine.

What else should I check? Or is there a alternative display manager? (lightdm removed kde greeter in portage)
Thank you.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


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

PostPosted: Tue Sep 05, 2017 7:05 pm    Post subject: Reply with quote

SDDM does not work on my Clevo W230SS laptop (NVIDIA Optimus hardware) so I'm using LightDM with the LightDM GTK Greeter, which works fine with KDE Plasma 5. If you're interested in trying LightDM, below are the steps I used:

1. Merge x11-misc/lightdm and x11-misc/lightdm-gtk-greeter.

Code:
clevow230ss fitzcarraldo # equery u lightdm
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for x11-misc/lightdm-1.18.3:
 U I
 - - audit         : Enable support for Linux audit subsystem using sys-process/audit
 - - gnome         : Add GNOME support
 + + gtk           : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 + + introspection : Add support for GObject based introspection
 - - kde           : Add support for KDE (K Desktop Environment)
 - - qt4           : Add support for the Qt GUI/Application Toolkit version 4.x
 + + qt5           : Add support for the Qt 5 application and UI framework
clevow230ss fitzcarraldo # equery u lightdm-gtk-greeter
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for x11-misc/lightdm-gtk-greeter-2.0.1-r1:
 U I
 - - branding : Enable Gentoo specific branding

2. Re-merge kde-plasma/plasma-meta with USE="-sddm".

3. Remove the x11-misc/sddm package and kde-plasma/sddm-kcm package by using the command 'emerge --ask --depclean'.

4. Edit the file /etc/lightdm/lightdm.conf to include the line 'greeter-session=lightdm-gtk-greeter' and the line 'display-setup-script=/etc/X11/Sessions/plasma'.

Code:
clevow230ss fitzcarraldo # grep -v "^#\|^$" /etc/lightdm/lightdm.conf
[LightDM]
session-wrapper=/etc/lightdm/Xsession
[Seat:*]
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession
display-setup-script=/etc/X11/Sessions/plasma
[XDMCPServer]
[VNCServer]


5. Follow the steps in the 'Boot service' section of the Gentoo Wiki article 'LightDM'.

6. Create the above-mentioned Bash script /etc/X11/Sessions/plasma containing the following:

Code:
#!/bin/bash
GPU=`eselect opengl list | grep \* | awk '{ print $2 }'`
if [ "$GPU" = "nvidia" ]; then
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
fi

7. Change the background specified in /etc/lightdm/lightdm-gtk-greeter.conf to whatever PNG file you want. Also uncomment the line '#indicators=' and add the indicators you want (see the various comments at the top of the configuration file for the options available). For example:

Code:
clevow230ss fitzcarraldo # grep -v "^#\|^$" /etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
background=/usr/share/backgrounds/mychosenbackground.png
indicators=~host;~spacer;~clock;~spacer;~language;~power


Furthermore, irrespective of which DM you use, note that there is a bug in KDE Plasma 5 which means users' avatars are not set up properly, nor displayed correctly, by 'System Settings' > 'User Manager': https://bugs.kde.org/show_bug.cgi?id=336994

I used the procedure below to work around the bug.

1. I created a 96x96 PNG avatar /home/fitzcarraldo/Pictures/fitzcarraldo.png

2. I edited the file /var/lib/AccountsService/users/fitzcarraldo to contain the following (replace 'en_GB.utf8' with your language)

Code:
[User]
Language=en_GB.utf8
XSession=plasma
SystemAccount=false
Icon=/var/lib/AccountsService/icons/fitzcarraldo


3. I made sure that file has 644 permissions

Code:
clevow230ss fitzcarraldo # ls -la /var/lib/AccountsService/users/fitzcarraldo
-rw-r--r-- 1 root root 104 Aug  5 16:43 /var/lib/AccountsService/users/fitzcarraldo


4. I copied the avatar to the relevant directory and made sure it has 644 permissions

Code:
clevow230ss fitzcarraldo # cp /home/fitzcarraldo/Pictures/fitzcarraldo.png /var/lib/AccountsService/icons/fitzcarraldo
clevow230ss fitzcarraldo # ls -la /var/lib/AccountsService/icons/fitzcarraldo
-rw-r--r-- 1 root root 12667 Aug  5 16:23 /var/lib/AccountsService/icons/fitzcarraldo


After rebooting, the desired avatar was displayed on LightDM's GTK Greeter screen, on the KDE Plasma 5 Lock screen, in 'System Settings' > 'Account Details' > 'User Manager', and at the top of the KDE Plasma 5 Application Launcher menu.

I recommend not using 'System Settings' > 'Account Details' > 'User Manager' until the bug is squashed, but you can copy the avatars of other users to /var/lib/AccountsService/icons/ and edit the other users' files in /var/lib/AccountsService/users/ as explained above. I have always used app-admin/superadduser on the command line to add new users, and it has never failed me. So you can add new users and specify their avatars without touching 'System Settings' > 'Account Details' > 'User Manager'.
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
sbbg
n00b
n00b


Joined: 02 Feb 2013
Posts: 16

PostPosted: Wed Sep 06, 2017 2:09 am    Post subject: Reply with quote

Hi, Fitzcarraldo

You are GREATLY appreciated.
I also have a nvidia optimus laptop infected with this problem of SDDM.
I've followed your guide successfully, although the avatar problem is not happening for me now.

I cannot thank you more enough!
I am really glad I came here to meet real pro like you.
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