diff options
author | Timo Wilken | 2024-08-24 14:10:43 +0200 |
---|---|---|
committer | Timo Wilken | 2024-08-24 14:10:43 +0200 |
commit | 8ed431c18d8c8b44607a266a7bc4c8cb48e2c56d (patch) | |
tree | b57c5aa42436bb41c8fe81bed82f56836e015739 /tw/system | |
parent | 5bf0831de6c20b479811464ad5c179c2e433a8a7 (diff) |
Try to fix Minecraft crashes
Diffstat (limited to 'tw/system')
-rw-r--r-- | tw/system/btl.scm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tw/system/btl.scm b/tw/system/btl.scm index a7389de9..ce0af3ac 100644 --- a/tw/system/btl.scm +++ b/tw/system/btl.scm @@ -35,6 +35,22 @@ (define data-partition ; /dev/nvme0n1p1 (uuid "cd4b7af3-f5ce-44a0-a986-3271078fb1d6" 'btrfs)) +;; This may fix AMDGPU crashes in Minecraft with the following errors in dmesg: +;; [drm:amdgpu_dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -22 +;; and the following errors in the Minecraft log: +;; amdgpu: amdgpu_cs_query_fence_status failed. +;; amdgpu: The CS has been rejected (-125). +;; https://old.reddit.com/r/AMDHelp/comments/17yn72h/page_flip_fails_error22game_crash/ +(define amdgpu-reduced-output-latency "\ +Section \"OutputClass\" + Identifier \"AMDgpu\" + MatchDriver \"amdgpu\" + Driver \"amdgpu\" + Option \"EnablePageFlip\" \"off\" + Option \"TearFree\" \"false\" +EndSection +") + (define-public %btl-system (operating-system (host-name "btl.twilken.net") @@ -148,7 +164,8 @@ #:host-name host-name #:cores 24 #:wireless-interface "wlp15s0" - #:backlight-device "amdgpu_bl0") + #:backlight-device "amdgpu_bl0" + #:xorg-extra-config (list amdgpu-reduced-output-latency)) (delete thermald-service-type)))))) %btl-system |