Created
April 14, 2018 06:33
-
-
Save kralo/7c5240c2feff993e1ff198476a9c1d7b to your computer and use it in GitHub Desktop.
[HOWTO] Configure Xorg/X11 Framebuffer default size when no monitor attached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# there is no monitor attached | |
$ xrandr -q -d :0 | |
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 4096 x 4096 | |
VGA-1 disconnected primary (normal left inverted right x axis y axis) | |
LVDS-1 disconnected (normal left inverted right x axis y axis) | |
DVI-D-1 disconnected (normal left inverted right x axis y axis) | |
DP-1 disconnected (normal left inverted right x axis y axis) | |
# Write in xorg.conf | |
$ cat /etc/X11/xorg.conf | |
Section "Device" | |
Identifier "Configured Video Device" | |
EndSection | |
Section "Monitor" | |
Identifier "Configured Monitor" | |
EndSection | |
Section "Screen" | |
Identifier "Default Screen" | |
Monitor "Configured Monitor" | |
Device "Configured Video Device" | |
SubSection "Display" | |
Virtual 1920 1080 | |
EndSubSection | |
EndSection | |
# for disabling the LVDS-1 Port because it show as connected even if it's now | |
robo@demopc16:~$ cat /etc/default/grub | |
... | |
GRUB_CMDLINE_LINUX_DEFAULT="{} video=LVDS-1:d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment