Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED Xserver does'nt start with Cinnamon
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
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Sat Feb 24, 2024 12:20 pm    Post subject: SOLVED Xserver does'nt start with Cinnamon Reply with quote

Hi All,

I installing Cinnamon but the Xserver failed to start, below information about my system :

dmseg
https://pastebin.com/Dv3f4yQE
Xorg.3.log
https://pastebin.com/kSCPakJY

lsmod:

Code:
himalaya /tmp # lsmod
Module                  Size  Used by
nvidia_uvm           1552384  0
nvidia_modeset       1503232  2
snd_ctl_led            24576  0
iwlmvm                569344  0
snd_hda_codec_realtek   180224  1
nvidia              61972480  66 nvidia_uvm,nvidia_modeset
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
mac80211             1187840  1 iwlmvm
snd_hda_codec_hdmi     77824  1
libarc4                12288  1 mac80211
uvcvideo              135168  0
videobuf2_vmalloc      12288  1 uvcvideo
videobuf2_memops       12288  1 videobuf2_vmalloc
iwlwifi               524288  1 iwlmvm
snd_hda_intel          49152  0
x86_pkg_temp_thermal    16384  0
uvc                    12288  1 uvcvideo
snd_hda_codec         180224  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
cfg80211             1220608  3 iwlmvm,iwlwifi,mac80211
videobuf2_v4l2         36864  1 uvcvideo
videobuf2_common       73728  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
snd_hwdep              12288  1 snd_hda_codec
snd_hda_core          126976  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
nvidia_drm             12288  0
efivarfs               24576  1



Please any help will be appreciate.

Thank you in advance.

SmokyRun


Last edited by smokyrun on Thu Feb 29, 2024 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1537
Location: South America

PostPosted: Sat Feb 24, 2024 3:17 pm    Post subject: Re: Xserver does'nt start with Cinnamon Reply with quote

smokyrun wrote:
Xorg.3.log
https://pastebin.com/kSCPakJY

Code:
[  2293.860] (--) PCI:*(0@0:2:0) 8086:191b:17aa:224d rev 6, Mem @ 0x2ff2000000/16777216, 0xc0000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/131072
[  2293.860] (--) PCI: (1@0:0:0) 10de:1436:17aa:224d rev 161, Mem @ 0xe7000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288

There's two video cards there, is this an Optimus system?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Sat Feb 24, 2024 3:57 pm    Post subject: Reply with quote

No, it is not an optimus system it's a thinkpad P51, yes there are 2 videos cards :
Code:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
00:1c.2 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #3 (rev f1)
00:1c.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #5 (rev f1)
00:1d.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 (rev f1)
00:1d.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #13 (rev f1)
00:1f.0 ISA bridge: Intel Corporation CM238 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (5) I219-LM (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM206GLM [Quadro M2200 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GM206 High Definition Audio Controller (rev a1)
04:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
3e:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
3f:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
Back to top
View user's profile Send private message
Babiz
n00b
n00b


Joined: 18 Feb 2024
Posts: 26
Location: Dolomiti, Italy

PostPosted: Sat Feb 24, 2024 4:09 pm    Post subject: Reply with quote

Why you post Xorg.3.log instead of Xorg.0.log? lol Also you can try to startup without config directory: "/etc/X11/xorg.conf.d" , simply by mv folder to other name and restart display-manager service...

Are you follow the wiki? https://wiki.gentoo.org/wiki/Cinnamon
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Sat Feb 24, 2024 4:17 pm    Post subject: Reply with quote

I post the logfile Xorg.3.log because it was the last created, yes I try to start the xserver without configfile in /etc/X11/xorg.conf.d/10-nvidia.conf but same problem.
Yes I follow the Gentoo Wiki, I think the problem come from the NVIDIA drivers with error message below :

Code:
[    4.143367] nvidia_drm: loading out-of-tree module taints kernel.
[    4.143372] nvidia_drm: module license 'MIT' taints kernel.
[    4.143374] Disabling lock debugging due to kernel taint
[    4.143376] nvidia_drm: module license taints kernel.
Back to top
View user's profile Send private message
Babiz
n00b
n00b


Joined: 18 Feb 2024
Posts: 26
Location: Dolomiti, Italy

PostPosted: Sat Feb 24, 2024 4:41 pm    Post subject: Reply with quote

smokyrun wrote:
I think the problem come from the NVIDIA drivers with error message


Well, kernel taints is not really error, you can verify if modules it loads by command lsmod... on dmesg you also see nvidia driver initialization after weird kernel taints " like this:

Code:
  4.889492] nvidia: loading out-of-tree module taints kernel.
[    4.889499] nvidia: module license 'NVIDIA' taints kernel.
[    4.889502] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    4.889502] nvidia: module license taints kernel.
[    5.005962] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[    5.006611] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    5.244108] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  535.154.05  Thu Dec 28 15:51:29 UTC 2023
[    5.246458] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    6.042256] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[   27.897533] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[   27.922352] nvidia-uvm: Loaded the UVM driver, major device number 508.


Example of sudo dmesg|grep nvidia above.

So you can try to re emerge nvidia drivers if don'load or force nouveau driver instead (you need to uninstall nvidia drivers first and maybe edit Device section of xorg.conf to force load nouveau... It's many way to do, but ensure you dmesg print stuff like I post when use nvidia drivers :)

Edit: also I advice to check for logfiles rotation mechanism: https://wiki.gentoo.org/wiki/Logrotate and
https://wiki.gentoo.org/wiki/Logging

Edit 2: Another thing for gentoo-kernel, you can try to install full bin package for avoid any kind of issue with it if you not are very expert to kernel configuration, emerge sys-kernel/gentoo-kernel-bin and rebuild bootloader for safe way.

And after all checks, please re post your log files like display manager you run other than Xorg log
and maybe is useful to install inxi for posting some system details by easy way... 8)
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Sun Feb 25, 2024 6:08 am    Post subject: Reply with quote

Hi Babiz,

Thank you for your help, I created my xorg.conf with the nvidia-xconfig command I added this section "
Code:
Option   "ConnectToAcpid"    "Off"
", the Xserver doesn't work but I think there is an improvement regarding logfile below

https://pastebin.com/cqGBAs1D

Logrotate file is ok now.
I don't want use a kernel bin on Gentoo, sure I'm not an Gentoo expert but understand well how to compile a kernel.

Before to start this installation I installed a Gentoo with Cinnamon on a VM under KMV/QEMU and everything works fine but on a physical machine it's not the same thing.

I keep on investigating on the xorg.conf and will keep you update.
Back to top
View user's profile Send private message
Babiz
n00b
n00b


Joined: 18 Feb 2024
Posts: 26
Location: Dolomiti, Italy

PostPosted: Sun Feb 25, 2024 7:48 pm    Post subject: Reply with quote

ok man, nvidia card look right, I see in your log
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

This would be happen by running X server from user session ( I read this in oyher post here, write by another user https://forums.gentoo.org/viewtopic-p-8817439.html#8817439 ) and you need to check your display manager configuration you use (ex. SDDM lightdm or so)
Also check your login manager config, I see you rely on systemd...

You need to run X server from display manager not as single user session, if you want force single user startup (by type startx on terminal) you need to tweak more X server config, please read about https://wiki.gentoo.org/wiki/Non_root_Xorg

Another thing I see Keyboard0 and Mouse0 is useless configuration and you can remove safley
any Section "InputClass" in your X11 config folder/files, you true keyboard and mouse will be autodetected by query udev at every server startup.

For your Device section I think set something like this:

My /etc/X11/xorg.conf.d/nvidia.conf
Code:
Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:x:x:x" #<< your card busid here
EndSection


Without other option, to avoid conflicts if any on other config files like "/usr/share/X11/xorg.conf.d", and you always can add options later...

After you are done with all checks I think you are on a good way to go on Cinnamon :roll:
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Tue Feb 27, 2024 3:52 pm    Post subject: Reply with quote

Thank you so much for your reply and your help I appreciate, I looked at all informations you send me and did modifications in my X11 config file but the X11 server doesn't start.

I made a post on the Nvidia developper forum and they reply me below :

I’s a hybrid graphics notebook, primary graphics is the intel igpu. Please delete /etc/X11/xorg.conf.d/10-nvidia.conf and create a kernel that contains the i915 driver.

I'm going to create this kernel and I will keep you update.
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Wed Feb 28, 2024 11:44 am    Post subject: Reply with quote

I created a kernel with the intel i915 drivers by following this wiki https://wiki.gentoo.org/wiki/Intel but during boot I get these error messages :

Code:

0.679881] Loading firmware: i915/skl_dmc_ver1_27.bin
[    0.679909] i915 0000:00:02.0: Direct firmware load for i915/skl_dmc_ver1_27.bin failed with error -2
[    0.679915] i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/skl_dmc_ver1_27.bin. Disabling runtime power management.
[    0.679922] i915 0000:00:02.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915


Now when update the world I get this error :
emerge -avuDN --with-bdeps=y @world

* Messages for package dev-util/spirv-llvm-translator-16.0.0-r1:

Code:
* ERROR: dev-util/spirv-llvm-translator-16.0.0-r1::gentoo failed (compile phase):
 *   ninja -v -j8 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2324:  Called cmake_src_compile
 *   environment, line  882:  Called cmake_build
 *   environment, line  849:  Called eninja
 *   environment, line 1320:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=dev-util/spirv-llvm-translator-16.0.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/spirv-llvm-translator-16.0.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0_build'
 * S: '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0'


I begin believing it is not possible to install Gentoo on a ThinkPad P51 notebook
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1537
Location: South America

PostPosted: Wed Feb 28, 2024 12:14 pm    Post subject: Reply with quote

smokyrun wrote:
I’s a hybrid graphics notebook, [...]

This is what you should read (or, more specifically, the linked articles).

smokyrun wrote:
Code:
[    0.679881] Loading firmware: i915/skl_dmc_ver1_27.bin
[    0.679909] i915 0000:00:02.0: Direct firmware load for i915/skl_dmc_ver1_27.bin failed with error -2

That's missing firmware. Installing package sys-kernel/linux-firmware should provide it.

smokyrun wrote:
Now when update the world I get this error :
emerge -avuDN --with-bdeps=y @world

* Messages for package dev-util/spirv-llvm-translator-16.0.0-r1:

Code:
* ERROR: dev-util/spirv-llvm-translator-16.0.0-r1::gentoo failed (compile phase):
 *   ninja -v -j8 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2324:  Called cmake_src_compile
 *   environment, line  882:  Called cmake_build
 *   environment, line  849:  Called eninja
 *   environment, line 1320:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=dev-util/spirv-llvm-translator-16.0.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/spirv-llvm-translator-16.0.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0_build'
 * S: '/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0'

Do what the messages tell you to do if you need support.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21639

PostPosted: Wed Feb 28, 2024 3:50 pm    Post subject: Reply with quote

smokyrun wrote:
I begin believing it is not possible to install Gentoo on a ThinkPad P51 notebook
I doubt spirv is sensitive to the specific model notebook, so it should be possible to make it install.
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Thu Feb 29, 2024 6:50 am    Post subject: Reply with quote

Hi All,

Thank you so much for your help, cinnamon works fine now, the nvidia developper helped me a lot to fix this problem with desktop environment.

Do you know how to set this poste as solved ?

Thank you so much.

Have a nice day.

Willy
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21639

PostPosted: Thu Feb 29, 2024 4:13 pm    Post subject: Reply with quote

Edit the first post of the thread to change its title to include the text [SOLVED].
Back to top
View user's profile Send private message
smokyrun
n00b
n00b


Joined: 26 Dec 2023
Posts: 39
Location: Reunion Island

PostPosted: Thu Feb 29, 2024 5:57 pm    Post subject: Reply with quote

Thank you for your reply Hu.
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