I'm trying to figure out how to find the screen resolutions available for a linux machine. If you set the wrong resolution or set vga=ask then it prompts you for available resolutions. Is there a way I can find that list somewhere after boot?
1 Answer
X
If X
is running, you can use
$ xdpyinfo | grep 'dimensions:'
or
$ xrandr | fgrep '*'
or run your desktop monitor configuration tool.
See also Get display resolution from the command line for Linux Desktop.
Console
As root from the console:
# hwinfo --framebuffer
hwinfo
is a SuSE tool, also available for
-
I forgot to mention that it's console mode. X is turned off. Commented May 30, 2014 at 21:51
-
-
hwinfo is not a valid command on any of the machines I've tried. Is there an equivalent for Fedora or CentOS? Commented Jun 2, 2014 at 17:15
-
-
So, i still don't have the option of using the hwinfo command on any of these machines from RH Enterprise to Fedora to CentOS. It seems installing it would be just as much work as finding and setting up each machine. Any other suggestions? Commented Jun 6, 2014 at 20:45
vga=ask
, it will be possible to list the options. So you do that once and then you change it to whatever you've set that first time.