I found many similar questions, tried all the possible solutions and none worked for me so far.
I have a lenovo thinkpad W530 and an LG IPS234 monitor and I am running ubuntu 16.04.01(uname -a
prints out Linux <machine_name> 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
). I have nvidia-375 driver installed and this is the output from lspsi for my graphics card:
> sudo lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K1000M] (rev a1)
And also here is the output from xrand:
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.00*+ 50.00
DP-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.00*+ 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1280x1024 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 60.00
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 59.94
640x480 59.94 59.93
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
As can be seen from the command above I am not able to choose any other resolution but 1920x1080 for my primary display. I tried using the build-in displays
settings and also nvidia-settings
, but can not change the resolution in either.
I have tried running(generated with cvt 1360 768 60
):
xrandr --newmode "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync
And then xrandr --addmode LVDS-0 "1360x768_60.00"
. But this command fails with the error:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 45
Current serial number in output stream: 46
As indicated by other answers I tried editing my xorg.conf file, but I do not have such file:
> ls /etc/X11
app-defaults xkb Xresources
cursors xorg.conf.07232016 Xsession
default-display-manager xorg.conf.failsafe Xsession.d
fonts xorg.conf.nvidia-xconfig-original Xsession.options
rgb.txt Xreset xsm
xinit Xreset.d Xwrapper.config
What can I do in order to be able to change the resolution of my laptop?
EDIT: after downloading the nvidia driver from nvidia and installing it again from the command line I finally have a xorg.conf. Also following instructions from this post and a few similar resources I added the following line in the Screen
section:
Option "ModeValidation" "AllowNonEdidModes, NoVirtualSizeCheck, NoMaxPClkCheck, NoWidthAlignmentCheck, NoExtendedGpuCapabilitiesCheck"
Now I have a few extra options in xrandr:
xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.00*+ 59.93 50.00
1680x1050 59.88
1600x1024 60.17
1400x1050 59.98
1280x1024 60.02
1280x960 60.00
960x540 59.99
840x525 60.01 59.88
800x512 60.17
700x525 59.98
640x512 60.02
640x480 60.00
... Options for the LG monitor ...
The bad thing is that if I select any option but 1920x1080 my screen ends up severely distorted. It is split in 2 parts horizontally or 4 parts in each quadrant and each part is a mirror image of the others. Also the display in each part is severely stretched.
xrandr
) are available. What happens when you run the following command lines in a terminal window:xrandr -s 1680x1050
orxrandr -s 1280x720
? – sudodus Feb 19 '17 at 09:40xrandr --newmode ...
with another resolution, that is more likely to work, for example1024x768
? You may not be happy with that resolution, but it could be a start to get something that works. – sudodus Feb 19 '17 at 11:33