WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: NVIDIA driver on TCE Corepure64 9.x  (Read 4500 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #15 on: November 07, 2018, 12:23:36 PM »
As far as I can tell, your system is either 
  • missing some dependencies, or
  • missing or has a corrupt Xorg.conf file, or
  • the Nvidia 390.87 doesn't support your card.

So for the first 2 issues, try this test script I use to load all dependencies, create an "/etc/X11/Xorg.conf" file and then loads Xorg with Nvidia 390.87 driver and finally starts the desktop.

Either use the attached nvidia-load.sh file, or copy the contents of this script shown below into a file which is accessible after reboot and make either script executable
Code: [Select]
#!/bin/sh

########################################################
# prompts to connect if internet not available,        #
# checks if deps installed already,                    #
# if not then check if available locally & install,    #
# else download & install                              #
########################################################


. /etc/init.d/tc-functions
useBusybox

echo -e "\n\nFetching dependencies... "

tceinstalled="/usr/local/tce.installed"
tcepath="/etc/sysconfig/tcedir/optional"
kerbuild=$(uname -r)
address="http://tinycorelinux.net/index.html"
address2="http://forum.tinycorelinux.net/index.php"
message="connection ok"

echo " ${MAGENTA}Verifying connection to server, please wait...${NORMAL}"
wget --spider -q -T 20 $address
case $? in
0)
   echo " ${GREEN}${message}${NORMAL}"
;;
1)
   echo " ${MAGENTA}Using alternative web address...${NORMAL}"
           wget --spider -q -T 20 $address2
   case $? in
     0)
echo " ${GREEN}${message}${NORMAL}"
     ;;
     1)
echo " ${YELLOW}check internet connection, then try again${NORMAL}"
sleep 3
exit
     ;;
   esac
;;
esac

# read -p " Enter to continue"


deps="aterm.tcz \
fltk-1.3.tcz \
freetype.tcz \
imlib2-bin.tcz \
imlib2.tcz \
libfontenc.tcz \
libICE.tcz \
libjpeg-turbo.tcz \
libpng.tcz \
libSM.tcz \
libX11.tcz \
libXau.tcz \
libxcb.tcz \
libXdmcp.tcz \
libXext.tcz \
libXfont.tcz \
libXi.tcz \
libXmu.tcz \
libXpm.tcz \
libXrandr.tcz \
libXrender.tcz \
wbar.tcz \
Xlibs.tcz \
Xprogs.tcz \
flwm_topside.tcz \
gtk3.tcz \
xz.tcz \
util-linux.tcz \
graphics-${kerbuild}.tcz \
nvidia-390.87-${kerbuild}.tcz \
Xorg-7.7-3d-dev.tcz \
pkg-config.tcz \
xorg-server-dev.tcz \
autoconf.tcz \
findutils.tcz \
procps-ng.tcz \
bash.tcz"


set -x

for i in $deps ; do

pkgname=${i%.*}

if [ ! -f ${tceinstalled}/"$pkgname" ]; then
if [ -f ${tcepath}/"$i" ]; then
  while [ ! -f ${tceinstalled}/"$pkgname" ]; do
    tce-load -i "$pkgname"; sleep 0.5
  done
else
    tce-load -wil "$pkgname"
fi
fi
[ -f "${tceinstalled}/$pkgname" ] || echo "${RED}$i failed to load, exiting..${NORMAL}"
[ -f "${tceinstalled}/$pkgname" ] || exit 1
done

[ -d /etc/X11 ] || sudo mkdir -p /etc/X11
set +x
sudo nvidia-xconfig
startx           


reboot and run the script

