Nouveau or X11, freezes the Desktop GUI

Ever since Leap 15.1 (XFCE) I’ve been using Nouveau without problems. Starting with Leap 15.4 I’ve been getting random Desktop/GUI freezes. Only the GUI will freeze the mouse still moves and any sound playing will continue.

I research these issues:

and tried to downgrade libx11 and remove xf86-video-nouveau but the problem still persist. I would prefer to stay with open source nouveau and not install the Nvidia proprietary drivers. I also tried turning on/off the XFCE vblank and trying different compositors (picom, compton) but it still randomly freezes the GUI.

Finally, I thought about trying Leap 15.3 kernel but I don’t know how to install and older kernel from 15.3 onto Leap 15.4.

Any suggestions?


$ inxi -Gxx
Graphics:
Device-1: NVIDIA GK208B [GeForce GT 710] vendor: Micro-Star MSI
driver: nouveau v: kernel bus-ID: 01:00.0 chip-ID: 10de:128b
Display: x11 server: X.org 1.20.3 compositor: compton driver:
loaded: nouveau unloaded: fbdev,modesetting,vesa alternate: nv,nvidia
resolution: <missing: xdpyinfo>
OpenGL: renderer: NV106 v: 4.3 Mesa 21.2.4 direct render: Yes

Here’s a snippet of the last Desktop/GUI freeze with Nouveau (from /var/log/messages):

