network: improve NetworkManager support

This commit is contained in:
alfrix committed 2022-11-24 14:57:36 -03:00
1 parent db48bb8a1f
commit c630178f0c
5 files changed
+125 -154

No files matched your search

+31 -2
View File
@@ -116,7 +116,7 @@ and reboot, that should make the touch work, if your screen is rotated 180 degre
KlipperScreen was never intended to be used with OctoPrint, and there is no support for it.
## WiFi networks not listed
## WiFi networks not listed (Using wpa_supplicant as backend)
This can be caused because of the user is not allowed to control the interface
@@ -137,13 +137,42 @@ usermod -a -G netdev pi
Then reboot the machine:
```
```sh
systemctl reboot
```
!!! tip
It's possible to just restart KlipperScreen and networking
## WiFi networks not listed (Using NetworkManager as backend)
`[wifi_nm.py:rescan()] [...] NetworkManager.wifi.scan request failed: not authorized`
If you see the above permission error in the log you may need to use polkit or disable it:
```sh
mkdir -p /etc/NetworkManager/conf.d
sudo nano /etc/NetworkManager/conf.d/any-user.conf
```
in the editor paste this:
```conf
[main]
auth-polkit=false
```
Then restart the service:
```sh
systemctl restart NetworkManager.service
```
!!! tip
It's possible to just restart KlipperScreen and NetworkManager
## Other issues
If you found an issue not listed here, or can't make it work, please provide all the log files