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?
Asked
Active
Viewed 1.1k times
2
-
I've not tried it in ages, but I believe when you do `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. – Jan Hudec May 30 '14 at 19:55
-
I need to do this across hundreds of machines and need to be able to easily find the options without setting the grub, rebooting, finding the number, setting it and reboot again. If I could find a list, wherever the ask option gets it from I can find it, set it reboot and not have to worry about it. – user3692312 May 30 '14 at 22:17
1 Answers
4
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
sds
- 1,960
- 2
- 22
- 33
-
-
-
hwinfo is not a valid command on any of the machines I've tried. Is there an equivalent for Fedora or CentOS? – user3692312 Jun 02 '14 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? – user3692312 Jun 06 '14 at 20:45
-
if you have a few identical boxes, you can build `hwinfo` on one and `scp` to all the others. – sds Jun 06 '14 at 21:44