From bfae35a3844900f20fec1749b234b9d25da27a9b Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 17 Jan 2024 17:29:32 -0800 Subject: [PATCH 1/4] chore: Ignore tuned-ppd in system76-scheduler --- system_files/deck/shared/usr/etc/system76-scheduler/config.kdl | 2 ++ .../desktop/shared/usr/etc/system76-scheduler/config.kdl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/system_files/deck/shared/usr/etc/system76-scheduler/config.kdl b/system_files/deck/shared/usr/etc/system76-scheduler/config.kdl index d7f5ba76..d99bddb9 100644 --- a/system_files/deck/shared/usr/etc/system76-scheduler/config.kdl +++ b/system_files/deck/shared/usr/etc/system76-scheduler/config.kdl @@ -107,5 +107,7 @@ process-scheduler enable=true { taskset vpower schedtool + tuned + tuned-ppd } } diff --git a/system_files/desktop/shared/usr/etc/system76-scheduler/config.kdl b/system_files/desktop/shared/usr/etc/system76-scheduler/config.kdl index 19ed4e03..b64de2eb 100644 --- a/system_files/desktop/shared/usr/etc/system76-scheduler/config.kdl +++ b/system_files/desktop/shared/usr/etc/system76-scheduler/config.kdl @@ -101,5 +101,7 @@ process-scheduler enable=true { systemd taskset schedtool + tuned + tuned-ppd } } From ca069b9418243ae7359e68c4abcd97cf37955610 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 17 Jan 2024 18:12:20 -0800 Subject: [PATCH 2/4] fix: Handle nested desktop mode a different way in rotation fix. --- .../deck/shared/usr/libexec/bazzite-rotation-fix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/system_files/deck/shared/usr/libexec/bazzite-rotation-fix b/system_files/deck/shared/usr/libexec/bazzite-rotation-fix index c620e0d3..72aa8ea4 100755 --- a/system_files/deck/shared/usr/libexec/bazzite-rotation-fix +++ b/system_files/deck/shared/usr/libexec/bazzite-rotation-fix @@ -4,16 +4,11 @@ # Author: d3Xt3r SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)" +IS_GAMEMODE="$(cat /proc/*/comm | grep gamescope-ses*)" sleep 1 echo $(date '+%Y-%m-%d %H:%M:%S') Starting Bazzite Desktop Orientation Fix script...| tee -a /tmp/bazrotfix.log -IS_GAMEMODE="$(cat /proc/*/comm | grep gamescope-ses*)" - -if [[ ! -z "$IS_GAMEMODE" ]]; then - exit 0 -fi - # This bit is needed to allow enough time for the desktop to load, otherwise the fix won't work # Since Steam launches automatically in the Desktop mode in Bazzite-Deck, we can use it # to determine whether or not the desktop has loaded. @@ -30,7 +25,9 @@ kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log # Fix desktop orientation # Rotation options: right, normal, left, inverted echo $(date '+%Y-%m-%d %H:%M:%S') Fixing desktop orientation... | tee -a /tmp/bazrotfix.log -if [[ ":83E1:" =~ ":$SYS_ID" ]]; then +if [[ -z "$IS_GAMEMODE" ]]; then + kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log +elif [[ ":83E1:" =~ ":$SYS_ID" ]]; then kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log else kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log From c4f22d0256b08a27c34b048c977b6aec50bb3b30 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 17 Jan 2024 18:41:16 -0800 Subject: [PATCH 3/4] chore: Remove unneeded compat profiles for tuned --- Containerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Containerfile b/Containerfile index c8647c8d..e98a977a 100644 --- a/Containerfile +++ b/Containerfile @@ -205,7 +205,6 @@ RUN rpm-ostree install \ tuned-utils \ tuned-utils-systemtap \ tuned-gtk \ - tuned-profiles-compat \ tuned-profiles-atomic \ tuned-profiles-cpu-partitioning \ powertop \ From 408e27aefbb323a8c81a9b011b563676e3c114dc Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 17 Jan 2024 23:28:25 -0800 Subject: [PATCH 4/4] chore: Always update libdecor --- Containerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Containerfile b/Containerfile index e98a977a..c8c22fdb 100644 --- a/Containerfile +++ b/Containerfile @@ -139,6 +139,11 @@ RUN rpm-ostree override replace \ python3 \ python3-libs \ || true && \ + rpm-ostree override replace \ + --experimental \ + --from repo=updates \ + libdecor \ + || true && \ rpm-ostree override remove \ glibc32 \ || true