Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi.powersave option reverts to default after host reboot #3832

Open
vturekhanov opened this issue Jan 27, 2025 · 3 comments
Open

wifi.powersave option reverts to default after host reboot #3832

vturekhanov opened this issue Jan 27, 2025 · 3 comments
Labels

Comments

@vturekhanov
Copy link

Describe the issue you are experiencing

Exploring issue #3826 I tried to change powersave mode for my wireless adapter using nmcli tool and direct edit connection file using vi (/etc/NetworkManager/system-connections/Supervisor\ wlp1s0.nmconnection). Setting powersave=2 was successful in both cases but after host reboot I see powersave option reverts to its default value: powersave=1. So, I can't change powersave option.

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

14.1

Did the problem occur after upgrading the Operating System?

No

Hardware details

G3 Mini PC Alder Lake N100 Intel 12th DDR4 8GB RAM 256GB ROM WiFi BT
https://aliexpress.ru/item/1005006340106437.html

Steps to reproduce the issue

  1. Set powersave option to 2 in the wifi section of network connection in the connection configuration file (/etc/NetworkManager/system-connections/Supervisor\ wlp1s0.nmconnection in my case).
  2. Reboot the host.
  3. View connection configuration file.

Anything in the Supervisor logs that might be useful for us?

n/a

Anything in the Host logs that might be useful for us?

n/a

System information

System Information

version core-2025.1.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.1
os_name Linux
os_version 6.6.66-haos
arch x86_64
timezone Asia/Almaty
config_dir /config
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.1
update_channel stable
supervisor_version supervisor-2024.12.3
agent_version 1.6.0
docker_version 27.2.0
disk_total 234.0 GB
disk_used 5.9 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Matter Server (7.0.0)
Dashboards
dashboards 2
resources 0
views 0
mode storage
Recorder
oldest_recorder_run January 25, 2025 at 7:59 AM
current_recorder_run January 27, 2025 at 11:19 AM
estimated_db_size 7.17 MiB
database_engine sqlite
database_version 3.47.1

Additional information

No response

@vturekhanov
Copy link
Author

vturekhanov commented Jan 28, 2025

Workaround: set powersave=2 in the connection file and make it immutable (chattr +i).
After rebooting the host got one warning concerning unable writing to the connection file: Operation not permitted.
Seems now wireless network works good.

@dgdavid
Copy link

dgdavid commented Jan 28, 2025

I'm experiencing the same issue. Thanks a lot for sharing the workaround. I'll check if it works for me too :)

@vturekhanov
Copy link
Author

So, HAOS tries to update connection settings file during host boot. In this case immutable attribute prevents it.

2025-01-28 13:43:56.289 homeassistant NetworkManager[438]: <warn>  [1738071836.2897] keyfile: commit: failure to write 539c2326-a82f-45a6-97a6-82fc242d30da ((null)) to "/etc/NetworkManager/system-connections/wlp1s0.nmconnection": error writing to file '/etc/NetworkManager/system-connections/wlp1s0.nmconnection': failed rename /etc/NetworkManager/system-connections/wlp1s0.nmconnection.HJL802 to /etc/NetworkManager/system-connections/wlp1s0.nmconnection: Operation not permitted
2025-01-28 13:43:56.290 homeassistant NetworkManager[438]: <info>  [1738071836.2897] audit: op="connection-update" uuid="539c2326-a82f-45a6-97a6-82fc242d30da" name="wlp1s0" args="802-11-wireless.powersave,connection.id,connection.timestamp" pid=1079 uid=0 result="fail" reason="failed to update connection: error writing to file '/etc/NetworkManager/system-connections/wlp1s0.nmconnection': failed rename /etc/NetworkManager/system-connections/wlp1s0.nmconnection.HJL802 to /etc/NetworkManager/system-connections/wlp1s0.nmconnection: Operation not permitted"

Why powersave option overwrites? How it corresponds with HAOS network configuration documentation? https://github.com/home-assistant/operating-system/blob/dev/Documentation/network.md#powersave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants