upgrade leap 15.1 to 15.2 does not work on optimus laptop

I finished upgrading from leap 15.1 to leap 15.2.

Unfortunately I used a usb disk to upgrade and Nouveau was installed.

I did all the updates after the installation, but the hdmi monitor did not work.

From Yast, I added the NVIDIA community repositories and installed the drivers as described here:
https://en.opensuse.org/SDB:NVIDIA_drivers
(only using yast)
,this also installed prime, so i didn’t have to do it myself…
… but this didn’t work.

Plasma desktop hangs with:


ACPI BIOS Error (bug): Failure creating named object \_GPE._E4A], AE_ALREADY EXISTS (20190703/dsload-327)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20190703/psobject-221)

I managed to log with pressing “e” during boot and adding:


splash=silent quiet nomodeset 3 showopts

From Xorg.log the weard parts are:


> more /var/log/Xorg.0.log :
EE Failed to load module "intel" (module does not exist,0)
...
WW warning could not open module nv
...
II nvidia dloader Xdriver ..
II nvidia unified driver for all supported GPUs
II nouveau driver 
II nouveau driver for nvidia chipseet families:
RIVA
Geforce 2
...
GeForce GTX 20
...
WW falling back to old probe method for fddev
...
EE NVIDIA: Failed to initialize the nvidia kernel module please see the system's kernel log for additional error messages and consult NVIDIA readme for details.
....
EE unknown chipset: NV167
...
EE glamor initialization failed.

when I did the same procedure last year - with leap 15.1-, it worked; and nouveau was replaced by intel and NVIDIA drivers instantly during installation.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
old configuration below:


>sudo lspci -nnk | egrep 'VGA|3D' -A3


00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b]
        Subsystem: ASUSTeK Computer Inc. Device [1043:106f]
        Kernel driver in use: i915
        Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1f91] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device [1043:106f]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

&


>lsmod | grep nvidia


nvidia_drm             49152  6
nvidia_modeset       1110016  18 nvidia_drm
nvidia_uvm           1036288  0
nvidia              20393984  969 nvidia_modeset,nvidia_uvm
drm_kms_helper        204800  2 i915,nvidia_drm
drm                   491520  10 i915,nvidia_drm,drm_kms_helper
ipmi_msghandler        65536  2 nvidia,ipmi_devintf

&


>xrandr --listmonitors

Provider 0: id: 0x1ee; cap: 0x1 (Source Output); crtcs: 4; outputs: 1; associated providers: 1; name: NVIDIA-0
    output HDMI-0
Provider 1: id: 0x43; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 1; associated providers: 1; name: modesetting
    output eDP-1-1

please HELP!

sudo zypper rm xf86-video-nouveau xorg-x11-driver-video

will take care of that.

I did all the updates after the installation, but the hdmi monitor did not work.

From Yast, I added the NVIDIA community repositories and installed the drivers as described here:
Did you uninstall the proprietary drivers from NVidia before the upgrade?

Plasma desktop hangs with:

ACPI BIOS Error (bug): Failure creating named object \_GPE._E4A], AE_ALREADY EXISTS (20190703/dsload-327)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20190703/psobject-221)

I have no idea what this is about, but most often, acpi errors do not impact graphics foibles.

EE Failed to load module “intel” (module does not exist,0)
Xf86-video-intel is optional. Most don’t need it any more. For your hardware, the installer likely decided it was not the ideal choice. This primer explains the basics of X drivers. That driver hasn’t had an official release upstream in over six years. Intel graphics programmers focus their driver effort on the newer technology Modesetting DDX. Which in fact works better can only be determined by trying both. It’s often difficult to discern any difference between them.

WW warning could not open module nv
That is a driver for stone-age NVidia GPUs, pre-PCIe or thereabouts, long pre-KMS.

EE unknown chipset: NV167
Were you using the stock 15.1 kernel? Did you have any packages locked during the upgrade?

sudo lspci -nnk | egrep ‘VGA|3D’ -A3

inxi -Ga

from an Xterm or Konsole if possible, provides more pointed troubleshooting information for users. If not run from within X, some X-related info is simply not available (as with running lspci).

When booting using FOSS drivers exclusively, with nomodeset, Xorg.0.log omits useful troubleshooting information. For it to be useful, boot without it, then reboot with it, and examine and/or share Xorg.0.log.old instead. Best to upload the whole file rather than guessing what is relevant. Susepaste can upload more readily than other methods. It often reports failure, but often lies as well, which a visit to SUSE Paste too often proves.

Thanks for your reply and time.

Did you uninstall the proprietary drivers from NVidia before the upgrade?

not at my first try. I remember though there were conflicts with various packages. I had to select nuveau given some warnings.
I have used the same usb to “upgrade” again and the result is to manage to get the plasma desktop, with nouveau drivers though (as my first attempt)

Were you using the stock 15.1 kernel? Did you have any packages locked during the upgrade?

Not sure on which kernel, I used a usb stick image for the upgrade, now I have the Linux 5.3.18-lp152.57-default x86_64
No locked packages

commands output:


>sudo lspci -nnk | egrep 'VGA|3D' -A3
00:02.0 VGA compatible controler [0300]: Intel Corporation UHD Graphics 360 (moobile) [8086:3e9b]
             Subsystem: ASUSTek Computer Inc. Device [10043:106bf]
             Kernel modules:i915
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E31500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903]  (rev 07) 
--
01:00.0  VGA compatible controller [0300]: NVIDIA Corporation TU117M [Geforce GTX 1650 obile / Max-Q] [10de:1f91](rev ff)
             Kernel module: nouveau
02:00.0 Non-Volatile memory controller [0108]: Sandisk Corp WD Black 2018/PC SN520 NVMe SSD [15b7:5003] (rev 01)
             Subsystem: Sandisk Corp WD Black 2018/PC SN520 NVMe SSD [15b7:5003]

when I run

inxi -Ga

system froze

I have uploaded Xorg.0.log.old here:
https://paste.opensuse.org/96699836
and Xorg.0.log here:
https://paste.opensuse.org/13312814
(I booted without modifying grub commands, got a frozen screen; and then booted again with nomodeset)
I noticed that there is an old creation date


As a very last effort, before I submit this reply, I removed nouveau:

sudo zypper rm xf86-video-nouveau xorg-x11-driver-video

did a

sudo-prime select intel

then rebooted, but again screen stuck the same at reboot

I’ve never heard of that happening before. It’s just a script.

I have uploaded Xorg.0.log.old here:
SUSE Paste
and Xorg.0.log here:
SUSE Paste
(I booted without modifying grub commands, got a frozen screen; and then booted again with nomodeset)
I noticed that there is an old creation date
I noticed a spread of >3.5 hours between the two, and neither resulted from a boot that included nomodeset. This makes me wonder if you have newer logs in ~/.local/share/xorg/, or if you are attempting to run a Wayland session instead of Xorg. I don’t remember seeing any mention whether or not Wayland can work in 15.2 on an Optimus system.

What does

sudo zypper lr -d
sudo zypper --no-refresh se -si | egrep -i 'tem Pac|lp151'

report?

Hi
You might want to peruse this recent thread?
https://forums.opensuse.org/showthread.php/548118-nVidia-Cuda-Bumblebee-Codecs-quot-Recipe-quot-not-working-on-openSUSE-15-2

Interesting that xrandr output shows the nvidia G0 monitor available in Leap 15.1, this to me indicates that switcheroo or generic offload may work with your system and leap 15.2.

Thnx again.
No newer logs in xorg.
Only the old ones
x11 is used not Wayland, I ve checked running

env | grep -i wayland

got no output.
The same for X11 gives me :


XKEYSYMB=/usr/X11R6/lib/X11/XKaysymDB
WIDOWSMANAGER=/usr/bin/startplasma-x11
SACWINDOWS=x11
XVLSPATH=/usr/share/X11/nls

The

sudo zypper lr -d

gives:


