Improvements to LibreELEC Settings for connman dialog

  • The problem appeared after Wi-Fi support was introduced in LibreELEC for the Tanix TX6

    , but it affects all versions of LibreELEC. Quite often, a Wi-Fi connection cannot be established on the first attempt (Invalid key), or it gets disconnected for various reasons and remains disconnected. When trying to reconnect, by default, LibreELEC Settings opens a password dialog even when the correct password has already been entered and saved. When the connection is unstable for some reason, having to re-enter the password every time using a remote control quickly becomes very annoying. I have implemented a patch that displays the password dialog only once, when no password has been saved. Subsequent connection attempts use the previously saved password. To change the password, the existing saved network entry must first be deleted. The patch is attached.

    I have also added a script to monitor the Wi-Fi connection and restore it if necessary via cron. The script connects to a network that is available and has a saved password.

    Cron entry:

    Code
    */1 * * * * /storage/.config/wifiautoconnect.sh

    and script /storage/.config/wifiautoconnect.sh: