I connected my old monitor Philips 223V5 to my new PC with Ubuntu using VGA-HDMI adapter. It loaded with bad resolution. I couldn't change it in the settings, because there was only one available option 1024x768 (4:3).
I googled some methods.
Firstly, using xrandr
.
cvt 1920 1080 60
copy text after Modeline
xrandr --newmode "copied-text"
xrandr --addmode default 1920x1080_60.00
xrandr --output default --mode 1920x1080_60.00
xrandr --newmode
gives an error "xrandr: Failed to get size of gamma for output default
"
xrandr --addmode
outputs the same
xrandr --output
prints one more line "xrandr: Configure crtc 0 failed
"
It didn't help.
Then I changed file /etc/default/grub
the line
#GRUB_GFXMODE=640x480
was edited to my resolution:
GRUB_GFXMODE=1920x1080
sudo update-grub
sudo reboot
It didn't help.
Finally, I found one more way.
I've created a file 10-monitor.conf
in /usr/share/X11/xorg.conf.d/
with this text:
Section "Monitor"
Identifier "Philips"
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Option "PreferredMode" "1920x1080_60.00"
EndSection
I used spaces, if it matters. Modeline generated by cvt
.
I've installed mesa-utils
. There is still only one option 1024x768 (4:3), Unknown Display
I've also reconnected it using the original VGA. And repeated steps with xrandr
. Nothing changed.
Now, I don't know how to fix it. Maybe it is related to drivers? But I don't know where to find and how to install them.
What additional information should I provide?