nVidia drivers on 10.3

Help with graphics cards on GhostBSD.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: nVidia drivers on 10.3

Post by ericbsd »

Do you have your graphic working after all that?
webwalker
Posts: 17
Joined: Fri May 06, 2016 7:59 pm

Re: nVidia drivers on 10.3

Post by webwalker »

I haven't rebooted to find out yet. I did these exact things last night and all I got at startup was a terminal screen. Do I need to add under Section "Device" Identifier from "Device0" to something else? I did some reading today and the places I looked at shows the name of the graphics card instead of "Device0". Otherwise should this or part of this line be in there next to Identifier? 'GT218 [GeForce 8400 GS Rev. 3]'

I wanted to make sure it was right before rebooting, because I wouldn't be able to get myself out of trouble and would have to re-install again. ;)

Thanks

Webby
webwalker
Posts: 17
Joined: Fri May 06, 2016 7:59 pm

Re: nVidia drivers on 10.3

Post by webwalker »

I finally bit my tongue, cringed, and rebooted and I got the same thing I did last time. It gave me a terminal screen. I typed startx and this is what I got. Any Ideas? :(
BSD_screenshot.jpg
BSD_screenshot.jpg (237.07 KiB) Viewed 9336 times
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: nVidia drivers on 10.3

Post by ASX »

even if you are left with a text console, please log in as 'root' then type the following command:

Code: Select all

kldstat

so we can see what modules has been loaded and what not
webwalker
Posts: 17
Joined: Fri May 06, 2016 7:59 pm

Re: nVidia drivers on 10.3

Post by webwalker »

Thanks ASX. Here is the output of 'kldstat'. Sorry for the cutoff. It's hard to hold the phone still and capture it all. The last line says 'linux64.ko'. It appears the nvidia module is loading though.
BSD2R.jpg
BSD2R.jpg (228.87 KiB) Viewed 9332 times
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: nVidia drivers on 10.3

Post by ASX »

module list look ok.

I'm perplexed about the error: (EE) no screen found
seems like either, /etc/xorg.conf (who was generated from nvidia-xconfig) is messed up, or there is some problem to recognise your display/screen.

my device, who use the same driver as yours:

Code: Select all

vgapci0@pci0:1:0:0:	class=0x030000 card=0x02751028 chip=0x042510de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'G86 [GeForce 8600M GS]'
    class      = display
    subclass   = VGA
my xorg.conf however was generated by an older version of nvidia-xconfig, 310.14, you could try to copy my xorg.conf or look for diffrence, you can view yours with:

Code: Select all

more /etc/X11/xorg.conf
my xorg.conf on pastebin:

http://pastebin.com/A0CvhwR9
webwalker
Posts: 17
Joined: Fri May 06, 2016 7:59 pm

Re: nVidia drivers on 10.3

Post by webwalker »

Thanks ASX.

OK, here is the corresponding contents of my xorg.conf file. Looks just like yours. I'm confused now! :?
BSD3R.jpg
BSD3R.jpg (231.1 KiB) Viewed 9329 times
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: nVidia drivers on 10.3

Post by ASX »

this issue is puzzling ... I would like to see a couple of logs ... but guess you have problem publishing them... i.e. no cmd line, no connectivity ...

IIRC there should exist a command:

Code: Select all

xdrivers
that should allow you to temporarily switch to VESA (enough to start the graphics, the same you used when installing),
so log in as root and try that, at least things should become a little easier.

Once switched the driver, reboot.

Other than that, please let us know:
if you are currently running another system, i.e. Linux
if you have a USB stick storage available (we can instruct you to copy files there and then publish them from your other computer),
if the GhostBSD machine will be connected to Internet and how, wire, wifi ?

It will take a bit of time but we will get to end.
webwalker
Posts: 17
Joined: Fri May 06, 2016 7:59 pm

Re: nVidia drivers on 10.3

Post by webwalker »

Hmmmm, I logged in as 'root' typed xdrivers and hit enter. It gave me a screen that gave me the option of choosing either 1 'keyboard', or 2 'nvidia' I chose nvidia, rebooted, and now I get a light gray screen with a frown face that says 'Oh no! Something has gone wrong. A problem has occurred and the system can't recover. Please log out and try again'. under that it has a button that says 'Log Out'. I hit enter, the screen goes away, and tries to go back to a terminal screen. The terminal screen goes black, waits a few seconds, then goes back to the gray screen again.

This is starting to get comical! :lol:
webwalker
Posts: 17
Joined: Fri May 06, 2016 7:59 pm

Re: nVidia drivers on 10.3

Post by webwalker »

OK, re-installed, then installed nvidia driver packages again. I found something that didn't make sense. The instructions posted here says to do this 'echo 'nvidia_load="YES"' >> /boot/loader.conf', but what the terminal instructions say is to put it in /etc/rc.conf. Are the instructions possibly wrong, or am I reading something wrong?

Terminal print out:

root@webby:/usr/home/webby # pkg search nvidia
nvidia-driver-346.96 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-driver-304-304.128 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-driver-340-340.93 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-settings-355.11_3 Display Control Panel for X NVidia driver
nvidia-texture-tools-2.0.8.1_7 Texture Tools with support for DirectX 10 texture formats
nvidia-xconfig-355.11 Tool to manipulate X configuration files for the NVidia driver
root@webby:/usr/home/webby # pkg install nvidia-driver-340.96
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'nvidia-driver-340.96' have been found in the repositories
root@webby:/usr/home/webby # pkg install nvidia-driver-340-340.93
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
nvidia-driver-340: 340.93
linux_base-c6: 6.7_1
gstreamer1-plugins-ugly: 1.8.0

The process will require 379 MiB more space.
59 MiB to be downloaded.

Proceed with this action? [y/N]: n
root@webby:/usr/home/webby # pkg search nvidia
nvidia-driver-346.96 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-driver-304-304.128 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-driver-340-340.93 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-settings-355.11_3 Display Control Panel for X NVidia driver
nvidia-texture-tools-2.0.8.1_7 Texture Tools with support for DirectX 10 texture formats
nvidia-xconfig-355.11 Tool to manipulate X configuration files for the NVidia driver
root@webby:/usr/home/webby # pkg install nvidia-driver-346.96
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
nvidia-driver: 346.96
linux_base-c6: 6.7_1
gstreamer1-plugins-ugly: 1.8.0

The process will require 377 MiB more space.
59 MiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching nvidia-driver-346.96.txz: 100% 37 MiB 103.1kB/s 06:18
Fetching linux_base-c6-6.7_1.txz: 100% 21 MiB 92.8kB/s 04:01
Fetching gstreamer1-plugins-ugly-1.8.0.txz: 100% 124 KiB 63.4kB/s 00:02
Checking integrity... done (0 conflicting)
[1/3] Installing linux_base-c6-6.7_1...
[1/3] Extracting linux_base-c6-6.7_1: 100%

Running linux ldconfig...
[2/3] Installing nvidia-driver-346.96...
[2/3] Extracting nvidia-driver-346.96: 100%
[3/3] Installing gstreamer1-plugins-ugly-1.8.0...
[3/3] Extracting gstreamer1-plugins-ugly-1.8.0: 100%
Message from linux_base-c6-6.7_1:
This software is based in part on the work of the FreeType Team.
See <URL:http://www.freetype.org/>.

Installation of the Linux base system is finished. The Linux kernel
mode, which must be enabled for Linux binaries to run, is now
enabled. Linux mode can be enabled permanently with the linux_enable
variable of rc.conf(5).

----------------------
You should enable Linux mode with the linux_enable variable of rc.conf(5).
Depending on the version of FreeBSD you are using you may have to increase
the emulated linux version via compat.linux.osrelease=2.6.18 in
sysctl.conf(5). Check via "sysctl compat.linux.osrelease" that it shows a
lower version number before setting it.
----------------------

If you want to use shared memory in Linux applications, you need to set up
a link from /dev/shm to a suitable place, e.g. by adding the following line
to /etc/devfs.conf (takes effect on each boot):
link /tmp shm

To make use of NIS you have to adjust yp.conf and nsswitch.conf in
/compat/linux/etc/ accordingly. For example:

Set your yp-server and yp-domainname in yp.conf:
domainname my.yp.domainname
ypserver my.yp.server

Let your lists for hosts, passwd and group be resolved via nsswitch.conf:
passwd: files nis
shadow: files nis
group: files nis
hosts: files dns nis

WARNING: doing work which needs to chroot into the linux base may not work.

In such cases (e.g. cross-development) you are better suited with a linux_dist
port.
Message from nvidia-driver-346.96:
To use these drivers, make sure that you have loaded the NVidia kernel
module, by doing

# kldload nvidia

or adding

nvidia_load="YES"

to your /boot/loader.conf.

If you build this port with FreeBSD AGP GART driver, make sure you have
agp.ko kernel module installed and loaded, since nvidia.ko will depend
on it, or have your kernel compiled with "device agp". Otherwise, the
NVidia kernel module will not load. Also, please set correct value for
``Option "NvAGP"'' in ``Device'' section of your X11 configuration file.

When building with Linux compatibility support, make sure that linux.ko
module is available as well (or have it compiled in kernel). It can be
loaded via /boot/loader.conf, or later in the boot process if you add

linux_enable="YES"

to your /etc/rc.conf.

If X.org cannot start and reports

(EE) NVIDIA(0): Failed to obtain a shared memory identifier.

in /var/log/Xorg.0.log while actually you have ``options SYSVSHM''
enabled in kernel, the sysctl ``kern.ipc.shmall'' should be increased.

See /usr/local/share/doc/NVIDIA_GLX-1.0/README for more information.
root@webby:/usr/home/webby # pkg install nvidia-settings-355.11_3
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
nvidia-settings: 355.11_3
jansson: 2.7_2

The process will require 2 MiB more space.
753 KiB to be downloaded.
Proceed with this action? [y/N]: y
Fetching nvidia-settings-355.11_3.txz: 100% 718 KiB 66.9kB/s 00:11
Fetching jansson-2.7_2.txz: 100% 35 KiB 36.2kB/s 00:01
Checking integrity... done (0 conflicting)
[1/2] Installing jansson-2.7_2...
[1/2] Extracting jansson-2.7_2: 100%
[2/2] Installing nvidia-settings-355.11_3...
[2/2] Extracting nvidia-settings-355.11_3: 100%
root@webby:/usr/home/webby # pkg install nvidia-xconfig-355.11
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
nvidia-xconfig: 355.11

73 KiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching nvidia-xconfig-355.11.txz: 100% 73 KiB 75.2kB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Installing nvidia-xconfig-355.11...
[1/1] Extracting nvidia-xconfig-355.11: 100%
Post Reply