You are not logged in.

#1 2024-12-13 19:20:46

vfrbgt
Member
Registered: 2023-07-31
Posts: 8

Freez external monitor(HDMI) on window resize(and random time)

This issue exist already 1-1.5 years. But may be anyone fixed this. I'm don't find any work solutions in internet and here...
Step to reproduce.

1. You need nvidia laptop with configured nvidia optimus and second monitor.
2. run glxgears(or any graphical application like a game) on nvidia.

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears

3. Try resize window through mouse
4. Get the freez external monitor.

Video with reproduce this bug:
https://youtu.be/JB01URzGjD4
First i start glxgears on integrated intel videocard and all work fine. Then i start it on nvidia and you can see freez on video. After this freez OBS stil record video normaly but image on the my external monitor freezed.

If i run xrandr with monitor configuration.

xrandr --output eDP-2 --auto --left-of HDMI-1-0 --output HDMI-1-0 --auto --set "PRIME Synchronization" 1

My external monitor continue normal work.

My .xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output eDP-2 --auto --left-of HDMI-1-0 --output HDMI-1-0 --auto --set "PRIME Synchronization" 1

setxkbmap -model pc104 -layout us,ru -option grp:win_space_toggle
xinput set-prop 'Logitech USB Receiver Mouse' 'libinput Accel Speed' -0.5
xinput set-prop 16 "libinput Accel Speed" -1.0
xbindkeys
exec leftwm

Xorg config files is empty

dmesg on get monitor freez:

Dec 14 02:17:14 archlinux sudo[1185629]:   vfrbgt : TTY=pts/3 ; PWD=/home/vfrbgt ; USER=root ; COMMAND=/usr/bin/journalctl -b
Dec 14 02:17:14 archlinux sudo[1185629]: pam_unix(sudo:session): session opened for user root(uid=0) by vfrbgt(uid=1000)
Dec 14 02:17:35 archlinux root[1185867]: ACPI group/action undefined: button/up / UP
Dec 14 02:17:36 archlinux root[1185869]: ACPI group/action undefined: button/up / UP
Dec 14 02:17:36 archlinux root[1185871]: ACPI group/action undefined: button/up / UP
Dec 14 02:17:37 archlinux root[1185893]: ACPI group/action undefined: button/up / UP
Dec 14 02:17:47 archlinux sudo[1185629]: pam_unix(sudo:session): session closed for user root
Dec 14 02:17:48 archlinux root[1186013]: ACPI group/action undefined: button/up / UP

I can fix this problem using only nvidia without optimus. But i'm not like this solution.
Any ideas?

Offline

Board footer

Powered by FluxBB