linrunner / TLP

TLP - Optimize Linux Laptop Battery Life
https://linrunner.de/tlp
GNU General Public License v2.0
2.51k stars 129 forks source link

Wifi fails on Dell XPS 15 9500 post-resume on AC #695

Closed robgssp closed 11 months ago

robgssp commented 12 months ago

[x] I've read and accepted the Bug Reporting Howto [x] I've provided all required tlp-stat outputs via Gist (see below)

Describe the bug

On AC power, wifi on my laptop fails after a suspend/resume cycle with TLP enabled.

Expected behavior

Wifi should work after resume.

To Reproduce

On boot with kernel >=5.17 and TLP enabled, suspend and resume while on AC power. Wifi will fail to connect accompanied by stack-traces from iwlwifi.

Problem occurs on AC power only; unplugging the laptop clears the issue.

Wifi will sometimes fail to connect entirely, and sometimes connect at very slow speeds - ~100kbit instead of the usual ~500mbit.

tlp output, and iwlwifi errors: https://gist.github.com/robgssp/0368b1942f601a28fe6bc7a76fb925ba

Interestingly, blacklisting the SD card drivers (rtsx_pci and rtsx_pci_sdmmc) causes the wifi to fail unconditionally, before suspend and whether on battery or AC.

Additional context

Laptop is a Dell XPS 15 9500 with a "Killer AX1650s" (Intel AX201) wifi card.

Wifi works normally with tlp disabled.

robgssp commented 12 months ago

Setting WIFI_PWR_ON_AC="on" partially mitigates the issue but does not resolve it - with that set, wifi doesn't fully cut out but is stuck in "slow mode" until AC is disconnected.

linrunner commented 12 months ago

Hi. What you are observing is not a TLP but obviously a kernel issue. You may - as you have already started - change settings in TLP to work around it. I would try for example to disable wifi power save completely

WIFI_PWR_ON_AC=""
WIFI_PWR_ON_BAT=""
linrunner commented 11 months ago

Due to inactivity I'll close here. Nevertheless, you are welcome to post new findings about your problem here.