Skip to content

Instantly share code, notes, and snippets.

@StrixROX
Last active March 8, 2026 18:52
Show Gist options
  • Select an option

  • Save StrixROX/5a0e3009f7cbdcfab1cefa809e4473b4 to your computer and use it in GitHub Desktop.

Select an option

Save StrixROX/5a0e3009f7cbdcfab1cefa809e4473b4 to your computer and use it in GitHub Desktop.
How to run Ubuntu with Desktop Environment and Auto-Login without a display

Cuz auto-login on Gnome without a display just doesn't work fsr...

sudo nano /etc/default/grub

Update the GRUB_CMDLINE_LINUX_DEFAULT variable in this file to have one of the display connectors always active.

ls /sys/class/drm/ # shows a list of available display connectors prefixed with 'card-'

Pick any one and update the GRUB_CMDLINE_LINUX_DEFAULT variable like so:

# ...
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-1:1366x768e"
# ...

Here, e = enabled and 1366x768 is the connected display resolution

Then run:

sudo update-grub

Then reboot. Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment