[oe] Fwd: [oe-commits] org.oe.dev apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.

Paul Sokolovsky pmiscml at gmail.com
Thu Jan 17 11:18:41 UTC 2008


How workarounds for specific buggy wifi cards relate to a generic APM
daemon? Or from other side, why everyone should endure more latency
during suspend/resume, with that latency already being >1s, because 5%
or less of those "everyone" use buggy cards?

Please move this workaround to a packages of the buggy driver, or to a
separate package which is RDEPEND'ed by buggy driver. See
bluez-dtl1-workaround_1.0.bb for similar conversion performed.



This is a forwarded message
From: Laibsch commit <openembedded-commits at lists.openembedded.org>
To: openembedded-commits at lists.openembedded.org
Date: Wednesday, January 16, 2008, 3:03:20 PM
Subject: [oe-commits] org.oe.dev apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.

===8<==============Original message text===============
apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.

Author: Laibsch at openembedded.org
Branch: org.openembedded.dev
Revision: 1b0acc215822890043b4d815ac222a6c2e77a15b
ViewMTN: http://monotone.openembedded.org/revision/info/1b0acc215822890043b4d815ac222a6c2e77a15b
Files:
1
packages/apmd/apmd-3.2.2/90-wifi-off
packages/apmd/apmd_3.2.2.bb
Diffs:

#
# mt diff -rad00788d9e2f2f3b509d80f534463b293eecccb5 -r1b0acc215822890043b4d815ac222a6c2e77a15b
#
# 
# 
# add_file "packages/apmd/apmd-3.2.2/90-wifi-off"
#  content [dd2b60322fc6d9136495d7c41f7c1f9e73ed8937]
# 
# patch "packages/apmd/apmd_3.2.2.bb"
#  from [468e386d67d32dcf673ffd462940acdf206daeee]
#    to [7e1be5e159f4f8ae062efeda347fda7056e83fc8]
# 
============================================================
--- packages/apmd/apmd-3.2.2/90-wifi-off        dd2b60322fc6d9136495d7c41f7c1f9e73ed8937
+++ packages/apmd/apmd-3.2.2/90-wifi-off        dd2b60322fc6d9136495d7c41f7c1f9e73ed8937
@@ -0,0 +1,12 @@
+#!/bin/sh
+#Author: Rolf Leggewie
+#
+# turn off wifi cards before suspend so they are fully reloaded upon resume
+
+wifislot = `pccardctl ls|egrep '(hostap|orinoco)'|cut -f 2 -d " "`
+if test $wifislot
+then
+  for slot in $wifislot; do
+    pccardctl eject $wifislot
+  done
+fi
============================================================
--- packages/apmd/apmd_3.2.2.bb	468e386d67d32dcf673ffd462940acdf206daeee
+++ packages/apmd/apmd_3.2.2.bb	7e1be5e159f4f8ae062efeda347fda7056e83fc8
@@ -1,9 +1,9 @@ LICENSE = "GPL"
 DESCRIPTION = "Set of tools for managing notebook power consumption."
 SECTION = "base"
 PRIORITY = "required"
 DEPENDS = "libtool-cross"
 LICENSE = "GPL"
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \
            file://debian.patch;patch=1 \
@@ -12,6 +12,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/
           file://unlinux.patch;patch=1 \
            file://init \
            file://default \
+           file://90-wifi-off \
            file://apmd_proxy \
            file://apmd_proxy.conf"
 
@@ -49,6 +50,7 @@ do_install() {
 
        install -m 4755 ${S}/.libs/apm ${D}${bindir}/apm
        install -m 0755 ${S}/.libs/apmd ${D}${sbindir}/apmd
+       install -m 0755 ${WORKDIR}/90-wifi-off ${D}${sysconfdir}/apm/suspend.d
        install -m 0755 ${WORKDIR}/apmd_proxy ${D}${sysconfdir}/apm/
        install -m 0644 ${WORKDIR}/apmd_proxy.conf ${D}${datadir}/apmd/
        install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/apmd



_______________________________________________
Openembedded-commits mailing list
Openembedded-commits at lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

===8<===========End of original message text===========



-- 
Best regards,
 Paul                            mailto:pmiscml at gmail.com





More information about the Openembedded-devel mailing list