mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
Add powersave config to network manager (#86)
* Add powersave config to network manager * Update network.md
This commit is contained in:
parent
ab60a8bc55
commit
0b05afb194
@ -5,13 +5,31 @@ Currently only manual configuration using NetworkManager connection files is sup
|
|||||||
|
|
||||||
## Configuration Examples
|
## 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
|
### LAN
|
||||||
```ini
|
```ini
|
||||||
[connection]
|
[connection]
|
||||||
id=hassos-network
|
id=hassos-network
|
||||||
type=ethernet
|
uuid=d55162b4-6152-4310-9312-8f4c54d86afa
|
||||||
|
type=802-3-ethernet
|
||||||
|
|
||||||
[ipv4]
|
[ipv4]
|
||||||
method=auto
|
method=auto
|
||||||
@ -25,7 +43,8 @@ method=auto
|
|||||||
```ini
|
```ini
|
||||||
[connection]
|
[connection]
|
||||||
id=hassos-network
|
id=hassos-network
|
||||||
type=wifi
|
uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3
|
||||||
|
type=802-11-wireless
|
||||||
|
|
||||||
[wifi]
|
[wifi]
|
||||||
mode=infrastructure
|
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;
|
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
|
[keyfile]: https://developer.gnome.org/NetworkManager/stable/nm-settings.html
|
||||||
[configuration-usb]: configuration.md
|
[configuration-usb]: configuration.md
|
||||||
|
[uuid]: https://www.uuidgenerator.net/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user