LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problems with riva driver (Frame Buffer)? (https://www.linuxquestions.org/questions/linux-general-1/problems-with-riva-driver-frame-buffer-385026/)

binarybob0001 11-20-2005 10:24 PM

Problems with riva driver (Frame Buffer)?
 
Alright, I recompiled my linux kernel from slackware 10.1. The original kernel was 2.4.something. I can't change the resolution on the console to 1024 by768 like I had it before. My computer is using a GeForce 4 graphics card. I installed the Riva driver directly into the kernel 2.6.9. My AGP drivers seem to be working correctly. I do not know how to test them. Yet, I have these messages recorded in my syslog file.

Nov 20 19:58:05 Blacktop kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Nov 20 19:58:05 Blacktop kernel: CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Nov 20 19:58:05 Blacktop kernel: PCI: Probing PCI hardware
Nov 20 19:58:05 Blacktop kernel: PCI: Probing PCI hardware (bus 00)
Nov 20 19:58:05 Blacktop kernel: PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
Nov 20 19:58:05 Blacktop kernel: rivafb: could not retrieve EDID from DDC/I2C
Nov 20 19:58:05 Blacktop kernel: rivafb: setting virtual Y resolution to 104857
Nov 20 19:58:05 Blacktop kernel: Console: switching to colour frame buffer device 80x30
Nov 20 19:58:05 Blacktop kernel: vesafb: abort, cannot reserve video memory at 0xf4000000
Nov 20 19:58:05 Blacktop kernel: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Nov 20 19:58:05 Blacktop kernel: Using anticipatory io scheduler

Any ideas of what I can do next?

Worksman 11-21-2005 01:37 AM

Try nvidiafb not riva! Also rivafb and nvidiafb will not work with the nvidia kernel driver for X, in case you need or use X :)
I have the same card and it's a pain setting it up!
I still can't solve one problem... ah
Oh and be sure to include agpgart and you chipset agp driver (mine is intel-agp) as modules and load them. You need them for X.

binarybob0001 11-21-2005 01:52 AM

Thanks, does the nvidiafb driver come with the kernel or do I have to download it somewhere?

Worksman 11-21-2005 01:59 AM

It's in the kernel, just download the vanilla source (means unpatched) from kernel.org, and patch it if you really need to.
If you have simmilar hardware as mine or know your specs good then I can give you my .config or help you with yours! :D
Good Luck with Slackware!

cs-cam 11-21-2005 03:12 AM

