From f98e61f5feeaf6944666945fe55d9312eee10605 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 7 Aug 2024 09:52:00 -0400 Subject: [PATCH] feat(wim): disable camera monitoring in pipewire --- devices/wim/hardware-configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devices/wim/hardware-configuration.nix b/devices/wim/hardware-configuration.nix index 8192c552..267ec958 100644 --- a/devices/wim/hardware-configuration.nix +++ b/devices/wim/hardware-configuration.nix @@ -89,6 +89,16 @@ services = { xserver.videoDrivers = ["modesetting"]; + + # https://www.reddit.com/r/linux/comments/1em8biv/psa_pipewire_has_been_halving_your_battery_life/ + pipewire.wireplumber.extraConfig."10-disable-camera" = { + "wireplumber.profiles" = { + main = { + "monitor.libcamera" = "disabled"; + }; + }; + }; + tlp = { enable = true; settings = {