2023-01-03T23:11:23.880096-08:00 mypc kernel: [17582.839775][ T1451] general protection fault, probably for non-canonical address 0x50b088e311be9e1d: 0000 [#1] PREEMPT SMP NOPTI
2023-01-03T23:11:23.880124-08:00 mypc kernel: [17582.839796][ T1451] CPU: 2 PID: 1451 Comm: X Tainted: G OE N 5.14.21-150400.24.38-default #1 SLE15-SP4 512bd4b75352e7b9d3b826544b8625fa47717c4b
2023-01-03T23:11:23.880127-08:00 mypc kernel: [17582.839810][ T1451] RIP: 0010:kmem_cache_alloc_trace+0xeb/0x4c0
2023-01-03T23:11:23.880128-08:00 mypc kernel: [17582.839820][ T1451] Code: 70 51 4c 8b 40 08 48 83 78 10 00 48 8b 28 0f 84 90 03 00 00 48 85 ed 0f 84 87 03 00 00 0f 1f 44 00 00 41 8b 44 24 28 48 01 e8 <48> 8b 18 49 33 9c 24 b8 00 00 00 48 89 c2 48 0f ca 48 31 d3 49 8b
2023-01-03T23:11:23.880130-08:00 mypc kernel: [17582.839829][ T1451] RSP: 0018:ffffa0578124bb30 EFLAGS: 00010206
2023-01-03T23:11:23.880132-08:00 mypc kernel: [17582.839835][ T1451] RAX: 50b088e311be9e1d RBX: 0000000000000dc0 RCX: 000000000000012e
2023-01-03T23:11:23.880133-08:00 mypc kernel: [17582.839840][ T1451] RDX: 0000000000000060 RSI: 0000000000000dc0 RDI: ffff910740042600
2023-01-03T23:11:23.880134-08:00 mypc kernel: [17582.839844][ T1451] RBP: 50b088e311be9ded R08: 00000006a6084002 R09: 0000000000000000
2023-01-03T23:11:23.880135-08:00 mypc kernel: [17582.839849][ T1451] R10: 0000000000000004 R11: ffff9107457eea48 R12: ffff910740042600
2023-01-03T23:11:23.880136-08:00 mypc kernel: [17582.839853][ T1451] R13: 0000000000000000 R14: 0000000000000dc0 R15: ffffffffc0a97cdc
2023-01-03T23:11:23.880136-08:00 mypc kernel: [17582.839858][ T1451] FS: 00007f4874897640(0000) GS:ffff910857a80000(0000) knlGS:0000000000000000
2023-01-03T23:11:23.880137-08:00 mypc kernel: [17582.839863][ T1451] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2023-01-03T23:11:23.880138-08:00 mypc kernel: [17582.839868][ T1451] CR2: 00007f485e33d000 CR3: 00000001536b4006 CR4: 00000000000206e0
2023-01-03T23:11:23.880140-08:00 mypc kernel: [17582.839873][ T1451] Call Trace:
2023-01-03T23:11:23.880140-08:00 mypc kernel: [17582.839878][ T1451]
2023-01-03T23:11:23.880141-08:00 mypc kernel: [17582.839886][ T1451] nouveau_fence_new+0x3c/0xb0 [nouveau e0a67543fb2c89bff09793db652dc1d168584f0c]
2023-01-03T23:11:23.880143-08:00 mypc kernel: [17582.839975][ T1451] nouveau_gem_ioctl_pushbuf+0xde3/0x18f0 [nouveau e0a67543fb2c89bff09793db652dc1d168584f0c]
2023-01-03T23:11:23.880144-08:00 mypc kernel: [17582.840057][ T1451] ? nouveau_gem_ioctl_new+0xe0/0xe0 [nouveau e0a67543fb2c89bff09793db652dc1d168584f0c]
2023-01-03T23:11:23.880145-08:00 mypc kernel: [17582.840138][ T1451] ? drm_ioctl_kernel+0xb4/0x100 [drm 3ae6e3cf2b9bee6535fc723aae5411b8319768df]
2023-01-03T23:11:23.880146-08:00 mypc kernel: [17582.840181][ T1451] drm_ioctl_kernel+0xb4/0x100 [drm 3ae6e3cf2b9bee6535fc723aae5411b8319768df]
2023-01-03T23:11:23.880147-08:00 mypc kernel: [17582.840228][ T1451] drm_ioctl+0x35a/0x400 [drm 3ae6e3cf2b9bee6535fc723aae5411b8319768df]
2023-01-03T23:11:23.880148-08:00 mypc kernel: [17582.840276][ T1451] ? nouveau_gem_ioctl_new+0xe0/0xe0 [nouveau e0a67543fb2c89bff09793db652dc1d168584f0c]
2023-01-03T23:11:23.880149-08:00 mypc kernel: [17582.840373][ T1451] nouveau_drm_ioctl+0x56/0xb0 [nouveau e0a67543fb2c89bff09793db652dc1d168584f0c]
2023-01-03T23:11:23.880149-08:00 mypc kernel: [17582.840465][ T1451] __x64_sys_ioctl+0x8f/0xd0
2023-01-03T23:11:23.880150-08:00 mypc kernel: [17582.840477][ T1451] do_syscall_64+0x58/0x80
2023-01-03T23:11:23.880151-08:00 mypc kernel: [17582.840488][ T1451] ? exit_to_user_mode_prepare+0x1dc/0x230
2023-01-03T23:11:23.880152-08:00 mypc kernel: [17582.840499][ T1451] ? syscall_exit_to_user_mode+0x18/0x40
2023-01-03T23:11:23.880152-08:00 mypc kernel: [17582.840510][ T1451] ? do_syscall_64+0x67/0x80
2023-01-03T23:11:23.880153-08:00 mypc kernel: [17582.840518][ T1451] ? do_syscall_64+0x67/0x80
2023-01-03T23:11:23.880154-08:00 mypc kernel: [17582.840526][ T1451] ? do_syscall_64+0x67/0x80
2023-01-03T23:11:23.880155-08:00 mypc kernel: [17582.840535][ T1451] ? exit_to_user_mode_prepare+0x1cc/0x230
2023-01-03T23:11:23.880155-08:00 mypc kernel: [17582.840545][ T1451] ? exit_to_user_mode_prepare+0x1cc/0x230
2023-01-03T23:11:23.880156-08:00 mypc kernel: [17582.840553][ T1451] ? syscall_exit_to_user_mode+0x18/0x40
2023-01-03T23:11:23.880157-08:00 mypc kernel: [17582.840563][ T1451] ? do_syscall_64+0x67/0x80
2023-01-03T23:11:23.880157-08:00 mypc kernel: [17582.840571][ T1451] ? exit_to_user_mode_prepare+0x1cc/0x230
2023-01-03T23:11:23.880158-08:00 mypc kernel: [17582.840580][ T1451] entry_SYSCALL_64_after_hwframe+0x61/0xcb
2023-01-03T23:11:23.880159-08:00 mypc kernel: [17582.840589][ T1451] RIP: 0033:0x7f48728bbc27
2023-01-03T23:11:23.880160-08:00 mypc kernel: [17582.840594][ T1451] Code: 90 90 90 48 8b 05 69 c2 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 39 c2 2d 00 f7 d8 64 89 01 48
2023-01-03T23:11:23.880161-08:00 mypc kernel: [17582.840608][ T1451] RSP: 002b:00007ffe77e41cb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
2023-01-03T23:11:23.880162-08:00 mypc kernel: [17582.840618][ T1451] RAX: ffffffffffffffda RBX: 000055c4bbdf4028 RCX: 00007f48728bbc27
2023-01-03T23:11:23.880163-08:00 mypc kernel: [17582.840627][ T1451] RDX: 00007ffe77e41d20 RSI: 00000000c0406481 RDI: 000000000000000e
2023-01-03T23:11:23.880164-08:00 mypc kernel: [17582.840635][ T1451] RBP: 00007ffe77e41d20 R08: 0000000000000000 R09: 000055c4bc84afc0
2023-01-03T23:11:23.880165-08:00 mypc kernel: [17582.840643][ T1451] R10: 0000000000000001 R11: 0000000000000246 R12: 00000000c0406481
2023-01-03T23:11:23.880166-08:00 mypc kernel: [17582.840651][ T1451] R13: 000000000000000e R14: 000055c4bbdf4020 R15: 000055c4bbdeafd0
2023-01-03T23:11:23.880167-08:00 mypc kernel: [17582.840662][ T1451]
2023-01-03T23:11:23.880168-08:00 mypc kernel: [17582.840668][ T1451] Modules linked in: veth ts_kmp ipt_REJECT nf_reject_ipv4 xt_string xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_nat nf_nat br_netfilter bridge stp llc af_packet rfkill xt_tcpudp xt_state xt_conntrack nf_conntrack tda18271 nf_defrag_ipv6 nf_defrag_ipv4 vboxnetadp(OEN) vboxnetflt(OEN) s5h1411(N) iptable_filter bpfilter vboxdrv(OEN) dmi_sysfs msr ext4 crc16 mbcache jbd2 crypto_simd cryptd dm_crypt essiv authenc iTCO_wdt intel_pmc_bxt iTCO_vendor_support saa7164(N) tveeprom gpio_ich dvb_core(N) 8139too lpc_ich videodev joydev mfd_core 8139cp intel_powerclamp coretemp kvm_intel kvm i2c_i801 i2c_smbus pcspkr irqbypass snd_hda_codec_via snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer mii mc snd asus_atk0110(N) soundcore acpi_cpufreq fuse configfs ip_tables x_tables hid_logitech ff_memless hid_generic uas nouveau(N)
2023-01-03T23:11:23.880169-08:00 mypc kernel: [17582.840753][ T1451] usb_storage usbhid sr_mod video sd_mod cdrom t10_pi drm_ttm_helper ttm ata_generic pata_marvell i2c_algo_bit drm_kms_helper xhci_pci xhci_pci_renesas xhci_hcd ehci_pci mxm_wmi(N) ehci_hcd pata_jmicron syscopyarea sysfillrect sysimgblt fb_sys_fops ahci libahci cec usbcore firewire_ohci rc_core serio_raw drm firewire_core crc_itu_t libata wmi button btrfs blake2b_generic libcrc32c crc32c_intel xor raid6_pq sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua scsi_mod
2023-01-03T23:11:23.880171-08:00 mypc kernel: [17582.840873][ T1451] Supported: No, Unsupported modules are loaded
2023-01-03T23:11:23.880172-08:00 mypc kernel: [17582.840882][ T1451] —[ end trace 1b265b330fd235a4 ]—
2023-01-03T23:11:23.880173-08:00 mypc kernel: [17582.840890][ T1451] RIP: 0010:kmem_cache_alloc_trace+0xeb/0x4c0
2023-01-03T23:11:23.880173-08:00 mypc kernel: [17582.840901][ T1451] Code: 70 51 4c 8b 40 08 48 83 78 10 00 48 8b 28 0f 84 90 03 00 00 48 85 ed 0f 84 87 03 00 00 0f 1f 44 00 00 41 8b 44 24 28 48 01 e8 <48> 8b 18 49 33 9c 24 b8 00 00 00 48 89 c2 48 0f ca 48 31 d3 49 8b
2023-01-03T23:11:23.880175-08:00 mypc kernel: [17582.840916][ T1451] RSP: 0018:ffffa0578124bb30 EFLAGS: 00010206
2023-01-03T23:11:23.880176-08:00 mypc kernel: [17582.840924][ T1451] RAX: 50b088e311be9e1d RBX: 0000000000000dc0 RCX: 000000000000012e
2023-01-03T23:11:23.880177-08:00 mypc kernel: [17582.840933][ T1451] RDX: 0000000000000060 RSI: 0000000000000dc0 RDI: ffff910740042600
2023-01-03T23:11:23.880178-08:00 mypc kernel: [17582.840942][ T1451] RBP: 50b088e311be9ded R08: 00000006a6084002 R09: 0000000000000000
2023-01-03T23:11:23.880179-08:00 mypc kernel: [17582.840950][ T1451] R10: 0000000000000004 R11: ffff9107457eea48 R12: ffff910740042600
2023-01-03T23:11:23.880180-08:00 mypc kernel: [17582.840958][ T1451] R13: 0000000000000000 R14: 0000000000000dc0 R15: ffffffffc0a97cdc
2023-01-03T23:11:23.880181-08:00 mypc kernel: [17582.840967][ T1451] FS: 00007f4874897640(0000) GS:ffff910857a80000(0000) knlGS:0000000000000000
2023-01-03T23:11:23.880182-08:00 mypc kernel: [17582.840976][ T1451] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2023-01-03T23:11:23.880183-08:00 mypc kernel: [17582.840984][ T1451] CR2: 00007f485e33d000 CR3: 00000001536b4006 CR4: 00000000000206e0

xdpyinfo needs to be installed. inxi -GSaz would have provided additional useful information, such as the kernel cmdline options from Grub, and the dri driver employed, if you’re using a recent inxi version. 15.4’s inxi is an antique that can be upgraded by using its -U switch, installing from upstream, or using 15.5’s or TW’s package.

There are two entirely different nouveau driver types shown above: 1-GPU device, & 2-display. The device driver comes with each kernel. You can either use it or not, but you can’t employ a different one using only FOSS. Both competent FOSS display drivers depend on using it. The old-technology, reverse-engineered, experimental nouveau display driver is provided by xf86-video-nouveau. By removing the package you employ the newer technology, upstream default modesetting display driver included with the xorg server package. Did you run with xf86-video-nouveau uninstalled for more than 2-3 boots without noticing anything at all different? If yes, IMO you should report a bug for the general protection fault against the kernel to get this properly solved, unless a search of Bugzilla produces an already existing one.

All my NVidia GPUs are older than yours and running on the modesetting display driver without any similar trouble.