[ltp] How to detect hw kill state on new ThinkPads the answer

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Tue, 24 Oct 2006 08:48:48 -0300


On Tue, 24 Oct 2006, Florian Manschwetus wrote:
> I read some ipw docu and found this:
> For example:
>         /sys/bus/pci/drivers/ipw3945/0000:02:01.0
> 
> For the device level files, see /sys/bus/pci/drivers/ipw3945:
> 
>   rf_kill
>         read -
>         0 = RF kill not enabled (radio on)
>         1 = SW based RF kill active (radio off)
>         2 = HW based RF kill active (radio off)
>         3 = Both HW and SW RF kill active (radio off)
> 
>         write -
>         0 = If SW based RF kill active, turn the radio back on
>         1 = If radio is on, activate SW based RF kill
> 
>         NOTE: If you enable the SW based RF kill and then toggle the HW
>         based RF kill from ON -> OFF -> ON, the radio will NOT come back on

It works the same way for the ipw2200 driver, as well.  And as long as HW RF
kill is active, you cannot turn the thing on no matter what you do with SF
RF kill (which is, of course, a good thing).

-- 
  "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