You are not logged in.
SOLUTION: do not run nvidia-xconfig, or remove /etc/X11/xorg.conf if alredy generated.
When I run systemctl start sddm I got a black screen.
kernel: the default linux kernel
Followed wiki pages to install nvidia driver (nvidia-dkms, compiled successfully) & intel modesetting driver, installed tools, re-generated initramfs, re-generated grub.cfg, rebooted, and sddm failed.
But the nvidia-smi command shows that sddm-greeter and xorg is loaded into GPU memory.
# nvidia-smi
Thu Jan 12 21:47:47 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01 Driver Version: 525.78.01 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 49C P8 N/A / 115W | 32MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 6073 G /usr/lib/Xorg 8MiB | <---- see here
| 0 N/A N/A 6094 G /usr/bin/sddm-greeter 21MiB | <--|
+-----------------------------------------------------------------------------+Here's my hardware info, I use a laptop with intel 12700H and GeForce 3070 Mobile. The sections related to graphic cards in lspci -nnk:
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:46a6] (rev 0c)
DeviceName: Onboard - Video
Subsystem: ASUSTeK Computer Inc. Device [1043:133d]
Kernel driver in use: i915
Kernel modules: i915
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:249d] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:133d]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidiapackages related to graphic drivers (xf86-video-intel is not installed):
# pacman -Q | grep -E 'nvidia|intel|vulkan|mesa'
intel-ucode 20221108-1
lib32-mesa 22.3.2-2
lib32-nvidia-utils 525.78.01-1
lib32-opencl-nvidia 525.78.01-1
lib32-vulkan-icd-loader 1.3.235-1
libva-intel-driver 2.4.1-2
mesa 22.3.2-3
nvidia-dkms 525.78.01-1
nvidia-prime 1.0-4
nvidia-settings 525.78.01-1
nvidia-utils 525.78.01-1
opencl-nvidia 525.78.01-1
vulkan-icd-loader 1.3.235-1
vulkan-intel 22.3.2-3the config file /etc/X11/xorg.conf generated by nvidia-xconfig:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 525.78.01
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSectionThe complete output of lspci -nnk
# lspci -nnk
0000:00:00.0 Host bridge [0600]: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers [8086:4641] (rev 02)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: igen6_edac
Kernel modules: igen6_edac
0000:00:01.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 [8086:460d] (rev 02)
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: pcieport
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:46a6] (rev 0c)
DeviceName: Onboard - Video
Subsystem: ASUSTeK Computer Inc. Device [1043:133d]
Kernel driver in use: i915
Kernel modules: i915
0000:00:04.0 Signal processing controller [1180]: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant [8086:461d] (rev 02)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: proc_thermal_pci
Kernel modules: processor_thermal_device_pci
0000:00:06.0 System peripheral [0880]: Intel Corporation RST VMD Managed Controller [8086:09ab]
DeviceName: Onboard - Other
0000:00:07.0 PCI bridge [0604]: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 [8086:466e] (rev 02)
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: pcieport
0000:00:08.0 System peripheral [0880]: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator [8086:464f] (rev 02)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
0000:00:0a.0 Signal processing controller [1180]: Intel Corporation Platform Monitoring Technology [8086:467d] (rev 01)
DeviceName: Onboard - Other
Kernel driver in use: intel_vsec
Kernel modules: intel_vsec
0000:00:0d.0 USB controller [0c03]: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller [8086:461e] (rev 02)
DeviceName: Onboard - Other
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
0000:00:0d.2 USB controller [0c03]: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 [8086:463e] (rev 02)
DeviceName: Onboard - Other
Subsystem: Device [2222:1111]
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
0000:00:0e.0 RAID bus controller [0104]: Intel Corporation Volume Management Device NVMe RAID Controller [8086:467f]
DeviceName: Onboard - Other
Subsystem: Intel Corporation Device [8086:0000]
Kernel driver in use: vmd
Kernel modules: vmd
0000:00:14.0 USB controller [0c03]: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller [8086:51ed] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:201f]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
0000:00:14.2 RAM memory [0500]: Intel Corporation Alder Lake PCH Shared SRAM [8086:51ef] (rev 01)
DeviceName: Onboard - Other
0000:00:14.3 Network controller [0280]: Intel Corporation Alder Lake-P PCH CNVi WiFi [8086:51f0] (rev 01)
DeviceName: Onboard - Ethernet
Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz [8086:0074]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 [8086:51e8] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
0000:00:15.2 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #2 [8086:51ea] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
0000:00:16.0 Communication controller [0780]: Intel Corporation Alder Lake PCH HECI Controller [8086:51e0] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: mei_me
Kernel modules: mei_me
0000:00:1f.0 ISA bridge [0601]: Intel Corporation Alder Lake PCH eSPI Controller [8086:5182] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
0000:00:1f.3 Audio device [0403]: Intel Corporation Alder Lake PCH-P High Definition Audio Controller [8086:51c8] (rev 01)
DeviceName: Onboard - Sound
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
0000:00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake PCH-P SMBus Host Controller [8086:51a3] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Alder Lake-P PCH SPI Controller [8086:51a4] (rev 01)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:1cf2]
Kernel driver in use: intel-spi
Kernel modules: spi_intel_pci
0000:00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (16) I219-LM [8086:1a1e] (rev 01)
DeviceName: Onboard - Ethernet
Subsystem: ASUSTeK Computer Inc. Device [1043:204f]
Kernel driver in use: e1000e
Kernel modules: e1000e
0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:249d] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:133d]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:133d]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
10000:e0:06.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 [8086:464d] (rev 02)
Kernel driver in use: pcieport
10000:e0:06.2 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #2 [8086:463d] (rev 02)
Kernel driver in use: pcieport
10000:e1:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc Device [1344:5407]
Subsystem: Micron Technology Inc Device [1344:0100]
Kernel driver in use: nvme
Kernel modules: nvme
10000:e2:00.0 Non-Volatile memory controller [0108]: Sandisk Corp Device [15b7:5019] (rev 01)
Subsystem: Sandisk Corp Device [15b7:5019]
Kernel driver in use: nvme
Kernel modules: nvmeLast edited by FrozenArcher (2023-01-12 14:45:41)
Offline
Remove the xorg.conf, just running nvidia-xconfig blindly will not generate a valid xorg conf on optimus/hybrid GPU setups and it is also simply not necessary in the majority of cases. See https://wiki.archlinux.org/title/PRIME# … er_offload
Offline
the config file /etc/X11/xorg.conf generated by nvidia-xconfig:
Get rid of that.
& intel modesetting driver
There is no "intel modesetting driver", the modesetting driver is generic.
If removing the /etc/X11/xorg.conf (whatever is your end goal here: this approach *cannot* work) doesn't get you where you want, post the xorg log and elaborate on your desired config.
Edit: fuck.
Last edited by seth (2023-01-12 14:26:54)
Offline
Thanks, after removing xorg.conf, xorg started correctly.
Offline