Just a FYI, the closed-source nvidia driver (not the one in the kernel for Bob's benefit) provides it's own agpgart code so if you're using that driver then agpgart isn't needed. If you still have it loaded the nvidia module will fill your logs with complaints :p

Worksman 11-21-2005 03:34 AM

Do you search for my threads?
 
Still have something with me?
I know that cs-cam!
I'm just taking it step by step! Do you know that the nvidia closed source agpgart driver has limited support, it only works on some chipsets? Check the docs: /usr/share/doc/nv-*/README.gz
It has support for my chipset, but I never tried that since the linux agpgart worked good for me. Also for bobs benfit you can select wich one the nvidia driver uses with the "NvAGP" option in xorg.conf (or XF-Config*), just be sure to have agpgart(the kernel one) and the' chipset'-agp built as modules and don't load them! let X(or better said nvidia) decide. Just to help people out here's mine:
Code:

Section "Module"
        Load    "dbe"
        Load    "extmod"
        Load    "fbdevhw"
        Load    "record"
        Load    "type1"
#      Load    "speedo"
        Load    "freetype"
#      Load    "xtt"
        Load    "glx"
EndSection

Section "Files"
        RgbPath        "/usr/X11R6/lib/X11/rgb"
        FontPath        "/usr/share/fonts/misc/"
        FontPath        "/usr/share/fonts/TTF/"
        FontPath        "/usr/share/fonts/Type1/"
#      FontPath        "/usr/share/fonts/CID/"
        FontPath        "/usr/share/fonts/75dpi/"
        FontPath        "/usr/share/fonts/100dpi/"
        FontPath        "/usr/share/fonts/local/"
#      FontPath        "/usr/share/fonts/Speedo/"
        FontPath        "/usr/share/fonts/TrueType/"
        FontPath        "/usr/share/fonts/freefont/"
#      ModulePath      "/usr/X11R6/lib/modules"
EndSection

Section "ServerFlags"
# Uncomment this to cause a core dump at the spot where a signal is
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

        Option  "BlankTime"    "5"    #5 minutes
        Option  "Standby"      "10"
        Option  "SuspendTime"  "20"
        Option  "Offtime"      "30"
EndSection

Section "InputDevice"

        Identifier      "Genius Black"
        Driver          "kbd"

# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#      Option  "Protocol"      "Xqueue"

        Option  "AutoRepeat"    "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option    "Xleds"      "1 2 3"
#    Option "LeftAlt"    "Meta"
#    Option "RightAlt"    "ModeShift"
#    Option "XkbDisable"
        Option  "XkbRules"      "xorg"
        Option  "XkbModel"      "pc104"
        Option  "XkbLayout"    "en_US"
        Option  "XkbOptions"    "lv3:ralt_switch"
EndSection

Section "InputDevice"
        Identifier      "A4Tech Black"
        Driver  "mouse"
        Option  "Protocol"      "IMPS/2"
        Option  "Device"        "/dev/input/mouse0"
        Option  "ZAxisMapping"  "4 5"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"  "Xqueue"
EndSection

Section "Monitor"
        Identifier      "SDM-S93"
        HorizSync  28-80
        VertRefresh 48-75
        Option  "DPMS"
        DisplaySize    375 302
EndSection

Section "Device"
        Identifier      "GeForce4 MX440"
        Driver          "nvidia"
#      Option          "NvAGP"        "3"    #0:disable agp 1:use internal 2:use agpgart 3:try agpgart first
        Option          "NoLogo"        "yes"  #disable nvidia splash screen
#      Option          "RenderAccel"  "false" #default is false use at own risk
#      Option          "NoRenderExtension"    "" #default offered when possible
#      Option          "UBB"          "on"    #Unified BackBuffer on QUADRO
#      Option          "NoFlip"        "false" #default on when possible
        Option          "DigitalVibrance"      "25"    #0-255
#      Option          "Overlay"      "off"  #the default only on QUADRO
#      Option          "TransparentIndex"      "0"    #0-255 selects transparent pixel for trans visuals
        Option          "SWCursor"      "off"  #default off
        Option          "HWCursor"      "on"    #default on
        Option          "CursorShadow"  "on"    #not available on new hardware and QUADRO
        Option          "CursorShadowAlpha"    "64"    #0-255 transparent-opaque
        Option          "CursorShadowXOffset"  "4"    #0-32
        Option          "CursorYOffset"        "2"    #0-32
#      Option          "ConnectedMonitor"      "CRT"  #CRT, TV, DFP
        Option          "UseEdidFreqs"          "no"    #use provided horiz sync etc or edid ones
        Option          "IgnoreEDID"            "yes"  #ignore probing EDID may be dangerous
#      Option          "NoDDC"                "yes"  #synonym for "IgnoreEDID"
#      Option          "UseInt10Module"        "off"  #soft-boot all secondary cards by POST or int10
        Option          "TwinView"              "no"    #Attach another display
#      Option          "TwinViewOrientation"  "Clone" #RightOf LeftOf Above Below Clone
#      Option          "SecondMonitorHorizSync"        "31-82"
#      Option          "SecondMonitorVertRefresh"      "55-120"
#      Option          "MetaModes"    ""      #modes to use on each display
#      Option          "TVStandard"    "PAL-B"
#      Option          "TVOutFormat"  "SVIDEO"        #SVIDEO COMPOSITE"
#      Option          "TVOverScan"    "0.0"  #0.0 - 1.0 screen size small - large
EndSection

Section "Screen"
        Identifier  "Screen 1"
        Device      "GeForce4 MX440"
        Monitor    "SDM-S93"
        DefaultDepth 24
        Subsection "Display"
                Depth      8
                Modes      "1280x1024" "1024x768" "800x600" "640x480"
                ViewPort    0 0
        EndSubsection
        Subsection "Display"
                Depth      16
                Modes      "1280x1024" "1024x768" "800x600" "640x480"
                ViewPort    0 0
        EndSubsection
        Subsection "Display"
                Depth      24
                Modes      "1280x1024" "1024x768" "800x600" "640x480"
                ViewPort    0 0
        EndSubsection
#      Modeline PCLK HR HSS HSE HFL VR VSS VSE VFL
EndSection

Section "ServerLayout"
        Identifier      "Simple Layout"
        Screen  "Screen 1"
        InputDevice    "A4Tech Black"  "CorePointer"
        InputDevice    "Genius Black"  "CoreKeyboard"
EndSection

# Section "DRI"
#    Mode 0666
# EndSection

Would you happen to know anything about MTRR? I have a problem with the address range getting all reserved at boot, but I guess you know that since you might have searched for threads i answered so you can come and correct me! :p

cs-cam 11-21-2005 03:46 AM

Quote:

Still have something with me?
Not at all :D I could have cared less whether or not you knew, I posted for the sake of the OP and due to the nature of forums, anyone else who reads a thread can glean information from it. I am not following you and if for some reason we both reply to the same thread in the distant future, I won't be following you then either. Just clearing everything up :)

Worksman 11-21-2005 03:50 AM

Same for me! I'm not following you!
 
Ok :D Anything about the MTRR? Search my thread about MTRR. No one replied so far :(

binarybob0001 11-22-2005 11:21 PM

Thanks guys, I got it working. I just downloaded kernel 2.6.14.2 and everything worked fine.

Worksman 11-23-2005 06:31 AM

??? ??? ???
 
What worked fine? Downloading? :D Or everything worked fine to the end, compiling, installing and setting up xorg?

binarybob0001 11-25-2005 03:53 AM

Everything worked fine to the end. The GeForce 4 is now fully supported!


All times are GMT -5. The time now is 05:10 PM.