Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: bitweisor on July 18, 2015, 12:15:12 PM

Title: Nvidia Install
Post by: bitweisor 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?
Title: Re: Nvidia Install
Post by: Misalf 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.
Title: Re: Nvidia Install
Post by: bitweisor 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.
Title: Re: Nvidia Install
Post by: nitram 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
Title: Re: Nvidia Install
Post by: Misalf 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 .
Title: Re: Nvidia Install
Post by: bitweisor 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.
Title: Re: Nvidia Install
Post by: Misalf on July 18, 2015, 03:31:55 PM
Try adding this to your xorg.conf:
Code: [Select]
Section "DRI"
   Mode 0666
EndSection
Title: Re: Nvidia Install
Post by: nitram 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
Title: Re: Nvidia Install
Post by: Misalf on July 18, 2015, 03:43:30 PM
glxgears is in xdemos.tcz.
Title: Re: Nvidia Install
Post by: bitweisor 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
Title: Re: Nvidia Install
Post by: nitram 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.
Title: Re: Nvidia Install
Post by: coreplayer2 on July 18, 2015, 10:00:09 PM
What does xorg.log say regarding NVIDIA


Sent from my iPhone using Tapatalk
Title: Re: Nvidia Install
Post by: coreplayer2 on July 18, 2015, 10:04:54 PM
Xorg.log might show the reason


Sent from my iPhone using Tapatalk
Title: Re: Nvidia Install
Post by: Juanito 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.
Title: Re: Nvidia Install
Post by: bitweisor 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?
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 09:59:39 AM
The screen resolution in xorg.conf is set for 800x600 but my actual resolution right now is 1024x768.
Code: [Select]
tc@box:~$ xrandr
 SZ:    Pixels          Physical       Refresh
 0    320 x 200    ( 347mm x 260mm )   0   
 1    640 x 480    ( 347mm x 260mm )   0   
 2    800 x 600    ( 347mm x 260mm )   0   
*3   1024 x 768    ( 347mm x 260mm )  *0   
 4   1280 x 1024   ( 347mm x 260mm )   0   
 5    320 x 400    ( 347mm x 260mm )   0   
 6    320 x 240    ( 347mm x 260mm )   0   
 7    640 x 400    ( 347mm x 260mm )   0   
 8   2048 x 1536   ( 347mm x 260mm )   0   
Here is my current 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 "Module"
    Load    "glx"
EndSection

Section "DRI"
   Mode 0666
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
Title: Re: Nvidia Install
Post by: Rich on July 19, 2015, 10:47:40 AM
Hi bitweisor
Quote
I ran the nvidia-xconfig and updated my xorg.conf:
If I remember correctly, that creates the new xorg.conf file in your home directory. Did you remember to copy it to your
/etc/X11/  directory? You  also need to add a line that says:
Code: [Select]
etc/X11to your  /opt/.filetool.lst file  so it gets backed up.
Quote
I did a search for Xorg.log, log and Xorg and can't find the log files.
Try:
Code: [Select]
/var/log/Xorg.0.log
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 11:54:24 AM
If I remember correctly, that creates the new xorg.conf file in your home directory. Did you remember to copy it to your /etc/X11/  directory?

Hi Rich,
When I run nvidia-xconfig it creates the file in my X11 directory, so all I had to do was include /etc/X11 in my /opt/filetool.lst.
Here it is:
Code: [Select]
opt
home
etc/X11/

No Xorg.0.log:
Code: [Select]
tc@box:/var/log$ ls -a
./         ../        autologin  wtmp
Title: Re: Nvidia Install
Post by: Misalf on July 19, 2015, 11:58:24 AM
What gives
Code: [Select]
cat /etc/sysconfig/Xserver
and
Code: [Select]
cat ~/.xsession
?
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 12:12:46 PM
What gives
Code: [Select]
cat /etc/sysconfig/Xserver
and
Code: [Select]
cat ~/.xsession
?
Hi Misalf,
I guess this explains it, but what to do?
Code: [Select]
tc@box:~$ cat /etc/sysconfig/Xserver
Xvesa

tc@box:~$ cat ~/.xsession
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f -print | while read F; do . "$F"; done

