Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] SDDM not starting on new lapotop
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
marco.difresco
Apprentice
Apprentice


Joined: 29 Jul 2011
Posts: 170

PostPosted: Mon Jul 08, 2024 10:48 pm    Post subject: [SOLVED] SDDM not starting on new lapotop Reply with quote

Hi all,
I got a new ThinkPad T14 Gen 5 and I am installing Gentoo on it.

The problem is that SDDM gives the following error:
Code:
# journalctl --boot=0 --unit=sddm --no-pager
Jul 09 00:41:24 MDF-Zurich-Laptop systemd[1]: Started Simple Desktop Display Manager.
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Initializing...
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Starting...
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Logind interface found
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Adding new display...
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Loaded empty theme configuration
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Xauthority path: "/run/sddm/xauth_GehMoz"
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Using VT 2
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Display server starting...
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Writing cookie to "/run/sddm/xauth_GehMoz"
Jul 09 00:41:24 MDF-Zurich-Laptop sddm[1728]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_GehMoz -noreset -displayfd 16
Jul 09 00:41:25 MDF-Zurich-Laptop sddm[1728]: Failed to read display number from pipe
Jul 09 00:41:25 MDF-Zurich-Laptop sddm[1728]: Display server stopping...
Jul 09 00:41:25 MDF-Zurich-Laptop sddm[1728]: Attempt 1 starting the Display server on vt 2 failed
Jul 09 00:41:27 MDF-Zurich-Laptop sddm[1728]: Display server starting...
Jul 09 00:41:27 MDF-Zurich-Laptop sddm[1728]: Writing cookie to "/run/sddm/xauth_GehMoz"
Jul 09 00:41:27 MDF-Zurich-Laptop sddm[1728]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_GehMoz -noreset -displayfd 16
Jul 09 00:41:27 MDF-Zurich-Laptop sddm[1728]: Failed to read display number from pipe
Jul 09 00:41:27 MDF-Zurich-Laptop sddm[1728]: Display server stopping...
Jul 09 00:41:27 MDF-Zurich-Laptop sddm[1728]: Attempt 2 starting the Display server on vt 2 failed
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Display server starting...
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Writing cookie to "/run/sddm/xauth_GehMoz"
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_GehMoz -noreset -displayfd 16
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Failed to read display number from pipe
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Display server stopping...
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Attempt 3 starting the Display server on vt 2 failed
Jul 09 00:41:29 MDF-Zurich-Laptop sddm[1728]: Could not start Display server on vt 2


The laptop has only this video card (no hybrid system):
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Meteor Lake-P [Intel Graphics] [8086:7d45] (rev 08)
   Subsystem: Lenovo Device [17aa:2327]
   Kernel driver in use: i915


Can you help?
_________________
Marco Di Fresco
Silicon Gadget
Import MSSQL bak files to MySQL


Last edited by marco.difresco on Wed Jul 10, 2024 5:26 pm; edited 3 times in total
Back to top
View user's profile Send private message
sublogic
Apprentice
Apprentice


Joined: 21 Mar 2022
Posts: 269
Location: Pennsylvania, USA

PostPosted: Tue Jul 09, 2024 1:29 am    Post subject: Reply with quote

I would want to know if sddm is at fault or if X is failing. Do you have a file like /var/log/Xorg.0.log ? If so, what does it say ?

To bypass sddm entirely you can emerge x11-terms/xterm and x11-apps/xclock, then run startx. If that fails, you have to fix it first.
Back to top
View user's profile Send private message
marco.difresco
Apprentice
Apprentice


Joined: 29 Jul 2011
Posts: 170

PostPosted: Tue Jul 09, 2024 12:49 pm    Post subject: Reply with quote

sublogic wrote:
I would want to know if sddm is at fault or if X is failing. Do you have a file like /var/log/Xorg.0.log ? If so, what does it say ?


I checked /var/log/Xorg.0.log and I immediately found the issue.

I preemptively installed this config from the wiki https://wiki.gentoo.org/wiki/Intel as I intend to use KDE, but I didn't notice it use the old "intel" driver instead of i915.
Code:
Section "Device"
        Identifier "Device0"
        Driver "intel"
        Option      "AccelMethod" "SNA"
        Option      "TearFree"    "true"
EndSection


For the moment I removed the above file. If I will have issue under KDE, I will wind another way.

Thank you very much.
_________________
Marco Di Fresco
Silicon Gadget
Import MSSQL bak files to MySQL
Back to top
View user's profile Send private message
marco.difresco
Apprentice
Apprentice


Joined: 29 Jul 2011
Posts: 170

PostPosted: Tue Jul 09, 2024 8:11 pm    Post subject: Reply with quote

marco.difresco wrote:
For the moment I removed the above file. If I will have issue under KDE, I will wind another way.


OK, SDDM and KDE loaded without that file, but it seems there is no hardware acceleration:
Quote:
~ glxinfo -B
name of display: :1
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa (0xffffffff)
Device: llvmpipe (LLVM 17.0.6, 256 bits) (0xffffffff)
Version: 24.0.9
Accelerated: no
Video memory: 31591MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 4.5
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 21 MB, largest block: 21 MB
VBO free aux. memory - total: 29744 MB, largest block: 29744 MB
Texture free memory - total: 21 MB, largest block: 21 MB
Texture free aux. memory - total: 29744 MB, largest block: 29744 MB
Renderbuffer free memory - total: 21 MB, largest block: 21 MB
Renderbuffer free aux. memory - total: 29744 MB, largest block: 29744 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 120611 MB
Total available memory: 152203 MB
Currently available dedicated video memory: 21 MB
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 24.0.9
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 24.0.9
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.9
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20


Any idea what am I doing wrong?
_________________
Marco Di Fresco
Silicon Gadget
Import MSSQL bak files to MySQL
Back to top
View user's profile Send private message
marco.difresco
Apprentice
Apprentice


Joined: 29 Jul 2011
Posts: 170

PostPosted: Wed Jul 10, 2024 5:26 pm    Post subject: Reply with quote

marco.difresco wrote:
Any idea what am I doing wrong?


Found the issue. I had to add "i915/mtl_guc_70.bin" instead of "i915/skl_dmc_ver1_27.bin" in the kernel ("DMC firmware" section in the Intel wiki).
_________________
Marco Di Fresco
Silicon Gadget
Import MSSQL bak files to MySQL
Back to top
View user's profile Send private message
sublogic
Apprentice
Apprentice


Joined: 21 Mar 2022
Posts: 269
Location: Pennsylvania, USA

PostPosted: Thu Jul 11, 2024 1:29 am    Post subject: Reply with quote

Just a remark: if you compile i915 as a module instead of built-in, it will load its firmware from the filesystem after root is mounted.
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