Skip to content

dell-laptop: Bring back (limited) rfkill support

Hans de Goede platform-driver-x86 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Revert "dell-laptop: Remove rfkill code"drivers/platform/x86/dell-laptop.c+289 -00 replies
2/10dell-laptop: Only enable rfkill on Latitudesdrivers/platform/x86/dell-laptop.c+7 -500 replies
3/10dell-laptop: If there is no hwswitch, then clear all hw-controlled bitsdrivers/platform/x86/dell-laptop.c+3 -00 replies
4/10dell-laptop: Only get status from BIOS once when updatingdrivers/platform/x86/dell-laptop.c+19 -90 replies
5/10dell-laptop: Don't set sw_state from the query callbackdrivers/platform/x86/dell-laptop.c+19 -80 replies
6/10dell-laptop: Don't read-back sw_state on machines with a hardware switchdrivers/platform/x86/dell-laptop.c+4 -10 replies
7/10dell-laptop: Allow changing the sw_state while the radio is blocked by hwdrivers/platform/x86/dell-laptop.c+2 -50 replies
8/10dell-laptop: Sync current block state to BIOS on hw switch changedrivers/platform/x86/dell-laptop.c+11 -30 replies
9/10dell-laptop: Do not skip setting blocked bit rfkill_set while hw-blockeddrivers/platform/x86/dell-laptop.c+2 -30 replies
10/10dell-laptop: Wait less long before updating rfkill after an rfkill keypressdrivers/platform/x86/dell-laptop.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] dell-laptop: Bring back (limited) rfkill support

Hi Matthew et al,

As the subject already says this patch-set intends to bring back (and fixup) dell-laptop rfkill support.

I know this was killed with a good reason, still I want to bring it back.

I've 3 different Latitudes in use in my home, spanning 6 generations of Latitudes, and without dell-laptop rfkill support these have the following issues:

1) If the hardware radio switch is set to disable the radio, then userspace will still think it can use wireless and bluetooth, this sometimes greatly confuses other users (wife and children) of these laptops.

2) The wwan / 3g modem in one of them cannot be disabled

3) When turning off bluetooth or wife in the UI, the status leds on the laptop for these will stay on

Now this may not seem like big issues, but with these fixed the overall user experience of the laptop when there is a need to disable radios just feels much better.

AFAIK the rfkill functionality was removed from the dell-laptop driver because it caused more problems then it fixed, and the blacklist for it was growing out of control.

But in the thread discussing this Dell mentioned that they only QA the rfkill acpi interface on Latitudes and indeed there have been no blacklist entries for Latitudes. This combined with me owning a bunch of Latitudes has lead to this patchset, which brings back rfkill functionality, but for Latitudes only, getting rid of the blacklist.

Note that only limiting the support to Latitudes is not enough to get rid of all the rough edges of the rfkill support. Because the driver itself has some issues / bad interactions with the firmware too.

I've spend the last 2 days doing a lot of testing on 3 different Latitudes, a D620, E6400 and E6430, and this has resulted in a bunch of fixes to the rfkill support, hence this patch-set has 10 patches total.

I've tested the final result of the patch set on all 3 models in various different circumstances, booting with the hwswitch on / off, suspend/resume, changing hwswitch state during suspend in either direction, etc.

This now all works flawless on the Latitude series, therefor I'm confident that bringing back rfkill support for Latitudes only should not cause any issues.

Moreover I'm willing to put my time where my mouth is and I'm willing to maintain the rfkill portion of the driver, deal with any bugreports, etc.

Open questions:

1) Should we maybe also bring back rfkill for Vostros ? Looking at the blacklist and mailinglist archives it seems that all models with issues were Inspirons.

I honestly don't know what the best answer to this question is, one option would be adding a module option which allows by-passing the Latitude check and to gather feedback, then decide based on that.

2) Should we maybe limit support to models with a hw kill switch ? One big difference between Latitudes/Vostros and Inspirons is that the former tend to have a hw kill switch, where as the later uses a keyboard combo which gets intercepted by the firmware to toggle the radio, and the latter seems to be where most of the troubles are. More over my own testbed only has machines with a hw kill switch (there are some older Latitude models which lack a hardware switch).

I tend towards limiting support to only models with a hardware switch, with an option to override this check using a module option.

Regards,

Hans