tc@box:~$ tce-status -i|grep nvidia
nvidia-304.125-3.16.6-tinycore

Code: [Select]
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
Title: Re: Nvidia Install
Post by: gerald_clark on July 19, 2015, 12:27:26 PM
Remove Xvesa from onboot.lst and replace it with Xorg-7.7.tcz.
Title: Re: Nvidia Install
Post by: Juanito on July 19, 2015, 12:38:11 PM
I guess this explains it, but what to do?

When you load Xvesa, Xfbdev or Xorg-7.7, the extension start-up script copies the text "Xvesa", "Xfbdev" or "Xorg" to /etc/sysconfig/Xserver. If you loaded Xorg-7.7 and then Xvesa and you would like to use Xorg, then you need to edit /etc/sysconfig/Xserver to read "Xorg" and then "startx"
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 12:39:01 PM
Remove Xvesa from onboot.lst and replace it with Xorg-7.7.tcz.
Hi gerald_clark,
Xvesa wasn't in my onboot.lst. Here it is:
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
Title: Re: Nvidia Install
Post by: Juanito on July 19, 2015, 12:43:07 PM
Something to do with X?

Do you have the nvidia file /usr/local/lib/X11/modules/extensions/libglx.so.304.51 (or similar) loaded?
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 12:54:50 PM
Quote
Do you have the nvidia file /usr/local/lib/X11/modules/extensions/libglx.so.304.51 (or similar) loaded?
I have /usr/local/lib/xorg/modules/extensions/libglx.so.304.125. Shouldn't X load this when it parses xorg.conf load "glx"?
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 "Module"
    Load    "glx"
EndSection

Section "DRI"
   Mode 0666
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
Title: Re: Nvidia Install
Post by: Juanito on July 19, 2015, 01:05:30 PM
I have /usr/local/lib/xorg/modules/extensions/libglx.so.304.125. Shouldn't X load this when it parses xorg.conf load "glx"?

If the nvidia xorg.conf is correct, the nvidia kernel module is loaded and the nvidia version of various libX* are all present, then yes.

Does /var/log/Xorg.0.log show any relevant errors?
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 01:13:39 PM
Does /var/log/Xorg.0.log show any relevant errors?
No Xorg log.
Code: [Select]
tc@box:/var/log$ ls -a
./         ../        autologin  wtmp

Title: Re: Nvidia Install
Post by: Juanito on July 19, 2015, 01:17:26 PM
If you issued the command "startx" or "Xorg -nolisten tcp", even if things fail immediately there is usually at least a couple of lines in Xorg.0.log.