If the desktop still refuses to load, then look at the logs for clues..
Code: [Select]
/var/log/Xorg.0.log
I have tested this script with both "base" in the command line and a blank onboot.lst.  Both methods booted to desktop successfully.
But if this script doesn't load the desktop I suspect we need to look at a supporting driver version again..
« Last Edit: November 07, 2018, 12:37:49 PM by coreplayer2 »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1703
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #16 on: November 07, 2018, 06:14:05 PM »
I see you made sure  /etc/X11  exists.
I found that
Code: [Select]
[ -d /etc/X11 ] || mkdir -p /etc/X11is a necessity for getting the  nvidia-xconfig  command to be able to write a file to that directory.
Maybe it makes sense to add a startup script to your nvidia extensions containing "exist otherwise crete dir"?
Download a copy and keep it handy: Core book ;)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #17 on: November 07, 2018, 07:31:50 PM »
Misalf,  I agree.   nvidia-config doesn't create Xorg.conf if the directory is missing

Not only that, but if some deps are missing very often  nvidia-config  doesn't complete creation of Xorg.conf file without ever giving an indication of failure..

my test script takes care of these issues, might be worth adding to the startup script however  nvidia-config  itself requires many deps not used otherwise

:)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1703
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #18 on: November 08, 2018, 05:41:48 AM »
I see.

Then maybe add your script to the extension and leaving a note in the .info file?
Download a copy and keep it handy: Core book ;)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #19 on: November 08, 2018, 07:26:16 AM »
Hi Misalf,  well maybe a separate extension which loads the required deps and installs the /etc/X11/Xorg.conf file only if the file is not found, eg. when not already applied by backup/restore?
 

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1703
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #20 on: November 08, 2018, 09:11:49 AM »
Sounds good.
This way the first-time-setup extension can be updated independently if needed.
Maybe even work for all nvidia extensions and be arch agnostic.
Download a copy and keep it handy: Core book ;)

Offline Alligadi

  • WikiUser
  • *
  • Posts: 23
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #21 on: November 21, 2018, 02:28:53 AM »
I came closer to the goal by invoking manual xconfig with a bus ID, but it fails to detect the screen:

Code: [Select]
LVDS-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
[  4332.412] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  4332.412] (==) NVIDIA(0): RGB weight 888
[  4332.412] (==) NVIDIA(0): Default visual is TrueColor
[  4332.412] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  4332.412] (**) NVIDIA(0): Enabling 2D acceleration
[  4332.412] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[  4332.412] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[  4332.412] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[  4332.412] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[  4332.412] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.
[  4332.543] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[  4332.543] (--) NVIDIA(0):     DFP-0
[  4332.550] (II) NVIDIA(0): NVIDIA GPU GeForce GT 555M (GF106) at PCI:1:0:0 (GPU-0)
[  4332.550] (--) NVIDIA(0): Memory: 3145728 kBytes
[  4332.550] (--) NVIDIA(0): VideoBIOS: 70.06.32.00.02
[  4332.550] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  4332.551] (--) NVIDIA(GPU-0): DFP-0: disconnected
[  4332.551] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[  4332.551] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[  4332.551] (--) NVIDIA(GPU-0):
[  4332.551] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0.
[  4332.551] (EE) NVIDIA(0):     Set AllowEmptyInitialConfiguration if you want the server
[  4332.551] (EE) NVIDIA(0):     to start anyway
[  4332.551] (EE) NVIDIA(0): Failing initialization of X screen 0
[  4332.572] (II) UnloadModule: "nvidia"
[  4332.572] (II) UnloadSubModule: "wfb"
[  4332.572] (II) UnloadSubModule: "fb"
[  4332.572] (EE) Screen(s) found, but none have a usable configuration.
[  4332.572] (EE)
Fatal server error:
[  4332.572] (EE) no screens found(EE)

I tried almost everything, also generating a Xorg configuration with Xorg -configure now (which generates a valid Xorg configuration but without nvidia driver),
but when I entered nvidia driver to be used the same situation appeared again..

Best regards,
Alligadi

    [EDIT]: Added code tags.  Rich
« Last Edit: November 21, 2018, 05:25:40 AM by Rich »

