3

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?

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
    Commented May 30, 2014 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. Commented May 30, 2014 at 22:17

1 Answer 1

5

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.

6
  • I forgot to mention that it's console mode. X is turned off. Commented May 30, 2014 at 21:51
  • @user3692312: see edit
    – sds
    Commented May 30, 2014 at 23:14
  • 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
  • @user3692312: see edit
    – sds
    Commented Jun 2, 2014 at 17:30
  • 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

Not the answer you're looking for? Browse other questions tagged .