Commit b768bc31 authored by James T. Lee's avatar James T. Lee
Browse files

network: Disable wifi powersave on pinebookpro

The wifi powersave feature seems to cause the device to hang randomly or
over time.  Pine64 wiki recommends disabling powersave.  Who knows what
kind of effect it'll have on my battery life, but we'll see.  Revisit
this when new firmware is available.
parent 72085967
...@@ -18,13 +18,33 @@ class nest::base::network { ...@@ -18,13 +18,33 @@ class nest::base::network {
unmanaged-devices=interface-name:docker*,interface-name:tun0,interface-name:virbr*,interface-name:vnet* unmanaged-devices=interface-name:docker*,interface-name:tun0,interface-name:virbr*,interface-name:vnet*
| EOT | EOT
file { '/etc/NetworkManager/NetworkManager.conf': $pinebookpro_conf_ensure = $::nest::platform ? {
mode => '0644', 'pinebookpro' => present,
owner => 'root', default => absent,
group => 'root', }
content => $networkmanager_conf,
require => Package['net-misc/networkmanager'], $pinebookpro_conf_content = @(CONF)
notify => Service['NetworkManager'], [connection-wifi-wlan0]
wifi.powersave=off
| CONF
file {
default:
mode => '0644',
owner => 'root',
group => 'root',
require => Package['net-misc/networkmanager'],
notify => Service['NetworkManager'],
;
'/etc/NetworkManager/NetworkManager.conf':
content => $networkmanager_conf,
;
'/etc/NetworkManager/conf.d/10-pinebookpro.conf':
ensure => $pinebookpro_conf_ensure,
content => $pinebookpro_conf_content,
;
} }
service { 'NetworkManager': service { 'NetworkManager':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment