Re: eeepc-laptop rfkill, stupid question #4

Henrique de Moraes Holschuh
2008-11-03T14:16:33Z

On Sun, 02 Nov 2008, Matthew Garrett wrote:
> resume path. However, as you point out, right now it's possible for the
> user to change the hardware state in the BIOS and cause the two to get
> out of sync. That's certainly not ideal.

In fact, it is a bug.

Can you read the state? If so, you need to unconditionally do so on resume
(from sleep or hibernation) and rfkill_force_state() it.

If you CANNOT read the state, you will have to force the radio to a known
state somehow.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh