PDA

View Full Version : trying to use nvidia drivers on a fresh install of 64bit quantal



Drone4four
December 28th, 2012, 07:32 AM
I just did a fresh install of 64bit Ubuntu Quantal. I installed nvidia-current drivers. However, running nvidia-settings prompts me with this message:


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.

So I run:


gnull@quantal ~ :) $ sudo nvidia-xconfig

[sudo] password for gnull:

Using X configuration file: "/etc/X11/xorg.conf".

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'

New X configuration file written to '/etc/X11/xorg.conf'

gnull@quantal ~ $

That looks fine and dandy but when I restart X or even reboot my computer, I can't run Steam, Unigine and e17 prompts me saying that the OpenGL features I ticked on are automatically disabled.

How do I enable my nvidia drivers?

By the way, this forum thread (http://ubuntuforums.org/showthread.php?t=1659556&page=2) was helpful. Following the suggestions in that thread, I managed to increase my resolution from 640x480 to 1600x1200.

This is my xorg.conf:


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 304.43 (buildmeister@swio-display-x86-rhel47-13) Sun Aug 19 21:19:28 PDT 2012


Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
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 30.0 - 81.0
VertRefresh 50.0 - 63.0
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

a50sn95
December 28th, 2012, 06:13 PM
I have a 3 day old install. of 12.10 64 bit.

I used these instructions to install

http://ubuntuforums.org/showpost.php?p=12338523&postcount=2

everything worked fine.

I did not have to edit anything.

Not sure how to fix broken X issues yet, just getting back into Linux....

HTH...

Dennis

Drone4four
December 28th, 2012, 06:26 PM
I followed that guide. I purged my system of already installed nvidia drivers, upgraded the linux headers, reinstalled the drivers, ran nvidia-xconfig as root user, and then rebooted:


gnull@quantal ~ :) $ sudo apt-get purge nvidia*
[sudo] password for gnull:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'nvidia-vdpau-driver' for regex 'nvidia*'
Note, selecting 'nvidia-cuda-profiler' for regex 'nvidia*'
Note, selecting 'nvidia-current-experimental-304' for regex 'nvidia*'
Note, selecting 'nvidia-glx-legacy-71xx-dev' for regex 'nvidia*'
Note, selecting 'libgl1-nvidia-legacy-173xx-glx' for regex 'nvidia*'
Note, selecting 'nvidia-173-dev' for regex 'nvidia*'
Note, selecting 'nvidia-common' for regex 'nvidia*'
Note, selecting 'nvidia-tegra3' for regex 'nvidia*'
Note, selecting 'nvidia-173' for regex 'nvidia*'
Note, selecting 'nvidia-cg-toolkit' for regex 'nvidia*'
Note, selecting 'libgl1-nvidia-legacy-71xx-glx' for regex 'nvidia*'
Note, selecting 'nvidia-visual-profiler' for regex 'nvidia*'
Note, selecting 'nvidia-glx-legacy-173xx-dev' for regex 'nvidia*'
Note, selecting 'nvidia-current' for regex 'nvidia*'
Note, selecting 'nvidia-experimental-310-dev' for regex 'nvidia*'
Note, selecting 'nvidia-96' for regex 'nvidia*'
Note, selecting 'nvidia-96-updates' for regex 'nvidia*'
Note, selecting 'nvidia-glx-dev' for regex 'nvidia*'
Note, selecting 'nvidia-current-modaliases' for regex 'nvidia*'
Note, selecting 'nvidia-glx-legacy-71xx' for regex 'nvidia*'
Note, selecting 'nvidia-vdpau-driver-ia32' for regex 'nvidia*'
Note, selecting 'nvidia-173-updates' for regex 'nvidia*'
Note, selecting 'nvidia-va-driver' for regex 'nvidia*'

Note, selecting 'nvidia-libvdpau' for regex 'nvidia*'
Note, selecting 'nvidia-current-updates' for regex 'nvidia*'
Note, selecting 'nvidia-glx-legacy-173xx' for regex 'nvidia*'
Note, selecting 'nvidia-tegra' for regex 'nvidia*'
Note, selecting 'boinc-nvidia-cuda' for regex 'nvidia*'
Note, selecting 'nvidia-opencl-profiler' for regex 'nvidia*'
Note, selecting 'nvidia-opencl-dev' for regex 'nvidia*'
Note, selecting 'libgl1-nvidia-glx' for regex 'nvidia*'
Note, selecting 'libgl1-nvidia-alternatives' for regex 'nvidia*'
Note, selecting 'nvidia-glx-legacy-96xx' for regex 'nvidia*'
Note, selecting 'nvidia-installer-cleanup' for regex 'nvidia*'
Note, selecting 'nvidia-settings-updates' for regex 'nvidia*'
Note, selecting 'nvidia-experimental' for regex 'nvidia*'
Note, selecting 'nvidia-180-modaliases' for regex 'nvidia*'
Note, selecting 'nvidia-cuda-dev' for regex 'nvidia*'
Note, selecting 'nvidia-cuda-doc' for regex 'nvidia*'
Note, selecting 'nvidia-cuda-gdb' for regex 'nvidia*'
Note, selecting 'nvidia-173-updates-dev' for regex 'nvidia*'
Note, selecting 'nvidia-current-updates-dev' for regex 'nvidia*'
Note, selecting 'nvidia-cuda-toolkit' for regex 'nvidia*'
Note, selecting 'nvidia-libvdpau-dev' for regex 'nvidia*'
Note, selecting 'nvidia-libvdpau-ia32' for regex 'nvidia*'
Note, selecting 'nvidia-cuda-debugger' for regex 'nvidia*'
Note, selecting 'nvidia-libopencl1-dev' for regex 'nvidia*'
Note, selecting 'glx-alternative-nvidia' for regex 'nvidia*'
Note, selecting 'nvidia-cg-dev' for regex 'nvidia*'
Note, selecting 'nvidia-settings-experimental-304' for regex 'nvidia*'
Note, selecting 'nvidia-settings-experimental-310' for regex 'nvidia*'
Note, selecting 'nvidia-cg-doc' for regex 'nvidia*'
Note, selecting 'nvidia-libvdpau1' for regex 'nvidia*'
Note, selecting 'nvidia-libvdpau1-ia32' for regex 'nvidia*'
Note, selecting 'nvidia-compute-profiler' for regex 'nvidia*'
Note, selecting 'nvidia-current-dev' for regex 'nvidia*'
Note, selecting 'nvidia-glx-legacy-96xx-dev' for regex 'nvidia*'
Note, selecting 'nvidia-173-modaliases' for regex 'nvidia*'
Note, selecting 'nvidia-experimental-304-dev' for regex 'nvidia*'
Note, selecting 'nvidia-185-modaliases' for regex 'nvidia*'
Note, selecting 'nvidia-glx' for regex 'nvidia*'
Note, selecting 'libkwinactivenvidiahack4' for regex 'nvidia*'
Note, selecting 'nvidia-experimental-304' for regex 'nvidia*'
Note, selecting 'nvidia-experimental-310' for regex 'nvidia*'
Note, selecting 'nvidia-settings' for regex 'nvidia*'
Note, selecting 'libgl1-nvidia-legacy-96xx-glx' for regex 'nvidia*'
Note, selecting 'nvidia-texture-tools' for regex 'nvidia*'
Note, selecting 'libglx-nvidia-alternatives' for regex 'nvidia*'
Note, selecting 'libkwinnvidiahack4' for regex 'nvidia*'
Package 'libgl1-nvidia-alternatives' is not installed, so not removed
Package 'nvidia-libvdpau-dev' is not installed, so not removed
Package 'nvidia-vdpau-driver' is not installed, so not removed
Package 'nvidia-vdpau-driver-ia32' is not installed, so not removed
Package 'nvidia-libvdpau' is not installed, so not removed
Package 'nvidia-libvdpau-ia32' is not installed, so not removed
Package 'nvidia-libvdpau1' is not installed, so not removed
Package 'nvidia-libvdpau1-ia32' is not installed, so not removed
Package 'nvidia-180-modaliases' is not installed, so not removed
Package 'nvidia-185-modaliases' is not installed, so not removed
Package 'nvidia-current-modaliases' is not installed, so not removed
Package 'nvidia-173-modaliases' is not installed, so not removed
Package 'nvidia-current-experimental-304' is not installed, so not removed
Note, selecting 'libnvtt-bin' instead of 'nvidia-texture-tools'
Package 'nvidia-libopencl1-dev' is not installed, so not removed
Package 'nvidia-glx' is not installed, so not removed
Note, selecting 'vdpau-va-driver' instead of 'nvidia-va-driver'
Package 'libgl1-nvidia-glx' is not installed, so not removed
Package 'libgl1-nvidia-legacy-173xx-glx' is not installed, so not removed
Package 'libgl1-nvidia-legacy-71xx-glx' is not installed, so not removed
Package 'libgl1-nvidia-legacy-96xx-glx' is not installed, so not removed
Package 'libglx-nvidia-alternatives' is not installed, so not removed
Package 'nvidia-glx-legacy-173xx' is not installed, so not removed
Package 'nvidia-glx-legacy-71xx' is not installed, so not removed
Package 'nvidia-glx-legacy-96xx' is not installed, so not removed
Package 'nvidia-installer-cleanup' is not installed, so not removed
Package 'nvidia-glx-dev' is not installed, so not removed
Package 'nvidia-glx-legacy-173xx-dev' is not installed, so not removed
Package 'nvidia-glx-legacy-71xx-dev' is not installed, so not removed
Package 'nvidia-glx-legacy-96xx-dev' is not installed, so not removed
Package 'nvidia-cuda-debugger' is not installed, so not removed
Package 'nvidia-compute-profiler' is not installed, so not removed
Package 'nvidia-cuda-profiler' is not installed, so not removed
Package 'nvidia-opencl-profiler' is not installed, so not removed

