From 39d5cae298970cbee3560381b43be62a382e7f73 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Thu, 6 Nov 2025 16:48:48 -0800 Subject: [PATCH] drop framework charge control service When I first bought my Framework, the battery charge limit reset after every boot, necessitating something like this. With later firmware versions, it doesn't reset, so there's no need for a service. Just set your preferred limit once, using whatever method you like, and then forget about it. --- roles/laptop/files/chargecontrol.service | 5 ----- roles/laptop/handlers/main.yml | 5 ----- roles/laptop/tasks/framework.yml | 18 ------------------ 3 files changed, 28 deletions(-) delete mode 100644 roles/laptop/files/chargecontrol.service diff --git a/roles/laptop/files/chargecontrol.service b/roles/laptop/files/chargecontrol.service deleted file mode 100644 index 5ee8f89..0000000 --- a/roles/laptop/files/chargecontrol.service +++ /dev/null @@ -1,5 +0,0 @@ -[Service] -ExecStart=framework_tool --charge-limit 87 - -[Install] -WantedBy=default.target diff --git a/roles/laptop/handlers/main.yml b/roles/laptop/handlers/main.yml index f7f8ba6..18d48bd 100644 --- a/roles/laptop/handlers/main.yml +++ b/roles/laptop/handlers/main.yml @@ -6,8 +6,3 @@ service: name: power_monitor.service state: restarted - -- name: restart charge control - service: - name: chargecontrol.service - state: restarted diff --git a/roles/laptop/tasks/framework.yml b/roles/laptop/tasks/framework.yml index 1985cfa..31a888a 100644 --- a/roles/laptop/tasks/framework.yml +++ b/roles/laptop/tasks/framework.yml @@ -4,21 +4,3 @@ name: framework-system tags: - framework - -- name: Copy charge control service - copy: - src: chargecontrol.service - dest: /etc/systemd/system/ - notify: - - reload systemd config - - restart charge control - tags: - - framework - -- name: Enable and start charge control service - service: - name: chargecontrol.service - enabled: yes - state: started - tags: - - framework