Installation of NVIDIAG02 drivers on Leap 15.6

This post is sequel to/continuation of the post entitled “Installation of
NVIDIAG02 drivers on Leap 15.5
“.

With Leap 15.5 now at end-of-life, all further efforts will now be based
on Leap 15.6.


I’ve now reached a peculiar roadblock with Leap 15.6 testing.

On my Compaq Presario CQ5210F PC with the NVIDIA GeForce
6150 SE Graphics card, I collected the Kernel-6.4.0-150600.21.1
components in a directory:

[code]

kernel-default-6.4.0-150600.21.1.x86_64.rpm
kernel-default-devel-6.4.0-150600.21.1.x86_64.rpm
kernel-devel-6.4.0-150600.21.1.noarch.rpm
kernel-macros-6.4.0-150600.21.1.noarch.rpm
kernel-syms-6.4.0-150600.21.1.x86_64.rpm
[/code}

The kernel was downgraded with the command,
sudo zypper install --solver-focus update --oldpackage ./k*.rpm

(For convenience, I’ll refer to this kernel as the “kmp-match” kernel,
because it is required to match the version of the
nvidia-gfxG02-kmp-default-304.137_k6.4.0_150600.21-lp156.52.1.x86_64.rpm package).

The latest kernel in effect from the initial NET .iso installation is 6.4.0-150600.23.30

The result of this downgrade is that 2 kernels are available for boot-up, the latest kernel and the kmp-match kernel.


When booting up the latest kernel, the graphics work fine, with the nouveau driver in effect.

When booting up the kmp-match kernel, no amount of manipulation would bring up the graphics; a command line login prompt would come up on the initial boot, and a
sudo startx command would ultimately end in a blank screen.

The inxi -Gxx command showed Driver: N/A, no driver in effect.

Under the kmp-match kernel, zypper info xf86-video-nouveau showed that the package was NOT installed ??? A sudo zypper install xf86-video-nouveau command installed the package, but to no effect.


As a corroborative test, I installed Leap 15.6 on my hp dc5700 PC which has an intel graphics card using i915 drivers. Both kernels booted up without incident, with the i915 drivers in effect.

I don’t understand why the kmp-match kernel will not boot up normally with the nouveau driver in effect on the Compaq Presario.


On a positive note:

I previously missed the fact that Wojciech has provided an up-to-date
version of Leap15.0Graphics for use going forward.

The packages are found in his home directory under
drivers → v02 → 15.6 → x86_64

I collected the subset necessary for installation in a directory:

xf86-input-evdev-2.11.0-lp156.99.1.x86_64.rpm
xf86-input-joystick-1.6.4-lp156.23.1.x86_64.rpm
xf86-input-libinput-1.5.0-lp156.98.1.x86_64.rpm
xf86-input-vmmouse-13.2.0-lp156.66.1.x86_64.rpm
xf86-input-void-1.4.2-lp156.27.1.x86_64.rpm
xf86-input-wacom-0.40.0-lp156.91.1.x86_64.rpm
xf86-video-fbdev-0.5.0-lp156.6.1.x86_64.rpm
xf86-video-nouveau-1.0.18-lp156.66.1.x86_64.rpm
xf86-video-vesa-2.6.0-lp156.61.1.x86_64.rpm
xorg-x11-server-1.19.7-lp156.4.1.x86_64.rpm
xorg-x11-server-extra-1.19.7-lp156.4.1.x86_64.rpm
xorg-x11-server-sdk-1.19.7-lp156.4.1.x86_64.rpm

On both the Compaq Presario and the hp dc5700, they were
installed with little difficulty, with the command
sudo zypper install --solver-focus update --oldpackage ./x*.rpm

There were many missing-key warning messages which were bypassed with entering i for ignore.

A module that was missing was the xf86-input-keyboard package, but the
latest version was used instead by entering a 3 to the warning message.


Hopefully, a workaround for the “roadblock” problem can be found.

Happy New Year to all, and most especially to Wojciech !!

Len E.

@LenE Your efforts may be in vain as these packages are likely to receive delete requests, or building disabled (some already have been)…
Ref 1. https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/message/RFFVPGRDG6XWNEMF4ZR6NZCQ5AZJYO3P/
Ref 2. https://en.opensuse.org/openSUSE:Build_Service_application_blacklist
Ref 3. https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-driver-G06#comment-1993822

Hi Malcolm:

I haven’t yet reviewed the references you sent, but I will do so.


Some progress on the roadblock referred to yesterday:

On the Leap 15.6 installation on the Compaq Presaro CQ5210F,
to the packages in Wojciech’s up-to-date version of Leap15.0Graphics,
from his home directory, I added and installed the
xf86-input-libinput-1.5.0-lp156.98.1.x86_64.rpm package.

I entered a disable-nouveau.conf file containing the single
statement, blacklist nouveau, into the directory /etc/modprobe.d

I rebooted into the kmp-match kernel by entering a nomodeset
parameter to the grub boot command line. After a command-line
login, I entered sudo startx command, and the graphics came up
with the standard 1024x768 vesa resolution in effect.

I then rebooted into the latest kernel, and it came up normally with
the nouveau driver in effect as usual.


The inxi -Gxx output under the latest kernel is as follows:

Graphics:
  Device-1: NVIDIA C61 [GeForce 6150SE nForce 430] vendor: Hewlett-Packard
    driver: nouveau v: kernel arch: Curie ports: active: VGA-1 empty: none
    bus-ID: 00:0d.0 chip-ID: 10de:03d0
  Display: x11 server: X.org v: 1.21.1.11 driver: X: loaded: N/A
    unloaded: fbdev,modesetting,vesa failed: nouveau alternate: nvidia
    dri: nouveau gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1152x864
  Monitor-1: VGA-1 model: NEC M700 res: 1152x864 dpi: 96 diag: 400mm (15.7")
  API: OpenGL v: 4.5 Mesa 23.3.4 renderer: llvmpipe (LLVM 17.0.6 128 bits)
    direct-render: Yes

The inxi -Gxx output under the kmp-match kernel is as follows:

Graphics:
  Device-1: NVIDIA C61 [GeForce 6150SE nForce 430]
    vendor: Hewlett-Packard driver: N/A arch: Curie bus-ID: 00:0d.0
    chip-ID: 10de:03d0
  Display: server: X.org v: 1.21.1.11 driver: X:
    loaded: nouveau,vesa unloaded: fbdev,modesetting alternate: nvidia
    gpu: N/A display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1024x768
  Monitor-1: default res: 1024x768 size: N/A
  API: OpenGL v: 4.5 Mesa 23.3.4 renderer: llvmpipe (LLVM 17.0.6
    128 bits) direct-render: Yes

To be continued …

Len E.

Hi Wojciech:

I haven’t been able to achieve a successful subject installation, but
I believe I’ve reached a point where an expert tweak provided by
you will put the process “over the top” to ensure a successful outcome.

I’ve worked with 2 installs of Leap 15.6 resident in separate partitions on
my Compaq Presario test machine, for which the first 5 steps of the
installation procedure are identical. On one install, there is a 6th step,
which is omitted on the other install. The last 2 steps, # 7 and # 8,
are identical. As there have been some detail changes to the directories
containing the package contents, they are all repeated herein for clarity.


For easier reading, one additional terminology definition:

Your “up-to-date” version of Leap15.0Graphics is called
xorg-1.19.7 graphics.


STEP 1 Install Leap15.0Graphics

sudo zypper install --solver-focus update --oldpackage ./*.rpm

libdmx1-1.1.3-lp150.1.6.x86_64.rpm
xf86-input-evdev-2.10.5-lp150.1.10.x86_64.rpm
xf86-input-joystick-1.6.3-lp150.1.8.x86_64.rpm
xf86-input-keyboard-1.9.0-lp150.1.8.x86_64.rpm
xf86-input-libinput-0.27.1-lp150.1.1.x86_64.rpm
xf86-input-vmmouse-13.1.0-lp150.1.7.x86_64.rpm
xf86-input-void-1.4.1-lp150.1.7.x86_64.rpm
xf86-input-wacom-0.34.2-lp150.1.10.x86_64.rpm
xf86-video-fbdev-0.4.4-lp150.1.7.x86_64.rpm
xf86-video-nouveau-1.0.15-lp150.1.9.x86_64.rpm
xf86-video-vesa-2.4.0-lp150.1.1.x86_64.rpm
xorg-x11-driver-video-7.6_1-lp150.2.5.x86_64.rpm
xorg-x11-server-1.19.6-lp150.6.1.x86_64.rpm
xorg-x11-server-extra-1.19.6-lp150.6.1.x86_64.rpm

There are two reasons for doing this:
-In a later step, the latest kernel is to be removed, so it’s important
that the graphics have no direct inclusion of, or dependency on,
kernel library modules. Leap15.0Graphics seem to be independent
of any specific kernel.
-the Step 6 installation of xorg-1.19.7 graphics is a simple upgrade to
Leap15.0Graphics.


STEP2 Install kmp-match kernel

sudo zypper install --solver-focus update --oldpackage ./*.rpm

kernel-default-6.4.0-150600.21.1.x86_64.rpm
kernel-default-devel-6.4.0-150600.21.1.x86_64.rpm
kernel-default-extra-6.4.0-150600.21.1.x86_64.rpm
kernel-default-optional-6.4.0-150600.21.1.x86_64.rpm
kernel-devel-6.4.0-150600.21.1.noarch.rpm
kernel-macros-6.4.0-150600.21.1.noarch.rpm
kernel-syms-6.4.0-150600.21.1.x86_64.rpm

With a more complete set of related packages, the kernel installed
and booted up fine with the nouveau driver in effect, albeit using
llvmpipe rendering.


STEP 3 after booting up in the kmp-match kernel, disable multiversion support,
refresh repos

-edit /etc/zypp/zypp.conf file, comment out the default multiversion enabling
statement.
-sudo zypper refresh, confirms that all repos are up-to-date.
-reboot
-all further work is done with the kmp-match kernel in effect.


STEP 4

i) from Yast, set “protect - do not modify” flag for kernel-devel and
kernel-default-devel which are now kmp-match versions.

ii) sudo zypper rm kernel-default-6.4.0-150600.23.30.1 which is the
latest version

iii) reboot back into the only kernel remaining, the kmp-match kernel


STEP 5
i) from Yast, set “protect - do not modify” flag for the other 5 kmp-match
kernel modules
ii) uncomment the last line of the /etc/permission.local file
iii) sudo chkstat --system --set, then reboot
iv) sudo zypper install Mesa-dri-nouveau, which sets up the normal nouveau
rendering software; then reboot
(A peculiarity: the graphics continue to work fine, but an inxi-Gxx command
will often trigger screen pixilation and require a reboot).


STEP 6 -on one of the 2 installs only, omitted on the other

install xorg-1.19.7 graphics

sudo zypper install --solver-focus update --oldpackage ./*.rpm

xf86-input-evdev-2.11.0-lp156.99.1.x86_64.rpm
xf86-input-joystick-1.6.4-lp156.23.1.x86_64.rpm
xf86-input-libinput-1.5.0-lp156.98.1.x86_64.rpm
xf86-input-vmmouse-13.2.0-lp156.66.1.x86_64.rpm
xf86-input-void-1.4.2-lp156.27.1.x86_64.rpm
xf86-input-wacom-0.40.0-lp156.91.1.x86_64.rpm
xf86-video-fbdev-0.5.0-lp156.6.1.x86_64.rpm
xf86-video-nouveau-1.0.18-lp156.66.1.x86_64.rpm
xf86-video-vesa-2.6.0-lp156.61.1.x86_64.rpm
xorg-x11-server-1.19.7-lp156.4.1.x86_64.rpm
xorg-x11-server-extra-1.19.7-lp156.4.1.x86_64.rpm

-reboot


STEP 7

Preparation for NVIDIAG02 installation:

In /etc/X11, there is no standard xorg.conf file, so nvidia driver
installation depends on the 3 packages in /etc/X11/xorg.conf.d:
50-device.conf, 50-screen.conf, and 50-monitor.conf. Those
files after a standard Leap-15.6 installation are merely samples
with no active statements. NVIDIAG02 installation requires
the following edited copies:

50-device.conf

# Having multiple "Device" sections is known to be problematic. Make
# sure you don't have in use another one laying around e.g. in another
# xorg.conf.d file or even a generic xorg.conf file. More details can
# be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.
#
Section "Device"
  Identifier "Device0"
#
#  #Driver "radeon"
    Driver "nvidia"
#
#  ## Required magic for radeon/radeonhd drivers; output name
#  ## (here: "DVI-0") can be figured out via 'xrandr -q'
#  #Option "monitor-DVI-0" "Default Monitor"
#
EndSection

50-screen.conf

# Having multiple "Screen" sections is known to be problematic. Make
# sure you don't have in use another one laying around e.g. in another
# xorg.conf.d file or even a generic xorg.conf file. More details can
# be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.
#
Section "Screen"
  Identifier "Screen0"
#
  Device "Device0"
#
#  ## Doesn't help for radeon/radeonhd drivers; use magic in
#  ## 50-device.conf instead
  Monitor "Monitor0"
#
EndSection

50-monitor.conf

[code]

Having multiple “Monitor” sections is known to be problematic. Make

sure you don’t have in use another one laying around e.g. in another

xorg.conf.d file or even a generic xorg.conf file. More details can

be found in 32430 – /etc/X11/xorg.conf "Screen" & "Monitor" sections not obeyed.

Section “Monitor”
Identifier “Monitor0”

## If your monitor doesn’t support DDC you may override the

## defaults here

  HorizSync   28.0 - 33.0
  VertRefresh 43.0 - 72.0

Option “DPMS”

## Add your mode lines here, use e.g the cvt tool

EndSection


STEP 8 NVIDIAG02 installation

sudo zypper install --solver-focus update --oldpackage ./*.rpm

nvidia-computeG02-304.137-lp156.50.1.x86_64.rpm
nvidia-gfxG02-kmp-default-304.137_k6.4.0_150600.21-lp156.52.1.x86_64.rpm
x11-video-nvidiaG02-304.137-lp156.50.1.x86_64.rpm

With both installs, the end result was a blank screen.
The inxi -Gxx command showed the following:

Graphics:
  Device-1: NVIDIA C61 [GeForce 6150SE nForce 430] vendor: Hewlett-Packard
    driver: nvidia v: 304.137 arch: Curie bus-ID: 00:0d.0 chip-ID: 10de:03d0
  Display: server: X.org v: 1.19.6 driver: X: loaded: nouveau
    unloaded: fbdev,modesetting,vesa alternate: nvidia dri: nouveau gpu: nvidia
    tty: 80x25
  API: OpenGL Message: GL data unavailable in console for root.

Hope you can help with this !

For your consideration …

Len E.