X configuration + Nvidia + Intel, black screen

Need help with peripherals or devices?
Post Reply
Message
Author
oscpintob
Posts: 4
Joined: 2018-05-20 00:48

X configuration + Nvidia + Intel, black screen

#1 Post by oscpintob »

I am running Debian 10 Buster in an Alienware 15 r3 with a dual graphic card.

Code: Select all

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GP104M [GeForce GTX 1070] (rev a1)

For almost a year, it worked perfectly with Nvidia-drivers and bumblebee installed. The last week I tried to connect an external monitor and it didn't work. According to a search on Internet, I have to reconfigure xorg.conf file (/etc/X11/xorg.conf). In the first instance, the external monitor worked, but the screen on my laptop not. Then, it didn't recognize the keyboard either mouse. So, I access by console and try to come back to the old xorg.conf file but it didn't work.
In a rush, I purge the xserver-xorg packages, altogether with Nvidia and bumblebee (following internet instructions), and try to reinstall those packages expecting to come back to the initial situation.
However, it didn't work. At this moment, any help can be useful because I am working only from the console

When I pull X -configure, I have this:

Code: Select all

X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.10.0-6-amd64 x86_64 Debian
Current Operating System: Linux debianOP 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-16-amd64 root=UUID=e5508c8f-47ad-4d98-9dde-7db06ee742d4 ro quiet
Build Date: 19 April 2021  09:34:38AM
xorg-server 2:1.20.4-1+deb10u3 (https://www.debian.org/support) 
Current version of pixman: 0.36.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon May 10 13:12:58 2021
List of video drivers:
	amdgpu
	ati
	intel
	nvidia
	qxl
	radeon
	vmware
	modesetting
	fbdev
	vesa
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"


Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Xorg has configured a multihead system, please check your config.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'

(EE) Server terminated with error (2). Closing log file.
The Xorg.0.log file shows:

Code: Select all

[   263.212] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[   263.212] Build Operating System: Linux 5.10.0-6-amd64 x86_64 Debian
[   263.212] Current Operating System: Linux debianOP 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
[   263.212] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-16-amd64 root=UUID=e5508c8f-47ad-4d98-9dde-7db06ee742d4 ro quiet
[   263.212] Build Date: 19 April 2021  09:34:38AM
[   263.212] xorg-server 2:1.20.4-1+deb10u3 (https://www.debian.org/support) 
[   263.212] Current version of pixman: 0.36.0
[   263.212] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   263.212] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   263.212] (==) Log file: "/var/log/Xorg.0.log", Time: Sun May  9 22:38:07 2021
[   263.212] (II) Loader magic: 0x55f61aeb6e20
[   263.212] (II) Module ABI versions:
[   263.212] 	X.Org ANSI C Emulation: 0.4
[   263.212] 	X.Org Video Driver: 24.0
[   263.212] 	X.Org XInput driver : 24.1
[   263.212] 	X.Org Server Extension : 10.0
[   263.213] (--) using VT number 2

[   263.213] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   263.213] (II) xfree86: Adding drm device (/dev/dri/card0)
[   263.224] (--) PCI:*(0@0:2:0) 8086:191b:1028:0772 rev 6, Mem @ 0xdb000000/16777216, 0x70000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[   263.224] (--) PCI: (1@0:0:0) 10de:1ba1:1028:0772 rev 161, Mem @ 0xdc000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   263.225] List of video drivers:
[   263.225] 	amdgpu
[   263.225] 	ati
[   263.225] 	intel
[   263.225] 	nvidia
[   263.225] 	qxl
[   263.225] 	radeon
[   263.225] 	vmware
[   263.225] 	modesetting
[   263.225] 	fbdev
[   263.225] 	vesa
[   263.225] (II) LoadModule: "amdgpu"
[   263.225] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[   263.225] (II) Module amdgpu: vendor="X.Org Foundation"
[   263.225] 	compiled for 1.20.3, module version = 18.1.99
[   263.225] 	Module class: X.Org Video Driver
[   263.225] 	ABI class: X.Org Video Driver, version 24.0
[   263.225] (II) LoadModule: "ati"
[   263.226] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   263.226] (II) Module ati: vendor="X.Org Foundation"
[   263.226] 	compiled for 1.20.4, module version = 19.0.1
[   263.226] 	Module class: X.Org Video Driver
[   263.226] 	ABI class: X.Org Video Driver, version 24.0
[   263.226] (II) LoadModule: "intel"
[   263.226] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   263.226] (II) Module intel: vendor="X.Org Foundation"
[   263.226] 	compiled for 1.20.1, module version = 2.99.917
[   263.226] 	Module class: X.Org Video Driver
[   263.226] 	ABI class: X.Org Video Driver, version 24.0
[   263.226] (II) LoadModule: "nvidia"
[   263.226] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   263.226] (II) Module nvidia: vendor="NVIDIA Corporation"
[   263.226] 	compiled for 4.0.2, module version = 1.0.0
[   263.226] 	Module class: X.Org Video Driver
[   263.227] (II) LoadModule: "qxl"
[   263.227] (II) Loading /usr/lib/xorg/modules/drivers/qxl_drv.so
[   263.227] (II) Module qxl: vendor="X.Org Foundation"
[   263.227] 	compiled for 1.20.0, module version = 0.1.5
[   263.227] 	Module class: X.Org Video Driver
[   263.227] 	ABI class: X.Org Video Driver, version 24.0
[   263.227] (II) LoadModule: "radeon"
[   263.227] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[   263.227] (II) Module radeon: vendor="X.Org Foundation"
[   263.227] 	compiled for 1.20.4, module version = 19.0.1
[   263.227] 	Module class: X.Org Video Driver
[   263.227] 	ABI class: X.Org Video Driver, version 24.0
[   263.227] (II) LoadModule: "vmware"
[   263.227] (II) Loading /usr/lib/xorg/modules/drivers/vmware_drv.so
[   263.275] (II) Module vmware: vendor="X.Org Foundation"
[   263.275] 	compiled for 1.20.0, module version = 13.3.0
[   263.275] 	Module class: X.Org Video Driver
[   263.275] 	ABI class: X.Org Video Driver, version 24.0
[   263.275] (II) LoadModule: "modesetting"
[   263.275] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   263.275] (II) Module modesetting: vendor="X.Org Foundation"
[   263.275] 	compiled for 1.20.4, module version = 1.20.4
[   263.275] 	Module class: X.Org Video Driver
[   263.275] 	ABI class: X.Org Video Driver, version 24.0
[   263.275] (II) LoadModule: "fbdev"
[   263.275] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   263.275] (II) Module fbdev: vendor="X.Org Foundation"
[   263.275] 	compiled for 1.20.0, module version = 0.5.0
[   263.275] 	Module class: X.Org Video Driver
[   263.275] 	ABI class: X.Org Video Driver, version 24.0
[   263.275] (II) LoadModule: "vesa"
[   263.275] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   263.275] (II) Module vesa: vendor="X.Org Foundation"
[   263.275] 	compiled for 1.20.1, module version = 2.4.0
[   263.275] 	Module class: X.Org Video Driver
[   263.275] 	ABI class: X.Org Video Driver, version 24.0
[   263.275] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   263.276] (II) intel: Driver for Intel(R) HD Graphics
[   263.276] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[   263.276] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[   263.276] (II) NVIDIA dlloader X Driver  418.181.07  Sun Dec 27 18:56:05 UTC 2020
[   263.276] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   263.276] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   263.276] (II) FBDEV: driver for framebuffer: fbdev
[   263.276] (II) VESA: driver for VESA chipsets: vesa
[   263.322] (++) Using config file: "/root/xorg.conf.new"
[   263.322] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   263.323] (==) ServerLayout "X.org Configured"
[   263.323] (**) |-->Screen "Screen0" (0)
[   263.323] (**) |   |-->Monitor "Monitor0"
[   263.324] (**) |   |-->Device "Card0"
[   263.324] (**) |-->Screen "Screen1" (1)
[   263.324] (**) |   |-->Monitor "Monitor1"
[   263.325] (**) |   |-->Device "Card1"
[   263.325] (**) |-->Input Device "Mouse0"
[   263.325] (**) |-->Input Device "Keyboard0"
[   263.325] (==) Automatically adding devices
[   263.325] (==) Automatically enabling devices
[   263.325] (==) Automatically adding GPU devices
[   263.325] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   263.325] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   263.325] 	Entry deleted from font path.
[   263.325] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   263.325] 	Entry deleted from font path.
[   263.325] (**) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins,
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[   263.325] (**) ModulePath set to "/usr/lib/xorg/modules"
[   263.325] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   263.325] (WW) Disabling Mouse0
[   263.325] (WW) Disabling Keyboard0
[   263.326] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20180719
[   263.326] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20180925-2 (Andreas Boll <aboll@debian.org>)
[   263.326] (II) intel(0): SNA compiled for use with valgrind
[   263.327] (II) Loading sub module "fb"
[   263.327] (II) LoadModule: "fb"
[   263.327] (II) Loading /usr/lib/xorg/modules/libfb.so
[   263.327] (II) Module fb: vendor="X.Org Foundation"
[   263.327] 	compiled for 1.20.4, module version = 1.0.0
[   263.327] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   263.327] (II) Loading sub module "wfb"
[   263.327] (II) LoadModule: "wfb"
[   263.328] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   263.328] (II) Module wfb: vendor="X.Org Foundation"
[   263.328] 	compiled for 1.20.4, module version = 1.0.0
[   263.328] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   263.328] (II) Loading sub module "ramdac"
[   263.328] (II) LoadModule: "ramdac"
[   263.328] (II) Module "ramdac" already built-in
[   263.329] 
[   263.329] 
Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.
[   263.329] 
Xorg has configured a multihead system, please check your config.
[   263.329] 
Your xorg.conf file is /root/xorg.conf.new

[   263.329] To test the server, run 'X -config /root/xorg.conf.new'

[   263.329] (EE) Server terminated with error (2). Closing log file.
The currently xorg.conf file in /etc/X11/ is

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 418.56


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
and if I test the new X configuration, the xorg.conf.new file located in /root/, I have the external monitor working but without the keyboard neither the mouse.

Code: Select all

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	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      "kbd"
EndSection

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

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        #Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Device"
	Identifier  "Card1"
	Driver      "nvidia"
	BusID       "PCI:1:0: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
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	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
	EndSubSection
EndSection

Post Reply