[ltp] Getting ipw3945 kill switch to bring eth1 down?

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Mon, 19 Nov 2007 12:23:00 -0200


On Sun, 18 Nov 2007, Marc MERLIN wrote:
> Good point, I can also poll that (I already have thinkpad-acpi), but the
> idea is that I was hoping for a trigger more than a poll.

Then you'd have to listen to the input device.  It is not a trigger, but at
least it is just one open and a continuous poll()/select() loop, instead of
constantly doing open()/read()/close() on a sysfs attribute.

I am quite fed up with the incompleteness of the LED interface right now to
continue coding the thinkpad-acpi LED sysfs conversion. I might as well look
into what is needed to make the sysfs attributes respond to poll().  No
promises, though.

> So, for everyone else, when you shut off your wireless, your wireless
> interface and routes are still up (going nowhere) until you remove them?

Yes.  For Intel radios, the radio chip powers off (or blocks) and the MAC
chip remains up and running: the interface remains up as if nothing
happened, but absolutely no traffic goes in or out.

That said, I usually down the interfaces and remove the device driver
modules for stuff I am not using when on battery, because the kernel powers
down or deactivates a lot of stuff when we do that, and that saves a
noticeable ammount of power.

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