Public bug reported:

This should probably be linked with both linux-restricted-modules-common
and restricted-manager.

Duplicates bug #106895.

My system is a gutsy (2.6.22-11-generic).

At start, the module is not loaded, so the X can't start (as it is
trying to use the nvidia driver, and fails with the "FATAL: Error
running install command for nvidia" message in the Xlog).

The next is [modulename - nvidia-glx* version]

[nvidia - 1.0.9639]
$ modprobe nvidia
FATAL: Error running install command for nvidia
dmesg:
Sep 13 23:30:11 jupiter kernel: [ 3058.840000] NVRM: The NVIDIA GeForce2 MX/MX 
400 GPU installed in this system is
Sep 13 23:30:11 jupiter kernel: [ 3058.840000] NVRM:  supported through the 
NVIDIA 1.0-96xx Legacy drivers. Please
Sep 13 23:30:11 jupiter kernel: [ 3058.840000] NVRM:  visit 
http://www.nvidia.com/object/unix.html for more
Sep 13 23:30:11 jupiter kernel: [ 3058.840000] NVRM:  information.  The 
100.14.11 NVIDIA driver will ignore
Sep 13 23:30:11 jupiter kernel: [ 3058.840000] NVRM:  this GPU.  Continuing 
probe...
Sep 13 23:30:11 jupiter kernel: [ 3058.844000] NVRM: No NVIDIA graphics adapter 
found!

[nvidia-new - 100.14.11]
$ sudo modprobe nvidia-new
FATAL: Error running install command for nvidia_new
dmesg:
Sep 13 23:40:51 jupiter kernel: [ 3698.940000] NVRM: The NVIDIA GeForce2 MX/MX 
400 GPU installed in this system is
Sep 13 23:40:51 jupiter kernel: [ 3698.940000] NVRM:  supported through the 
NVIDIA 1.0-96xx Legacy drivers. Please
Sep 13 23:40:51 jupiter kernel: [ 3698.940000] NVRM:  visit 
http://www.nvidia.com/object/unix.html for more
Sep 13 23:40:51 jupiter kernel: [ 3698.940000] NVRM:  information.  The 
100.14.11 NVIDIA driver will ignore
Sep 13 23:40:51 jupiter kernel: [ 3698.940000] NVRM:  this GPU.  Continuing 
probe...
Sep 13 23:40:51 jupiter kernel: [ 3698.940000] NVRM: No NVIDIA graphics adapter 
found!

[nvidia-legacy - 1.0.7185]
$ modprobe nvidia-legacy
dmesg:
Sep 13 23:42:34 jupiter kernel: [ 3801.852000] NVRM: loading NVIDIA Linux x86 
Kernel Module  1.0-7185  Mon Apr  2 18:29:54 PDT 2007
Xlog (X starts only with nvidia-glx-legacy, otherwise it claims an API 
mismatch):
(EE) GLX is not supported with the Composite extension


Note that modprobing nvidia (which should match the 1.0.9639 version of 
nvidia-glx) claims about trying to load a 100.14.11 version (which is the 
nvidia-glx-new). So...

$ insmod /lib/modules/2.6.22-11-generic/volatile/nvidia.ko
dmesg:
Sep 13 23:48:15 jupiter kernel: [ 4143.028000] NVRM: loading NVIDIA Linux x86 
Kernel Module  1.0-9639  Mon Apr 16 20:20:06 PDT 2007
Xlog (no problems with acceleration)

Tate! The nvidia modprobe is trying to load the nvidia-new instead of
the nvidia module!

Is there a reason for this to happen? (I don't get why there are three
kernel modules... instead of two, but maybe it's just that my card is
between the "normal" and "legacy" branches, and far back the "new" one).

The problem is located in the restricted modules manager, which only has
options for two branches of nvidia modules, the "normal" (which in
practice is translated to a nvidia-new) and the "legacy" (which loads
nvidia-legacy, as expected):

/etc/modprobe.d/lrm-video:
# Make nvidia/nvidia_legacy and fglrx use /sbin/lrm-video to load
install fglrx /sbin/lrm-video fglrx $CMDLINE_OPTS
install nvidia /sbin/lrm-video nvidia $CMDLINE_OPTS
install nvidia_legacy /sbin/lrm-video nvidia_legacy $CMDLINE_OPTS
install nvidia_new /sbin/lrm-video nvidia_new $CMDLINE_OPTS

/sbin/lrm-video:
[...]
if [ "$MODULE" = "nvidia" ]; then
        if [ -e /lib/linux-restricted-modules/.nvidia_legacy_installed ]; then
                MODULE="nvidia_legacy"
        fi
        if [ -e /lib/linux-restricted-modules/.nvidia_new_installed ]; then
                MODULE="nvidia_new"
        fi
        XORG="nvidia";
[...]

The fix? Either end up with just two branches of nvidia modules, or add
a third branch to the restricted modules frontend and all its related
scripts.

Quick, dirty & temporal fix? (just for those wanting to use the "normal"
branch) Delete /lib/linux-restricted-modules/.nvidia_new_installed
(which is created when selecting the "normal" branch in the GUI), and
rememnber to delete it every time you select that option in the GUI :)

Happy hacking!

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
X not starting in non-new NVIDIA cards when non-legacy option selected in 
restricted drivers manager
https://bugs.launchpad.net/bugs/139487
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to