The officially official Devuan Forum!

You are not logged in.

#1 2023-05-14 22:19:58

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 117  

[SOLVED] EFI, 2 videocards, 1 monitor, grub, kernel, xorg.conf

This Lenovo P330 thinkstation has 2 video cards. The MB one from Intel (IGD) and a PCIe x16 Nvidia P2000 (PEG)
It came with the EFI setting Videocard at "PEG" . A monitor connected to the MB remained black.
The HW adapter from DP to HDMI was missing.
I had to remove physically the nvidia video card, to be able to access the BIOS and to change it to IGD.
Then I could setup devuan chimaera on the station. Grub menu, kernel boot and xorg.conf all fine.
But with this setting the nvidia card is invisible to the OS.

00:00.0 Host bridge: Intel Corporation 8th 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 Display controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
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 Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:16.3 Serial controller: Intel Corporation Cannon Lake PCH Active Management Technology - SOL (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI Controller (rev 10)
00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #21 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-LM (rev 10)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983

Setting the EFI setting again to "auto" or "PEG" makes the display black again.

But I could ssh into the station and run lspci.

01:00.0 VGA compatible controller: NVIDIA Corporation GP106GL [Quadro P2000] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

Trying to create a working xorg.conf without the nvidia is only possible when the nvidia is powered off.

While testing the other EFI videocard options auto and PEG,
I had to take the nvidia out a second time physically to get back to EFI and grub boot option menu.

I want this card only to do computations (CUDA), because my requirements for the graphical display are low.

After starting the xorg-server , the kernel should power up the PEG and rescan the PCIe bus.

Is there a way to power up the PEG via kernel command, after EFI - grub - boot - kernel - xorg have done their thing,
Despite it is turned off in EFI ?
however grub menu and console goes into the dark  and are not accessible
Edit: 2023-05-25

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

makes everything dark.

Edit 2023-05-26

GRUB_CMDLINE_LINUX_DEFAULT="fbcon=map:1"

solves the console Problem
xorg.conf

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "built-ins"
EndSection

Section "Module"
#	Load  "glx"
#	Load  "glxserver_nvidia"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "libinput"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "libinput"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Lenovo"
	ModelName    "L24e-30"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes     "1920x1080"
	EndSubSection
EndSection

Section "Device"
	VendorName  "NVIDIA Corporation"
	Identifier  "Card1"
	Driver      "nvidia"
	BusID       "PCI:1:0:0"
	Option	    "Ignore" "true"
EndSection

Section "ServerFlags"
	Option "AutoAddGPU"	"false"
EndSection

solves the xorg Problem

Remains the grub problem
a bug https://savannah.gnu.org/bugs/?62806 is made against grub already

almost SOLVED

Last edited by bai4Iej2need (2023-05-26 07:20:53)


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#2 2023-08-11 14:47:26

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 117  

Re: [SOLVED] EFI, 2 videocards, 1 monitor, grub, kernel, xorg.conf

Due to the acquisition of a DP2DVI Adapter, this problem is no more existing in this form. to be continued in another thread


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#3 2023-08-11 16:12:22

chris2be8
Member
Registered: 2018-08-11
Posts: 307  

Re: [SOLVED] EFI, 2 videocards, 1 monitor, grub, kernel, xorg.conf

I have got a system that runs CUDA on the GPU, but uses the onboard graphics to run the display. (It shares a monitor with 3 other systems via a KVM switch.) But for historical reasons it runs openSUSE 15.3 so I'm not sure how much I can help, beyond saying it is possible on some systems.

It has a GeForce GTX 970 with CUDA cuda-drivers-510 but a rather old motherboard (can't find the manual right now) in case that helps.

Offline

Board footer