Offline Alligadi

  • WikiUser
  • *
  • Posts: 23
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #22 on: November 21, 2018, 02:47:34 AM »
I fixed the GLX loading issue additionall but the screen issue remains:
(nvidia-xconfig --preserve-busid --enable-all-gpus)

Code: [Select]
[  4794.710] (II) LoadModule: "glx"
[  4794.710] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  4794.714] (II) Module glx: vendor="NVIDIA Corporation"
[  4794.714] compiled for 4.0.2, module version = 1.0.0
[  4794.714] Module class: X.Org Server Extension
[  4794.714] (II) NVIDIA GLX Module  390.87  Tue Aug 21 16:10:56 PDT 2018
[  4794.714] (II) LoadModule: "nvidia"
[  4794.714] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[  4794.714] (II) Module nvidia: vendor="NVIDIA Corporation"
[  4794.714] compiled for 4.0.2, module version = 1.0.0
[  4794.714] Module class: X.Org Video Driver
[  4794.714] (II) NVIDIA dlloader X Driver  390.87  Tue Aug 21 15:44:49 PDT 2018
[  4794.714] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  4794.714] (--) using VT number 2

[  4794.729] (II) Loading sub module "fb"
[  4794.729] (II) LoadModule: "fb"
[  4794.729] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[  4794.729] (II) Module fb: vendor="X.Org Foundation"
[  4794.729] compiled for 1.20.0, module version = 1.0.0
[  4794.729] ABI class: X.Org ANSI C Emulation, version 0.4
[  4794.729] (II) Loading sub module "wfb"
[  4794.729] (II) LoadModule: "wfb"
[  4794.730] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[  4794.730] (II) Module wfb: vendor="X.Org Foundation"
[  4794.730] compiled for 1.20.0, module version = 1.0.0
[  4794.730] ABI class: X.Org ANSI C Emulation, version 0.4
[  4794.730] (II) Loading sub module "ramdac"
[  4794.730] (II) LoadModule: "ramdac"
[  4794.730] (II) Module "ramdac" already built-in
[  4794.730] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[  4794.730] (==) NVIDIA(0): RGB weight 888
[  4794.730] (==) NVIDIA(0): Default visual is TrueColor
[  4794.730] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  4794.730] (**) NVIDIA(0): Enabling 2D acceleration
[  4794.850] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[  4794.850] (--) NVIDIA(0):     DFP-0
[  4794.860] (II) NVIDIA(0): NVIDIA GPU GeForce GT 555M (GF106) at PCI:1:0:0 (GPU-0)
[  4794.860] (--) NVIDIA(0): Memory: 3145728 kBytes
[  4794.860] (--) NVIDIA(0): VideoBIOS: 70.06.32.00.02
[  4794.860] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  4794.860] (--) NVIDIA(GPU-0): DFP-0: disconnected
[  4794.860] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[  4794.860] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[  4794.860] (--) NVIDIA(GPU-0):
[  4794.860] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0.
[  4794.860] (EE) NVIDIA(0):     Set AllowEmptyInitialConfiguration if you want the server
[  4794.860] (EE) NVIDIA(0):     to start anyway
[  4794.860] (EE) NVIDIA(0): Failing initialization of X screen 0
[  4794.876] (II) UnloadModule: "nvidia"
[  4794.876] (II) UnloadSubModule: "wfb"
[  4794.876] (II) UnloadSubModule: "fb"
[  4794.876] (EE) Screen(s) found, but none have a usable configuration.
[  4794.876] (EE)
Fatal server error:
[  4794.876] (EE) no screens found(EE)
[  4794.876] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[  4794.876] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  4794.876] (EE)
[  4794.947] (EE) Server terminated with error (1). Closing log file.

    [EDIT]: Added code tags.  Rich
« Last Edit: November 21, 2018, 05:27:43 AM by Rich »