Package 'nvidia-tegra' is not installed, so not removed
Package 'nvidia-tegra3' is not installed, so not removed
Package 'nvidia-173' is not installed, so not removed
Package 'nvidia-173-dev' is not installed, so not removed
Package 'nvidia-173-updates' is not installed, so not removed
Package 'nvidia-173-updates-dev' is not installed, so not removed
Package 'nvidia-current-updates' is not installed, so not removed
Package 'nvidia-current-updates-dev' is not installed, so not removed
Package 'nvidia-experimental-304' is not installed, so not removed
Package 'nvidia-experimental-304-dev' is not installed, so not removed
Package 'nvidia-settings-experimental-304' is not installed, so not removed
Package 'nvidia-settings-updates' is not installed, so not removed
Package 'glx-alternative-nvidia' is not installed, so not removed
Package 'nvidia-cg-dev' is not installed, so not removed
Package 'nvidia-cg-doc' is not installed, so not removed
Package 'nvidia-cg-toolkit' is not installed, so not removed
Package 'nvidia-cuda-dev' is not installed, so not removed
Package 'nvidia-cuda-doc' is not installed, so not removed
Package 'nvidia-cuda-gdb' is not installed, so not removed
Package 'nvidia-cuda-toolkit' is not installed, so not removed
Package 'nvidia-opencl-dev' is not installed, so not removed
Package 'nvidia-visual-profiler' is not installed, so not removed
Package 'nvidia-settings-experimental-310' is not installed, so not removed
Package 'nvidia-experimental-310' is not installed, so not removed
Package 'nvidia-experimental-310-dev' is not installed, so not removed
Package 'libkwinactivenvidiahack4' is not installed, so not removed
Package 'libkwinnvidiahack4' is not installed, so not removed
Package 'nvidia-common' is not installed, so not removed
Package 'boinc-nvidia-cuda' is not installed, so not removed
Package 'nvidia-current-dev' is not installed, so not removed
The following packages will be REMOVED:
nvidia-current* nvidia-settings*
0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
After this operation, 208 MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 218514 files and directories currently installed.)
Removing nvidia-current ...
Removing all DKMS Modules
Done.
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
INFO:Disable nvidia-current
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Processing quirk ThinkPad T420s
DEBUG:Failure to match Gigabyte Technology Co., Ltd. with LENOVO
DEBUG:Quirk doesn't match
DEBUG:Processing quirk Latitude E6530
DEBUG:Failure to match Gigabyte Technology Co., Ltd. with Dell Inc.
DEBUG:Quirk doesn't match
update-initramfs: deferring update (trigger activated)
Purging configuration files for nvidia-current ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-settings ...
Purging configuration files for nvidia-settings ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.5.0-17-generic
gnull@quantal ~ $ sudo apt-get install linux-headers-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-generic is already the newest version.
The following packages were automatically installed and are no longer required:
dkms linux-headers-3.5.0-17 python-xkit screen-resolution-extra
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
gnull@quantal ~ $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
dkms linux-headers-3.5.0-17 python-xkit screen-resolution-extra


