Brief freezes happen when an app/game uses the gpu and i try alt+tabbing on Nvidia On Demand

I’m running Linux Mint Cinnamon 22.3 with Cinnamon 6.6.7 X11 on a laptop with an external display. GTX 1650 TI Mobile and an Intel Core i5 10th gen with Integrated graphics.

This issue only happens when the two monitors are on or when the external monitor is only enabled.

When something is using the dGPU like Blender or a game, when i try to alt tab or change focus it freezes for a few seconds then unfreezes. Freezing also happens when the external monitor is only enabled. If the app/game uses the intel GPU then its fine. From my testing, it happens more frequently when launching a new application. This issue seems to only happen on hybrid setups, not when Performance Mode is enabled.

Steps to reproduce

  • Open a game or an app that uses the dGPU.

  • Try to change focus to another window/app.

  • It will either randomly freeze or it won’t.

  • Keep using the system while the app/game is running and notice freezes while using the desktop normally. It will more likely freeze if you open a new app.
    If these steps don’t reproduce the issue, try Linux Mint Cinnamon.

here is what journalctl -e outputs after it freezes briefly. I’m not sure if it’s useful or not.

Feb 14 10:28:11 saad-G3-3500 systemd[2712]: Started app-flatpak-io.missioncenter.MissionCenter-14808.scope.
Feb 14 10:28:12 saad-G3-3500 kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Feb 14 10:28:12 saad-G3-3500 systemd[2712]: Failed to put bus name to hashmap: File exists
Feb 14 10:28:12 saad-G3-3500 systemd[2712]: org.freedesktop.IBus.session.GNOME.service: Two services allocated for the same bus name org.freedesktop.IBus, refusing >
Feb 14 10:28:14 saad-G3-3500 systemd[2712]: Started app-flatpak-io.missioncenter.MissionCenter-14951.scope.
Feb 14 10:28:37 saad-G3-3500 systemd[2712]: app-flatpak-io.missioncenter.MissionCenter-14808.scope: Consumed 6.846s CPU time.
Feb 14 10:28:43 saad-G3-3500 thermald[1130]: Unable to find a zone for NVME
Feb 14 10:28:47 saad-G3-3500 bluetoothd[1085]: src/profile.c:record_cb() Unable to get Hands-Free unit SDP record: Host is down
Feb 14 10:28:54 saad-G3-3500 rtkit-daemon[2532]: Supervising 7 threads of 5 processes of 1 users.
Feb 14 10:28:54 saad-G3-3500 rtkit-daemon[2532]: Supervising 7 threads of 5 processes of 1 users.
Feb 14 10:29:33 saad-G3-3500 systemd[2712]: Started app-flatpak-org.videolan.VLC-15093.scope.
Feb 14 10:29:35 saad-G3-3500 systemd[2712]: app-flatpak-org.videolan.VLC-15093.scope: Consumed 1.000s CPU time.
Feb 14 10:29:41 saad-G3-3500 systemd[2712]: Started app-flatpak-org.videolan.VLC-15178.scope.
Feb 14 10:29:44 saad-G3-3500 kernel: workqueue: delayed_fput hogged CPU for >10000us 11 times, consider switching to WQ_UNBOUND
Feb 14 10:29:44 saad-G3-3500 systemd[2712]: app-flatpak-org.videolan.VLC-15178.scope: Consumed 1.260s CPU time.
Feb 14 10:29:47 saad-G3-3500 bluetoothd[1085]: src/profile.c:record_cb() Unable to get Hands-Free unit SDP record: Host is down
Feb 14 10:30:01 saad-G3-3500 CRON[15290]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Feb 14 10:30:01 saad-G3-3500 CRON[15291]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/>
Feb 14 10:30:01 saad-G3-3500 CRON[15290]: pam_unix(cron:session): session closed for user root
Feb 14 10:30:47 saad-G3-3500 bluetoothd[1085]: src/profile.c:record_cb() Unable to get Hands-Free unit SDP record: Host is down

nvidia-bug-report.log.gz (490.9 KB)
Yes my nvidia driver is 550 but i tested it on the latest 590 driver and 580 open and they both stil have the same issue (except with more issues like Downgrade 580 on Ubuntu? Wine freezes (any D3D))

Could also be this old issue that has never been fully resolved: External monitor freezes when using dedicated GPU

On very rare occasions yes my monitor freezes, but it’s a non issue for me.

The issue that I’m raising is different then the forum post you suggested. Here I’m saying apps that use dGPU may randomly freeze the system briefly on both screens when you alt tab, and is more reproducible if you open an app. This makes usage of the system annoying really quickly with the app/game open.