Offline Alligadi

  • WikiUser
  • *
  • Posts: 23
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #23 on: November 21, 2018, 02:51:07 AM »
I fixed the GLX loading issue additionall but the screen issue remains:
(nvidia-xconfig --preserve-busid --enable-all-gpus)

Code: [Select]
[  4794.710] (II) LoadModule: "glx"
[  4794.710] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  4794.714] (II) Module glx: vendor="NVIDIA Corporation"
[  4794.714] compiled for 4.0.2, module version = 1.0.0
[  4794.714] Module class: X.Org Server Extension
[  4794.714] (II) NVIDIA GLX Module  390.87  Tue Aug 21 16:10:56 PDT 2018
[  4794.714] (II) LoadModule: "nvidia"
[  4794.714] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[  4794.714] (II) Module nvidia: vendor="NVIDIA Corporation"
[  4794.714] compiled for 4.0.2, module version = 1.0.0
[  4794.714] Module class: X.Org Video Driver
[  4794.714] (II) NVIDIA dlloader X Driver  390.87  Tue Aug 21 15:44:49 PDT 2018
[  4794.714] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  4794.714] (--) using VT number 2

[  4794.729] (II) Loading sub module "fb"
[  4794.729] (II) LoadModule: "fb"
[  4794.729] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[  4794.729] (II) Module fb: vendor="X.Org Foundation"
[  4794.729] compiled for 1.20.0, module version = 1.0.0
[  4794.729] ABI class: X.Org ANSI C Emulation, version 0.4
[  4794.729] (II) Loading sub module "wfb"
[  4794.729] (II) LoadModule: "wfb"
[  4794.730] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[  4794.730] (II) Module wfb: vendor="X.Org Foundation"
[  4794.730] compiled for 1.20.0, module version = 1.0.0
[  4794.730] ABI class: X.Org ANSI C Emulation, version 0.4
[  4794.730] (II) Loading sub module "ramdac"
[  4794.730] (II) LoadModule: "ramdac"
[  4794.730] (II) Module "ramdac" already built-in
[  4794.730] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[  4794.730] (==) NVIDIA(0): RGB weight 888
[  4794.730] (==) NVIDIA(0): Default visual is TrueColor
[  4794.730] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  4794.730] (**) NVIDIA(0): Enabling 2D acceleration
[  4794.850] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[  4794.850] (--) NVIDIA(0):     DFP-0
[  4794.860] (II) NVIDIA(0): NVIDIA GPU GeForce GT 555M (GF106) at PCI:1:0:0 (GPU-0)
[  4794.860] (--) NVIDIA(0): Memory: 3145728 kBytes
[  4794.860] (--) NVIDIA(0): VideoBIOS: 70.06.32.00.02
[  4794.860] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  4794.860] (--) NVIDIA(GPU-0): DFP-0: disconnected
[  4794.860] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[  4794.860] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[  4794.860] (--) NVIDIA(GPU-0):
[  4794.860] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0.
[  4794.860] (EE) NVIDIA(0):     Set AllowEmptyInitialConfiguration if you want the server
[  4794.860] (EE) NVIDIA(0):     to start anyway
[  4794.860] (EE) NVIDIA(0): Failing initialization of X screen 0
[  4794.876] (II) UnloadModule: "nvidia"
[  4794.876] (II) UnloadSubModule: "wfb"
[  4794.876] (II) UnloadSubModule: "fb"
[  4794.876] (EE) Screen(s) found, but none have a usable configuration.
[  4794.876] (EE)
Fatal server error:
[  4794.876] (EE) no screens found(EE)
[  4794.876] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[  4794.876] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  4794.876] (EE)
[  4794.947] (EE) Server terminated with error (1). Closing log file.

EDIT:

Also interesting:

Code: [Select]
tc@box:~$ nvidia-xconfig --query-gpu-info
Number of GPUs: 1

GPU #0:
  Name      : GeForce GT 555M
  UUID      : GPU-3e449f97-312e-4a5b-8e94-91547ad28f84
  PCI BusID : PCI:1:0:0

  Number of Display Devices: 0

