I am trying to change the console resolution within grub2. It changes the bootmenu resolution correctly, however the console resolution goes back to 640x480 no matter what I do. What I tried: Added to /etc/default/grub the following lines: GRUB_GFXMODE=1024x768 GRUB_GFXPAYLOAD_LINUX=1024x768 Next, I commented the above lines and I edited the file /etc/grub.d/00_header and modified it according to the instructions here: http://nixtalks.net/node/30 I regenerated grub.cfg and now I see the following lines inside: if loadfont /usr/share/grub2/unicode.pf2 ; then set gfxmode=1024x768x32 set gfxpayload=1024x768x32 load_video insmod gfxterm fi However, after reboot, the same behavior occurs: the menu resolution changes to 1024x768 (or so it seems), and then when Gentoo starts loading, it changes back to 640x480 This is really frustrating, I've spent half a day on it, and I can't get it working.. emerge --info Portage 2.1.10.45 (default/linux/amd64/10.0/server, gcc-4.4.6, glibc-2.13-r4, 3.2.2-gentoo x86_64) ================================================================= System uname: Linux-3.2.2-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_L5518_@_2.13GHz-with-gentoo-2.1 Timestamp of tree: Mon, 06 Feb 2012 05:00:01 +0000 ccache version 3.1.6 [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3 dev-util/ccache: 3.1.6 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.4.6-r1, 4.5.3-r2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo kde x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=y" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage" SYNC="rsync://10.10.10.3/gentoo-portage" USE="X acl acpi amd64 apm bash-completion berkdb bzip2 cli consolekit cracklib crypt cxx dbus dri fortran gdbm git gpm iconv java javascript kde mmx modules mudflap multilib mysql ncurses nfs nls nptl nptlonly opengl openmp pam pcre perl php pppd python python3 qt3support qt4 readline rtc samba session smp snmp spell sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs tcpd truetype udev unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Just to clarify, after modifying /etc/default/grub or /etc/grub.d/00_header I did run the command: grub2-mkconfig -o /boot/grub2/grub.cfg in order to rebuild grub.cfg file.
Update: I used the option: GRUB_CMDLINE_LINUX_DEFAULT="video=uvesafb:ywrap,mtrr:3,1024x768" in my /etc/default/grub file, then rebuilt grub.cfg and now I get a working resolution in the console. However, I think it is a workaround, the original problem still exists. I cannot get it working using the either using 'GRUB_GFXPAYLOAD_LINUX' in /etc/default/grub or using 'set gfxpayload' in 00_header file, no matter what I do... I think this is something that should be fixed nevertheless.
Does it work if you configure your kernel with the older vesafb driver? (CONFIG_FB_VESA)
Usually: GRUB_GFXPAYLOAD_LINUX="keep" to maintain the GRUB_GFXMODE resolution.