Habilitar entorno gráfico

Tengo una máquina que por regla general no tiene conectado ratón, teclado y monitor.

Cuando no tengo conectado monitor a la salida HDMI que tiene el equipo e intendo conectar remotamente aél mediante el agente que tiene instalado dwservice.net, la parte gráfica queda en negro y solo cuando sale el salvapantalla que tiene bloqueado el equipo consigo verlo.

Creo que esto pasa porque en el momento del encendido del equipo no tiene conectado ningún monitor.

¿Sabéis como puedo configurar la salida del equipo para que muestra por ejemplo por defecto una salida de 1024x728 para ver el entorno gráfico?

Ejecutando ps faux me quedo con la linea de lightdm y la linea de Xorg por si tuviera algo que ver

root         403  0.0  0.1 305024  6820 ?        Ssl  nov17   0:00 /usr/bin/lightdm
root         429  0.1  2.1 584604 83812 tty7     Ssl+ nov17   1:39  \_ /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root         507  0.0  0.2 162300  9244 ?        Sl   nov17   0:00  \_ lightdm --session-child 13 16

Traducción Española

:warning: PRECAUCIÓN: ¿Tiene alguna forma de acceder a la computadora si la configuración de la pantalla no funciona? En caso afirmativo, puede seguir las siguientes instrucciones:

El Arch Wiki sugiere instalar el paquete xf86-video-dummy:

sudo pacman -S xf86-video-dummy

El Arch Wiki también sugiere crear un archivo de configuración manual /etc/X11/xorg.conf.d/10-headless.conf como el siguiente ejemplo:

Section "Monitor"
        Identifier "dummy_monitor"
        HorizSync 28.0-80.0
        VertRefresh 48.0-75.0
        Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
EndSection

Section "Device"
        Identifier "dummy_card"
        VideoRam 256000
        Driver "dummy"
EndSection

Section "Screen"
        Identifier "dummy_screen"
        Device "dummy_card"
        Monitor "dummy_monitor"
        SubSection "Display"
        EndSubSection
EndSection

Pero en ese ejemplo, debe reemplazar la línea Modeline.
Obtenga los datos para la resolución que especificó ejecutando el comando

cvt -r 1024 728 | grep Modeline

En mi caso, obtengo:

Modeline "1024x728R"   53.00  1024 1072 1104 1184  728 731 741 749 +hsync -vsync

Cambiaría el ejemplo anterior para reemplazar la línea Modeline, según los datos que obtuve para la resolución que especificó, así:
(Archivo: /etc/X11/xorg.conf.d/10-headless.conf)

Section "Monitor"
        Identifier "dummy_monitor"
        HorizSync 28.0-80.0
        VertRefresh 48.0-75.0
        Modeline "1024x728R"   53.00  1024 1072 1104 1184  728 731 741 749 +hsync -vsync
EndSection

Section "Device"
        Identifier "dummy_card"
        VideoRam 256000
        Driver "dummy"
EndSection

Section "Screen"
        Identifier "dummy_screen"
        Device "dummy_card"
        Monitor "dummy_monitor"
        SubSection "Display"
        EndSubSection
EndSection

English

:warning: CAUTION: Do you have a way to access the computer if the display settings do not work? If yes, you can follow the below instructions:

The Arch Wiki suggests to install the package xf86-video-dummy:

sudo pacman -S xf86-video-dummy

The Arch Wiki also suggests to create a manual configuration file /etc/X11/xorg.conf.d/10-headless.conf like the below example:

Section "Monitor"
        Identifier "dummy_monitor"
        HorizSync 28.0-80.0
        VertRefresh 48.0-75.0
        Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
EndSection

Section "Device"
        Identifier "dummy_card"
        VideoRam 256000
        Driver "dummy"
EndSection

Section "Screen"
        Identifier "dummy_screen"
        Device "dummy_card"
        Monitor "dummy_monitor"
        SubSection "Display"
        EndSubSection
EndSection

But in that example, you need to replace the Modeline line.
Get the data for the resolution you specified by running the command

cvt -r 1024 728 | grep Modeline

In my case, I get:

Modeline "1024x728R"   53.00  1024 1072 1104 1184  728 731 741 749 +hsync -vsync

I would change the example above to replace the Modeline line, based on the data I obtained for the resolution you specified, like this:
(File: /etc/X11/xorg.conf.d/10-headless.conf)

Section "Monitor"
        Identifier "dummy_monitor"
        HorizSync 28.0-80.0
        VertRefresh 48.0-75.0
        Modeline "1024x728R"   53.00  1024 1072 1104 1184  728 731 741 749 +hsync -vsync
EndSection

Section "Device"
        Identifier "dummy_card"
        VideoRam 256000
        Driver "dummy"
EndSection

Section "Screen"
        Identifier "dummy_screen"
        Device "dummy_card"
        Monitor "dummy_monitor"
        SubSection "Display"
        EndSubSection
EndSection
1 Like

Woks well in this machine, Thanks for your help.

2 Likes