#  | Alias                                      | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
---+--------------------------------------------+------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | download.nvidia.com-$releasever            | nVidia Graphics Drivers            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.2                           | 
 2 | openSUSE-Leap-15.2-1                       | openSUSE-Leap-15.2-1               | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-USB_Flash_Disk-0:0-part2                 | 
 3 | packman.inode.at-openSUSE_Leap_$releasever | Packman Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/                         | 
 4 | repo-debug                                 | Debug Repository                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/      | 
 5 | repo-debug-non-oss                         | Debug Repository (Non-OSS)         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/  | 
 6 | repo-debug-update                          | Update Repository (Debug)          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss/                 | 
 7 | repo-debug-update-non-oss                  | Update Repository (Debug, Non-OSS) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/non-oss/             | 
 8 | repo-non-oss                               | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/        | 
 9 | repo-oss                                   | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/            | 
10 | repo-source                                | Source Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/     | 
11 | repo-source-non-oss                        | Source Repository (Non-OSS)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/ | 
12 | repo-update                                | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/                       | 
13 | repo-update-non-oss                        | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                   | 
14 | repo-update-test                           | Not tested repos        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2-test/                      | 

and the

sudo zypper --no-refresh se -si | egrep -i 'tem Pac|lp151

gives:

i+ | libdvdcss2                               | package | 1.4.2-1.3                                   | x86_64 | (System Packages)
i+ | libx264-155                              | package | 0.155svn20190201-lp151.2.4                  | x86_64 | (System Packages)
i+ | libx265-179                              | package | 3.2.1-lp151.3.2                             | x86_64 | (System Packages)
i+ | openSUSE-release-dvd                     | package | 15.2-lp152.575.1                            | x86_64 | (System Packages)

-=-=-=-=-=-=-=–=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Extra info:

Also under /etc/X11 I have:

total 60
drwxr-xr-x 2 root root 4096 May 16  2020 fs
drwxr-xr-x 2 root root 4096 May 16  2020 lbxproxy
drwxr-xr-x 2 root root 4096 May 16  2020 proxymngr
drwxr-xr-x 3 root root 4096 May 16  2020 xdm
-rw-r--r-- 1 root root 7003 Sep 20  2019 xim
drwxr-xr-x 2 root root 4096 Dec 25 21:51 xim.d
drwxr-xr-x 3 root root 4096 Nov 24 01:21 xinit
-rw-r--r-- 1 root root 1353 May 16  2020 Xmodmap
-rw-r--r-- 1 root root 1049 May 16  2020 Xmodmap.remote
drwxr-xr-x 2 root root 4096 Dec 27 14:30 xorg.conf.d
-rw-r--r-- 1 root root  938 Dec 26 12:43 xorg.conf.install
drwxr-xr-x 2 root root 4096 Dec 26 14:47 xorg_pci_ids
-rw-r--r-- 1 root root 4017 Apr 22  2009 Xresources
drwxr-xr-x 2 root root 4096 May 16  2020 xsm

and in the xorg.conf.d:

total 48-rw-r--r-- 1 root root  311 Dec 31  2019 00-keyboard.conf
-rw-r--r-- 1 root root 1099 May 16  2020 10-evdev.conf
-rw-r--r-- 1 root root  489 Oct 10 03:57 10-libvnc.conf
-rw-r--r-- 1 root root 1350 Dec  2 00:23 10-quirks.conf
-rw-r--r-- 1 root root  484 May 16  2020 11-evdev.conf
-rw-r--r-- 1 root root  975 May 16  2020 40-libinput.conf
-rw-r--r-- 1 root root  199 May 16  2020 50-elotouch.conf
-rw-r--r-- 1 root root  264 Dec  2 00:23 50-extensions.conf
-rw-r--r-- 1 root root 1913 May 16  2020 70-synaptics.conf
-rw-r--r-- 1 root root  115 May 16  2020 70-vmmouse.conf
-rw-r--r-- 1 root root 2747 May 16  2020 70-wacom.conf 
-rw-r--r-- 1 root root  282 Dec 27 14:30 90-intel.conf

Maybe they need to be reconfigured?

also I get the following errors


