From 8ed431c18d8c8b44607a266a7bc4c8cb48e2c56d Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sat, 24 Aug 2024 14:10:43 +0200 Subject: Try to fix Minecraft crashes --- tw/system/btl.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tw/system/btl.scm') 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 -- cgit v1.2.3