2

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?

user3692312
  • 21
  • 1
  • 1
  • 3
  • 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 Answers1

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

See also How to set the resolution in text consoles.

sds
  • 1,960
  • 2
  • 22
  • 33