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

rtw_8821ce 0000:01:00.0: failed to send h2c command #3826

Closed
vturekhanov opened this issue Jan 25, 2025 · 3 comments
Closed

rtw_8821ce 0000:01:00.0: failed to send h2c command #3826

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

Comments

@vturekhanov
Copy link

Describe the issue you are experiencing

I installed HAOS 14.1 to the new mini PC (fresh install from the scratch). It seems like everything works good but huge numbers of following host log lines while WiFi network is active (more than one line per second).

Switching to the wired network dramatically decrease number of that log lines: one line per couple of minutes.

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. Install HAOS.
  2. Open host logs in GUI or just view console.

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

n/a

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

2025-01-25 13:08:45.277 homeassistant kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
2025-01-25 13:09:27.279 homeassistant kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command
2025-01-25 13:10:31.278 homeassistant kernel: rtw_8821ce 0000:01:00.0: failed to send h2c command

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.7 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized false
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 25, 2025 at 5:56 PM
estimated_db_size 0.64 MiB
database_engine sqlite
database_version 3.47.1

Additional information

No response

@vturekhanov
Copy link
Author

Seems previous log lines fixed by removing USB-receiver for wireless keyboard.
But there are new host log lines.

2025-01-26 06:30:17.819 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:19.803 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:23.835 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:25.819 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:29.787 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:31.771 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:33.819 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:35.803 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:37.787 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:39.835 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:43.803 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:45.787 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:49.819 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:51.803 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:55.771 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:30:57.819 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state
2025-01-26 06:31:01.787 homeassistant kernel: rtw_8821ce 0000:01:00.0: firmware failed to leave lps state

@vturekhanov
Copy link
Author

vturekhanov commented Jan 26, 2025

Found workaround at kernel.org: https://bugzilla.kernel.org/show_bug.cgi?id=215496#c22
Is it possible to implement it in HAOS?

The people tried:
  [connection]
  wifi.powersave = 2

Please try if this also works to you.


And, please also try below two ko options, and do cold reboot.

rtw88_core
  disable_lps_deep=y
rtw88_pci
  disable_aspm=y

UPD: Trying to do that with HAOS configuration: https://github.com/home-assistant/operating-system/blob/dev/Documentation/configuration.md

@vturekhanov
Copy link
Author

Closed this as this is really not an HAOS issue.

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

1 participant