LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what is a kernel interface (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-a-kernel-interface-215152/)

djgerbavore 08-08-2004 08:53 PM

what is a kernel interface
 
this is a stupid newbie question, but i was wonder what is a kernel interface? because i was installing the geforce drivers, and it told me "no precompiled kernel interface was found...the installer will need to compile a kernel interface for your kernel"
I wanted to know what a kernel interface is, and what i could do, in case then happen again, or think about when compiling a newer kernel.

p.s.i use slackware 9.1 with a stock 2.4.22 kernel.
video card: geforce 5200
thanks.

Tinkster 08-08-2004 09:18 PM

The more recent kernels support direct rendering (kind of
like directX), and it needs to be built to match your kernel
(a layer between the hardware and X, loosely speaking,
thus the term interface).
What the nVidia installer does is it checks whether there's
already one available for download that matches your
installed kernel. Since Slack isn't main-stream there is no
such thing, and you need to compile it.


Cheers,
Tink

amosf 08-08-2004 09:28 PM

If you want to install the nvidia driver it should do it all for you assuming you have the build environment and kernel source installed. The nvidia installer first checks what you have then compiles the kernel interface and installs it and then you just need to edit the xfree or Xorg config to get the 3D going...

djgerbavore 08-08-2004 09:40 PM

thanks, installed the nvidia drivers, ran xfree86setup, but when i run nvidia-settings to see if everyworks, i get an error:
<CODE>
(nvidia-settings:3151): Gtk-WARNING **: cannot open display:
</CODE>

why would this be the case

Tinkster 08-08-2004 09:52 PM

Because a) X isn't running or b) you're running nvidia-settings
as a different user than the one that owns the session...

If the latter is the case, type xhost +localhost as the user
who is running the session, and export DISPLAY=:0.0
as the user (in the same console!) that's trying to run nvidia-settings



Cheers,
Tink

djgerbavore 08-09-2004 08:01 AM

i think i got everything striaght out, but when i start x by typing startx, the resolution is is 640 x 480, and i don't know how to change it. were should i look? i'm not sure what i'm looking for.

Tinkster 08-09-2004 12:43 PM

I'd have a play with

XFree86 -configure

xf86cfg

xf86config


Cheers,
Tink

djgerbavore 08-09-2004 02:07 PM

is fame buffer the same as resolution? i know it's a stupid question, but i just want to make sure i understand this clear. thanks alot

i didn't all the options, but still no luck. here is my XF86config file:

Code:

Section "ServerLayout"
Identifier    "XFree86 Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath  "/usr/X11R6/lib/modules"
FontPath    "/usr/X11R6/lib/X11/fonts/misc/"
FontPath    "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath    "/usr/X11R6/lib/X11/fonts/CID/"
FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "glx"
Load  "record"
Load  "extmod"
Load  "dbe"
Load  "dri"
Load  "xtrap"
Load  "type1"
Load  "freetype"
Load  "speedo"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option            "Protocol" "auto"
Option            "Device" "/dev/mouse"
EndSection

Section "Monitor"
Identifier  "Monitor0"
VendorName  "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
Identifier  "Card0"
Driver      "nvidia"
VendorName  "nVidia Corporation"
BoardName  "Unknown Board"
BusID      "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device    "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth    1
EndSubSection
SubSection "Display"
Depth    4
EndSubSection
SubSection "Display"
Depth    8
EndSubSection
SubSection "Display"
Depth    15
EndSubSection
SubSection "Display"
Depth    16
EndSubSection
SubSection "Display"
Depth    24
EndSubSection
EndSection



All times are GMT -5. The time now is 01:57 AM.