I have Linux Mint 20 installed on my PC. Please, please, don't mark this as duplicate, I know people have asked this everywhere but believe me, THEIR SOLUTIONS DON'T WORK. So, I have two monitors, one runs at 1366x768, that's my main one, the other runs at 1360x768. The former works no issues, the latter only shows 1024x768 and 800x600 resolutions, there's no way to set it' actual native one. I have an intel integranted GPU. So I searched a bit and found some solutions involving xrandr. They said to use cvt to get a Modeline (????) and use xrandr to add it to the list of resolutions. This worked at first, but while the resolution appeared on the list, selecting it showed the display a bit shifted to the left, so the screen was cut off and there was black space on the right (which I could not hover over with my mouse, mind you). I couldn't find a solution for this, so I continued with the guide which said that this was temporary and would be reset upon restarting the PC, and it showed a way to make it permanent.
It involved shutting down the Xserver and creating an x config file which we can then add the "Modeline" lines to on the "Monitor" sections. He also explained that we should add a line on every "Screen" section and subsection that said "Mode 1360x768". So I did. After that I had to move the file to /etc/X11... that did absolutely nothing.
Messing around again with xrandr I found out that the commands that used to work before don't work now. They give me the following error:
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 45
Current serial number in output stream: 45
So I can't even use that now. Then my main monitor started to mess up, the screen was shifted to the center of the screen, and a copy of it was next to it, like a mosaic. I had to restart the lightdm service a couple of times and edit my .xprofile file to make it return to normal... and here we are.
Why is it so god damn hard to change the resolution of a monitor? I really want to like linux but I don't find any reasonable explanation as to why is this a thing in 2020.
loginctl
to find your session id, thenloginctl show-session -pType ${id}
(replacing${id}
as appropriate).${id}
:loginctl show-session -pType 3
.