All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: Using the OpenEmbedded metadata to build Distributions
	<openembedded-devel@openembedded.org>
Subject: Re: [oe-commits] org.oe.dev apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.
Date: Thu, 17 Jan 2008 13:22:14 +0100	[thread overview]
Message-ID: <478F4876.9030405@student.utwente.nl> (raw)
In-Reply-To: <413710907.20080117131841@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Sokolovsky schreef:
| 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.

IIRC this is a workaround for cards that have their firmware in RAM
(i.e. almost all hostap cards). They loose their firmware on suspend and
our scripts don't reload it. This is actually a bug in our firmware
loading scripts and I think this solution is acceptable medium-term, but
~ longterm we should fix our firmware loading scripts.

regards,

Koen



| This is a forwarded message
| From: Laibsch commit <openembedded-commits@lists.openembedded.org>
| To: openembedded-commits@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@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@lists.openembedded.org
| http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits
|
| ===8<===========End of original message text===========
|
|
|


- --
koen@dominion.kabel.utwente.nl will go go away in december 2007, please
use k.kooi@student.utwente.nl instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHj0h2MkyGM64RGpERAtIcAJ9JUdGF1sA/S91U0LyNNqPTkZ//lgCeP2F9
Dg7wYUW2xM6Vq8rqIr8zuT4=
=+ZmV
-----END PGP SIGNATURE-----



  parent reply	other threads:[~2008-01-17 12:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1JF7vM-0000k1-Mc@linuxtogo.org>
2008-01-17 11:18 ` [oe-commits] org.oe.dev apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664 Paul Sokolovsky
2008-01-17 11:57   ` Bug ohviey1
2008-01-17 12:01   ` [oe-commits] org.oe.dev apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664 Michael 'Mickey' Lauer
2008-01-17 12:22   ` Koen Kooi [this message]
2008-01-17 12:52     ` Paul Sokolovsky
2008-01-17 14:34       ` Rolf Leggewie
2008-01-17 15:09         ` Mike (mwester)
2008-01-17 15:59           ` Paul Sokolovsky
2008-01-17 17:52             ` Mike (mwester)
2008-01-17 15:23         ` Paul Sokolovsky
2008-01-18 17:33           ` Rolf Leggewie
2008-01-19 18:29             ` Paul Sokolovsky
2008-01-21 11:16               ` Rolf Leggewie
2008-01-18 18:28         ` Rolf Leggewie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478F4876.9030405@student.utwente.nl \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.