The file used to change various GRUB 2 settings is /etc/default/grub. This file also contains options to adjust the timeout in seconds before GRUB boots the default OS (GRUB_TIMEOUT), change which OS should be selected by default (GRUB_DEFAULT, first entry being 0), and also the option to change the resolution used by default – GRUB_GFXMODE.