From 682942e5fdfa9bc9f2bb76686a7e5f67d7a86a95 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 26 Feb 2019 09:57:13 +0000 Subject: [PATCH] Disable power management on the Google Laptop platform correctly --- .../tasks/includes/platform_google_laptop.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.ansible/roles/linux_desktop/tasks/includes/platform_google_laptop.yaml b/.ansible/roles/linux_desktop/tasks/includes/platform_google_laptop.yaml index d4bd142..efd2725 100644 --- a/.ansible/roles/linux_desktop/tasks/includes/platform_google_laptop.yaml +++ b/.ansible/roles/linux_desktop/tasks/includes/platform_google_laptop.yaml @@ -10,8 +10,8 @@ become: true - name: 'Platform: Google Laptop: Disable wireless power management' - copy: - dest: /etc/pm/sleep.d/wifi_pwr_off - content: '/sbin/iwconfig wlp1s0 power off' - mode: '0500' + lineinfile: + path: /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf + regexp: '^wifi.powersave =' + line: 'wifi.powersave = 2' become: true