Estou desenvolvedo uma distro Linux baseada no Debian 12 stable para me auxiliar no processo de fazer backups semanais total de todo o conteúdo do HD onde o meu sistema principal está instalado.
Apesar da atividade crítica não precisar de interface gráfica par ser feita, pois desenvolvi um utilitário de linha de comando que funciona muito bem para o meu caso, gostaria que a interface gráfica funcionasse na máquina real para poder continunar o desenvolvimento do projeto.
Faço os testes com o sistema em uma máquina virtual. No hypervisor, o Debian 12 + LXDE carregam como o esperado, mas quando copio o conteúdo do disco da máquina virtual em um pendrive para fazer os testes na máquina real, o ambiente gráfico não carrega de jeito nenhum!
Segundo o comando lspci, o driver nouveau é carregado, quando dou o startx, a tela se resume a uma tela preta com um cursor piscando indefinidamente. É gerado um log com o seguinte conteúdo:
[ 61.444]
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[ 61.444] Current Operating System: Linux debian 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64
[ 61.444] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-9-amd64 root=UUID=dd41fa7f-5386-4b63-91a7-21864c777861 ro quiet
[ 61.444] xorg-server 2:21.1.7-3 (https://www.debian.org/support)
[ 61.444] Current version of pixman: 0.42.2
[ 61.444] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 61.444] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 61.445] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Aug 9 21:33:45 2023
[ 61.445] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 61.445] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 61.445] (==) ServerLayout "X.org Configured"
[ 61.445] (**) |-->Screen "Screen0" (0)
[ 61.445] (**) | |-->Monitor "Monitor0"
[ 61.446] (**) | |-->Device "Card0"
[ 61.446] (**) |-->Screen "Screen1" (1)
[ 61.446] (**) | |-->Monitor "Monitor1"
[ 61.446] (**) | |-->Device "Card1"
[ 61.446] (**) |-->Input Device "Mouse0"
[ 61.446] (**) |-->Input Device "Keyboard0"
[ 61.446] (==) Automatically adding devices
[ 61.446] (==) Automatically enabling devices
[ 61.446] (==) Automatically adding GPU devices
[ 61.446] (==) Automatically binding GPU devices
[ 61.446] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 61.446] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 61.446] Entry deleted from font path.
[ 61.446] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 61.446] Entry deleted from font path.
[ 61.446] (**) 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
[ 61.446] (**) ModulePath set to "/usr/lib/xorg/modules"
[ 61.446] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 61.446] (WW) Disabling Mouse0
[ 61.446] (WW) Disabling Keyboard0
[ 61.446] (II) Loader magic: 0x55efdc8daf00
[ 61.446] (II) Module ABI versions:
[ 61.446] X.Org ANSI C Emulation: 0.4
[ 61.446] X.Org Video Driver: 25.2
[ 61.446] X.Org XInput driver : 24.4
[ 61.446] X.Org Server Extension : 10.0
[ 61.447] (++) using VT number 1
[ 61.449] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
[ 61.449] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 61.449] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/drm/card0
[ 61.450] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[ 61.455] (--) PCI: (1@0:0:0) 10de:1f99:1d05:1104 rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[ 61.455] (--) PCI:*(5@0:0:0) 1002:1636:1d05:1100 rev 199, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000d000/256
[ 61.455] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 61.455] (II) LoadModule: "glx"
[ 61.456] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 61.457] (II) Module glx: vendor="X.Org Foundation"
[ 61.457] compiled for 1.21.1.7, module version = 1.0.0
[ 61.457] ABI class: X.Org Server Extension, version 10.0
[ 61.457] (II) LoadModule: "amdgpu"
[ 61.457] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[ 61.458] (II) Module amdgpu: vendor="X.Org Foundation"
[ 61.458] compiled for 1.21.1.7, module version = 23.0.0
[ 61.458] Module class: X.Org Video Driver
[ 61.458] ABI class: X.Org Video Driver, version 25.2
[ 61.458] (II) LoadModule: "nouveau"
[ 61.458] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 61.458] (II) Module nouveau: vendor="X.Org Foundation"
[ 61.458] compiled for 1.21.1.3, module version = 1.0.17
[ 61.458] Module class: X.Org Video Driver
[ 61.458] ABI class: X.Org Video Driver, version 25.2
[ 61.458] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 61.458] (II) NOUVEAU driver Date: Sat Jan 23 12:24:42 2021 -0500
[ 61.458] (II) NOUVEAU driver for NVIDIA chipset families :
[ 61.458] RIVA TNT (NV04)
[ 61.458] RIVA TNT2 (NV05)
[ 61.458] GeForce 256 (NV10)
[ 61.458] GeForce 2 (NV11, NV15)
[ 61.458] GeForce 4MX (NV17, NV18)
[ 61.458] GeForce 3 (NV20)
[ 61.458] GeForce 4Ti (NV25, NV28)
[ 61.458] GeForce FX (NV3x)
[ 61.458] GeForce 6 (NV4x)
[ 61.458] GeForce 7 (G7x)
[ 61.458] GeForce 8 (G8x)
[ 61.458] GeForce 9 (G9x)
[ 61.458] GeForce GTX 2xx/3xx (GT2xx)
[ 61.458] GeForce GTX 4xx/5xx (GFxxx)
[ 61.458] GeForce GTX 6xx/7xx (GKxxx)
[ 61.458] GeForce GTX 9xx (GMxxx)
[ 61.459] GeForce GTX 10xx (GPxxx)
[ 61.459] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[ 61.459] (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:05:00.0: Invalid argument
[ 61.459] (II) [drm] nouveau interface version: 1.3.1
[ 61.459] (EE) Unknown chipset: NV167
[ 61.524] (II) [drm] nouveau interface version: 1.3.1
[ 61.524] (EE) Unknown chipset: NV167
[ 61.524] (II) [drm] nouveau interface version: 1.3.1
[ 61.524] (EE) Unknown chipset: NV167
[ 61.524] (EE) Screen 0 deleted because of no matching config section.
[ 61.524] (II) UnloadModule: "amdgpu"
[ 61.524] (EE) Device(s) detected, but none match those in the config file.
[ 61.524] (EE)
Fatal server error:
[ 61.524] (EE) no screens found(EE)
[ 61.524] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 61.524] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 61.524] (EE)
[ 61.526] (EE) Server terminated with error (1). Closing log file.
Xorg -configure não funciona e reporta erro. Ele gera um arquivo no xorg.conf.new com o seguinte conteúdo
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"
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 "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
#Option "AsyncFlipSecondaries" # [<bool>]
Identifier "Card0"
Driver "amdgpu"
BusID "PCI:5:0:0"
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 "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # <i>
Identifier "Card1"
Driver "nouveau"
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
Quando dou o comando systemctl status lightdm.service o mesmo informa que o serviço falhou, mas não dá detalhes do que aconteceu. Há mais o que eu possa fazer?
Edit: Este site recomenda que eu digite o comando
lightdm --test-mode --debug
para ver o que aconteceu, o que gerou o log de erro abaixo:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=1628
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 1633: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.04s] DEBUG: Process 1633 exited with return value 1
[+0.04s] DEBUG: XServer 0: X server stopped
[+0.04s] DEBUG: Releasing VT 7
[+0.04s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+0.04s] DEBUG: Seat seat0: Display server stopped
[+0.04s] DEBUG: Seat seat0: Stopping session
[+0.04s] DEBUG: Seat seat0: Session stopped
[+0.04s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.04s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+0.04s] DEBUG: Seat seat0: Creating greeter session
[+0.04s] DEBUG: Seat seat0: Creating display server of type x
[+0.04s] DEBUG: Using VT 7
[+0.04s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.04s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.04s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.04s] DEBUG: XServer 0: Launching X Server
[+0.04s] DEBUG: Launching process 1635: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.04s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.05s] DEBUG: Seat seat0 changes active session to
[+0.06s] DEBUG: Process 1635 exited with return value 1
[+0.06s] DEBUG: XServer 0: X server stopped
[+0.06s] DEBUG: Releasing VT 7
[+0.06s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+0.06s] DEBUG: Seat seat0: Display server stopped
[+0.06s] DEBUG: Seat seat0: Stopping session
[+0.06s] DEBUG: Seat seat0: Session stopped
[+0.06s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.06s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.06s] DEBUG: Seat seat0: Stopping
[+0.06s] DEBUG: Seat seat0: Stopped
[+0.06s] DEBUG: Required seat has stopped
[+0.06s] DEBUG: Stopping display manager
[+0.06s] DEBUG: Display manager stopped
[+0.06s] DEBUG: Stopping daemon
[+0.06s] DEBUG: Exiting with return value 1
O que me chamou a atenção foi a seguinte linha:
WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Perguntei para um modelo de linguagem como fazer para corrigir o erro e a mesma sugeriu ver como está o serviço dbus e ele está rodando bem. O modelo de linguagem sugeriu que eu instalasse o pacote accountsservice do repositório apt do debian, o que eu fiz.
Tentei iniciar o lightdm novamente, mas a interface gráfica continua não subindo. Um novo log foi gerado:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=1698
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.07s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.20s] DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
[+0.20s] DEBUG: Monitoring logind for seats
[+0.20s] DEBUG: New seat added from logind: seat0
[+0.20s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.20s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.20s] DEBUG: Seat seat0: Starting
[+0.20s] DEBUG: Seat seat0: Creating greeter session
[+0.20s] DEBUG: Seat seat0: Creating display server of type x
[+0.20s] DEBUG: Using VT 7
[+0.20s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.20s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.20s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.20s] DEBUG: XServer 0: Launching X Server
[+0.20s] DEBUG: Launching process 1710: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.20s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.20s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.21s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.21s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.24s] DEBUG: Process 1710 exited with return value 1
[+0.24s] DEBUG: XServer 0: X server stopped
[+0.24s] DEBUG: Releasing VT 7
[+0.24s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+0.24s] DEBUG: Seat seat0: Display server stopped
[+0.24s] DEBUG: Seat seat0: Stopping session
[+0.24s] DEBUG: Seat seat0: Session stopped
[+0.24s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.24s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.24s] DEBUG: Seat seat0: Stopping
[+0.24s] DEBUG: Seat seat0: Stopped
[+0.24s] DEBUG: Required seat has stopped
[+0.24s] DEBUG: Stopping display manager
[+0.24s] DEBUG: Display manager stopped
[+0.24s] DEBUG: Stopping daemon
[+0.24s] DEBUG: Exiting with return value 1
O arquivo var/log/lightdm/x-0.log tem o seguinte conteúdo:
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux debian 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-9-amd64 root=UUID=dd41fa7f-5386-4b63-91a7-21864c777861 ro quiet
xorg-server 2:21.1.7-3 (https://www.debian.org/support)
Current version of pixman: 0.42.2
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: Wed Aug 9 23:21:39 2023
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) AMDGPU(0): [KMS] Kernel modesetting enabled.
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Pesquisei no Google e o resultado em destaque deste site sugeriu que meu notebook tem mais de uma GPU (no meu caso a discreta da NVIDIA e a integrada da AMD) e que o problema seria facilmente corrigido ao adicionar o BusID correto no xorg. Entretanto ao abrir vi que isso se aplica ao FreeBSD e não ao Linux, mas especificamente o Debian, voltando ao ponto de não saber mais o que fazer.
Edit 2: Perguntei novamente para o modelo de linguagem sobre o erro do no screens founds do Xorg e ele sugeriu rodar o seguinte comando:
dpkg-reconfigure xserver-xorg
Entretanto a interface gráfica continua não subindo. O que mais posso fazer?
Edit 3: Tentei novamente rodar o Xorg -configure e ele agora deu um erro diferente: Number of created screen does not match the number of detected devices. No caso, o sistema detecta as placas de vídeo da AMD e o da NVIDIA e as telas correspondentes (A do notebook para a AMD) e a do monitor externo da NVIDIA. O comando gerou o arquivo xorg.conf.new com o seguinte conteúdo:
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"
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 "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
#Option "AsyncFlipSecondaries" # [<bool>]
Identifier "Card0"
Driver "amdgpu"
BusID "PCI:5:0:0"
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 "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # <i>
Identifier "Card1"
Driver "nouveau"
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
(Na verdade o mesmo conteúdo gerado na proóxima vez)