Re: Re: Re: console resolution
On Wed, Jan 27, 2010 at 09:17:51PM +0200, Andrei Popescu wrote: On Sun,24.Jan.10, 14:22:22, Nima Azarbayjany wrote: I was able to achieve the desired resolution of 1280x800 (equivalent to, I think, 0x361) by manually editing grub.cfg but the grub menu does not show correctly. It only fills the left top quarter of the screen and parts of it cannot be seen. The rest was fine (the boot up of linux I mean) with a good resolution. I will try setting the resolutions separately, i.e., not using gfxpayload=keep. Are you running update-grub2 after editing the files? See below for the files I changed. As far as I can tell this is due to the background image being too small and the text is now black on black. Try using a bigger picture ;) I struck that also using grub2-splashimages. The fix is to edit /etc/grub.d/00_header: ... case ${platform}:${GRUB_TERMINAL} in pc:gfxterm) # Make the font accessible prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}` cat EOF if font `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then set gfxmode=640x480 insmod gfxterm insmod vbe terminal gfxterm fi ... See where set gfxmode=640x480, that allows the menu to be 640x480 (which the grub2-splashimages mentions in /usr/share/doc/grub2-splashimages/README) while setting: GRUB_CMDLINE_LINUX=vga=791 in /etc/default/grub allows the kernel to boot in the higher res. This is on Lenny and everything is working fine. Looks like a bug in /usr/share/doc/grub2-splashimages/README where it says to run update-grub, that should be update-grub2. -- Chris. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: Re: console resolution
On Tue, Feb 02, 2010 at 01:50:23AM +1300, Chris Bannister wrote: Looks like a bug in /usr/share/doc/grub2-splashimages/README where it says to run update-grub, that should be update-grub2. Arrrgh ... I see that: fischer:~# less /usr/sbin/update-grub2 #!/bin/sh -e exec update-grub Sorry about the noise. -- Chris. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: Re: console resolution
On Sun,24.Jan.10, 14:22:22, Nima Azarbayjany wrote: I was able to achieve the desired resolution of 1280x800 (equivalent to, I think, 0x361) by manually editing grub.cfg but the grub menu does not show correctly. It only fills the left top quarter of the screen and parts of it cannot be seen. The rest was fine (the boot up of linux I mean) with a good resolution. I will try setting the resolutions separately, i.e., not using gfxpayload=keep. As far as I can tell this is due to the background image being too small and the text is now black on black. Try using a bigger picture ;) Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: Re: Re: console resolution
I was able to achieve the desired resolution of 1280x800 (equivalent to, I think, 0x361) by manually editing grub.cfg but the grub menu does not show correctly. It only fills the left top quarter of the screen and parts of it cannot be seen. The rest was fine (the boot up of linux I mean) with a good resolution. I will try setting the resolutions separately, i.e., not using gfxpayload=keep. Are you making all the changes that have been suggested? In short: In /etc/default/grub add GRUB_GFXPAYLOAD=keep on the line after GRUB_GFXMODE=resolution In /etc/grub.d/00_header add if [ x${GRUB_GFXPAYLOAD} = x ] ; then GRUB_GFXPAYLOAD=640x480 ; fi on the line after if [ x${GRUB_GFXMODE} = x ] ; then GRUB_GFXMODE=640x480 ; fi In /etc/grub.d/00_header add set gfxpayload=${GRUB_GFXPAYLOAD} on the line after set gfxmode=${GRUB_GFXMODE} Run update-grub or update-grub2 I did install grub-legacy at some point but removed it almost immediately. I have reinstalled the grub-pc package and done everything to make sure it's a clean install not mixed with grub-legacy. It seems to be so. This could mean your grub install is somehow broken, try to renew it from scratch, not mixing both grub-pc (grub2) and grub-legacy. Or maybe you have typos somewhere in the variables so that they are not picked up by update-grub (you can also call grub-mkconfig -o /boot/grub/grub.cfg for grub-pc). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: Re: console resolution
On Sun, Jan 24, 2010 at 05:52:22AM EST, Nima Azarbayjany wrote: I was able to achieve the desired resolution of 1280x800 (equivalent to, I think, 0x361) by manually editing grub.cfg but the grub menu does not show correctly. It only fills the left top quarter of the screen and parts of it cannot be seen. The rest was fine (the boot up of linux I mean) with a good resolution. I will try setting the resolutions separately, i.e., not using gfxpayload=keep. I was able to get everything grub2 to work in about a couple of hours hanging out at freenode.net/#grub and I never looked back. CJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: console resolution
It's weird but it's not working for me. Somehow update-grub (as well as update-grub2, in case they are different) ignore all modifications to /etc/default/grub. I'm giving up. Should I report a bug? Hi, I use a slightly different way, I put: GRUB_GFXMODE=1440x900 640x480 in /etc/defaults/grub (native resolution first, fall-back one isn't necessary, it's the default). Then in /etc/grub.d/00_header I add gfxpayload=keep to this section (around line 80): [...] if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then set gfxmode=${GRUB_GFXMODE} set gfxpayload=keep here it is insmod gfxterm insmod ${GRUB_VIDEO_BACKEND} if terminal_output gfxterm ; then true ; else [...] It's working for me on Debian Squeeze and Ubuntu, but needs to be updated if 00_header is overwritten during update (not often). It's just a workaround until gfxpayload= is picked up in /etc/default/grub. My 2 cents. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: console resolution
It's weird but it's not working for me. Somehow update-grub (as well as update-grub2, in case they are different) ignore all modifications to /etc/default/grub. I'm giving up. Should I report a bug? Are you making all the changes that have been suggested? In short: In /etc/default/grub add GRUB_GFXPAYLOAD=keep on the line after GRUB_GFXMODE=resolution In /etc/grub.d/00_header add if [ x${GRUB_GFXPAYLOAD} = x ] ; then GRUB_GFXPAYLOAD=640x480 ; fi on the line after if [ x${GRUB_GFXMODE} = x ] ; then GRUB_GFXMODE=640x480 ; fi In /etc/grub.d/00_header add set gfxpayload=${GRUB_GFXPAYLOAD} on the line after set gfxmode=${GRUB_GFXMODE} Run update-grub or update-grub2 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: console resolution
set gfxpayload=keep will tell Grub2 to hand off the graphics settings to the kernel, which if configured properly will carry them forward. There are some other settings to tweak as well, insmod vbe and whatnot in the appropriate file, but that's about the gist of it. The nice thing is it makes for very smooth transitions when switching from terminal to x, as the display settings (if correctly configured) are already applied, thus, no ugly flashing of the screen and delay. Best, Arthur Would you please explain how and where to insert this into Grub's configuration? I played with /etc/default/grub and update-grub but no success. Jeffrey Cao wrote in another post that grub2 can support the traditional vga kernel option by means of editing /etc/default/grub and adding the line GRUB_CMDLINE_LINUX=vga=xxx and then running update-grub to update /boot/grub/grub.cfg. But I haven't tried it myself. I'm not going to de-install lilo and install grub2 to find out. But next time I try a Squeeze install from scratch, I might give it a try. I tried this one but it too didn't work. It says that vga=xxx is deprecated. Jeffrey Cao wrote in another post that grub2 can support the traditional vga kernel option by means of editing /etc/default/grub and adding the line GRUB_CMDLINE_LINUX=vga=xxx and then running update-grub to update /boot/grub/grub.cfg. But I haven't tried it myself. I'm not going to de-install lilo and install grub2 to find out. But next time I try a Squeeze install from scratch, I might give it a try. This one did not work as well. I guess I'm going to install grub1 for now. Nima -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org