Bug 15164
Summary: | iwlagn doesn't work after resume - acer_wmi rfkill state not restored - Lenovo Ideapad u330 | ||
---|---|---|---|
Product: | Drivers | Reporter: | Michał Witkowski (neuro) |
Component: | Platform | Assignee: | Carlos Corbacho (carlos) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | acpi-bugzilla, alan, lenb, linville, rjw, rui.zhang |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.33-rc5 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 56331 | ||
Attachments: |
dmesg after resume in 2.6.33-rc5
dmesg after iwlagn, iwlcore, cfg80211 reload |
Description
Michał Witkowski
2010-01-28 20:14:58 UTC
Created attachment 24767 [details]
dmesg after resume in 2.6.33-rc5
Created attachment 24768 [details]
dmesg after iwlagn, iwlcore, cfg80211 reload
iwlagn 0000:03:00.0: RF_KILL bit toggled to disable radio. You have turned-on RF kill (i.e. disabled your wireless LAN)... Ok, I've checked. Suspend is done by echo "mem" > /sys/power/state under both kernels, as pm-suspend doesn't work for me on 2.6.33-rc5 (bug 15165). In kernel 2.6.32.5 I get: iwlagn 0000:03:00.0: RF_KILL bit toggled to enable radio. In kernel 2.6.33-rc5 I get: iwlagn 0000:03:00.0: RF_KILL bit toggled to disable radio. I've dug around and found what changed the situation. I don't know why, but acer_wmi gets loaded under 2.6.33-rc5 and it doesn't under 2.6.32.5. It exposes a rfkill interface in /sys which allows me to switch my wifi back on. I don't know why my Lenovo U330 suddenly started loading acer_wmi with kernel 2.6.33. While investigating my DSDT table, I've noticed that it has something similar to the WMI interface of acer_wmi, but AFAIK noone ever paid attention. Now my question is: should I keep acer_wmi (the wifi RFKILL works)? And if so, how can I change it's behaviour so that the rfkill gets reset to true after resume? Note: could this be moved to the ACPI/wmi/acer department instead of networking? I'm sorry for wrong posting this. Moving. ping carlos ... ping carlos and Michal, please verify the problem still exists in the latest upstream kernel, :p. The change that cased acer-wmi to load is down to the autoloading for ACPI-WMI drivers being fixed recently to work properly - I've been aware for a while now of certain Lenovo and other makes of laptops that work with acer-wmi. It looks like acer-wmi might need to set the persistent flag to 'false' on the rfkill devices to force rfkill to restore the state on resume - rfkill doesn't appear to do this by default on resume, though I thought it did. However, at least from testing on my own old Acer laptop, this hasn't been necessary before, since after resume rfkill was still in the correct state... I'll see if I can produce a patch that at least doesn't break things here, and then attach it here for testing. |