Le 09/04/2020 16:44, Greg Wooledge a écrit :
On Thu, Apr 09, 2020 at 04:32:10PM +0200, Bernard wrote:


If you're trying to debug X, start simple.  Install a traditional window
manager, and just name it on the startx command to override the system
defaults.

$ startx

invariably leads to

.......................
connexion to X server lost

At that point, you look for errors in ~/.xsession-errors or, more usefully,
in the X log file.  Which, for stretch-and-later, on most hardware, will
be in ~/.local/share/xorg/.  Or if for some reason your X server still runs
as root, it might be in the /var/log/ directory.

Here are a few meaningful lines extracted from the Xorg.0.log


Starting line 48/515 :

[ 15541.358] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 15541.360] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 15541.361] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0 [ 15541.363] (--) PCI:*(0:1:0:0) 10de:128b:1458:36f8 rev 161, Mem @ 0xee000000/16777216, 0xe0000000/134217728, 0xe8000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 15541.363] (II) LoadModule: "glx"
[ 15541.363] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 15541.366] (II) Module glx: vendor="X.Org Foundation"
[ 15541.366]    compiled for 1.19.2, module version = 1.0.0
[ 15541.366]    ABI class: X.Org Server Extension, version 10.0
[ 15541.366] (==) Matched nouveau as autoconfigured driver 0
[ 15541.366] (==) Matched nv as autoconfigured driver 1
[ 15541.366] (==) Matched nouveau as autoconfigured driver 2
[ 15541.366] (==) Matched nv as autoconfigured driver 3
[ 15541.366] (==) Matched modesetting as autoconfigured driver 4
[ 15541.366] (==) Matched fbdev as autoconfigured driver 5
[ 15541.366] (==) Matched vesa as autoconfigured driver 6
[ 15541.366] (==) Assigned the driver to the xf86ConfigLayout
[ 15541.366] (II) LoadModule: "nouveau"
[ 15541.366] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 15541.367] (II) Module nouveau: vendor="X.Org Foundation"
[ 15541.367]    compiled for 1.19.3, module version = 1.0.13
[ 15541.367]    Module class: X.Org Video Driver
[ 15541.367]    ABI class: X.Org Video Driver, version 23.0
[ 15541.367] (II) LoadModule: "nv"
[ 15541.367] (WW) Warning, couldn't open module nv
[ 15541.367] (II) UnloadModule: "nv"
[ 15541.367] (II) Unloading nv

from line 375

[ 15541.577] (EE) AIGLX error: dlopen of /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so: cannot open shared object file: No such file or directory)
[ 15541.577] (EE) AIGLX: reverting to software rendering
[ 15541.577] (EE) AIGLX error: dlopen of /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[ 15541.577] (EE) GLX: could not load software renderer
[ 15541.577] (II) GLX: no usable GL providers found for screen 0
[ 15541.580] (II) NOUVEAU(0): NVEnterVT is called.
[ 15541.610] (II) NOUVEAU(0): Setting screen physical size to 508 x 285
[ 15541.610] resize called 1920 1080
[ 15541.629] (II) config/udev: Adding input device Power Button (/dev/input/event4) [ 15541.629] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 15541.629] (II) LoadModule: "libinput"
[ 15541.629] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 15541.630] (II) Module libinput: vendor="X.Org Foundation"
[ 15541.630]    compiled for 1.19.0, module version = 0.23.0
[ 15541.630]    Module class: X.Org XInput Driver
[ 15541.630]    ABI class: X.Org XInput driver, version 24.1
[ 15541.630] (II) Using input driver 'libinput' for 'Power Button'
[ 15541.630] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 19 paused 0

The whole text file can be downloaded at

http://bdebreil.free.fr/Xorg.0.log




Start with the basics.  Can X run *at all*?

Make sure xterm is installed, and try

startx xterm


That works ! This is the only graphic thing that I have been able to launch since the crash

That should give you the barest possible X session.  If it works, you'll
have a mostly empty screen, but with an xterm in the upper left corner.
You'll be able to move the mouse pointer around, and if the mouse cursor
is inside the xterm window area, you'll be able to type in the terminal.
Do that, and type "exit" or Ctrl-D in the xterm to get out.

If it DOESN'T work, try to figure out why, by reading the X log file.

Also useful would be:

Which video chipset is in use?  lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation Device [8086:590f] (rev 05)
00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 05) 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31) 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31) 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] [8086:a102] (rev 31) 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #5 [8086:a114] (rev f1) 00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #6 [8086:a115] (rev f1) 00:1c.6 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #7 [8086:a116] (rev f1) 00:1c.7 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #8 [8086:a117] (rev f1) 00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #9 [8086:a118] (rev f1) 00:1d.1 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #10 [8086:a119] (rev f1) 00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a143] (rev 31) 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31) 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31) 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208 [GeForce GT 710B] [10de:128b] (rev a1) 01:00.1 Audio device [0403]: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0e0f] (rev a1) 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)



Which firmware files are loaded, and which are missing?
dmesg | grep -i firmware


[    0.168357] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 293.533132] r8169 0000:02:00.0: firmware: direct-loading firmware rtl_nic/rtl8168g-2.fw


Thanks for your help

Bernard

Reply via email to