All of lore.kernel.org
 help / color / mirror / Atom feed
From: Borislav Deianov <borislav-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: ibm-acpi-0.1
Date: Fri, 13 Aug 2004 22:34:10 -0700	[thread overview]
Message-ID: <20040814053410.GN20883@aero.ensim.com> (raw)
In-Reply-To: 20040811074717.GB965@hell.org.pl


On Wed, 11 Aug 2004 07:53:03 +0000 (UTC) Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org> wrote:
>
> It's still easier to do that from the notify handler and provide an
> interface to enable / disable the specific bits at user request. By moving
> it completely to userspace you add another layer of redirection which most
> users won't need (as they don't give a damn about writing and configuring
> glue scripts) as opposed to having your driver do as expected for most
> non-developers. As I said, it's easy to come up with an interface to change
> the default behaviour if anybody should wish so.

Come to think of it, that interface already exists. Here is what the
DSDT does for Fn-F5 (I slightly oversimplified in my previous
message):

if a particular bit is set in the mask
	if hot key events are enabled
        	generate ACPI event
else
        invoke default hot key behaviour

This means that if the driver leaves the mask alone on insmod, the
function keys will continue with their default behavior (e.g. Fn-F5
will toggle bluetooth, Fn-F7 will switch the screens, etc.). Once the
mask is set to include the relevant bits, the default behavior is
stopped and instead ACPI events are generated.

Version 0.1 set the mask on insmod for convenience, but the plan is to
not do that in 0.2. If you want hotkey events, after insmod you'll
have to:

echo enable > /proc/acpi/ibm/hotkey
echo ffff > /proc/acpi/ibm/hotkey

How's that?

Boris


-------------------------------------------------------
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-14  5:34 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10  8:08 ibm-acpi-0.1 Borislav Deianov
     [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-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                 ` Borislav Deianov [this message]
     [not found]                   ` <20040814053410.GN20883-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-14 13:36                     ` 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
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-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-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-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
     [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
2004-08-10  8:58 ibm-acpi-0.1 Li, Shaohua
     [not found] ` <B44D37711ED29844BEA67908EAF36F03860E23-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-10  9:21   ` ibm-acpi-0.1 Borislav Deianov

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=20040814053410.GN20883@aero.ensim.com \
    --to=borislav-rn4veauk+akrv+lv9mx5uipxlwaovq5f@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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 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.