Hi,
After installing Opensuse Leap 15.3 on a brand new HP Zbook 17.3 G8 I am experiencing some issues with video and audio. When scrolling or moving windows regularly the sreen glitches. Stripes or redraw faults occur, that disappear shortly after. Also the screen brightness cannot be adjusted other than a black screen or maximum brightness.
The speakers only work when the kernel option snd-intel-dspcfg dsp_driver=1 is set. (Maybe I should make a separate post of the audio issue?)
This is what I have done so far:
Installed Opensuse Leap 15.3
Installed NVIDIA proprietary driver G05
Installed the suse-prime package.
Set the renderer to OpenGL 3.1
There seems no difference concerning the glitches when prime-select is set to intel or nvidia. When intel is selected xrandr and glxinfo shows:
zbook:~ # prime-select get-current
Driver configured: intel
zbook:~ # xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x24a; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 5; associated providers: 0; name: modesetting
output eDP-1
output HDMI-1
output DP-1
output DP-2
output DP-3
Provider 1: id: 0x218; cap: 0x0 (); crtcs: 4; outputs: 5; associated providers: 0; name: NVIDIA-G0
output 0x21d
output 0x21e
output 0x21f
output 0x220
output 0x221
zbook:~ # glxinfo | grep 'OpenGL renderer string'
OpenGL renderer string: Mesa Intel(R) UHD Graphics (TGL GT1)
When nvidia is selected:
zbook:~ # prime-select get-current
Driver configured: nvidia
zbook:~ # xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x253; cap: 0x1 (Source Output); crtcs: 4; outputs: 5; associated providers: 1; name: NVIDIA-0
output DP-0
output DP-1
output DP-2
output DP-3
output HDMI-0
Provider 1: id: 0x48; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 5; associated providers: 1; name: modesetting
output eDP-1-1
output HDMI-1-1
output DP-1-1
output DP-1-2
output DP-1-3
zbook:~ # glxinfo | grep 'OpenGL renderer string'
OpenGL renderer string: NVIDIA RTX A3000 Laptop GPU/PCIe/SSE2
Any ideas what could cause these glitches?
Forgot to mention:
when running Windows 10, no glitches occur. That seems to rule out hardware issues.
Hi
This is just an observation, since your output shows that just using offload may work and stick with the intel setup? If you use suse-prime to switch back to intel, does the following work?
__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "OpenGL renderer"
After selecting intel, the command shows:
**zbook:~ #** __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_
NAME=nvidia glxinfo | grep "OpenGL renderer"
**OpenGL renderer** string: NVIDIA RTX A3000 Laptop GPU/PCIe/SSE2
watergeus:
After selecting intel, the command shows:
**zbook:~ #** __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_
NAME=nvidia glxinfo | grep "OpenGL renderer"
**OpenGL renderer** string: NVIDIA RTX A3000 Laptop GPU/PCIe/SSE2
Hi
So you can stick with intel and just use offload to run programs that you want to use with the Nvidia card? Not sure which desktop environment your using (GNOME has built in support) but you could remove suse-prime and install switcherooctl to fire up applications?
For example from the command line (This is on Tumbleweed and a desktop);
glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon RX 550 / 550 Series (POLARIS12, DRM 3.42.0, 5.15.12-1-default, LLVM 13.0.0)
switcherooctl launch -g 1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce GT 1030/PCIe/SSE2
Now you could also alias that command as well, the reason is the Leap version of switchroolctl doesn’t work for me (I installed from the hardware repo for Leap 15.3).
Alias example;
alias offload='__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia '
offload glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NVIDIA GeForce GT 1030/PCIe/SSE2
Thanx! But the glitches seem to appear either way. No matter intel or nvidia is selected. Seems to me these screen glitches are not related to suse-prime.
It looks like screen redrawing is too slow or not correctly synchronised.
When I move or scroll a window, blocks or horizontal stripes apear on the screen for a moment. Parts of the screen also jump a few pixel up and down and somtimes parts of the screen just get redrawn a split second later.
Hi
OK, lets see if it’s backlight related, since you seem to have an issue there;
As root user;
journalctl -b | grep backlight
Could be acpi video fighting with intel or nvidia…
Here the result:
**zbook:~ #** journalctl -b | grep backlight
Jan 09 15:47:21 localhost kernel: i915 0000:00:02.0: [drm] Panel advertises DPCD **backlight** support, but
VBT disagrees. If your **backlight** controls don't work try booting with i915.enable_dpcd_**backlight**=1. If y
our machine needs this, please file a _new_ bug report on drm/i915, see https://gitlab.freedesktop.org/d
rm/intel/-/wikis/How-to-file-i915-bugs for details.
Jan 09 15:47:34 localhost systemd[1]: Created slice Slice /system/systemd-**backlight**.
Jan 09 15:47:34 localhost systemd[1]: Starting Load/Save Screen Backlight Brightness of **backlight**:intel_
**backlight**...
Jan 09 15:47:34 localhost systemd[1]: Finished Load/Save Screen Backlight Brightness of **backlight**:intel_
**backlight**.
Jan 09 15:47:49 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.43' (uid=1000 pid=3136 comm="/usr/lib64/libexec/org_kde_powerdevil ")
(using servicehelper)
Jan 09 15:47:49 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 15:47:49 zbook.fritz.box org_kde_powerdevil[3136]: powerdevil: Udev device changed "/sys/devices/
pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/drm
/card0/card0-eDP-1/intel_**backlight**"
Jan 09 15:53:06 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.83' (uid=1000 pid=4198 comm="/usr/lib64/libexec/org_kde_powerdevil ")
(using servicehelper)
Jan 09 15:53:06 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 15:53:06 zbook.fritz.box org_kde_powerdevil[4198]: powerdevil: Udev device changed "/sys/devices/
pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/drm
/card0/card0-eDP-1/intel_**backlight**"
Jan 09 16:52:58 zbook.fritz.box org_kde_powerdevil[4198]: powerdevil: Kbd **backlight** brightness value: 0
Jan 09 16:52:58 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.83' (uid=1000 pid=4198 comm="/usr/lib64/libexec/org_kde_powerdevil ")
(using servicehelper)
Jan 09 16:52:58 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 16:52:58 zbook.fritz.box org_kde_powerdevil[4198]: powerdevil: Udev device changed "/sys/devices/
pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/drm
/card0/card0-eDP-1/intel_**backlight**"
Jan 09 16:53:13 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.83' (uid=1000 pid=4198 comm="/usr/lib64/libexec/org_kde_powerdevil ")
(using servicehelper)
Jan 09 16:53:13 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 16:53:13 zbook.fritz.box org_kde_powerdevil[4198]: powerdevil: Udev device changed "/sys/devices/
pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/drm
/card0/card0-eDP-1/intel_**backlight**"
Jan 09 17:47:27 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 17:47:27 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 17:47:27 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Jan 09 18:33:52 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Kbd **backlight** brightness value:
0
Jan 09 18:33:52 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 18:33:52 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 18:33:52 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Jan 09 18:34:39 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 18:34:39 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 18:34:39 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Jan 09 18:40:01 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Kbd **backlight** brightness value:
0
Jan 09 18:40:01 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 18:40:01 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 18:40:01 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Jan 09 18:41:16 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 18:41:16 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 18:41:16 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Jan 09 18:42:31 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 18:42:31 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 18:42:31 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Jan 09 18:47:31 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Kbd **backlight** brightness value:
0
Jan 09 18:50:43 zbook.fritz.box dbus-daemon[1208]: [system] Activating service name='org.kde.powerdevil.
**backlight**helper' requested by ':1.179' (uid=1000 pid=16800 comm="/usr/lib64/libexec/org_kde_powerdevil "
) (using servicehelper)
Jan 09 18:50:43 zbook.fritz.box dbus-daemon[1208]: [system] Successfully activated service 'org.kde.powe
rdevil.**backlight**helper'
Jan 09 18:50:43 zbook.fritz.box org_kde_powerdevil[16800]: powerdevil: Udev device changed "/sys/devices
/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_**backlight**" "/sys/devices/pci0000:00/0000:00:02.0/dr
m/card0/card0-eDP-1/intel_**backlight**"
Hi
So if (as suggested) you add i915.enable_dpcd_backlight=1
to the kernel boot options, does this help?
Could you also show the output from;
/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
Here the output:
**zbook:~ #** /sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
00:02.0 **VGA** compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a60] (
rev 01)
Subsystem: Hewlett-Packard Company Device [103c:886d]
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 **VGA** compatible controller [0300]: NVIDIA Corporation GA104GLM [RTX A3000 Mobile] [10de:24b8] (re
v a1)
Subsystem: Hewlett-Packard Company Device [103c:886d]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
Hi
You can also try this as a test as well for your system, I had some tearing with the AMD gpu, so this is what I did first (I also have a HDMI to VGA dongle attached, hence all four commands);
xrandr --listmonitors
Monitors: 3
0: +*HDMI-A-3 1920/521x1080/293+953+1080 HDMI-A-3
1: +HDMI-A-1 1920/521x1080/293+1920+0 HDMI-A-1
2: +HDMI-A-2 1920/521x1080/293+0+0 HDMI-A-2
Set tearfree on with xrandr;
xrandr --output HDMI-A-0 --set TearFree on
xrandr --output HDMI-A-1 --set TearFree on
xrandr --output HDMI-A-2 --set TearFree on
xrandr --output HDMI-A-3 --set TearFree on
xrandr --verbose | grep TearFree
TearFree: on
TearFree: on
TearFree: on
TearFree: on
Also are you running Wayland or Xorg?
loginctl show-session 1 -p Type
Done. The brightness can be adjusted now! One issue solved.
The screen glitches are still there though.
Hi
So try the TearFree option and see if that helps.
malcolmlewis:
Hi
You can also try this as a test as well for your system, I had some tearing with the AMD gpu, so this is what I did first (I also have a HDMI to VGA dongle attached, hence all four commands);
**localhost:~ #** xrandr --listmonitors
No protocol specified
Monitors: 1
0: +*eDP-1 3840/381x2160/214+0+0 eDP-1
**localhost:~ #** xrandr --output eDP-1 --set TearFree on
No protocol specified
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 39
Current serial number in output stream: 39
The command is not accepted. Need another identifier maybe?
I am running X11:
loginctl show-session 1 -p Type
Type=x11
Hi
Is there a /etc/X11/xorg.conf.d/20-intel.conf
file present? If so can you edit and reboot, or if not there create and reboot;
#/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TripleBuffer" "true"
Option "TearFree" "true"
EndSection
You might want to make the backlight change permananet via YaST Bootloader as well.
Likewise, as suggested an upstream bug report…
If your backlight controls don't work try booting with i915.enable_dpcd_backlight=1. If y
our machine needs this, please file a _new_ bug report on drm/i915, see https://gitlab.freedesktop.org/d
rm/intel/-/wikis/How-to-file-i915-bugs for details.
There is a 90-intel.conf , put there by prime-select. Its contents:
Section "ServerLayout"
Identifier "layout"
Screen "intel"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
# needed for NVIDIA PRIME Render Offload
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
I can add the tearfree option in the file ** /etc/prime/xorg-intel.conf**. It needs to be in the Device “intel” section, right?
You might want to make the backlight change permananet via YaST Bootloader as well.
Done that.
Likewise, as suggested an upstream bug report…
If your backlight controls don’t work try booting with i915.enable_dpcd_backlight=1. If y
our machine needs this, please file a new bug report on drm/i915, see Sign in · GitLab
rm/intel/-/wikis/How-to-file-i915-bugs for details.
OK, I will file a bugreport.
The file /etc/X11/xorg.conf.d/90-intel.conf now contains:
[FONT=monospace]Section "ServerLayout"
Identifier "layout"
Screen "intel"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "TripleBuffer" "true"
Option "TearFree" "true"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
# needed for NVIDIA PRIME Render Offload
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
and rebooted.
The screen glitches still remain there, i’m afraid.
[/FONT]
Hi
Are you considering removing suse-prime and use offload only? FWIW, battery life will be extended as using the intel for everything except the stuff you run the offload way? It may also help in the first instance to see if that could be causing the issues…
Yes, is a good option. What needs to be done?