[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: configuring grub



Hello,

On 16/08/13 12:20, François Patte wrote:
> 
> 
> 
> -------- Message original --------
> Sujet: 	Re: configuring grub
> Date : 	Fri, 16 Aug 2013 11:45:09 +0200
> De : 	François Patte <francois.patte@mi.parisdescartes.fr>
> Pour : 	Darac Marjal <mailinglist@darac.org.uk>
> 
> 
> 
> Le 16/08/2013 11:15, Darac Marjal a écrit :
>> On Fri, Aug 16, 2013 at 11:02:20AM +0200, François Patte wrote:
>>> Bonjour,
>>>
>>> I tried to change the screen resolution and the splash screen in grub:
>>>
>>> 1- edited /etc/default/grub
>>> GRUB_GFXMODE=1280x1024
>> That should work.
>>
>>> GRUB_BACKGROUND="/usr/share/images/grub/Windbuchencom.tga"
>>>
>>> 2- run grub-update (it says that it has found the image, then done...)
>> The correct command is "update-grub" or "update-grub2" (they're
>> essentially the same).
>>
>>> 3- rebooted and..... nothing has changed! Resolution is still ugly and
>>> no splashscreen (the splashscreen is for fun, I don't need it) But I
>>> want to change the resolution (it is the default resolution of my screens)
>> It's possible that grub can't switch to the resolution. Many graphics
>> cards allow access to the basic VGA, SuperVGA etc modes (640x480,
>> 800x600, 1024x768) through the VESA BIOS. To get higher resolutions
>> (including, perhaps, the native mode of an LCD panel) requires the full
>> driver.
>>
>>> 4- I had a look to the file  /boot/grub/grub.cfg
>>> The location of the image had been wrongly written:
>>> share/images/grub/Windbuchencom.tga but the resolution is correctly set.
>> "share/images..." probably indicates you've got /usr on a separate
>> partition. Remember that grub doesn't use a full unix-style tree, but
>> uses a forest (a bit more like Windows, really) of individual
>> partitions. So the TGA file would likely be in (hd1,2)share/images... or
>> similar.
> 
> Thanks for your answer. Yes /usr is on a separate partition; shall put
> (hd1,2)share/images... in /etc/default/grub? And how to find the correct
> numbers? /usr is on /dev/sda2, but it is a a raid array, is grub able to
> read that?

I would put the image in the /boot partition, where the grub material is put:
see /boot/grub .
You may also customize the grub machinery to put the image
somewhere in the /boot partition: see /etc/grub.d material.


>>> What to do?
>>>
>>> In /etc/default/grub it is recommended to check the resolution using
>>> vbeinfo, I have no vbeinfo program and I cannot find one, what is the
>>> package with this program?
>> That would be the "grub-pc" or equivalent package. Basically, the
>> instruction is to boot into grub press 'c' at the menu (to give you a
>> command line) then enter "set pager=1" (return) "vbeinfo" (return).
> 
> OK, that was useful, 1280x1024 is lIsted, but it does not work, I tried
> 1024x768 without any success. And of course I made a typo in the mail, I
> ran "update-grub" (and not grub-update).

have you tried the following command ?

hwinfo --framebuffer


Keep in mind that grub is sometime capricious.

hth,
Jerome

> 
> 
> 
> -- 
> François Patte
> UFR de mathématiques et informatique
> Laboratoire CNRS MAP5, UMR 8145
> Université Paris Descartes
> 45, rue des Saints Pères
> F-75270 Paris Cedex 06
> Tél. +33 (0)1 8394 5849
> http://www.math-info.univ-paris5.fr/~patte
> 
> 
> 
> 
> -- 
> François Patte
> UFR de mathématiques et informatique
> Laboratoire CNRS MAP5, UMR 8145
> Université Paris Descartes
> 45, rue des Saints Pères
> F-75270 Paris Cedex 06
> Tél. +33 (0)1 8394 5849
> http://www.math-info.univ-paris5.fr/~patte
> 
> 
> 


Reply to: