Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

On/Off state of WiFi is not restored on a reboot #1605

Open
UniversalSuperBox opened this issue Nov 16, 2020 · 5 comments
Open

On/Off state of WiFi is not restored on a reboot #1605

UniversalSuperBox opened this issue Nov 16, 2020 · 5 comments
Labels
device: dora Sony Xperia X Performance needs confirmation

Comments

@UniversalSuperBox
Copy link
Member

  • Device: dora (Sony Xperia X Performance)
  • Channel: unknown
  • Build: unknown

Steps to reproduce

  1. Turn off the WiFi switch
  2. Reboot the device

Expected behavior

The WiFi switch is still off when the device boots.

Actual behavior

The WiFi switch is turned back on when the device boots

Logfiles and additional information

None provided. Originally reported by @idtwar in #1601

@UniversalSuperBox
Copy link
Member Author

@idtwar, I am unsure which channel "community dev (aarch64)" is in your original report. Could you please run system-image-cli -i in a terminal and report back with the value of channel:?

@idtwar
Copy link

idtwar commented Nov 16, 2020

current build number: 53
device name: dora
channel: 16.04/community/anpok/devel
last update: 2020-11-16 10:16:32
version version: 53
version ubports: 20200602-30971
version tag: 2020-06-07
version keyring: archive-master
version device: 7bcad6805f5d73c5259e6f5ae707647f2e43381cbdbd04edbdfe57bf16446d82

@robiwan1
Copy link

robiwan1 commented Jan 7, 2021

This is because the MAC address of wlan0 is regenerated on each reboot, and therefor a new wifi profile has to be setup. SOLUTION: after first wifi setup remove the MAC from the wifi profile. This allows the networkmanager to connect the already configured profile automatically. Do the following in the ubports shell:

~$ nmcli connection modify 802-11-wireless.mac-address ""
~$ nmcli connection modify connection.interface-name wlan0

@robiwan1
Copy link

robiwan1 commented Jan 7, 2021

~$ nmcli connection modify PROFILE 802-11-wireless.mac-address ""
~$ nmcli connection modify PROFILE connection.interface-name wlan0

@idtwar
Copy link

idtwar commented Jan 10, 2021

Thanks exactly it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
device: dora Sony Xperia X Performance needs confirmation
Projects
None yet
Development

No branches or pull requests

3 participants