Archive

Posts Tagged ‘linux high resolution’

Centos 7 low screen resolution problem

December 16, 2014 Leave a comment

somehow after upgrading one of my laptops to centos 7 my second monitor stuck to 1024×768 resolution. This is how i solved it:

Create the new resolution

[marko@marko ~]$ cvt 1280 1024 75
# 1280x1024 74.90 Hz (CVT 1.31M4) hsync: 80.30 kHz; pclk: 138.75 MHz
Modeline "1280x1024_75.00"  138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync

Declare new resolution with xrandr

xrandr --newmode "1280x1024_75.00"  138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync

Add new resolution to VGA1 (my second monitor)

xrandr --addmode VGA1 1280x1024_75.00

Create layout script and run

[marko@marko ~]$ cat layout.sh 
#!/bin/sh
xrandr --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output DP1 --off --output VGA1 --mode 1280x1024_60 --pos 1366x0 --rotate normal
Advertisements