Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia with framebuffer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 1:42 am    Post subject: nvidia with framebuffer Reply with quote

Hi Guys,

I tried compiling the nvidia framebuffer into the kernel, and using the x11 nvidia-drivers as well for XOrg, but it complained and said I would have to remove it from the kernel.

So, what other alternative do I have? I can't stand the 80x25 screen resolution. It used to work in 2.6.17, but I can't remember the stuff I enabled. Now I'm using 2.6.28.

Thanks.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Mar 02, 2009 5:20 am    Post subject: Reply with quote

Have you tried uvesafb? Instructions are here:
http://dev.gentoo.org/~spock/projects/uvesafb/
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Mar 02, 2009 6:11 am    Post subject: Reply with quote

You can also try VESA VGA, which is what I use. You don't need anything else with VESA VGA. With uvesafb, there is a user space program needed.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 6:31 am    Post subject: Reply with quote

Just tried it at your request, and it does not work. Any ideas???

Code:
uvesafb: NVIDIA Corporation, G72 Board - brewst0 , Chip Rev   , OEM: NVIDIA, VBE v3.0
uvesafb: VBIOS/hardware doesn't support DDC transfers
uvesafb: no monitor limits have been set, default refresh rate will be used
uvesafb: scrolling: redraw
uvesafb: framebuffer at 0xd0000000, mapped to 0xffffc20004100000, using 6144k, total 262144k
fb0: VESA VGA frame buffer device


Code:

title=Gentoo Linux (2.6.28-gentoo-r2)
        root (hd0,1)
        kernel /boot/kernel-genkernel-x86_64-2.6.28-gentoo-r2 init=/linuxrc ramdisk=8192 root=/dev/s/sys doscsi dolvm video=uvesafb:1024x768-32,mtrr:3,ywrap
        initrd /boot/initramfs-genkernel-x86_64-2.6.28-gentoo-r2
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 6:44 am    Post subject: Reply with quote

pappy_mcfae wrote:
You can also try VESA VGA, which is what I use. You don't need anything else with VESA VGA. With uvesafb, there is a user space program needed.

Blessed be!
Pappy

No go, any ideas?



Code:
title=Gentoo Linux (2.6.28-gentoo-r2)
  root (hd0,1)
  kernel /boot/kernel-genkernel-x86_64-2.6.28-gentoo-r2 init=/linuxrc ramdisk=8192 root=/dev/s/sys doscsi dolvm video=vesafb:1024x768-32@70,ywrap
  initrd /boot/initramfs-genkernel-x86_64-2.6.28-gentoo-r2


I had them both enabled, now I'm going to disable the VGA one, and try it with just the uvesafb enabled.
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 7:12 am    Post subject: Reply with quote

Disabling the VGA one did nothing to make uvesafb one to work. I throw my hands in the air.
Back to top
View user's profile Send private message
CapnBuzzkill
n00b
n00b


Joined: 16 Mar 2007
Posts: 23
Location: Holland

PostPosted: Mon Mar 02, 2009 5:58 pm    Post subject: Reply with quote

I have an nvidia card myself and I use the vesa framebuffer (like pappy_mcfae said above). The following works for me:

- enable CONFIG_FB ("Support for frame buffer devices") and CONFIG_FB_VESA ("VESA VGA graphics support") in your kernel .config
- use this to boot your kernel (so add the "vga=" and replace your own "video=") : vga=0x31B video=vesafb:mtrr:3,ywrap

The number after "vga=" indicates the resolution and color depth you wanna use, in this case it's 1280x1024 with 24-bits color. For more options (also for "video=") see this link.
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 6:24 pm    Post subject: Reply with quote

That doesn't work for me. I can only select number of characters. e.g. 80x50, 80x60, etc.
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 6:25 pm    Post subject: Reply with quote

Oops, I had disabled the VGA one, let me try again.
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 6:38 pm    Post subject: Reply with quote

Okay, the vesa does something now. But, the screen is blank. Going try it without the mtrr.
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 7:08 pm    Post subject: Reply with quote

No, nothing seems to work properly in VESA mode. :(
Back to top
View user's profile Send private message
CapnBuzzkill
n00b
n00b


Joined: 16 Mar 2007
Posts: 23
Location: Holland

PostPosted: Mon Mar 02, 2009 7:27 pm    Post subject: Reply with quote

First you say "the vesa does something now" and now you say "nothing seems to work properly". What exactly do you mean? Do you only get a black screen without any visible text? Have you tried different values for the "vga=" parameter?

Can you please post:
- all the framebuffer options you have enabled in your kernel (ie. run "grep -i _fb /usr/src/linux/.config")
- your "kernel" line from your grub.conf / menu.lst
- your dmesg output (there should be something in there about the frame buffer)
Back to top
View user's profile Send private message
TrentonAdams
n00b
n00b


Joined: 16 Aug 2008
Posts: 64

PostPosted: Mon Mar 02, 2009 7:33 pm    Post subject: Reply with quote

Sorry, I meant nothing works as in I get a blank screen, and changing the mtrr option did nothing. I'll try disabling ywrap too though. I'm recompiling first though.

Code:
vesafb: framebuffer at 0xd0000000, mapped to 0xffffc20004100000, using 6144k, total 262144k
vesafb: mode is 1024x768x32, linelength=4096, pages=1
vesafb: scrolling: redraw
vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
fb0: VESA VGA frame buffer device



Code:
zcat /proc/config.gz | grep -i _fb | grep -v ^#
CONFIG_FB=y
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_VESA=y


kernel /boot/kernel-genkernel-x86_64-2.6.28-gentoo-r2 init=/linuxrc ramdisk=8192 root=/dev/s/sys doscsi dolvm vga=ask video=vesafb:ywrap
Back to top
View user's profile Send private message
CapnBuzzkill
n00b
n00b


Joined: 16 Mar 2007
Posts: 23
Location: Holland

PostPosted: Wed Mar 04, 2009 10:22 pm    Post subject: Reply with quote

With regard to the mtrr setting in the "video=" parameter, I think you either have to have CONFIG_MTRR enabled in your kernel .config, or you have to use mtrr:0 there, perhaps you can enable CONFIG_MTRR anyway just to be sure. Have you tried using a numerical value with the "vga=" parameter instead of "ask", ie "vga=0x301"?

When looking through my own kernel .config, I see two more options that seem relevant: CONFIG_VGA_CONSOLE and CONFIG_FRAMEBUFFER_CONSOLE. Do you have these two enabled as well? If not, could you test with those enabled?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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