> dmesg | grep -i error
    0.307068] ACPI BIOS Error (bug): Failure creating named object \_GPE._E4A], AE_ALREADY_EXISTS (20190703/dswload2-327)
    0.307075] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20190703/psobject-221)
    1.898571] pcieport 0000:00:1d.0: DPC: error containment capabilities: Int Msg #0, RPExt+ PoisonedTLP+ SwTrigger+ RP PIO Log 4, DL_ActiveErr+
    1.899030] pcieport 0000:00:1d.6: DPC: error containment capabilities: Int Msg #0, RPExt+ PoisonedTLP+ SwTrigger+ RP PIO Log 4, DL_ActiveErr+
    1.953491] RAS: Correctable Errors collector initialized.

Grub version is 2.04
the parameters are:


setparams 'opensuse leap 15.2'
    load video
    set gfxpayload=keep
    lsmod gzio
    lsmod part_gpt
    lsmod ext2
    if [x$feature_platform_search_hint = xy] ; then
         search --no-floppy --fs-uid --set=root 70...
    else 
         search  --no-floppy --fs-uuid --set=root 70...
    fi
    echo 'Loading Linux 5.3.18ip152.57-default ...'
    linuxefi /boot/vmlinuz=5.3.18-Lp152.57-default root=UUID=70... splash= silent resume=/dev/disk/by-id/ata... mitigations=auto quiet
    exho 'Loading initial ramdisk  ...'
    initrdefi  /boot/initrd-5.318-IP152.57-default

maybe reconfiguring/modifying grub could help?

Here:
https://en.opensuse.org/SDB:NVIDIA_SUSE_Prime
it is mentioned that a systemd service needs to be installed to make sure the nvidia card is powered off.
I did not understand how to do that :frowning:

Thanks malcomlmlewis, I ve taken some hints from that thread. If I won’t manage to solve my current set up I ll use the bootable usb to “upgrade” again and give a try to switcheroo.
(I had a look at
https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/primerenderoffload.html
but it seems too sophisticated to me :()
I ll keep strugling with my setup a bit more. Any more hints are welcome

Hi
Well in your xrandr output on Leap 15.1 it showed the nvidia card present, maybe it’s a change in Leap 15.2 it’s not visible?

It’s as simple as running the following to test;


__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia  glxinfo | grep "OpenGL renderer"

The xrandr output defines “__NV_PRIME_RENDER_OFFLOAD_PROVIDER=” in your case with Leap 15.1 it would be “NVIDIA-G0”

I’ve never had such a repo configured, much less enabled. It smells to me like an invitation for trouble if enabled during a distribution upgrade, especially for dual graphics or NVidia driver users. If I was to use one, it would be very temporary.

I have that repo configured. It is in the list of community repos that can be added.

I normally keep it disabled. But I occasionally enable to see which updates are to be expected soon. And I occasionally install an update from there, if it is something that I urgently need.

As far as I know, it has patches that will soon appear in the update repo, unless a problem has been found with those patches.

Guys no luck yet.

I did again an “upgrade” following similar steps + excluding unnecessary repos and got to the same result.

Swicherro made no difference.

I am going to try with zypper this time and following these instructions to see if I get any luck.
https://github.com/openSUSE/SUSEPrime

If not I ll try to downgrade to 15.1 again.

Using a dvd with 15.1 and selecting “upgrade” I guess will do the job right?

The grub options remain the same. I still wonder if modifyng / reconfiguring grub is the key to success or X11

I don’t think many would agree since bumblebee is obsolete and not really supported but if it really comes down to wanting to use a working system you can look into it https://forums.opensuse.org/showthread.php/537906-Cuda-Nvidia-bumblebee-codecs-quot-safe-quot-way

There’s a little bit of issue that is yet to be resolved with libglxfaker.so in VirtualGL but it is more or less good to go for now. The thread Malcolmlewis pointed out will give you clues on how to work around it for now.

In any case, at best it sounds like you need to recompile your kernel. Have you re-installed your Nvidia driver? Also could you paste its output during installation?

Also can you boot command line mode (Ctrl+Alt F2/F3 at login) and see what xserver says when you type in

startx > ~/xlog.log &