0 upgraded, 0 newly installed, 4 to remove and 2 not upgraded.
After this operation, 59.4 MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 218244 files and directories currently installed.)
Removing dkms ...
Removing linux-headers-3.5.0-17 ...
Removing screen-resolution-extra ...
Removing python-xkit ...
Processing triggers for man-db ...
gnull@quantal ~ $ sudo apt-get install nvidia-current nvidia-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dkms python-xkit screen-resolution-extra
Suggested packages:
dpkg-dev debhelper
The following NEW packages will be installed:
dkms nvidia-current nvidia-settings python-xkit screen-resolution-extra
0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/69.7 MB of archives.
After this operation, 208 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously unselected package dkms.
(Reading database ... 204001 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.2.0.3-1.1ubuntu1_all.deb) ...
Selecting previously unselected package nvidia-current.
Unpacking nvidia-current (from .../nvidia-current_304.64-0ubuntu1~quantal~xup1_amd64.deb) ...
Selecting previously unselected package python-xkit.
Unpacking python-xkit (from .../python-xkit_0.5.0_all.deb) ...
Selecting previously unselected package screen-resolution-extra.
Unpacking screen-resolution-extra (from .../screen-resolution-extra_0.15_all.deb) ...
Selecting previously unselected package nvidia-settings.
Unpacking nvidia-settings (from .../nvidia-settings_304.64-0ubuntu1~quantal~xup1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Setting up dkms (2.2.0.3-1.1ubuntu1) ...
Setting up nvidia-current (304.64-0ubuntu1~quantal~xup1) ...
update-alternatives: using /usr/lib/nvidia-current/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-current/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-current
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Processing quirk ThinkPad T420s
DEBUG:Failure to match Gigabyte Technology Co., Ltd. with LENOVO
DEBUG:Quirk doesn't match
DEBUG:Processing quirk Latitude E6530
DEBUG:Failure to match Gigabyte Technology Co., Ltd. with Dell Inc.
DEBUG:Quirk doesn't match
Loading new nvidia-current-304.64 DKMS files...
First Installation: checking all kernels...
Building only for 3.5.0-17-generic
Building for architecture x86_64
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
Setting up python-xkit (0.5.0) ...
Setting up screen-resolution-extra (0.15) ...
Setting up nvidia-settings (304.64-0ubuntu1~quantal~xup1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/nvidia-settings/ld.so.conf because link group nvidia_settings_conf is broken
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.5.0-17-generic
gnull@quantal ~ $ nvidia-xconfig

Using X configuration file: "/etc/X11/xorg.conf".

ERROR: Unable to write to directory '/etc/X11'.

gnull@quantal ~ :) $ sudo nvidia-xconfig

Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

gnull@quantal ~ $

Even after inputting those commands, the problem persists. Is there anything unusual in that output that could indicate the problem I am having?

bogan
December 28th, 2012, 07:56 PM
Hi!, Drone4four,

I think this is where your problem lies:
Loading new nvidia-current-304.64 DKMS files...
First Installation: checking all kernels...
Building only for 3.5.0-17-generic
Building for architecture x86_64
Module build for the currently running kernel was skipped since the kernel source for this kernel does not seem to be installed.
Setting up python-xkit (0.5.0) ...
Setting up screen-resolution-extra (0.15) ...
Setting up nvidia-settings (304.64-0ubuntu1~quantal~xup1)
... update-alternatives: warning: forcing reinstallation of alternative /usr/lib/nvidia-settings/ld.so.conf because link group nvidia_settings_conf is broken Though what to do about it, other than a full re-install, I am not competant to suggest, probably depends on what kernal you are actually running.

Edit: A search through Synaptic Package manager for linux headers, linux-source, linux-image, linux-image-extra ,to check they are all the correct version might help.

Chao!, bogan.

Drone4four
December 28th, 2012, 10:02 PM
Ah yes, that worked. Thanks, bogan. I installed linux-source and either linux-image or linux-image-extra (forget which of the two). I purged my system of all traces of nvidia and then installed nvidia-current et. al. I rebooted and presto, it all worked fine and dandy. I am downloading TF2 as I write this post. I am thrilled. I suppose I should extend gratitude out to a50sn95 as well b/c by following the guide in the thread he provided enabled me to share the output that bogan examined. So thanks to you both. =D