From bef33240db179debb0bd39b02f0773b0e570fb95 Mon Sep 17 00:00:00 2001 From: nerdy0901 Date: Wed, 8 Nov 2023 10:37:17 +0700 Subject: [PATCH] add my custom confing files --- .../files/usr/etc/modprobe.d/0-my-nvidia-pm.conf | 1 + .../files/usr/etc/sddm.conf.d/0-my-wayland.conf | 6 ++++++ .../main.lua.d/0-my-disable-suspension.lua | 15 +++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 config/files/usr/etc/modprobe.d/0-my-nvidia-pm.conf create mode 100644 config/files/usr/etc/sddm.conf.d/0-my-wayland.conf create mode 100644 config/files/usr/etc/wireplumber/main.lua.d/0-my-disable-suspension.lua diff --git a/config/files/usr/etc/modprobe.d/0-my-nvidia-pm.conf b/config/files/usr/etc/modprobe.d/0-my-nvidia-pm.conf new file mode 100644 index 0000000000..60ba20eb6c --- /dev/null +++ b/config/files/usr/etc/modprobe.d/0-my-nvidia-pm.conf @@ -0,0 +1 @@ +options nvidia "NVreg_DynamicPowerManagement=0x00" diff --git a/config/files/usr/etc/sddm.conf.d/0-my-wayland.conf b/config/files/usr/etc/sddm.conf.d/0-my-wayland.conf new file mode 100644 index 0000000000..583dfbcf15 --- /dev/null +++ b/config/files/usr/etc/sddm.conf.d/0-my-wayland.conf @@ -0,0 +1,6 @@ +[General] +DisplayServer=wayland +GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell + +[Wayland] +CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1 diff --git a/config/files/usr/etc/wireplumber/main.lua.d/0-my-disable-suspension.lua b/config/files/usr/etc/wireplumber/main.lua.d/0-my-disable-suspension.lua new file mode 100644 index 0000000000..27f9254a70 --- /dev/null +++ b/config/files/usr/etc/wireplumber/main.lua.d/0-my-disable-suspension.lua @@ -0,0 +1,15 @@ +table.insert (alsa_monitor.rules, { + matches = { + { + -- Matches all sources. + { "node.name", "matches", "alsa_input.*" }, + }, + { + -- Matches all sinks. + { "node.name", "matches", "alsa_output.*" }, + }, + }, + apply_properties = { + ["session.suspend-timeout-seconds"] = 600, -- 0 disables suspend + }, +})