isAnyWirelessPoweredOn in state-funcs always returns 1 in karmic

Bug #397698 reported by Jeffrey Baker
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Medium
Unassigned
Karmic
Fix Released
Medium
Unassigned
linux (Ubuntu)
Won't Fix
Medium
Tim Gardner
Karmic
Won't Fix
Medium
Tim Gardner

Bug Description

Binary package hint: acpi-support

The function isAnyWirelessPoweredOn() in /usr/share/acpi-support/state-funcs checks three files: $DEVICE/device/rfkill/rfkill*/state, $DEVICE/device/power/state, and $DEVICE/device/rf_kill. Problem is none of these files exist any more (in Karmic). Using an iwl3945 device I don't see any of these files. Therefore the isAnyWirelessPoweredOn function always returns 1.

Consequently, the acpi event which ought to toggle between bluetooth/wifi states toggles both radios at once. Fixing this -- and i have no idea how -- would also fix bug 395358.

Jeffrey Baker (jwbaker)
tags: added: karmic thinkpad
Revision history for this message
Jeffrey Baker (jwbaker) wrote :

According to Documentation/feature-removal-schedule.txt in the kernel, power/state is deprecated.

Revision history for this message
Steve Langasek (vorlon) wrote :

Opened a new task on the kernel package; it's not clear if the disassociation of the rfkill interface from /sys/class/net/$device/ is deliberate.

If need be, we can update this to look at /sys/class/net/$device/../../ieee80211/phy*/rfkill*/, but any time the kernel folks would like to settle on a stable interface would be just fine with me.

Steve Langasek (vorlon)
Changed in linux (Ubuntu Karmic):
importance: Undecided → Medium
Steve Langasek (vorlon)
Changed in acpi-support (Ubuntu Karmic):
importance: Undecided → Medium
Changed in linux (Ubuntu Karmic):
status: New → Triaged
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Karmic):
assignee: nobody → Tim Gardner (timg-tpi)
status: Triaged → In Progress
Revision history for this message
Tim Gardner (timg-tpi) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

As the linux /sys interface has been stable now for several months, it doesn't appear that the previous symlink is going to be restored. Marking the linux task 'wontfix', and fixing up the acpi-support script.

Changed in linux (Ubuntu Karmic):
status: In Progress → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package acpi-support - 0.129

---------------
acpi-support (0.129) karmic; urgency=low

  * Fix ibm-wireless to use the 'rfkill' tool for toggling bluetooth,
    recommending wireless-tools which currently provides this; and fix
    the isAnyWirelessPoweredOn function for the latest change in the rfkill
    /sys interface, looking under phy80211/ instead of under device/
    (LP: #397698). The toggleAllWirelessStates() function is still broken,
    because the rfkill state on the iwl3945 (at least) is still being done
    in the kernel, so we work around this for now by leaving the function
    inactive.

 -- Steve Langasek <email address hidden> Tue, 13 Oct 2009 01:45:01 -0700

Changed in acpi-support (Ubuntu Karmic):
status: New → Fix Released
Steve Langasek (vorlon)
Changed in linux (Ubuntu):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.