WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 2746
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: 1700
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: 2746
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: 1700
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: 2746
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: 1700
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 ;)