On Windows computers, there is a simple "hide the modes this screen does not support" button.
How can I get the available video modes supported (accepted) by my actually connected screen via Linux command line?
I.e: I would like to answer to this question: "Would my 1280x1024 video mode be supported by this screen"
I have read about the hwinfo program, but it seems not to be included on Ubuntu anymore.
The other method I tested uses vbetool, but I think it is not the appropriate way:
luis@Terminus:~$ sudo vbetool vbemode get
16673
And I have read too about a method implying the commands execution on GRUB menu (like vbeinfo), but I would like to find some inside-Linux way.
Answers generic for any Linux distro are preferred.
If not possible, Ubuntu or Kali are accepted.
Can't open display. Upvoted anyway, as long as it solves the problem, and works even with multiscreen (two screens in my case). – Sopalajo de Arrierez Aug 23 '15 at 23:19xrandr -d :0, I getInvalid MIT-MAGIC-COOKIE-1 keyCan't open display :0. It seems some user must be logged to the X Windows system forxrandrto work. – Sopalajo de Arrierez Aug 24 '15 at 00:12man xrandr.--mode 1920x1080for resolution,--output HDMI-1to specify which monitor to affect. – robut Aug 26 '19 at 12:26