Last active
May 18, 2023 01:42
-
-
Save mangoliou/27c6c5867a95932f21ae59ad7152aa33 to your computer and use it in GitHub Desktop.
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
# apt-get install | |
sudo apt-get update | |
# For ubuntu 14.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty | |
# For ubuntu 16.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-willy | |
# Copy the xorg.conf to `/etc/X11/xorg.conf`. | |
wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf | |
# Restart Ubuntu. The resolution will be 1920x1080. | |
# Export XAUTHORITY | |
export XAUTHORITY=/home/admin/.Xauthority | |
# Or | |
export XAUTHORITY=/var/run/lightdm/root/:0 | |
# Query the reoslution. | |
xrandr -d :0 -q | |
# Change resolution in terminal. | |
xrandr -d :0 --output default --mode 1280x960 | |
# The resolution will be 1280x960 without resarting Ubuntu. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to deal with the original xorg.conf generated by Nvidia?
cat /etc/X11/xorg.conf