Add missing Monitor Resolution profile
tl;dr
- get Modeline
cvt 1366 768
- create and add new mode with
xrandr
based on the generated modeline - add settings to
~/.xprofile
to preserve them, so the settings are still there when you restart
# Add 1366x768@60Hz
xrandr --newmode "1368x768" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
xrandr --addmode VGA-1 1368x768
xrandr --output VGA-1 --mode 1368x768
get Modeline
cvt 1366 768
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
create and add mode
# Add the resolution supported by Acer Aspire 5742 on VGA port
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA-1 1368x768_60.00
# find the monitor identifier to set the mode for
xrandr --listmonitors
Monitors: 2
0: +*LVDS-1 1366/344x768/194+0+0 LVDS-1
1: +VGA-1 1024/271x768/203+1366+0 VGA-1
set output mode
xrandr --output VGA-1 --mode 1368x768_60.00
create .xprofile
Create a ~/.xprofile
file and simply add the commands for the programs you wish to start with the session
touch ${HOME}/.xprofile
echo "
# Add the resolution supported by Acer Aspire 5742 on VGA port
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA-1 1368x768_60.00
xrandr --output VGA-1 --mode 1368x768_60.00
" >> ${HOME}/.xprofile
Troubleshooting
- if the resolution is not working, try changing the frequency. You can specify the frequency when getting modeline with the
gtf
command
gtf 1366 768 30 -x
# get video controller details
sudo lshw -C video