Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] elogind sddm doesn't start
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
Frautoincnam
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2017
Posts: 87

PostPosted: Tue Apr 28, 2020 5:27 am    Post subject: [SOLVED] elogind sddm doesn't start Reply with quote

Solved : I just had to load module : nvidia-drm

Hi,

I use OpenRC.
I just migrated from consolekit to elogind, but sddm doesn't start anymore.
user sddm is in video group.
elogind is started.
sddm.log only says :
Code:
[01:14:05.123] (II) DAEMON: Initializing...
[01:14:05.128] (II) DAEMON: Starting...
[01:14:05.129] (II) DAEMON: Logind interface found


but nothing more.

Nothing is written in /var/log/Xorg.0.log

Any idea please ?
_________________
OS: Gentoo KDE x86_64 (4.19.97-gentoo)
MB: Z370 GAMING PLUS (MS-7B61)
CPU: Coffeelake Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
GPU: NVIDIA MSI GeForce GTX 1050 TI 4GT LP & i915 CPU Integrated
SSD: Samsung SSD 860 250GB
RAM: G.Skill 32GB DDR4-2133


Last edited by Frautoincnam on Tue Apr 28, 2020 10:39 pm; edited 3 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24075
Location: here

PostPosted: Tue Apr 28, 2020 6:07 am    Post subject: Reply with quote

See this topic
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Frautoincnam
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2017
Posts: 87

PostPosted: Tue Apr 28, 2020 4:50 pm    Post subject: Reply with quote

Thank you very much for this link.
I had hoped it would solve my problem, but unfortunately not.

You should know that on this old machine (not the one in my signature), a long time ago, I had to disable CONFIG_DRM from the kernel, and have:
Code:
$ cat /etc/modprobe.d/nvidia.conf
# Nvidia drivers support
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195
options nvidia NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=1006 NVreg_ModifyDeviceFiles=1
options nvidia-drm modeset=0

To get X.
And I never touch that for years.

Now I have :
Code:
$ grep CONFIG_DRM /usr/src/linux/.config | grep -v "^ #"
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
CONFIG_DRM_PANEL=y
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y

And
Code:
$ cat /proc/cmdline
BOOT_IMAGE=/boot/kernel-4.19.97-gentoo root=/dev/ sdb1 ro resume=/dev/sdb2 nvidia-drm.modeset=1

But always the same for sddm.

I'm continuing my investigations but if anyone has an idea ...

Edit :
Loading nvidia module gives (dmseg) :
Code:
[ 1034.829350] nvidia-nvlink: Nvlink Core is being initialized, major device number 250
[ 1034.833705] nvidia 0000:02:00.0: vgaarb: changed VGA decodes: olddecodes=none,decodes=none:owns=io+mem
[ 1035.033875] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  440.82  Wed Apr  1 20:04:33 UTC 2020
[ 1035.263544] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d0000-0x000dffff window]
[ 1035.263903] caller _nv000908rm+0x1bf/0x1f0 [nvidia] mapping multiple BARs


Edit2 :
Works fine when downgrading sddm to 0.15.0
_________________
OS: Gentoo KDE x86_64 (4.19.97-gentoo)
MB: Z370 GAMING PLUS (MS-7B61)
CPU: Coffeelake Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
GPU: NVIDIA MSI GeForce GTX 1050 TI 4GT LP & i915 CPU Integrated
SSD: Samsung SSD 860 250GB
RAM: G.Skill 32GB DDR4-2133
Back to top
View user's profile Send private message
Frautoincnam
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2017
Posts: 87

PostPosted: Tue Apr 28, 2020 9:42 pm    Post subject: Reply with quote

I thought I solved the problem by loading the nvidia-drm module first but in fact, I run into a new problem.

In fact, I'm not in front of the computer and remotely administer it via ssh. So I thought that sddm launched, everything worked, but in fact, the screen remains black.

X doesn't start.

sddm logs gives :
Code:
[18:09:10.527] (II) DAEMON: Greeter stopping...
[18:09:10.527] (II) DAEMON: Socket server stopping...
[18:09:10.527] (II) DAEMON: Socket server stopped.
[18:09:10.527] (II) DAEMON: Display server stopping...
[18:09:10.563] (II) HELPER: [PAM] Closing session
[18:09:10.564] (II) HELPER: [PAM] Ended.
[18:09:10.706] (II) DAEMON: Display server stopped.
[18:09:10.707] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[18:09:10.712] (II) DAEMON: Greeter stopping...
[18:09:10.712] (WW) DAEMON: QProcess: Destroyed while process ("/usr/libexec/sddm-helper") is still running.
[18:09:10.921] (II) DAEMON: Initializing...
[18:09:10.928] (II) DAEMON: Starting...
[18:09:10.928] (II) DAEMON: Logind interface found
[18:09:10.929] (II) DAEMON: Adding new display on vt 7 ...
[18:09:10.929] (II) DAEMON: Loading theme configuration from ""
[18:09:10.929] (II) DAEMON: Display server starting...
[18:09:10.930] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{8eaf7bb8-a168-4c6a-84bf-e32d2b961d4e} -background none -noreset -displayfd 17 -seat seat0 vt7
[18:09:11.136] (II) DAEMON: Setting default cursor
[18:09:11.141] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[18:09:11.143] (II) DAEMON: Display server started.
[18:09:11.143] (II) DAEMON: Socket server starting...
[18:09:11.144] (II) DAEMON: Socket server started.
[18:09:11.144] (II) DAEMON: Loading theme configuration from ""
[18:09:11.144] (II) DAEMON: Greeter starting...
[18:09:11.144] (II) DAEMON: Adding cookie to "/var/run/sddm/{8eaf7bb8-a168-4c6a-84bf-e32d2b961d4e}"
[18:09:11.152] (II) HELPER: [PAM] Starting...
[18:09:11.152] (II) HELPER: [PAM] Authenticating...
[18:09:11.152] (II) HELPER: [PAM] returning.
[18:09:11.161] (II) DAEMON: Greeter session started successfully
[18:09:11.205] (II) DAEMON: Message received from greeter: Connect


All seems ok this side.

Code:
drwxr-xr-x 2 root root 60 28 avril 18:09 /var/run/sddm
-rw------- 1 sddm sddm 51 28 avril 18:09 {8eaf7bb8-a168-4c6a-84bf-e32d2b961d4e}


But X log gives an error :

Code:
$ tail /var/log/Xorg.0.log
[  5690.702] (II) event0  - Power Button: device removed
[  5690.711] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[  5690.711] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[  5690.712] (II) event0  - Power Button: is tagged by udev as: Keyboard
[  5690.712] (II) event0  - Power Button: device is a keyboard
[  5690.713] (II) config/udev: Adding input device PC Speaker (/dev/input/event2)
[  5690.713] (**) PC Speaker: Applying InputClass "joystick-all"
[  5690.713] (II) No input driver specified, ignoring this device.
[  5690.713] (II) This device may have been added with another device file.
[  5690.721] (EE) Failed to open authorization file "/var/run/sddm/{8eaf7bb8-a168-4c6a-84bf-e32d2b961d4e}": No such file or directory

This PC haven't either keyboard nor mouse (actually), but I don't think that's the problem.

In fact, it works, even with this error message, but I couldn't see it physically.
I never thought X could work with a (EE).
_________________
OS: Gentoo KDE x86_64 (4.19.97-gentoo)
MB: Z370 GAMING PLUS (MS-7B61)
CPU: Coffeelake Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
GPU: NVIDIA MSI GeForce GTX 1050 TI 4GT LP & i915 CPU Integrated
SSD: Samsung SSD 860 250GB
RAM: G.Skill 32GB DDR4-2133
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24075
Location: here

PostPosted: Wed Apr 29, 2020 5:38 am    Post subject: Reply with quote

This post can help?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Frautoincnam
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2017
Posts: 87

PostPosted: Wed Apr 29, 2020 10:30 pm    Post subject: Reply with quote

fedeliallalinea wrote:
This post can help?


Just to remove the error message ?
Not really. Or, I couldn't find anything in this topic that could help me to remove this error.

But, for me, even with this message, sddm starts.
_________________
OS: Gentoo KDE x86_64 (4.19.97-gentoo)
MB: Z370 GAMING PLUS (MS-7B61)
CPU: Coffeelake Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
GPU: NVIDIA MSI GeForce GTX 1050 TI 4GT LP & i915 CPU Integrated
SSD: Samsung SSD 860 250GB
RAM: G.Skill 32GB DDR4-2133
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