From 0b05afb194adc5692d161ca8d37a98a31657a410 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 7 Jul 2018 10:45:59 +0200 Subject: [PATCH] Add powersave config to network manager (#86) * Add powersave config to network manager * Update network.md --- Documentation/network.md | 46 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/Documentation/network.md b/Documentation/network.md index 7956e04fb..67e9a9b08 100644 --- a/Documentation/network.md +++ b/Documentation/network.md @@ -5,13 +5,31 @@ Currently only manual configuration using NetworkManager connection files is sup ## Configuration Examples -You can look also into [Official Manual][keyfile] or there are a lot of examples accross internet. +You can look also into [Official Manual][keyfile] or there are a lot of examples accross internet. The system is read only, if you not want change the IP address every boot, you should set the uuid property with a generic [UUID4][uuid]. + +### Default + +We have a preinstalled connection profile: +``` +[connection] +id=HassOS default +uuid=f62bf7c2-e565-49ff-bbfc-a4cf791e6add +type=802-3-ethernet + +[ipv4] +method=auto + +[ipv6] +addr-gen-mode=stable-privacy +method=auto +``` ### LAN ```ini [connection] id=hassos-network -type=ethernet +uuid=d55162b4-6152-4310-9312-8f4c54d86afa +type=802-3-ethernet [ipv4] method=auto @@ -25,7 +43,8 @@ method=auto ```ini [connection] id=hassos-network -type=wifi +uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3 +type=802-11-wireless [wifi] mode=infrastructure @@ -54,5 +73,26 @@ address1=192.168.1.111/24,192.168.1.1 dns=8.8.8.8;8.8.4.4; ``` +## Tips + +### Reset network + +If you want reset the network configuration to default, use follow commands on host: +```bash +$ rm /etc/NetworkManager/system-connections/* +$ cp /usr/share/system-connections/* /etc/NetworkManager/system-connections/ +$ nmcli con reload +``` + +### Powersave + +If you have trouble with powersave you can do following: +```ini +[wifi] +# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable). +powersave=0 +``` + [keyfile]: https://developer.gnome.org/NetworkManager/stable/nm-settings.html [configuration-usb]: configuration.md +[uuid]: https://www.uuidgenerator.net/