WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Nvidia Install  (Read 20784 times)

Offline bitweisor

  • Newbie
  • *
  • Posts: 23
Nvidia Install
« on: July 18, 2015, 12:15:12 PM »
O.k. So I have downloaded and installed Nvidia driver 304.125. I did use Rich's scripts create-raw and create package, and both seemed to have worked. I am however having problems with the driver and I'm not sure if it's an Xorg problem, xorg.config, or a problem with the build.

dmesg gives me this:
Code: [Select]
ACPI Warning: SystemIO range 0x00000c00-0x00000c1f conflicts with OpRegion 0x00000c00-0x00000c1f (\_SB_.PCI0.SBRG.SMRG) (20140424/utaddress-258)
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Linux agpgart interface v0.103
agpgart-sis 0000:00:00.0: SiS chipset [1039/0740]
agpgart-sis 0000:00:00.0: AGP aperture is 64M @ 0xd0000000
[drm] Initialized drm 1.1.0 20060810
nvidia: module license 'NVIDIA' taints kernel.
Disabling lock debugging due to kernel taint
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
vgaarb: device changed decodes: PCI:0000:00:09.0,olddecodes=io+mem,decodes=none:owns=none
[drm] Initialized nvidia-drm 0.0.0 20140818 for 0000:00:09.0 on minor 0
NVRM: loading NVIDIA UNIX x86 Kernel Module  304.125  Mon Dec  1 19:55:52 PST 2014
and sudo modprobe nvidia reports no errors.

when I run nvidia-settings I get this message:
Code: [Select]
You do not appear to be using the NVIDIA X driver.  Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server.
I have run nvidia-xconfig as root, and have not improved my situation.
Here is my xorg.config:
Code: [Select]
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.125  (buildmeister@swio-display-x86-rhel47-08)  Mon Dec  1 21:14:12 PST 2014

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

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
and my onboot.lst:
Code: [Select]
nano.tcz
firefox-official.tcz
xfe.tcz
Xorg-7.7.tcz
graphics-3.16.6-tinycore.tcz
nvidia-304.125-3.16.6-tinycore.tcz
Am I forgetting something?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Nvidia Install
« Reply #1 on: July 18, 2015, 12:34:54 PM »
For me, it was needed to delete  /usr/local/lib/*tls*.* .

Also, you might need to run this command while not running X.
Code: [Select]
sudo nvidia-xconfig --mode=1280x1024 --force-generate --virtual=1280x1024
Substitute  1280x1024  with whatever screen resolution works with your display.
Download a copy and keep it handy: Core book ;)

Offline bitweisor

  • Newbie
  • *
  • Posts: 23
Re: Nvidia Install
« Reply #2 on: July 18, 2015, 01:48:03 PM »
Thanks for the quick response Misalf.
I ran the nvidia-xconfig and updated my xorg.conf:
Code: [Select]
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.125  (buildmeister@swio-display-x86-rhel47-08)  Mon Dec  1 21:14:12 PST 2014

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

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Virtual     800 600
        Depth       24
        Modes      "800x600"
    EndSubSection
EndSection
But I'm not able to locate /usr/local/lib/*tls*.* . It's not there.
Still no joy.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Nvidia Install
« Reply #3 on: July 18, 2015, 02:07:09 PM »
Try to confirm which driver is utilized:
lspci -v

Confirm nvidia is loaded and installed:
tce-status -i | grep nvidia

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Nvidia Install
« Reply #4 on: July 18, 2015, 02:17:45 PM »
Sorry, should be   /usr/lib/libnvidia-tls.so.304.125  which I have just renamed in my extension.
There is also   /usr/lib/tls/libnvidia-tls.so.304.125  but you don't need to touch this one.

I wonder if you need  Xorg-7.7-3d.tcz .
Download a copy and keep it handy: Core book ;)

Offline bitweisor

  • Newbie
  • *
  • Posts: 23
Re: Nvidia Install
« Reply #5 on: July 18, 2015, 03:12:35 PM »
Misalf,
Sorry, should be   /usr/lib/libnvidia-tls.so.304.125  which I have just renamed in my extension.
There is also   /usr/lib/tls/libnvidia-tls.so.304.125  but you don't need to touch this one.
I wonder if you need  Xorg-7.7-3d.tcz .
I do have the extension at   /usr/lib/tls/libnvidia-tls.so.304.125, and also
in  /var/tmp/tcloop/nvidia-304.125-3.16.6-tinycore/usr/lib/tls, but not in /usr/lib/.

Initially I was using Xorg-7.7-3d.tcz, but I was concerned It could be the culprit so I went with Xorg-7.7.tcz

nitram,
Try to confirm which driver is utilized:
lspci -v

Confirm nvidia is loaded and installed:
tce-status -i | grep nvidia

It looks like the nvidia package is loaded.
Code: [Select]
tc@box:~$ tce-status -i|grep nvidia
nvidia-304.125-3.16.6-tinycore

tc@box:~$ lspci -v
00:09.0 VGA compatible controller: NVIDIA Corporation NV44A [GeForce 6200] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. Device b399
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
        Memory at cf000000 (32-bit, non-prefetchable) [size=16M]
        Memory at b0000000 (32-bit, prefetchable) [size=256M]
        Memory at ce000000 (32-bit, non-prefetchable) [size=16M]
        Expansion ROM at cdfe0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
,and Kernel driver in use is nvidia, yet I still have a problem with nvidia-settings.
Glxgears does not load.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Nvidia Install
« Reply #6 on: July 18, 2015, 03:31:55 PM »
Try adding this to your xorg.conf:
Code: [Select]
Section "DRI"
   Mode 0666
EndSection
Download a copy and keep it handy: Core book ;)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Nvidia Install
« Reply #7 on: July 18, 2015, 03:32:53 PM »
glxgears is not part of Tiny Core base install, you need to install it seperately. Did not see it in your onboot.lst:
tce-load -wi glxgears

Have you tried the vesa driver, maybe it gives good enough performance, example:
xf86-video-vesa.tcz

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Nvidia Install
« Reply #8 on: July 18, 2015, 03:43:30 PM »
glxgears is in xdemos.tcz.
Download a copy and keep it handy: Core book ;)

Offline bitweisor

  • Newbie
  • *
  • Posts: 23
Re: Nvidia Install
« Reply #9 on: July 18, 2015, 05:33:25 PM »
nitram,
glxgears is not part of Tiny Core base install, you need to install it seperately. Did not see it in your onboot.lst:
tce-load -wi glxgears

Have you tried the vesa driver, maybe it gives good enough performance, example:
xf86-video-vesa.tcz
I'd like to use the proprietary driver if it's at all faster at 3d rendering. I'm trying to set up a CNC contoler, and without this card's native capabilities, real time visualization is lagging. This card running under  XP is adequate for visualization, it's just that Xp is just not that great as a controller. Tiny Core is so much better. Particularly on an older machine like I have here. The bottom line is that I know the card can do what I want, I just need to get it working with Tiny Core. It'd be the perfect "appliance machine" type setup. (By the way, LinuxCNC won't work as I'm using an arduino/gshield setup).

I did have glxgears installed ondemand (I don't know if that's a problem.), so I just moved it to onboot. Now I get this:
Code: [Select]
tc@box:~$ tce-load -i /mnt/sda1/tce/optional/glxgears.tcz
glxgears is already installed!

tc@box:~$ glxgears
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Nvidia Install
« Reply #10 on: July 18, 2015, 07:41:43 PM »
Don't know if i can help, but here's some info. The TC 6 32-bit repository has two glxgears extensions:

1. glxgears.tcz:
     v10.4.4
     info xorg x 3d test
     binaries glxgears and glxinfo

2. xdemos.tcz:
     v9.1
     info x xorg OpenGL demos
     binaries glxinfo and glxgears

Maybe try them both. Maybe run 'glxinfo' to see if it's useful.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Nvidia Install
« Reply #11 on: July 18, 2015, 10:00:09 PM »
What does xorg.log say regarding NVIDIA


Sent from my iPhone using Tapatalk

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Nvidia Install
« Reply #12 on: July 18, 2015, 10:04:54 PM »
Xorg.log might show the reason


Sent from my iPhone using Tapatalk

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Nvidia Install
« Reply #13 on: July 19, 2015, 02:30:51 AM »
I hadn't realised that glxgears was in xdemos when the x86 Xorg-7.7 was updated recently and hence placed glxgears in an extension of the same name.

If you have the latest version of the Xorg-7.7 extension, you need to use glxgears and not xdemos.

Offline bitweisor

  • Newbie
  • *
  • Posts: 23
Re: Nvidia Install
« Reply #14 on: July 19, 2015, 09:45:08 AM »
Xorg.log might show the reason
I did a search for Xorg.log, log and Xorg and can't find the log files.

Is this correct for Xorg?
Code: [Select]
tc@box:~$ tce-status -i | grep Xorg
Xorg-7.7
Xorg-7.7-3d
Xorg-7.7-bin
Xorg-7.7-lib
Xorg-fonts
tc@box:~$
And my current onboot.lst:
Code: [Select]
nano.tcz
firefox-official.tcz
xfe.tcz
graphics-3.16.6-tinycore.tcz
nvidia-304.125-3.16.6-tinycore.tcz
pci-utils.tcz
Xorg-7.7-3d.tcz

I hadn't realised that glxgears was in xdemos when the x86 Xorg-7.7 was updated recently and hence placed glxgears in an extension of the same name.

If you have the latest version of the Xorg-7.7 extension, you need to use glxgears and not xdemos.
I do have glxgears and not xdemos.

Maybe run 'glxinfo' to see if it's useful.
Code: [Select]
tc@box:~$ glxinfo
name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

Something to do with X?