What do you get when you try  "Xorg -nolisten tcp"?
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 01:23:15 PM
What do you get when you try  "Xorg -nolisten tcp"?
The screen went blank. Didn't know how to recover, so rebooted.
Title: Re: Nvidia Install
Post by: Juanito on July 19, 2015, 01:33:39 PM
You could try ctrl-alt-F1 and then "sudo killall Xorg.bin"
Title: Re: Nvidia Install
Post by: Misalf on July 19, 2015, 01:38:15 PM
Probably always better (if X hangs and you can't get out) instead of hard reboot/shutdown:
ALT+SysRq + R,E,I,S,U,B
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 01:46:11 PM
You could try ctrl-alt-F1 and then "sudo killall Xorg.bin"
No process killed. Apparently Xorg is not running. Does it not start automatically?
Code: [Select]
tc@box:~$ cat /mnt/sda1/tce/onboot.lst
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
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 01:48:40 PM
Probably always better (if X hangs and you can't get out) instead of hard reboot/shutdown:
ALT+SysRq + R,E,I,S,U,B
O.k. Thank you Misalf.
Title: Re: Nvidia Install
Post by: gerald_clark on July 19, 2015, 01:54:51 PM
Everything bitweisor posts indicates Xvesa is running, not Xorg.
run 'ls -l /etc/sysconfig/tcedir' and see if you are looking at the wrong tce directory.
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 01:59:16 PM
Everything bitweisor posts indicates Xvesa is running, not Xorg.
run 'ls -l /etc/sysconfig/tcedir' and see if you are looking at the wrong tce directory.
Code: [Select]
tc@box:~$ ls -l /etc/sysconfig/tcedir
lrwxrwxrwx    1 root     root            13 Jul 19 12:20 /etc/sysconfig/tcedir -> /mnt/sda1/tce/
I'm pretty sure it's the only one I have.
Title: Re: Nvidia Install
Post by: gerald_clark on July 19, 2015, 02:02:37 PM
Are you running tce-load in bootlocal.sh?
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 02:07:56 PM
Are you running tce-load in bootlocal.sh?
No. I wasn't aware I needed to add this to bootlocal.sh.
Should I add this now?
Title: Re: Nvidia Install
Post by: Misalf on July 19, 2015, 02:13:24 PM
No, bootlocal.sh runs as root. tce-load shouldn't/can't.
Title: Re: Nvidia Install
Post by: Rich on July 19, 2015, 03:20:57 PM
Hi bitweisor
Try changing  Xorg-7.7-3d.tcz  to  Xorg-7.7.tcz  in  onboot.lst  then reboot and see if that helps.
Title: Re: Nvidia Install
Post by: bitweisor on July 19, 2015, 04:55:05 PM
Hi bitweisor
Try changing  Xorg-7.7-3d.tcz  to  Xorg-7.7.tcz  in  onboot.lst  then reboot and see if that helps.
No luck.
Do you think deleting the old packages and reinstalling would help?
Title: Re: Nvidia Install
Post by: Misalf on July 19, 2015, 05:16:21 PM
I think if Xvesa.tcz wasn't loaded, and Xorg-7.7.tcz was badly downloaded, it should not be able to launch X at all. It would say "Failed in wait for X".

What about these?
Code: [Select]
tce-status -i | grep -i vesa
Code: [Select]
tce-status -i | grep -i xorg
Title: Re: Nvidia Install
Post by: nitram on July 19, 2015, 05:35:24 PM
Indications are you're running Xvesa, otherwise first line of .xsession shoud read similar to: /usr/local/bin/Xorg -nolisten tcp &

Your onboot.lst is missing Xprogs.tcz (essential). Here's the most basic onboot.lst that i believe results in a working Xorg system. Subsitute for your preferred window manager and video driver.
Code: [Select]
xf86-video-intel.tcz
Xorg-7.7.tcz
Xprogs.tcz
fluxbox.tcz
aterm.tcz

Your xorg.conf file is obvioulsy not being utiized as your xorg.conf and xrandr screen resolutions don't match. Try a very basic, simple xorg.conf file. Reboot system and check xorg.conf, xrandr and .xsession for resolution and persistent reboots. If your system isn't running in persistent mode then the changes won't take effect at reboot. Here's a good, basic xorg.conf file, change to your preferred driver, etc.
Code: [Select]
Section "Monitor"
Identifier   "Monitor0"
HorizSync       28.0 - 96.0
  VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
Identifier  "Card0"
Driver      "intel"
BusID       "PCI:0:1:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth    16
SubSection "Display"
Depth 16
Modes "1152x864"
EndSubSection
EndSection

Have you tried nouveau driver?

Since you have old hardware, may want to try TC 4 which may have more appropriate older kernel, Xorg and video driver.
Title: Re: Nvidia Install
Post by: gerald_clark on July 19, 2015, 07:22:45 PM
1. What are you booting from?
2. Show the output of 'showbootcodes'
3. Show the output of 'ls /etc/sysconfig/tcedir'
4. Show the output of 'cat /etc/sysconfig/tcedir/onboot.lst'
Title: Re: Nvidia Install
Post by: bitweisor on July 20, 2015, 10:17:56 AM
O.k. everybody. I was able to get Xorg to run. I had to remove "Xvesa", then add "Xorg" to the /etc/sysconfig/Xserver file. Finally I added it to .filetool.lst. The nvidia driver is now working.
Thank you so much, to everyone who helped me with this one. I can't thank you enough.
Title: Re: Nvidia Install
Post by: gerald_clark on July 20, 2015, 11:40:14 AM
The only reason you would have Xvesa in /etc/sysconfig/Xserver is that you are loading Xvesa.
Instead of trying to fudge the fact with .filetool.lst you need to find where you are loading Xvesa and correct it.
Title: Re: Nvidia Install
Post by: bitweisor on July 20, 2015, 11:59:29 AM
The only reason you would have Xvesa in /etc/sysconfig/Xserver is that you are loading Xvesa.
Instead of trying to fudge the fact with .filetool.lst you need to find where you are loading Xvesa and correct it.
Yeah, I know gerald. I call it a kludge the size of Montana, but it's working so far.
If anyone can point me in the right direction I'd appreciate it.
Title: Re: Nvidia Install
Post by: Rich on July 20, 2015, 12:33:44 PM
Hi bitweisor
I would recommend providing the information gerald_clark requested:
Quote
1. What are you booting from?
2. Show the output of 'showbootcodes'
3. Show the output of 'ls /etc/sysconfig/tcedir'
4. Show the output of 'cat /etc/sysconfig/tcedir/onboot.lst'
It might provide a clue as to what's going on.
Title: Re: Nvidia Install
Post by: bitweisor on July 20, 2015, 01:05:46 PM
Hi bitweisor
I would recommend providing the information gerald_clark requested:
Quote
1. What are you booting from?
2. Show the output of 'showbootcodes'
3. Show the output of 'ls /etc/sysconfig/tcedir'
4. Show the output of 'cat /etc/sysconfig/tcedir/onboot.lst'
It might provide a clue as to what's going on.
Ok. thanks. Here they are:
Code: [Select]
tc@box:~$ showbootcodes
loglevel=3 cde waitusb=5 initrd=/boot/core.gz BOOT_IMAGE=/boot/vmlinuz

tc@box:~$ ls /etc/sysconfig/tcedir
firstrun     onboot.lst   optional/    xwbar.lst
mydata.tgz   ondemand/    provides.db


tc@box:~$ cat /etc/sysconfig/tcedir/onboot.lst
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









tc@box:~$
Title: Re: Nvidia Install
Post by: Rich on July 20, 2015, 01:48:16 PM
Hi bitweisor
The first thing you need to do is get rid of that  CDE  bootcode. That used only for  read only media  like CDs and DVDs.
What do you get for:
Code: [Select]
ls -l /mnt/sda1and:
Code: [Select]
ls -l /mnt/sda1/cde
Title: Re: Nvidia Install
Post by: bitweisor on July 20, 2015, 02:04:45 PM
Hi bitweisor
The first thing you need to do is get rid of that  CDE  bootcode. That used only for  read only media  like CDs and DVDs.
What do you get for:
Code: [Select]
ls -l /mnt/sda1and:
Code: [Select]
ls -l /mnt/sda1/cde
Hi Rich,
I'm booting from CD.
Here's my sda1:
Code: [Select]
tc@box:~$ ls -l /mnt/sda1
total 8
drwxr-xr-x    2 tc       staff         4096 Jul 20 12:39 downloads/
drwxrwxr-x    4 tc       staff         4096 Jul 19 20:41 tce/
There is no cde under sda1.
Title: Re: Nvidia Install
Post by: Rich on July 20, 2015, 02:07:02 PM
Hi bitweisor
Then Xvesa is probably coming from the CDE directory of the CD.
Title: Re: Nvidia Install
Post by: bitweisor on July 20, 2015, 02:16:37 PM
Hi bitweisor
Then Xvesa is probably coming from the CDE directory of the CD.
Is there any way to prevent it from loading or do I need to install TC to a hard drive?
Title: Re: Nvidia Install
Post by: Rich on July 20, 2015, 02:23:51 PM
Hi bitweisor
If you burn Core to a CD that might work since it's a command line environment.
http://tinycorelinux.net/downloads.html
Title: Re: Nvidia Install
Post by: Rich on July 20, 2015, 03:09:28 PM
Hi bitweisor
Other possibilities include installing to a hard drive, installing to a USB thumb drive if your machine can boot from USB, or
re-mastering the CD.
Title: Re: Nvidia Install
Post by: bitweisor on July 20, 2015, 03:14:23 PM
Hi bitweisor
Other possibilities include installing to a hard drive, installing to a USB thumb drive if your machine can boot from USB, or
re-mastering the CD.
O.k. Thanks Rich.
I think I might try installing to USB and see how that goes.