For some reason it is 0.

May it be an issue that Corepure64 doesn't seem to allow the ACPI demon to start?

    [EDIT]: Added code tags.  Rich
« Last Edit: November 21, 2018, 05:29:34 AM by Rich »

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6964
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #24 on: November 21, 2018, 06:14:10 AM »
Hi Alligadi
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:
Quote
[code ][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code ]
Please note that  Code Tags  don't actually have a space between the  e  and  ]  characters. This was done here so that they
would be visible rather than executed by the browser.

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #25 on: November 21, 2018, 09:20:47 AM »
Hello Alligadi

First,  I've found that nvidia-config can fail to create a Xorg.conf file correctly because of missing dependencies without giving any indication that it failed.  So I'm wondering if you attempted to create an Xorg.conf file using your current installation, or did you attempt to use my script provided below to install all required components..?

Secondly,  please confirm this notebook has only an Nvidia discreet graphics chip?   I'm thinking that maybe you have a hybrid which includes an i915 chip which may be leading to the confusion?


You could also try creating a basic Xorg.conf using Xorg -configure as root,  then simply change the driver name to "Nvidia"
Code: [Select]
Xorg -configure
mv /root/xorg.conf.new /etc/X11/xorg.conf

then edit this section to add Nvidia
"Identifier "Configured Video Device"
Driver "Nvidia"

Then
Code: [Select]
startx

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #26 on: November 21, 2018, 02:19:30 PM »
Further...

Assuming you have only an Nvidia display chip, then

take the script attached to a previous post in this thread, comment out these last two lines

Code: [Select]
# sudo nvidia-xconfig
# startx

and save it, make it executable

then
reboot
connect to internet via Ethernet or "sudo wifi.sh"
./nvidia_load.sh                                                    #or whatever location and name you gave the script
cd /
sudo Xorg -configure                                             # this should make a basic config file with fonts and Nvidia driver  but id check that it specifies Nvidia
sudo mkdir -p /etc/X11                                           #make sure the directory exists
sudo cp /root/xorg.conf.new /home/tc/xorg.conf.new   #save a copy somewhere safe
sudo cp /root/xorg.conf.new /etc/X11/xorg.conf


If everything went well
startx                                                                    #should start the desktop

good luck

Offline Alligadi

  • WikiUser
  • *
  • Posts: 23
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #27 on: December 27, 2018, 01:23:10 AM »
Hello Alligadi

First,  I've found that nvidia-config can fail to create a Xorg.conf file correctly because of missing dependencies without giving any indication that it failed.  So I'm wondering if you attempted to create an Xorg.conf file using your current installation, or did you attempt to use my script provided below to install all required components..?

Secondly,  please confirm this notebook has only an Nvidia discreet graphics chip?   I'm thinking that maybe you have a hybrid which includes an i915 chip which may be leading to the confusion?


You could also try creating a basic Xorg.conf using Xorg -configure as root,  then simply change the driver name to "Nvidia"
Code: [Select]
Xorg -configure
mv /root/xorg.conf.new /etc/X11/xorg.conf

then edit this section to add Nvidia
"Identifier "Configured Video Device"
Driver "Nvidia"

Then
Code: [Select]
startx

Hi coreplayer2!
Thank you for your effort!
It is a hybrid setup, as there is also a
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
additionally to the
01:00.0 VGA compatible controller: NVIDIA Corporation GF106M [GeForce GT 555M] (rev a1)

Any ideas how I could make it work in this case?

Best regards,
Alligadi


Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: NVIDIA driver on TCE Corepure64 9.x
« Reply #28 on: December 27, 2018, 08:44:13 PM »
Sorry, I have no experience with hybrid graphics.  However I understand that some notebooks have a switch either physical or with the BIOS to disable the onchip graphics adaptor.





Sent from my iPhone using Tapatalk