wireless acpi toggle state

Bug #108897 reported by Enrico Schenk
14
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

toggling wireless networking on demand is not possible. the script /etc/acpi/wireless.sh calls the function toggleWirelessStates which is not included in the imported library (works with toggleAllWirelessStates works).

Revision history for this message
George Moody (gmlnx+) wrote :

Changing this to toggleAllWirelessStates allows my laptop to power off. As standard the PC will hibernate but fail to power off, requiring a physical powerdown by the powerbutton. This did not effect or corrupt the resume as long as I waited a few seconds after the text screen output from hibernate stopped scrolling.

Revision history for this message
LeoRochael (leorochael) wrote :

This issue also affects hibernation/suspend, as reported here:
http://blog.paulbetts.org/index.php/2007/02/11/fixing-software-suspend-hibernate-with-uswsusp-in-ubuntu-feisty-and-edgy/#comment-3012
It has tripped me as well

Changed in acpi-support:
status: New → Confirmed
Revision history for this message
Onno Benschop (onno-itmaze) wrote :
Revision history for this message
P (p92) wrote :

other symptom : Fn-F5 does not toggle radio wifi - bluetooth correctly but only bluetooth on thinkpad x40
once /etc/acpi/wireless.sh is fixed Fn-F5 works correctly on thinkpad X40

Revision history for this message
P (p92) wrote :

this is still true on 2008 03 21 !

Revision history for this message
Daniel Hahler (blueyed) wrote :

While I agree that the typo should by fixed, I cannot see where /etc/acpi/wireless.sh gets called automatically (and therefore would cause issues during hibernate).
Do you mean that you call /etc/acpi/wireless.sh manually to toggle the wireless state? Or is it configured somewhere as an action? How is hibernation then affected by this?

There are only (obsolete!?) references in comments:
$ grep -R -E '^[^#].*wireless.sh' /etc/acpi/
/etc/acpi/events/tosh-wireless:action=/etc/acpi/tosh-wireless.sh
/etc/acpi/events/ibm-wireless:action=/etc/acpi/ibm-wireless.sh
/etc/acpi/events/asus-wireless:action=/etc/acpi/asus-wireless.sh

Changed in acpi-support:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
P (p92) wrote :

Well for ibm thinkpad you are true, ibm-wireless.sh is called. And I can say it works perfectly on hardy beta : toggle between wireless, bluetooth, both or none is OK.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Ok, so this bug is about the typo in the wireless.sh script only.

In the attached branch, I've fixed the typo, but maybe the file /etc/acpi/wireless.sh should get removed completely?
Or is it good to have it around for calling it manually?

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
acpi-support (0.112) intrepid; urgency=low

  * acpi-support.docs: Add installation of README
  * control: Add laptop-mode-tools to Suggests
  * Add installation for ac.d/ and battery.d/ directories.
    (LP: #274599)
  * wireless.sh: Fix obviously wrong typo in function call name -
    toggleWirelessStates is a non-existant function
    (LP: #108897, deb #430895)
  * Fix asus brightness hotkeys so lowest/highest brightness recognized
    (LP: #76593)

 -- Bryce Harrington <email address hidden> Thu, 25 Sep 2008 17:50:26 -0700

Changed in acpi-support:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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