Created
September 27, 2017 22:16
-
-
Save colxi/2f1a16d929f2d137f40b0e7a91f7f009 to your computer and use it in GitHub Desktop.
xrandr - force resolution in linux
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
Most netbooks including the Acer Aspire One (zg5) have a native screen resolution of 1024x600 which can be a pain with some applications that require 1024x768 minimum .. some setting dialogs also seem to be larger than the screen allows. | |
Well you CAN get Peppermint 4 (or any distro based on >= Ubuntu 12.10) to give you 1024x768 | |
This should work for Peppermint 4 .. and possibly for a FULLY updated Peppermint 3 (I can't currently test it in Peppermint 3 .. Ubuntu 12.04 based distros *used* to need a patched version of xorg but I *think* the patch was added in ubuntuupdates) | |
Run this in a terminal: | |
Code: [Select] | |
xrandr --output LVDS1 --panning "1024x768" --scale "1x1.28" | |
you can go back to 1024x600 with: | |
Code: [Select] | |
xrandr --output LVDS1 --panning "1024x600" --scale "1x1" | |
Once you've tested that in a terminal AND IT WORKS .. if you want to autostart that at bootup .. | |
Run: | |
Code: [Select] | |
mkdir ~/.config/autostart | |
then: | |
Code: [Select] | |
gedit ~/.config/autostart/monitor-adjust.desktop | |
when an empty file opens, make it read:- | |
Code: [Select] | |
[Desktop Entry] | |
Name=Monitor Auto Adjust | |
Comment=Change LCD resolution to 1024x768 | |
Exec=lxterminal --command xrandr --output LVDS1 --panning "1024x768" --scale "1x1.28" | |
Terminal=true | |
SAVE the file, and log off/on to test. | |
BE SURE to test it in a terminal first, because if anything goes wrong a reboot will put you back to 1024x600 | |
[EDIT] | |
If you have any problems with the wallpaper not stretching .. try making the commands: | |
Code: [Select] | |
xrandr --output LVDS1 --panning "1024x768" --scale "1x1.28" && pcmanfm --wallpaper-mode=fit && pcmanfm --wallpaper-mode=stretch | |
and | |
Code: [Select] | |
xrandr --output LVDS1 --panning "1024x600" --scale "1x1" && pcmanfm --wallpaper-mode=fit && pcmanfm --wallpaper-mode=stretch | |
obviously adjust the "Exec" line in the autostart file accordingly. | |
You can even go nuts and go to 1152x864 if you wish..... | |
For 1152x864 the command would be: | |
Code: [Select] | |
xrandr --output LVDS1 --panning "1152x864" --scale "1.125x1.44" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment