Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Grub 2 and ati-drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 528

PostPosted: Wed Aug 22, 2012 12:14 pm    Post subject: [Solved] Grub 2 and ati-drivers Reply with quote

Hi all,
I have decided to switch from lilo to grub2 (basically to have an higher resolution background), all worked fine on my workstation that use Ati opensource driver (KMS) but on my laptop that use ati-drivers (I have to use for university, I need the best performance, F**K proprietary driver) I have a strange problem.
Using lilo when I press enter it starts booting, no big problem only the resolution is very low (the words are huge) but was good to enter username, password and type startx.
Now with grub2 when I press enter it displays a distorted version of the background that I set for grub, unlike my workstation in which I see all the boot process, I don't see anything else but if I wait 20-30 seconds (the time to let it boot) and I type username, password and startx gnome starts as usual.

Any ideas?

This is my /etc/default/grub/

Code:
GRUB_DISTRIBUTOR="Gentoo"

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5

## Kernel option
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX_DEFAULT=""

## The resolution used on graphical terminal
GRUB_GFXMODE=1920x1080x32
GRUB_GFXPAYLOAD=1920x1080x32

## Background image used on graphical terminal
GRUB_BACKGROUND="/boot/grub2/Wallpaper.png"


Thanks


Last edited by yellowhat on Sun Sep 02, 2012 8:34 am; edited 3 times in total
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2057
Location: United Kingdom

PostPosted: Wed Aug 22, 2012 1:29 pm    Post subject: Reply with quote

I'm also using the FGLRX driver. In case it's of any use to you, here are the contents of my /etc/default/grub file:

Code:
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default-2,v 1.2 2012/06/28 22:36:53 floppym Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub2/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10

GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="`cat /proc/cmdline | sed -e 's#BOOT_IMAGE=.* ro ##g'`"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

####################################
# Inserted by me 28.06.12:
GRUB_VIDEO_BACKEND=vbe
GRUB_GFXPAYLOAD_LINUX=1024x768
GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_COLOR_NORMAL="white/black"
####################################

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1024x768

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub2/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
GRUB_BACKGROUND="/boot/grub2/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true


Another thing: My laptop screen resolution is 1920x1080 but, rather than mess around with different resolutions, I simply took a 1920x1080 image that I wanted to use for my GRUB 2 background, loaded it in the GIMP, selected Image > Scale Image..., unticked the link between Image Size Width and Height, changed the width and height to 1024x768 and saved the resulting distorted image as /boot/grub2/mybackground.png. When my laptop boots, the mybackground.png image get stretched back to 1920x1080 and looks correct as a result!
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.

My blog
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 528

PostPosted: Wed Aug 22, 2012 2:16 pm    Post subject: Reply with quote

Thanks for reply but adding "GRUB_CMDLINE_LINUX="`cat /proc/cmdline | sed -e 's#BOOT_IMAGE=.* ro ##g'`" " didn't help, same behavior.
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 528

PostPosted: Mon Aug 27, 2012 7:17 am    Post subject: Reply with quote

Seems that now it worked if I start using the battery and not AC.
That's quite strange.
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 528

PostPosted: Sun Sep 02, 2012 8:33 am    Post subject: Reply with quote

Solved updating kernel to 3.5.3.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum