public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Ketrenos <jketreno-b5Z7lJ3WibVrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
To: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Borislav Deianov
	<borislav-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	ACPI Developers
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	linux-thinkpad-l7BEYHA5S10i5T99jlK1Sh2eb7JE58TQ@public.gmane.org,
	ipw2100-devel List
	<ipw2100-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [Ipw2100-devel] Re: ibm-acpi-0.3
Date: Wed, 18 Aug 2004 10:27:24 -0500	[thread overview]
Message-ID: <4123755C.1010503@linux.jf.intel.com> (raw)
In-Reply-To: <1092807746.25902.155.camel@dhcppc4>

Len Brown wrote:

>>http://bkernel.sf.net/tmp/ibm-acpi-0.3.tar.gz
>>    
>>
>
>The radio hot key sends an ACPI event,
>and the acpid example calls this radio.sh:
>
>#!/bin/bash
>
>if ! /sbin/rmmod ipw2100; then
>        /sbin/service network restart
>fi
>
>
>Does this means that the button press magically changed
>the state of the radio in hardware?  I didn't see any
>processing inside the driver to do that.
>  
>
The laptop might not actually have any RF switch circuitry to signal the 
GPIO pin -- so on detection of keypress, it fully removes and reloads 
the module (which will have the result of powering off/on the radio with 
the side effect of loading/unloading any modules  and services also 
listed in the network service)

As of 0.53 (since the proc entries are all broken in 0.52) the script 
could be changed to do something more along these lines (until we change 
from proc to sysfs and from strings to ints):

#!/bin/sh
if grep -q disabled /proc/net/ipw2100/eth1/state; then
    echo 0 > /proc/net/ipw2100/eth1/state
else
    echo 1 > /proc/net/ipw2100/eth1/state
fi

The above will check the state of the RF kill switch.  If the radio is 
disabled, it enables it (by turning off the kill state), etc.  The link 
state will toggle based on whether the device is associated -- and that 
is likely what the various service scripts should be tied to (vs. 
whether or not the module is loaded)

James



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

  parent reply	other threads:[~2004-08-18 15:27 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10  8:08 ibm-acpi-0.1 Borislav Deianov
2004-08-10 10:18 ` ibm-acpi-0.1 Paul Ionescu
2004-08-10 11:37   ` ibm-acpi-0.1 Paul Ionescu
2004-08-10 23:11     ` ibm-acpi-0.1 Borislav Deianov
     [not found]       ` <20040810231129.GN28939-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-10 23:32         ` ibm-acpi-0.1 Karol Kozimor
2004-08-11  0:33           ` Paul Ionescu
     [not found]             ` <pan.2004.08.11.00.33.03.494809-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
2004-08-11  7:47               ` Karol Kozimor
2004-08-11  9:44                 ` Paul Ionescu
2004-08-14  5:34                 ` ibm-acpi-0.1 Borislav Deianov
     [not found]                   ` <20040814053410.GN20883-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-14 13:36                     ` ibm-acpi-0.1 Karol Kozimor
2004-08-14 14:34                   ` ibm-acpi-0.1 Paul Ionescu
     [not found]                     ` <pan.2004.08.14.14.34.33.639754-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
2004-08-14 15:09                       ` ibm-acpi-0.1 Takanori Watanabe
     [not found]                         ` <200408141509.i7EF9v9K083464-QgXWv67w4UhH1774QXjzbtBPR1lH4CV8@public.gmane.org>
2004-08-14 15:20                           ` Paul Ionescu
     [not found]                             ` <20040814152051.54002.qmail-k4S4SYk0aM6A/QwVtaZbd3CJp6faPEW9@public.gmane.org>
2004-08-14 15:36                               ` Takanori Watanabe
2004-08-14 21:23                                 ` ibm-acpi-0.1 Borislav Deianov
     [not found]           ` <20040810233238.GB16896-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2004-08-11  1:21             ` ibm-acpi-0.1 Borislav Deianov
     [not found]               ` <20040811012143.GO28939-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-11  7:30                 ` Karol Kozimor
2004-08-11  0:48       ` ibm-acpi-0.1 Paul Ionescu
2004-08-10 11:49   ` ibm-acpi-0.1 Paul Ionescu
     [not found]     ` <pan.2004.08.10.11.49.38.39080-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
2004-08-10 11:45       ` ibm-acpi-0.1 Alan Cox
     [not found]         ` <1092138355.16885.11.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-08-10 12:55           ` Paul Ionescu
     [not found]             ` <20040810125506.38235.qmail-WT+Uy+Sd+T+A/QwVtaZbd3CJp6faPEW9@public.gmane.org>
2004-08-10 13:18               ` Alan Cox
     [not found]                 ` <1092143931.16979.19.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-08-10 14:40                   ` Paul Ionescu
     [not found] ` <20040810080826.GD28939-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-10  8:43   ` ibm-acpi-0.1 Michael Wahlbrink
2004-08-10  9:51     ` ibm-acpi-0.1 Borislav Deianov
     [not found]       ` <20040810095133.GA16382-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-10 10:52         ` ibm-acpi-0.1 Michael Wahlbrink
2004-08-10 11:20           ` Paul Ionescu
2004-08-10 10:43   ` ibm-acpi-0.1 Matthew Garrett
2004-08-11  1:01 ` ibm-acpi-0.1 Paul Ionescu
     [not found]   ` <pan.2004.08.11.01.01.25.610270-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
2004-08-11  1:44     ` ibm-acpi-0.1 Erik Tews
2004-08-11  9:38       ` Paul Ionescu
     [not found]         ` <pan.2004.08.11.09.38.47.140647-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
2004-08-11 12:16           ` Erik Tews
2004-08-14  5:38   ` ibm-acpi-0.1 Borislav Deianov
2004-08-14 21:12 ` ibm-acpi-0.2 Borislav Deianov
     [not found]   ` <20040814211247.GS20883-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-14 21:15     ` ibm-acpi-0.2 Borislav Deianov
     [not found]       ` <20040814211541.GT20883-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-14 23:40         ` R31 Bernd Schubert
2004-08-15  8:19     ` [ltp] ibm-acpi-0.2 Dax Kelson
2004-08-15  8:47       ` ibm-acpi-0.2 Borislav Deianov
2004-08-15  9:48       ` [ltp] ibm-acpi-0.2 Daniel Pittman
2004-08-15 14:41     ` hotkey/video framework [was: ibm-acpi-0.2] Hiroshi Miura
     [not found]       ` <873c2obh0l.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-17  7:23         ` Borislav Deianov
2004-08-17  9:19   ` ibm-acpi-0.3 Borislav Deianov
2004-08-10  8:24     ` ibm-acpi-0.1 Li, Shaohua
     [not found]       ` <B44D37711ED29844BEA67908EAF36F03860DC2-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-10  8:38         ` ibm-acpi-0.1 Borislav Deianov
     [not found]           ` <20040810083807.GF28939-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-10  9:19             ` ibm-acpi-0.1 Takanori Watanabe
     [not found]               ` <200408100919.SAA19847-yzSWc4HAx5xL9jVzuh4AOg@public.gmane.org>
2004-08-10  9:45                 ` ibm-acpi-0.1 Borislav Deianov
2004-08-18  5:09             ` ibm-acpi-0.1 Len Brown
2004-09-16 10:57               ` ibm-acpi-0.1 Borislav Deianov
2004-08-17 10:15     ` ibm-acpi-0.3 Paul Ionescu
     [not found]     ` <20040817091921.GI20883-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-17 23:22       ` ibm-acpi-0.3 Matthew Garrett
2004-08-18  5:41       ` ibm-acpi-0.3 Len Brown
2004-08-18  5:42       ` ibm-acpi-0.3 Len Brown
2004-08-18 13:23         ` [Ipw2100-devel] Re: [ACPI] ibm-acpi-0.3 Henrik Brix Andersen
     [not found]           ` <1092835382.11535.6.camel-7g89Hwo0MwsWlyYapE9R8Q@public.gmane.org>
2004-08-18 13:38             ` [Ipw2100-devel] ibm-acpi-0.3 Len Brown
2004-08-18 15:27         ` James Ketrenos [this message]
     [not found]           ` <4123755C.1010503-b5Z7lJ3WibVrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2004-08-18 20:21             ` Matthew Garrett
2004-08-20 14:28     ` ibm-acpi-0.3 Vincent Touquet

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=4123755C.1010503@linux.jf.intel.com \
    --to=jketreno-b5z7lj3wibvrdx17cpfasdbpr1lh4cv8@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=borislav-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=ipw2100-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-thinkpad-l7BEYHA5S10i5T99jlK1Sh2eb7JE58TQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox