I realize this has been asked a thousand times but I cannot find a solution for my problem. I have only one monitor, I'm not using a grub menu and I'm on Ubuntu 16.04.2 LTS xenial. So far the resolution was fine (1920x1080), but last Friday I turned off the computer and today the resolution changed to 1024x768. Display doesn't go higher than 1360x768. I'm using the graphics card from my NVIDIA driver (chaging to X.org Nouveau doens't work either).
:~$ xrandr :
Screen 0: minimum 8 x 8, current 1360 x 768, maximum 16384 x 16384 VGA-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.00 + 1360x768 59.96* 59.80 1152x864 60.00 800x600 72.19 60.32 56.25 680x384 59.96 59.80 640x480 59.94 512x384 60.00 400x300 72.19 320x240 60.05 DVI-D-0 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis)
~:$ lshw -C video:
*-display description: VGA compatible controller product: NVIDIA Corporation vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nvidia latency=0 resources: irq:127 memory:ee000000-eeffffff memory:e0000000-e7ffffff memory:e8000000-e9ffffff ioport:e000(size=128) memory:c0000-dffff
I tried this fix: but for some reason it doesn't work:
~:$ sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
~:$ sudo xrandr --addmode VGA-0 1920x1080
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: 33 Current serial number in output stream: 34
I also tried the same fix by editing with nano the ~/.xprofile, and although I can do that with no errors when I reboot it doesn't do anything.
And I tried upgrading NVIDIA drivers but it broke my login screen (couldn't log in), so I had to purge all NVIDIA drivers and then reinstall the one I'm currently using (the one I was already using before).
Any ideas on how could I solve this problem?