intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 19 forks source link

Add support for connecting to wifi in KlipperScreen #313

Closed eliasbakken closed 2 years ago

eliasbakken commented 2 years ago

KlipperScreen can now be installed using a script. Eventually it will become a separate image. I've looked at the option to connect to a wifi access point using KlipperScreen. There are two problems with this. 1) wpa_supplicant is run as root and does not allow unprivileged access to the wifi interfaces. A solution to this is to set the group for wpa_supplicant to something other than root and then add debian to that group. This is what the ExecStart line in wpa_supplicant.service file would look like: ExecStart=/sbin/wpa_supplicant -u -s -O "DIR=/run/wpa_supplicant GROUP=netdev" 2) KlipperScreen relies on matchbox-keyboard for getting the password from the user. matchbox-keyboard does not play well with Weston, so an alternative needs to be proposed. There is a virtual keyboard that is available for Weston called weston-keyboard. The launch command used in KlipperScreen is not really configurable though.

eliasbakken commented 2 years ago

Perhaps the simplest route is to create a custom software based keyboard in the app itself.

eliasbakken commented 2 years ago

Basic support has been added.