Graphics Mode Woes
Hello,
I'm attempting to get linux 2.6.5 to go into 1024x768x64k mode with my NVidia GEForce card. Under 2.4.25, it works fine with "vga=791" in my lilo.conf file. Here's what's in the log:
Apr 22 17:19:09 gateway kernel: vesafb: framebuffer at 0xf0000000, mapped to 0xe080d000, size 3072k Apr 22 17:19:09 gateway kernel: vesafb: mode is 1024x768x16, linelength=2048, pages=0 Apr 22 17:19:09 gateway kernel: vesafb: protected mode interface info at c000:c590 Apr 22 17:19:09 gateway kernel: vesafb: scrolling: redraw Apr 22 17:19:09 gateway kernel: vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 Apr 22 17:19:09 gateway kernel: Console: switching to colour frame buffer device 128x48 Apr 22 17:19:09 gateway kernel: fb0: VESA VGA frame buffer device
Under 2.6.5:
Apr 22 17:57:58 gateway kernel: rivafb: nVidia device/chipset 10DE0110 Apr 22 17:57:58 gateway kernel: rivafb: Detected CRTC controller 0 being used Apr 22 17:57:58 gateway kernel: rivafb: RIVA MTRR set to ON Apr 22 17:57:58 gateway kernel: rivafb: PCI nVidia NV10 framebuffer ver 0.9.5b (nVidiaGeForce2-M, 32MB @ 0xF0000000) Apr 22 17:57:58 gateway kernel: vga16fb: initializing Apr 22 17:57:58 gateway kernel: vga16fb: mapped to 0xc00a0000 Apr 22 17:57:58 gateway kernel: fb1: VGA16 VGA frame buffer device
Totally different output and no references to vesafb. With "vga=791" on bootup the screen goes blank then switches to the normal graphics mode. Even when I use "vga=ask" and I put in a valid number, the screen switches to text mode momentarily then goes back to the normal graphics mode.
Here's the related portion of my .config file:
#
# Graphics support
#CONFIG_FB=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not setCONFIG_FB_VGA16=yCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not setCONFIG_FB_RIVA=y
# CONFIG_FB_I810 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON_OLD is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_VIRTUAL is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_PCI_CONSOLE=yCONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
CONFIG_FONT_PEARL_8x8=y
CONFIG_FONT_ACORN_8x8=y
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
#
# Logo configuration
#CONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=yCONFIG_LOGO_LINUX_VGA16=yCONFIG_LOGO_LINUX_CLUT224=y
Any help or suggestions are appreciated,
Bobby
Quoted 5 lines · Bobby Hitt
CONFIG_FB_VGA16=yCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
#CONFIG_FB_HGAis not setCONFIG_FB_RIVA=y
^^^^^^^^^^^^^^^^^^^^
If you want vesa framebuffer why even select rivabf (NVidia)?
Signature · 1 line
Dmitry
Quoted 43 lines · Bobby Hitt
Hello,
Here's the related portion of my .config file:
#
# Graphics support
#CONFIG_FB=y
#CONFIG_FB_PM2is not set
#CONFIG_FB_CYBER2000is not set
#CONFIG_FB_IMSTTis not setCONFIG_FB_VGA16=yCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
#CONFIG_FB_HGAis not setCONFIG_FB_RIVA=y
#CONFIG_FB_I810is not set#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
#CONFIG_MDA_CONSOLEis not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_PCI_CONSOLE=yCONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#CONFIG_FONT_6x11is not set
CONFIG_FONT_PEARL_8x8=y
CONFIG_FONT_ACORN_8x8=y
#CONFIG_FONT_MINI_4x6is not set
#CONFIG_FONT_SUN8x16is not set
#CONFIG_FONT_SUN12x22is not set#
# Logo configuration
#CONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=yCONFIG_LOGO_LINUX_VGA16=yCONFIG_LOGO_LINUX_CLUT224=y
Quoted 3 lines
Any help or suggestions are appreciated,
Bobby
I believe that you only want a single one of the CONFIG_FB options set. As I recall, having more then one built in to the kernel causes problems, especially with VGA16 and VESA. Why not just turn on CONFIG_FB_VESA=y, and make the others modules (=m).
Why not turn off, or at least build as modules, all the things you aren't really going to be using. Building everything into the kernel is a good way to cause yourself problems.
As an example, part of my config is:
CONFIG_FB=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not setCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
The only things turned on in the graphics section are displayed above.
Paul
That is because the native driver takes priority over the vesafb driver. Disable the native driver if you don't want ot use it.
Quoted 100 lines · Bobby Hitt
Hello,
I'm attempting to get linux 2.6.5 to go into 1024x768x64k mode with my NVidia GEForce card. Under 2.4.25, it works fine with "vga=791" in my lilo.conf file. Here's what's in the log:
Apr 22 17:19:09 gateway kernel: vesafb: framebuffer at 0xf0000000, mapped to 0xe080d000, size 3072k Apr 22 17:19:09 gateway kernel: vesafb: mode is 1024x768x16, linelength=2048, pages=0 Apr 22 17:19:09 gateway kernel: vesafb: protected mode interface info at c000:c590 Apr 22 17:19:09 gateway kernel: vesafb: scrolling: redraw Apr 22 17:19:09 gateway kernel: vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 Apr 22 17:19:09 gateway kernel: Console: switching to colour frame buffer device 128x48 Apr 22 17:19:09 gateway kernel: fb0: VESA VGA frame buffer deviceUnder 2.6.5:
Apr 22 17:57:58 gateway kernel: rivafb: nVidia device/chipset 10DE0110 Apr 22 17:57:58 gateway kernel: rivafb: Detected CRTC controller 0 being used Apr 22 17:57:58 gateway kernel: rivafb: RIVA MTRR set to ON Apr 22 17:57:58 gateway kernel: rivafb: PCI nVidia NV10 framebuffer ver 0.9.5b (nVidiaGeForce2-M, 32MB @ 0xF0000000) Apr 22 17:57:58 gateway kernel: vga16fb: initializing Apr 22 17:57:58 gateway kernel: vga16fb: mapped to 0xc00a0000 Apr 22 17:57:58 gateway kernel: fb1: VGA16 VGA frame buffer deviceTotally different output and no references to vesafb. With "vga=791" on bootup the screen goes blank then switches to the normal graphics mode. Even when I use "vga=ask" and I put in a valid number, the screen switches to text mode momentarily then goes back to the normal graphics mode.
Here's the related portion of my .config file:
#
# Graphics support
#CONFIG_FB=y
#CONFIG_FB_PM2is not set
#CONFIG_FB_CYBER2000is not set
#CONFIG_FB_IMSTTis not setCONFIG_FB_VGA16=yCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
#CONFIG_FB_HGAis not setCONFIG_FB_RIVA=y
#CONFIG_FB_I810is not set
#CONFIG_FB_MATROXis not set
#CONFIG_FB_RADEON_OLDis not set
#CONFIG_FB_RADEONis not set
#CONFIG_FB_ATY128is not set
#CONFIG_FB_ATYis not set
#CONFIG_FB_SISis not set
#CONFIG_FB_NEOMAGICis not set
#CONFIG_FB_KYROis not set
#CONFIG_FB_3DFXis not set
#CONFIG_FB_VOODOO1is not set
#CONFIG_FB_TRIDENTis not set
#CONFIG_FB_VIRTUALis not set#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
#CONFIG_MDA_CONSOLEis not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_PCI_CONSOLE=yCONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#CONFIG_FONT_6x11is not set
CONFIG_FONT_PEARL_8x8=y
CONFIG_FONT_ACORN_8x8=y
#CONFIG_FONT_MINI_4x6is not set
#CONFIG_FONT_SUN8x16is not set
#CONFIG_FONT_SUN12x22is not set#
# Logo configuration
#CONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=yCONFIG_LOGO_LINUX_VGA16=yCONFIG_LOGO_LINUX_CLUT224=yAny help or suggestions are appreciated,
Bobby
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Hello,
I've since gotten this working, thanks to the help of Dmitry Torokhov:
-----
This is what I have for my GeForce2 Go. Actually I think what hurts you is FB_VGA16, not RIVA.. Still, if you using vesa like I do there is no point compiling rivafb (and If you using nVIDIA's binary driver rivafb usually conflicts with it).
-----
I had the wrong drivers loaded.. My question now is where would I have been
able to disable the "native driver"? I don't recall seeing this in the .config file.
TIA,
Bobby
----- Original Message -----
From: "James Simmons" <[email protected]>
To: "Bobby Hitt" <[email protected]>
Cc: "linux-kernel" <[email protected]>
Sent: Friday, April 23, 2004 12:56 PM
Subject: Re: Graphics Mode Woes
Quoted 14 lines
That is because the native driver takes priority over the vesafb driver. Disable the native driver if you don't want ot use it.
Quoted 7 lines · Bobby Hitt
Hello,
I'm attempting to get linux 2.6.5 to go into 1024x768x64k mode with my NVidia GEForce card. Under 2.4.25, it works fine with "vga=791" in my lilo.conf file. Here's what's in the log:
Apr 22 17:19:09 gateway kernel: vesafb: framebuffer at 0xf0000000,
mapped to
Quoted 9 lines
Quoted 9 lines
0xe080d000, size 3072kApr 22 17:19:09 gateway kernel: vesafb: mode is 1024x768x16, linelength=2048, pages=0 Apr 22 17:19:09 gateway kernel: vesafb: protected mode interface info at c000:c590 Apr 22 17:19:09 gateway kernel: vesafb: scrolling: redraw Apr 22 17:19:09 gateway kernel: vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 Apr 22 17:19:09 gateway kernel: Console: switching to colour frame
buffer
Quoted 15 lines
Quoted 15 lines
device 128x48
Apr 22 17:19:09 gateway kernel: fb0: VESA VGA frame buffer deviceUnder 2.6.5:
Apr 22 17:57:58 gateway kernel: rivafb: nVidia device/chipset 10DE0110 Apr 22 17:57:58 gateway kernel: rivafb: Detected CRTC controller 0 being used Apr 22 17:57:58 gateway kernel: rivafb: RIVA MTRR set to ON Apr 22 17:57:58 gateway kernel: rivafb: PCI nVidia NV10 framebuffer ver 0.9.5b (nVidiaGeForce2-M, 32MB @ 0xF0000000) Apr 22 17:57:58 gateway kernel: vga16fb: initializing Apr 22 17:57:58 gateway kernel: vga16fb: mapped to 0xc00a0000 Apr 22 17:57:58 gateway kernel: fb1: VGA16 VGA frame buffer device
Quoted 2 lines
Quoted 2 lines
Totally different output and no references to vesafb. With "vga=791" on bootup the screen goes blank then switches to the normal graphics mode.
Even
Quoted 57 lines
Quoted 57 lines
when I use "vga=ask" and I put in a valid number, the screen switches to text mode momentarily then goes back to the normal graphics mode.
Here's the related portion of my .config file:
#
# Graphics support
#CONFIG_FB=y
#CONFIG_FB_PM2is not set
#CONFIG_FB_CYBER2000is not set
#CONFIG_FB_IMSTTis not setCONFIG_FB_VGA16=yCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
#CONFIG_FB_HGAis not setCONFIG_FB_RIVA=y
#CONFIG_FB_I810is not set
#CONFIG_FB_MATROXis not set
#CONFIG_FB_RADEON_OLDis not set
#CONFIG_FB_RADEONis not set
#CONFIG_FB_ATY128is not set
#CONFIG_FB_ATYis not set
#CONFIG_FB_SISis not set
#CONFIG_FB_NEOMAGICis not set
#CONFIG_FB_KYROis not set
#CONFIG_FB_3DFXis not set
#CONFIG_FB_VOODOO1is not set
#CONFIG_FB_TRIDENTis not set
#CONFIG_FB_VIRTUALis not set#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
#CONFIG_MDA_CONSOLEis not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_PCI_CONSOLE=yCONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#CONFIG_FONT_6x11is not set
CONFIG_FONT_PEARL_8x8=y
CONFIG_FONT_ACORN_8x8=y
#CONFIG_FONT_MINI_4x6is not set
#CONFIG_FONT_SUN8x16is not set
#CONFIG_FONT_SUN12x22is not set#
# Logo configuration
#CONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=yCONFIG_LOGO_LINUX_VGA16=yCONFIG_LOGO_LINUX_CLUT224=y
Quoted 6 lines
Quoted 6 lines
Any help or suggestions are appreciated,
Bobby
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
Quoted 5 lines
Quoted 4 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 7 lines
I've since gotten this working, thanks to the help of Dmitry Torokhov:
-----
This is what I have for my GeForce2 Go. Actually I think what hurts you isFB_VGA16, not RIVA.. Still, if you using vesa like I do there is no point compiling rivafb (and If you using nVIDIA's binary driver rivafb usually conflicts with it).
Makes sense since the vag16 uses a different pixel encoding method, planar verses packed pixels.
Quoted 3 lines
I had the wrong drivers loaded.. My question now is where would I have been
able to disable the "native driver"? I don't recall seeing this in the .config file.
By native I meant the nVIDIA fbdev driver.