From phitran@sac.sfbay.sun.com Sun Jan 11 20:01:16 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0C41GFP013074
	for <psarc-ext@sac.sfbay.sun.com>; Sun, 11 Jan 2009 20:01:16 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0C412CG064734;
	Sun, 11 Jan 2009 21:01:16 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDC0090NB63EL00@nwk-avmta-2.sfbay.sun.com>; Sun,
 11 Jan 2009 20:01:15 -0800 (PST)
Received: from dm-sfbay-02.sfbay.sun.com ([129.146.11.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDC00LW0B627D50@nwk-avmta-2.sfbay.sun.com>; Sun,
 11 Jan 2009 20:01:14 -0800 (PST)
Received: from sac.sfbay.sun.com (new-sac.SFBay.Sun.COM [129.146.175.65])
	by dm-sfbay-02.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n0C41DbS046791; Sun, 11 Jan 2009 20:01:13 -0800 (PST)
Received: from sac.sfbay.sun.com (localhost [127.0.0.1])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0C41BSH012287; Sun,
 11 Jan 2009 20:01:11 -0800 (PST)
Received: (from phitran@localhost)
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8/Submit) id n0C41A5b012275; Sun,
 11 Jan 2009 20:01:10 -0800 (PST)
Date: Sun, 11 Jan 2009 20:01:10 -0800 (PST)
From: Phi Tran <phitran@sac.sfbay.sun.com>
Subject: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
To: PSARC-ext@sun.com
Cc: Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
Status: RO
Content-Length: 5561

I am sponsoring this case for Kerry Shu with a requested release binding
of minor.

Phi

Template Version: @(#)sac_nextcase %I% %G% SMI
This information is Copyright 2009 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 Laptop Hotkey Support
    1.2. Name of Document Author/Supplier:
	 Author:  Kerry Shu
    1.3  Date of This Document:
	11 January, 2009
4. Technical Description

ACPI video extensions define generic ACPI methods for brightness
control and display switch control. We've added the ACPI brightness
hotkey support in PSARC/2008/021. The Laptop Hotkey Support case will
add the ACPI display switch hotkey support. (With the integration of
LSARC/2008/519, we can do display switch via user defined hotkey
already.)

Since there is no generic ACPI specification for other hotkeys, most
vendors just define their own specific ACPI based hotkey method. This
case will also add Toshiba specific ACPI hotkey method support for:
1. Fn + ESC: audio mute On/Off
2. Fn + F1: screen lock
3. Fn + F3: suspend to RAM(on S3 capable platform)
4. Fn + F8: wireless LAN On/Off
5. Fn + F9: touchPad On/Off

Other vendor specific hotkey method support can be added in future after
we get the related documentations.

4.1 Details

We'll enhance existing acpi_drv to support the generic ACPI display
switch method and introduce a misc module (acpi_toshiba) for Toshiba
specific ACPI hotkey method to support hotkeys on Toshiba laptops. Other
vendor specific hotkey support can be added one by one in different misc
module(acpi_xxxx) in the future. Generally, vendor specific method also
covers the brightness and display switch control which are defined in
generic ACPI video extensions. In our design, acpi_drv is responsible to
load vendor specific module(s). If there is a vendor specific method
module being loaded successfully, acpi_drv won't enable its ACPI video
extension support and all the hotkeys including brightness and display
switch will be handled by vendor specific module. Otherwise, acpi_drv
enables its ACPI video extension support to handle just brightness and
display switch hotkey.

   -------------     ---------------     ------------------
   | audio mute| ... | screen lock | ... | Suspend to RAM |
   -------------     ---------------     ------------------
        ^                   ^                    ^
        |                   |                    |
        |                   |                    |
 _____________________________________________________________
 |Gnome                                                       |
 |                 Keyboard Shortcuts Application             |
 |                                                            |
 |___________________________________________________________ |
                               ^key grabbing and keysym translation
                               |
                               |
 _____________________________________________________________
 |Xserver (LSARC XXXX)         |                              |
 |                             | post key to input queue      |
 |                             |  (keycode + modifier)        |
 |                     Xserver hotkey driver                  |
 |                             | receive hotkey sysevents     |
 |___________________________________________________________ |
                               ^hotey sysevent
user land                      |
-------------------------------|-------------------------------
kernel                         |
                               |
 _____________________________________________________________
 |ACPI hotkey driver                                          |
 |  ------------       ---------------       -------------    |
 |  | acpi_drv |      | acpi_toshiba |  ...  | acpi_xxxx |    |
 |  ------------       ---------------       -------------    |
 |____________________________________________________________|
                               ^acpi event
                               |
                               |
                         Hotkey Pressing

                 Figure 1 hotkey architecture

Pressing laptop hotkey(it is "Fn + ?" on Toshiba laptops. Other laptops
may be different.) will generate ACPI event to ACPI hotkey driver
module. The hotkey driver module will then generate a sysevent to notify
Xserver. Xserver receives hotkey sysevents and translates the sysevent
to a special key input with (keycode + modifier) and then posts the key
to the input queue. Gnome Keyboard Shortcuts Application grabs the key
and then takes action to call the corresponding application.

The changes in Xserver for hotkey support will be covered with a
LSARC case.


4.2 Interface

sysevent
---------
Interface level: Project Private

The EC_ACPIEV class defined in PSARC/2006/601 Battery Project will
be extended to include below subclasses:

ESC_ACPIEV_DISPLAY_SWITCH
ESC_ACPIEV_SCREEN_LOCK
ESC_ACPIEV_SUSPEND_TO_RAM
ESC_ACPIEV_AUDIO_MUTE
ESC_ACPIEV_WLAN
ESC_ACPIEV_TOUCHPAD

4.3 References
LSARC/2008/519 Hot Key Based Display Device Switch (dispswitch)
PSARC/2006/601 Battery Project
PSARC/2008/021 HAL Power Management Support


6. Resources and Schedule
    6.4. Steering Committee requested information
       6.4.1. Consolidation C-team Name:
        ON
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		ON
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open


From Darren.Moffat@Sun.COM Sun Jan 11 21:52:54 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0C5qsN7020448
	for <psarc-ext@sac.sfbay.sun.com>; Sun, 11 Jan 2009 21:52:54 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0C5qsmN024879;
	Sun, 11 Jan 2009 21:52:54 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDC00A01GC6UC00@nwk-avmta-1.sfbay.Sun.COM>; Sun,
 11 Jan 2009 21:52:54 -0800 (PST)
Received: from gmp-eb-inf-1.sun.com ([192.18.6.21])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDC00IBHGC4QWC0@nwk-avmta-1.sfbay.Sun.COM>; Sun,
 11 Jan 2009 21:52:53 -0800 (PST)
Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11])
	by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0C5qqk1023574; Mon,
 12 Jan 2009 05:52:52 +0000 (GMT)
Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDC00301G5W4600@fe-emea-09.sun.com>
 (original mail from Darren.Moffat@Sun.COM); Mon,
 12 Jan 2009 05:52:52 +0000 (GMT)
Received: from [129.156.173.21] by fe-emea-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDC004RYGC3TQ10@fe-emea-09.sun.com>; Mon,
 12 Jan 2009 05:52:52 +0000 (GMT)
Date: Mon, 12 Jan 2009 05:52:51 +0000
From: Darren J Moffat <Darren.Moffat@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
Sender: Darren.Moffat@Sun.COM
To: Phi Tran <phitran@sac.sfbay.sun.com>
Cc: PSARC-ext@Sun.COM, Kerry.Shu@Sun.COM, laptop-hotkeys-iteam@Sun.COM
Message-id: <496ADAB3.5070906@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
User-Agent: Thunderbird 2.0.0.18 (X11/20081201)
Status: RO
Content-Length: 330

How does acpi_drv determine which vendor specific module to load ?  What 
is the guidance for naming vendor modules ?  While it might hold true 
for Toshiba models that one module serves all current BIOS/ACPI what 
about other vendors where multiple different systems have completely 
different requirements ?

--
Darren J Moffat

From Kerry.Shu@sun.com Sun Jan 11 22:20:28 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0C6KS6f021113
	for <psarc-ext@sac.sfbay.sun.com>; Sun, 11 Jan 2009 22:20:28 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0C6KQ1S005633;
	Sun, 11 Jan 2009 22:20:27 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDC00J19HM3RL00@nwk-avmta-2.sfbay.sun.com>; Sun,
 11 Jan 2009 22:20:27 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDC00LOAHM37HB0@nwk-avmta-2.sfbay.sun.com>; Sun,
 11 Jan 2009 22:20:27 -0800 (PST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0C6KQQi021585; Mon,
 12 Jan 2009 06:20:26 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDC00101HH36C00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Sun, 11 Jan 2009 23:20:26 -0700 (MST)
Received: from [76.95.36.206] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDC00F51HM1MJ30@mail-amer.sun.com>; Sun,
 11 Jan 2009 23:20:26 -0700 (MST)
Date: Sun, 11 Jan 2009 22:20:27 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496ADAB3.5070906@Sun.COM>
Sender: Kerry.Shu@sun.com
To: Darren J Moffat <Darren.Moffat@sun.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <496AE12B.2030003@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
Status: RO
Content-Length: 878



Darren J Moffat wrote:
> How does acpi_drv determine which vendor specific module to load ?  What 

acpi_drv will try to load all known vendor specific modules. Once one
module is loaded successfully, it's believed a vendor specific module
is found and function.

> is the guidance for naming vendor modules ?  While it might hold true 

The guidance is 'acpi_ + vendor name'. For example, acpi_toshiba,
acpi_dell, acpi_lenovo, etc.

> for Toshiba models that one module serves all current BIOS/ACPI what 
> about other vendors where multiple different systems have completely 
> different requirements ?

I did a research on other vendors' hotkey implementation, they are
either based on ACPI or they can generate scan code like other normal
key. For the first case, acpi_xxxx can handle;  For the second case,
they can be handled by current keyboard drivers.

Thanks,
Kerry

From carlsonj@phorcys.east.sun.com Mon Jan 12 05:30:25 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CDUOD7002857
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 05:30:24 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CDUJMq018129;
	Mon, 12 Jan 2009 13:30:20 GMT
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD002091IIY700@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 06:30:18 -0700 (MST)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00LFO1IH3F20@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 06:30:17 -0700 (MST)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n0CDUGcG022105; Mon,
 12 Jan 2009 08:30:16 -0500 (EST)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n0CDUGIX022102; Mon,
 12 Jan 2009 08:30:16 -0500 (EST)
Date: Mon, 12 Jan 2009 08:30:16 -0500
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <496AE12B.2030003@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <18795.17896.562807.896342@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
Status: RO
Content-Length: 814

Kerry Shu writes:
> 
> 
> Darren J Moffat wrote:
> > How does acpi_drv determine which vendor specific module to load ?  What 
> 
> acpi_drv will try to load all known vendor specific modules. Once one
> module is loaded successfully, it's believed a vendor specific module
> is found and function.

How exactly does the system know which module works on a given system?

Are these modules expected to test for platform compatibility by
probing around in the module's _init(9E) function?

Or are users supposed to determine which module is right for their
system and install only that one?

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From Nicolas.Williams@sun.com Mon Jan 12 08:28:10 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CGSAQm023814
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 08:28:10 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CGS3lN025317;
	Mon, 12 Jan 2009 08:28:08 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00C019QVSE00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 08:28:07 -0800 (PST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD006419QVM3E0@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 08:28:07 -0800 (PST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CGQxd5009767;
 Mon, 12 Jan 2009 10:26:59 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CGQxoI009766; Mon,
 12 Jan 2009 10:26:59 -0600 (CST)
Date: Mon, 12 Jan 2009 10:26:59 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
To: Phi Tran <phitran@sac.sfbay.sun.com>
Cc: PSARC-ext@sun.com, Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <20090112162659.GD6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 1112

On Sun, Jan 11, 2009 at 08:01:10PM -0800, Phi Tran wrote:
> Since there is no generic ACPI specification for other hotkeys, most
> vendors just define their own specific ACPI based hotkey method. This
> case will also add Toshiba specific ACPI hotkey method support for:
> 1. Fn + ESC: audio mute On/Off
> 2. Fn + F1: screen lock
> 3. Fn + F3: suspend to RAM(on S3 capable platform)
> 4. Fn + F8: wireless LAN On/Off
> 5. Fn + F9: touchPad On/Off
> 
> Other vendor specific hotkey method support can be added in future after
> we get the related documentations.

Would it be possible to let users create their own set of hotkeys?  Even
if the hotkeys are burned into the HW, it'd be nice to be able to let
the user input each one and assign a symbol to each.  This would be a
good workaround for lack of support for a specific laptop.

At base what I'm asking for is that it be possible to provide a list of
hotkeys and their symbolic mappings via a method other than an ELF
kernel module -- a text file, say, read at boot time or at ttymon/Xorg
start time (so the parsing could be done in user-land).

Nico
-- 

From Darren.Kenny@sun.com Mon Jan 12 08:35:28 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CGZRum023892
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 08:35:27 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CGZKXL007697;
	Tue, 13 Jan 2009 00:35:25 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00L1TA30EI00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 09:35:24 -0700 (MST)
Received: from gmp-eb-inf-2.sun.com ([192.18.6.24])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00LPOA2Z3DC0@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 09:35:23 -0700 (MST)
Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10])
	by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CGZMHO016938; Mon,
 12 Jan 2009 16:35:22 +0000 (GMT)
Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD001019555G00@fe-emea-10.sun.com>
 (original mail from Darren.Kenny@Sun.COM); Mon,
 12 Jan 2009 16:35:22 +0000 (GMT)
Received: from [192.168.1.3] ([86.42.214.118])
 by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28
 2007)) with ESMTPSA id <0KDD00HULA2QCP60@fe-emea-10.sun.com>; Mon,
 12 Jan 2009 16:35:15 +0000 (GMT)
Date: Mon, 12 Jan 2009 16:35:14 +0000
From: Darren Kenny <Darren.Kenny@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <20090112162659.GD6457@Sun.COM>
Sender: Darren.Kenny@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com, Kerry.Shu@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <496B7142.5000308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.18 (X11/20081215)
Status: RO
Content-Length: 1740

A similar mechanism was provided using hal/libhal on Linux, and there was quite
a bit of traffic on the hal aliases at freedesktop.org to create patches for
such keys from people who had unsupported laptops.

I'm not saying that hal is the right place to do it, I believe they have changed
this again, but it did help in gaining feedback and quickly adding support for
new laptop types.

So if this was made easy, it wouldn't just provide a w/around, but would also
allow users to log bugs/defects with a diff that could be used to patch our
sources ultimately.

Darren.

Nicolas Williams wrote:
> On Sun, Jan 11, 2009 at 08:01:10PM -0800, Phi Tran wrote:
>> Since there is no generic ACPI specification for other hotkeys, most
>> vendors just define their own specific ACPI based hotkey method. This
>> case will also add Toshiba specific ACPI hotkey method support for:
>> 1. Fn + ESC: audio mute On/Off
>> 2. Fn + F1: screen lock
>> 3. Fn + F3: suspend to RAM(on S3 capable platform)
>> 4. Fn + F8: wireless LAN On/Off
>> 5. Fn + F9: touchPad On/Off
>>
>> Other vendor specific hotkey method support can be added in future after
>> we get the related documentations.
> 
> Would it be possible to let users create their own set of hotkeys?  Even
> if the hotkeys are burned into the HW, it'd be nice to be able to let
> the user input each one and assign a symbol to each.  This would be a
> good workaround for lack of support for a specific laptop.
> 
> At base what I'm asking for is that it be possible to provide a list of
> hotkeys and their symbolic mappings via a method other than an ELF
> kernel module -- a text file, say, read at boot time or at ttymon/Xorg
> start time (so the parsing could be done in user-land).
> 
> Nico

From casper@holland.sun.com Mon Jan 12 08:43:13 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CGhDbp024194
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 08:43:13 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CGh49f023799;
	Mon, 12 Jan 2009 16:43:12 GMT
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00M21AFZ5N00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 09:43:11 -0700 (MST)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00L70AFY3VD0@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 09:43:11 -0700 (MST)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n0CGh76h046188; Mon, 12 Jan 2009 16:43:07 +0000 (GMT)
Date: Mon, 12 Jan 2009 17:43:07 +0100
From: Casper.Dik@sun.com
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B7142.5000308@Sun.COM>
Sender: casper@holland.sun.com
To: Darren Kenny <Darren.Kenny@sun.com>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
Status: RO
Content-Length: 594


>A similar mechanism was provided using hal/libhal on Linux, and there was quite
>a bit of traffic on the hal aliases at freedesktop.org to create patches for
>such keys from people who had unsupported laptops.

In many cases, the keys are just "keyboard keys" and they should be
handled through the keyboard driver.

In other cases, they are all "ACPI" events.

I would like those to be presented as keyboard keys; and then you can 
easily use GNOME something or other to bind an event to the key press.
(It's not entirely clear to me why you can't bind one event to multiple 
keys)

Casper


From Nicolas.Williams@sun.com Mon Jan 12 08:52:46 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CGqkAp024379
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 08:52:46 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CGqVNL000606;
	Mon, 12 Jan 2009 16:52:43 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00C07AVTM400@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 08:52:41 -0800 (PST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00A27AVSMU40@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 08:52:40 -0800 (PST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CGpWWY009835;
 Mon, 12 Jan 2009 10:51:32 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CGpWJw009834; Mon,
 12 Jan 2009 10:51:32 -0600 (CST)
Date: Mon, 12 Jan 2009 10:51:32 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
To: Casper.Dik@sun.com
Cc: Darren Kenny <Darren.Kenny@sun.com>, Phi Tran <phitran@sac.sfbay.sun.com>,
        PSARC-ext@sun.com, Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <20090112165132.GK6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 462

On Mon, Jan 12, 2009 at 05:43:07PM +0100, Casper.Dik@Sun.COM wrote:
> In many cases, the keys are just "keyboard keys" and they should be
> handled through the keyboard driver.
> 
> In other cases, they are all "ACPI" events.
> 
> I would like those to be presented as keyboard keys; and then you can 
> easily use GNOME something or other to bind an event to the key press.
> (It's not entirely clear to me why you can't bind one event to multiple 
> keys)

+1

From gdamore@Sun.COM Mon Jan 12 08:59:29 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CGxTf4024650
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 08:59:29 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CGxQJC005720;
	Mon, 12 Jan 2009 09:59:28 -0700 (MST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0002JB74I300@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 09:59:28 -0700 (MST)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00LCHB733LE0@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 09:59:28 -0700 (MST)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CGxODS010783;
 Mon, 12 Jan 2009 08:59:24 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00L01B2OEV00@fe-sfbay-09.sun.com> (original mail from gdamore@sun.com)
 ; Mon, 12 Jan 2009 08:59:24 -0800 (PST)
Received: from [10.7.251.172] by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00H3TB6XZC20@fe-sfbay-09.sun.com>; Mon,
 12 Jan 2009 08:59:22 -0800 (PST)
Date: Mon, 12 Jan 2009 08:49:56 -0800
From: "Garrett D'Amore" <gdamore@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
Sender: Garrett.Damore@Sun.COM
To: Casper.Dik@Sun.COM
Cc: Darren Kenny <Darren.Kenny@Sun.COM>,
        Nicolas Williams <Nicolas.Williams@Sun.COM>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@Sun.COM,
        Kerry.Shu@Sun.COM, laptop-hotkeys-iteam@Sun.COM
Message-id: <496B74B4.8010203@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 1365

Casper.Dik@Sun.COM wrote:
>> A similar mechanism was provided using hal/libhal on Linux, and there was quite
>> a bit of traffic on the hal aliases at freedesktop.org to create patches for
>> such keys from people who had unsupported laptops.
>>     
>
> In many cases, the keys are just "keyboard keys" and they should be
> handled through the keyboard driver.
>
> In other cases, they are all "ACPI" events.
>
> I would like those to be presented as keyboard keys; and then you can 
> easily use GNOME something or other to bind an event to the key press.
> (It's not entirely clear to me why you can't bind one event to multiple 
> keys)
>
> Casper
>
>   

I had suggested a similar approach (using keyboard keys) -- actually my 
original suggestion went a step further, and suggested that this module 
could emulate a USB keyboard and generate USB boot-protocol HID keyboard 
events.

However, the problem, as I understand it, is that as rich as the USB 
spec is, there are still some keys that lack standard keyboard defines 
in the USB spec -- e.g. the WLAN toggle key, and LCD backlight control keys.

I think the current plan has the X server generate key events (X11 
events) so that tools like gnome can operate on them the same way as 
ordinary keys.  While not as elegant as a lower level emulation would 
be, I think it is reasonable.

    -- Garrett


From Darren.Kenny@sun.com Mon Jan 12 09:00:10 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CH09rZ024705
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 09:00:10 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CH03au001464;
	Mon, 12 Jan 2009 09:00:09 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0002PB88L900@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 10:00:09 -0700 (MST)
Received: from gmp-eb-inf-2.sun.com ([192.18.6.24])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00LCAB883KF0@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 10:00:08 -0700 (MST)
Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10])
	by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CH0712019912; Mon,
 12 Jan 2009 17:00:07 +0000 (GMT)
Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00201B6Z7E00@fe-emea-09.sun.com>
 (original mail from Darren.Kenny@Sun.COM); Mon,
 12 Jan 2009 17:00:07 +0000 (GMT)
Received: from [192.168.1.3] ([86.42.214.118])
 by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28
 2007)) with ESMTPSA id <0KDD00MP8B80C070@fe-emea-09.sun.com>; Mon,
 12 Jan 2009 17:00:01 +0000 (GMT)
Date: Mon, 12 Jan 2009 16:59:56 +0000
From: Darren Kenny <Darren.Kenny@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
Sender: Darren.Kenny@sun.com
To: Casper.Dik@sun.com
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <496B770C.2040306@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
User-Agent: Thunderbird 2.0.0.18 (X11/20081215)
Status: RO
Content-Length: 960

Casper.Dik@Sun.COM wrote:
>> A similar mechanism was provided using hal/libhal on Linux, and there was quite
>> a bit of traffic on the hal aliases at freedesktop.org to create patches for
>> such keys from people who had unsupported laptops.
> 
> In many cases, the keys are just "keyboard keys" and they should be
> handled through the keyboard driver.
> 
> In other cases, they are all "ACPI" events.
> 
> I would like those to be presented as keyboard keys; and then you can 
> easily use GNOME something or other to bind an event to the key press.
> (It's not entirely clear to me why you can't bind one event to multiple 
> keys)

Totally agree, but I believe (but could be mistaken) that the issue is that
different laptops will generate different ACPI events - so the mapping from ACPI
event to X event isn't consistent, and I think that this is where we would need
a text document to allow people to do this mapping in the field....

Thanks,

Darren.

From Nicolas.Williams@sun.com Mon Jan 12 09:02:56 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CH2t9d024778
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 09:02:56 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CH2O7o024478;
	Tue, 13 Jan 2009 01:02:49 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00E0JBCNKP00@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 09:02:47 -0800 (PST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00A6FBCMMS80@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 09:02:46 -0800 (PST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CH1cpS009857;
 Mon, 12 Jan 2009 11:01:38 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CH1cSo009856; Mon,
 12 Jan 2009 11:01:38 -0600 (CST)
Date: Mon, 12 Jan 2009 11:01:38 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B74B4.8010203@sun.com>
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Casper.Dik@sun.com, Darren Kenny <Darren.Kenny@sun.com>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <20090112170137.GN6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
 <496B74B4.8010203@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 1210

On Mon, Jan 12, 2009 at 08:49:56AM -0800, Garrett D'Amore wrote:
> I had suggested a similar approach (using keyboard keys) -- actually my 
> original suggestion went a step further, and suggested that this module 
> could emulate a USB keyboard and generate USB boot-protocol HID keyboard 
> events.
> 
> However, the problem, as I understand it, is that as rich as the USB 
> spec is, there are still some keys that lack standard keyboard defines 
> in the USB spec -- e.g. the WLAN toggle key, and LCD backlight control keys.
> 
> I think the current plan has the X server generate key events (X11 
> events) so that tools like gnome can operate on them the same way as 
> ordinary keys.  While not as elegant as a lower level emulation would 
> be, I think it is reasonable.

That's fine.  What's NOT fine is having to build a kernel module in
order to provide a set of mappings.  That's really difficult to use.  An
ioctl() that can take a list of mappings provided by a user-land program
that parses a configuration file would be better.  And either way there
needs to be a mechanism by which it is possible to discover what the
actual hotkey keyboard layout is (i.e., "what laptop is this?").

Nico
-- 

From Kerry.Shu@sun.com Mon Jan 12 10:04:41 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CI4edO026554
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:04:40 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CI4XB6021218;
	Mon, 12 Jan 2009 18:04:39 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00M1LE7PPZ00@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:04:37 -0800 (PST)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00HCBE7OKB20@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:04:36 -0800 (PST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CI4abF021475; Mon,
 12 Jan 2009 18:04:36 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00A01CC7A000@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:04:36 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD002X6E6UAH30@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:04:10 -0700 (MST)
Date: Mon, 12 Jan 2009 10:04:14 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <18795.17896.562807.896342@gargle.gargle.HOWL>
Sender: Kerry.Shu@sun.com
To: James Carlson <James.D.Carlson@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496B861E.5050401@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 917



James Carlson wrote:
> Kerry Shu writes:
>>
>> Darren J Moffat wrote:
>>> How does acpi_drv determine which vendor specific module to load ?  What 
>> acpi_drv will try to load all known vendor specific modules. Once one
>> module is loaded successfully, it's believed a vendor specific module
>> is found and function.
> 
> How exactly does the system know which module works on a given system?

If the corresponding ACPI method is found in _init of the vendor
specific module, then _init will return SUCCESS and we know the
module works.

> 
> Are these modules expected to test for platform compatibility by
> probing around in the module's _init(9E) function?

Yes. And per my understanding, the ACPI method string should be unique
per vendor.

> 
> Or are users supposed to determine which module is right for their
> system and install only that one?
> 

No, it's self determined in acpi_drv.

Regards,
Kerry

From Kerry.Shu@Sun.COM Mon Jan 12 10:10:15 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIAFOh026576
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:10:15 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CIACHw029431;
	Mon, 12 Jan 2009 10:10:15 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0071TEH2MX00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:10:14 -0700 (MST)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00175EH2KO50@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:10:14 -0700 (MST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CIAEHh014797; Mon,
 12 Jan 2009 18:10:14 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00D01CI3Y000@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:10:14 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD001X2EGMHA30@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:09:59 -0700 (MST)
Date: Mon, 12 Jan 2009 10:10:06 -0800
From: Kerry Shu <Kerry.Shu@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <20090112162659.GD6457@Sun.COM>
Sender: Kerry.Shu@Sun.COM
To: Nicolas Williams <Nicolas.Williams@Sun.COM>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@Sun.COM,
        laptop-hotkeys-iteam@Sun.COM
Message-id: <496B877E.40705@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1444



Nicolas Williams wrote:
> On Sun, Jan 11, 2009 at 08:01:10PM -0800, Phi Tran wrote:
>> Since there is no generic ACPI specification for other hotkeys, most
>> vendors just define their own specific ACPI based hotkey method. This
>> case will also add Toshiba specific ACPI hotkey method support for:
>> 1. Fn + ESC: audio mute On/Off
>> 2. Fn + F1: screen lock
>> 3. Fn + F3: suspend to RAM(on S3 capable platform)
>> 4. Fn + F8: wireless LAN On/Off
>> 5. Fn + F9: touchPad On/Off
>>
>> Other vendor specific hotkey method support can be added in future after
>> we get the related documentations.
> 
> Would it be possible to let users create their own set of hotkeys?  Even
> if the hotkeys are burned into the HW, it'd be nice to be able to let
> the user input each one and assign a symbol to each.  This would be a
> good workaround for lack of support for a specific laptop.

Yes, it's possible to let users create their own set of hotkeys. That's
why our current design leverages Gnome shortcuts application. Uses can
define their own hotkeys(shortcuts) as usual. This project will make the
dedicated hotkeys also and always work.

Thanks,
Kerry


> 
> At base what I'm asking for is that it be possible to provide a list of
> hotkeys and their symbolic mappings via a method other than an ELF
> kernel module -- a text file, say, read at boot time or at ttymon/Xorg
> start time (so the parsing could be done in user-land).
> 
> Nico

From Kerry.Shu@sun.com Mon Jan 12 10:12:32 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CICWu2026627
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:12:32 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CICUWx057646;
	Mon, 12 Jan 2009 11:12:32 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0000NEKVP400@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:12:31 -0800 (PST)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00H1SEKVKD30@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:12:31 -0800 (PST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CICV7J015956; Mon,
 12 Jan 2009 18:12:31 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00501E4H0H00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:12:31 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD001LIEKTHA40@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:12:30 -0700 (MST)
Date: Mon, 12 Jan 2009 10:12:37 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B7142.5000308@Sun.COM>
Sender: Kerry.Shu@sun.com
To: Darren Kenny <Darren.Kenny@sun.com>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <496B8815.4030603@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1915



Darren Kenny wrote:
> A similar mechanism was provided using hal/libhal on Linux, and there was quite
> a bit of traffic on the hal aliases at freedesktop.org to create patches for
> such keys from people who had unsupported laptops.

Current Gnome shortcuts application is based on standand key grabing 
from X, not HAL.

Regards,
Kerry

> 
> I'm not saying that hal is the right place to do it, I believe they have changed
> this again, but it did help in gaining feedback and quickly adding support for
> new laptop types.
> 
> So if this was made easy, it wouldn't just provide a w/around, but would also
> allow users to log bugs/defects with a diff that could be used to patch our
> sources ultimately.
> 
> Darren.
> 
> Nicolas Williams wrote:
>> On Sun, Jan 11, 2009 at 08:01:10PM -0800, Phi Tran wrote:
>>> Since there is no generic ACPI specification for other hotkeys, most
>>> vendors just define their own specific ACPI based hotkey method. This
>>> case will also add Toshiba specific ACPI hotkey method support for:
>>> 1. Fn + ESC: audio mute On/Off
>>> 2. Fn + F1: screen lock
>>> 3. Fn + F3: suspend to RAM(on S3 capable platform)
>>> 4. Fn + F8: wireless LAN On/Off
>>> 5. Fn + F9: touchPad On/Off
>>>
>>> Other vendor specific hotkey method support can be added in future after
>>> we get the related documentations.
>> Would it be possible to let users create their own set of hotkeys?  Even
>> if the hotkeys are burned into the HW, it'd be nice to be able to let
>> the user input each one and assign a symbol to each.  This would be a
>> good workaround for lack of support for a specific laptop.
>>
>> At base what I'm asking for is that it be possible to provide a list of
>> hotkeys and their symbolic mappings via a method other than an ELF
>> kernel module -- a text file, say, read at boot time or at ttymon/Xorg
>> start time (so the parsing could be done in user-land).
>>
>> Nico

From Nicolas.Williams@sun.com Mon Jan 12 10:15:29 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIFSbx026755
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 10:15:29 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CIFLbZ007802;
	Tue, 13 Jan 2009 02:15:23 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00J0JEPMCA00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:15:22 -0800 (PST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DCMEPLMX60@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:15:21 -0800 (PST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CIECQp009906;
 Mon, 12 Jan 2009 12:14:13 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CIECR1009905; Mon,
 12 Jan 2009 12:14:12 -0600 (CST)
Date: Mon, 12 Jan 2009 12:14:12 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <496B861E.5050401@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <20090112181412.GS6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 717

On Mon, Jan 12, 2009 at 10:04:14AM -0800, Kerry Shu wrote:
> James Carlson wrote:
> >How exactly does the system know which module works on a given system?
> 
> If the corresponding ACPI method is found in _init of the vendor
> specific module, then _init will return SUCCESS and we know the
> module works.

That means the order in which the modules are tried is significant, no?

> >Are these modules expected to test for platform compatibility by
> >probing around in the module's _init(9E) function?
> 
> Yes. And per my understanding, the ACPI method string should be unique
> per vendor.

Still, you're providing a very difficult to use interface for mapping
these hotkeys: a kernel module interface.

Nico
-- 

From Kerry.Shu@Sun.COM Mon Jan 12 10:16:59 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIGxgF026785
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:16:59 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CIGtG8000205;
	Mon, 12 Jan 2009 18:16:58 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0012DES99Z00@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:16:57 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00H2SES7KJ30@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:16:56 -0800 (PST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CIGt6o021162; Mon,
 12 Jan 2009 18:16:55 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00D01CI3Y000@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:16:55 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD001W2ES5HA50@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:16:54 -0700 (MST)
Date: Mon, 12 Jan 2009 10:17:01 -0800
From: Kerry Shu <Kerry.Shu@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B74B4.8010203@sun.com>
Sender: Kerry.Shu@Sun.COM
To: "Garrett D'Amore" <gdamore@Sun.COM>
Cc: Casper.Dik@Sun.COM, Darren Kenny <Darren.Kenny@Sun.COM>,
        Nicolas Williams <Nicolas.Williams@Sun.COM>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@Sun.COM,
        laptop-hotkeys-iteam@Sun.COM
Message-id: <496B891D.40303@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
 <496B74B4.8010203@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1486



Garrett D'Amore wrote:
> Casper.Dik@Sun.COM wrote:
>>> A similar mechanism was provided using hal/libhal on Linux, and there 
>>> was quite
>>> a bit of traffic on the hal aliases at freedesktop.org to create 
>>> patches for
>>> such keys from people who had unsupported laptops.
>>>     
>>
>> In many cases, the keys are just "keyboard keys" and they should be
>> handled through the keyboard driver.
>>
>> In other cases, they are all "ACPI" events.
>>
>> I would like those to be presented as keyboard keys; and then you can 
>> easily use GNOME something or other to bind an event to the key press.
>> (It's not entirely clear to me why you can't bind one event to 
>> multiple keys)
>>
>> Casper
>>
>>   
> 
> I had suggested a similar approach (using keyboard keys) -- actually my 
> original suggestion went a step further, and suggested that this module 
> could emulate a USB keyboard and generate USB boot-protocol HID keyboard 
> events.
> 
> However, the problem, as I understand it, is that as rich as the USB 
> spec is, there are still some keys that lack standard keyboard defines 
> in the USB spec -- e.g. the WLAN toggle key, and LCD backlight control 
> keys.
> 
> I think the current plan has the X server generate key events (X11 
> events) so that tools like gnome can operate on them the same way as 
> ordinary keys.  While not as elegant as a lower level emulation would 
> be, I think it is reasonable.

Garrett, thanks for the reply. :-)

Regards,
Kerry

From Nicolas.Williams@sun.com Mon Jan 12 10:19:36 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIJZAC026807
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 10:19:36 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CIJWia009809;
	Tue, 13 Jan 2009 02:19:34 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0080HEWMJU00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:19:34 -0700 (MST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD0013NEWMKQ50@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:19:34 -0700 (MST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CIIPil009914;
 Mon, 12 Jan 2009 12:18:25 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CIIPND009913; Mon,
 12 Jan 2009 12:18:25 -0600 (CST)
Date: Mon, 12 Jan 2009 12:18:25 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B877E.40705@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <20090112181825.GT6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B877E.40705@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 1196

On Mon, Jan 12, 2009 at 10:10:06AM -0800, Kerry Shu wrote:
> >Would it be possible to let users create their own set of hotkeys?  Even
> >if the hotkeys are burned into the HW, it'd be nice to be able to let
> >the user input each one and assign a symbol to each.  This would be a
> >good workaround for lack of support for a specific laptop.
> 
> Yes, it's possible to let users create their own set of hotkeys. That's
> why our current design leverages Gnome shortcuts application. Uses can
> define their own hotkeys(shortcuts) as usual. This project will make the
> dedicated hotkeys also and always work.

One of us is missing something.

Let's say I've a laptop A but no vendor support, so no ACPI driver that
recognizes the ACPI hotkeys.  In order to use the ACPI hotkeys then I'll
have to: write a kernel module as if I were the vendor.

But if I understand correctly the basic kernel ACPI driver can catch
ACPI hotkeys -- it just doesn't know what to do with them.

So I propose that you provide a *configurable* mapping of ACPI hotkey
IDs to keyboard events.  That way instead of having to write a kernel
module for my unsupported laptop I need only write a little text file.

Nico
-- 

From gdamore@sun.com Mon Jan 12 10:28:34 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CISYAA026897
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:28:34 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CISXRI007524;
	Mon, 12 Jan 2009 10:28:34 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00909FBLG300@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:28:33 -0700 (MST)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD0013DFBKKN50@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:28:32 -0700 (MST)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CISW35024377;
 Mon, 12 Jan 2009 10:28:32 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00601F1KWS00@fe-sfbay-09.sun.com> (original mail from gdamore@sun.com)
 ; Mon, 12 Jan 2009 10:28:32 -0800 (PST)
Received: from [10.7.251.172] by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00KUPFBJCMB0@fe-sfbay-09.sun.com>; Mon,
 12 Jan 2009 10:28:32 -0800 (PST)
Date: Mon, 12 Jan 2009 10:19:04 -0800
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <20090112181412.GS6457@Sun.COM>
Sender: Garrett.Damore@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Kerry Shu <Kerry.Shu@sun.com>, James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496B8998.6030503@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 2115

Nicolas Williams wrote:
> On Mon, Jan 12, 2009 at 10:04:14AM -0800, Kerry Shu wrote:
>   
>> James Carlson wrote:
>>     
>>> How exactly does the system know which module works on a given system?
>>>       
>> If the corresponding ACPI method is found in _init of the vendor
>> specific module, then _init will return SUCCESS and we know the
>> module works.
>>     
>
> That means the order in which the modules are tried is significant, no?
>
>   
>>> Are these modules expected to test for platform compatibility by
>>> probing around in the module's _init(9E) function?
>>>       
>> Yes. And per my understanding, the ACPI method string should be unique
>> per vendor.
>>     
>
> Still, you're providing a very difficult to use interface for mapping
> these hotkeys: a kernel module interface.
>   

I think there's some confusion.

There are three levels of mapping:

1) mapping some arbitrary ACPI event to a system event consumable by 
userland
2) mapping the system event to an X11 key event
3) mapping the X11 key event to an action

The first of these is highly platform-specific, and is what is driven by 
the kernel configuration.  Its not entirely clear to me that a table 
driven approach *could* be used in the general case -- how each BIOS 
enables and delivers ACPI events might be highly vendor specifc.  I 
don't know that this *is* the case, merely postulate that it *might* 
be.  Even if a table driven approach *were* possible, changing the 
configuration would probably require fairly detailed knowledge of the 
platform's BIOS -- well beyond the scope of what one might expect users 
to be able to configure.

The second is an artifact of the implementation, and no user should need 
or want to change it. (Its a simple identity map.)

The third is user configurable today, and will remain so.

So, while I do wish that an easier user configuration were available for 
these ACPI events (the first of those translations), or that the 
industry had standardized a bit more here, the reality is that this 
probably isn't practical, at least not at this point.

    -- Garrett

> Nico
>   


From Kerry.Shu@sun.com Mon Jan 12 10:33:07 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIX7os027030
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:33:07 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CIX2ps003692;
	Mon, 12 Jan 2009 11:33:06 -0700 (MST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00905FJ6UP00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:33:06 -0700 (MST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD0011AFJ5KO70@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:33:05 -0700 (MST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CIX5Qu028993; Mon,
 12 Jan 2009 18:33:05 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00I01F9LWV00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:33:05 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD0012KFIRHAC0@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:32:52 -0700 (MST)
Date: Mon, 12 Jan 2009 10:32:59 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <20090112170137.GN6457@Sun.COM>
Sender: Kerry.Shu@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>,
        Henry Zhao <Henry.Zhao@sun.com>
Cc: "Garrett D'Amore" <gdamore@sun.com>, Casper.Dik@sun.com,
        Darren Kenny <Darren.Kenny@sun.com>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <496B8CDB.7040601@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
 <496B74B4.8010203@sun.com> <20090112170137.GN6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1724



Nicolas Williams wrote:
> On Mon, Jan 12, 2009 at 08:49:56AM -0800, Garrett D'Amore wrote:
>> I had suggested a similar approach (using keyboard keys) -- actually my 
>> original suggestion went a step further, and suggested that this module 
>> could emulate a USB keyboard and generate USB boot-protocol HID keyboard 
>> events.
>>
>> However, the problem, as I understand it, is that as rich as the USB 
>> spec is, there are still some keys that lack standard keyboard defines 
>> in the USB spec -- e.g. the WLAN toggle key, and LCD backlight control keys.
>>
>> I think the current plan has the X server generate key events (X11 
>> events) so that tools like gnome can operate on them the same way as 
>> ordinary keys.  While not as elegant as a lower level emulation would 
>> be, I think it is reasonable.
> 
> That's fine.  What's NOT fine is having to build a kernel module in
> order to provide a set of mappings.  That's really difficult to use.  An
> ioctl() that can take a list of mappings provided by a user-land program
> that parses a configuration file would be better.  And either way there
> needs to be a mechanism by which it is possible to discover what the
> actual hotkey keyboard layout is (i.e., "what laptop is this?").

A kernel module, hotkey driver, is to init and get the hotkey ACPI
events. The key mapping is done in Xserver. Xserver maps each hotkey
with same "keycode + modifier" no matter what laptop is.
For your suggestion, we still need to define different unused keycode
for each hotkey in configuration file. Anyway, per my understanding,
we can hardly find enough unused keycode for them. (Henry can comment
more). And it's also platform dependent.

Regards,
Kerry

> 
> Nico

From Kerry.Shu@sun.com Mon Jan 12 10:36:49 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIam5n027114
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:36:48 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CIakjf008469;
	Mon, 12 Jan 2009 10:36:48 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0041NFPB2200@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:36:47 -0800 (PST)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00H0OFPAKH60@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:36:46 -0800 (PST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CIakUl028195; Mon,
 12 Jan 2009 18:36:46 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00I01F9LWV00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:36:46 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD001I8FP9HAD0@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:36:46 -0700 (MST)
Date: Mon, 12 Jan 2009 10:36:53 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <20090112181412.GS6457@Sun.COM>
Sender: Kerry.Shu@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496B8DC5.1060100@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 959



Nicolas Williams wrote:
> On Mon, Jan 12, 2009 at 10:04:14AM -0800, Kerry Shu wrote:
>> James Carlson wrote:
>>> How exactly does the system know which module works on a given system?
>> If the corresponding ACPI method is found in _init of the vendor
>> specific module, then _init will return SUCCESS and we know the
>> module works.
> 
> That means the order in which the modules are tried is significant, no?

No, it shouldn't. The ACPI method is unique per vendor.

> 
>>> Are these modules expected to test for platform compatibility by
>>> probing around in the module's _init(9E) function?
>> Yes. And per my understanding, the ACPI method string should be unique
>> per vendor.
> 
> Still, you're providing a very difficult to use interface for mapping
> these hotkeys: a kernel module interface.

hotkey key mapping is done is Xserver. Kernel hotkey driver can just get
ACPI event and it doesn't know about keycode etc.

Regards,
Kerry

> 
> Nico

From carlsonj@phorcys.east.sun.com Mon Jan 12 10:41:01 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIf0V5027218
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:41:00 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CIenuq016659;
	Mon, 12 Jan 2009 18:40:57 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00407FW7O900@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:40:55 -0800 (PST)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00HG6FW6KH60@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 10:40:55 -0800 (PST)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n0CIerSO023468; Mon,
 12 Jan 2009 13:40:53 -0500 (EST)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n0CIer6G023465; Mon,
 12 Jan 2009 13:40:53 -0500 (EST)
Date: Mon, 12 Jan 2009 13:40:53 -0500
From: James Carlson <James.D.Carlson@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <496B861E.5050401@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <18795.36533.261864.95194@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
Status: RO
Content-Length: 1574

Kerry Shu writes:
> James Carlson wrote:
> > Kerry Shu writes:
> >>
> >> Darren J Moffat wrote:
> >>> How does acpi_drv determine which vendor specific module to load ?  What 
> >> acpi_drv will try to load all known vendor specific modules. Once one
> >> module is loaded successfully, it's believed a vendor specific module
> >> is found and function.
> > 
> > How exactly does the system know which module works on a given system?
> 
> If the corresponding ACPI method is found in _init of the vendor
> specific module, then _init will return SUCCESS and we know the
> module works.

Do you read the misc/ directories appearing in the kernel's module
search path and load every misc module whose name matches acpi_*, and
expect at most one of them to return 0 from _init()?

> > Are these modules expected to test for platform compatibility by
> > probing around in the module's _init(9E) function?
> 
> Yes. And per my understanding, the ACPI method string should be unique
> per vendor.

OK.  I would think that a safer way to do this would be to have a new
registry in /etc (acpi_modules?) that maps from method string to
module name to be loaded.

But as long as you've tested your search method, and it doesn't cause
undue hardship, and this is the _only_ thing that's likely to be using
it, I guess I don't have a strong feeling about this.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From Nicolas.Williams@sun.com Mon Jan 12 10:45:09 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIj8Us027326
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:45:09 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CIiuHa019277;
	Mon, 12 Jan 2009 18:45:03 GMT
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00L1FG326900@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:45:02 -0800 (PST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DA1G31N890@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:45:02 -0800 (PST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CIhr7L009938;
 Mon, 12 Jan 2009 12:43:53 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CIhrGQ009937; Mon,
 12 Jan 2009 12:43:53 -0600 (CST)
Date: Mon, 12 Jan 2009 12:43:53 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <496B8998.6030503@sun.com>
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Kerry Shu <Kerry.Shu@sun.com>, James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <20090112184352.GW6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 1207

On Mon, Jan 12, 2009 at 10:19:04AM -0800, Garrett D'Amore wrote:
> I think there's some confusion.
> 
> There are three levels of mapping:
> 
> 1) mapping some arbitrary ACPI event to a system event consumable by 
> userland
> 2) mapping the system event to an X11 key event
> 3) mapping the X11 key event to an action

I got that.

> The first of these is highly platform-specific, and is what is driven by 
> the kernel configuration.  Its not entirely clear to me that a table 
> driven approach *could* be used in the general case -- how each BIOS 
> enables and delivers ACPI events might be highly vendor specifc.  I 
> don't know that this *is* the case, merely postulate that it *might* 
> be.  Even if a table driven approach *were* possible, changing the 
> configuration would probably require fairly detailed knowledge of the 
> platform's BIOS -- well beyond the scope of what one might expect users 
> to be able to configure.

I was under the impression that the ACPI event mechanism was generic but
the symbolic assignments were not.  If the event mechanism itself is not
generic, then I agree that support for it will have to come from a
kernel module and cannot be table driven.

Nico
-- 

From Kerry.Shu@sun.com Mon Jan 12 10:47:32 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIlW8Z027395
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:47:32 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CIlR4D018599;
	Mon, 12 Jan 2009 10:47:31 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00L0NG75KU00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:47:29 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DFDG6EN890@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:47:02 -0800 (PST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CIl2BG006149; Mon,
 12 Jan 2009 18:47:02 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00701F8XYX00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:47:02 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD003TRG613AA0@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:46:50 -0700 (MST)
Date: Mon, 12 Jan 2009 10:46:57 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <20090112181825.GT6457@Sun.COM>
Sender: Kerry.Shu@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <496B9021.70106@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B877E.40705@sun.com>
 <20090112181825.GT6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1506



Nicolas Williams wrote:
> On Mon, Jan 12, 2009 at 10:10:06AM -0800, Kerry Shu wrote:
>>> Would it be possible to let users create their own set of hotkeys?  Even
>>> if the hotkeys are burned into the HW, it'd be nice to be able to let
>>> the user input each one and assign a symbol to each.  This would be a
>>> good workaround for lack of support for a specific laptop.
>> Yes, it's possible to let users create their own set of hotkeys. That's
>> why our current design leverages Gnome shortcuts application. Uses can
>> define their own hotkeys(shortcuts) as usual. This project will make the
>> dedicated hotkeys also and always work.
> 
> One of us is missing something.
> 
> Let's say I've a laptop A but no vendor support, so no ACPI driver that
> recognizes the ACPI hotkeys.  In order to use the ACPI hotkeys then I'll
> have to: write a kernel module as if I were the vendor.
> 
> But if I understand correctly the basic kernel ACPI driver can catch
> ACPI hotkeys -- it just doesn't know what to do with them.

There is no basic kernel ACPI driver which can catch hotkey ACPI events
for all laptops of different vendor.
We need to have different corresponding hotkey driver to initialize the
hotkey method and catch the ACPI notify per vendor.

Regards,
Kerry

> 
> So I propose that you provide a *configurable* mapping of ACPI hotkey
> IDs to keyboard events.  That way instead of having to write a kernel
> module for my unsupported laptop I need only write a little text file.
> 
> Nico

From Kerry.Shu@sun.com Mon Jan 12 10:48:32 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CImVq3027503
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 10:48:31 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CImPqW025838;
	Tue, 13 Jan 2009 02:48:29 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00B1PG8QMC00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:48:26 -0700 (MST)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD0012BG87KO80@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 11:48:07 -0700 (MST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CIm7R6013532; Mon,
 12 Jan 2009 18:48:07 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00I01F9LWV00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 11:48:07 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD001HMG7THAH0@mail-amer.sun.com>; Mon,
 12 Jan 2009 11:47:53 -0700 (MST)
Date: Mon, 12 Jan 2009 10:48:01 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <20090112184352.GW6457@Sun.COM>
Sender: Kerry.Shu@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: "Garrett D'Amore" <gdamore@sun.com>,
        James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496B9061.7030907@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
 <20090112184352.GW6457@Sun.COM>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1340



Nicolas Williams wrote:
> On Mon, Jan 12, 2009 at 10:19:04AM -0800, Garrett D'Amore wrote:
>> I think there's some confusion.
>>
>> There are three levels of mapping:
>>
>> 1) mapping some arbitrary ACPI event to a system event consumable by 
>> userland
>> 2) mapping the system event to an X11 key event
>> 3) mapping the X11 key event to an action
> 
> I got that.
> 
>> The first of these is highly platform-specific, and is what is driven by 
>> the kernel configuration.  Its not entirely clear to me that a table 
>> driven approach *could* be used in the general case -- how each BIOS 
>> enables and delivers ACPI events might be highly vendor specifc.  I 
>> don't know that this *is* the case, merely postulate that it *might* 
>> be.  Even if a table driven approach *were* possible, changing the 
>> configuration would probably require fairly detailed knowledge of the 
>> platform's BIOS -- well beyond the scope of what one might expect users 
>> to be able to configure.
> 
> I was under the impression that the ACPI event mechanism was generic but
> the symbolic assignments were not.  If the event mechanism itself is not
> generic, then I agree that support for it will have to come from a
> kernel module and cannot be table driven.

Yes, the event mechanism itself is not generic. Thanks!

Regards,
Kerry

> 
> Nico

From Nicolas.Williams@sun.com Mon Jan 12 10:53:40 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CIreY7027881
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 10:53:40 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CIrbAg016163;
	Mon, 12 Jan 2009 10:53:38 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00L0JGHEXS00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:53:38 -0800 (PST)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DAPGHDN180@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 10:53:37 -0800 (PST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n0CIqU8h009952;
 Mon, 12 Jan 2009 12:52:30 -0600 (CST)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n0CIqUWN009951; Mon,
 12 Jan 2009 12:52:30 -0600 (CST)
Date: Mon, 12 Jan 2009 12:52:30 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B9021.70106@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com
Message-id: <20090112185230.GY6457@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B877E.40705@sun.com>
 <20090112181825.GT6457@Sun.COM> <496B9021.70106@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 481

On Mon, Jan 12, 2009 at 10:46:57AM -0800, Kerry Shu wrote:
> Nicolas Williams wrote:
> >But if I understand correctly the basic kernel ACPI driver can catch
> >ACPI hotkeys -- it just doesn't know what to do with them.
> 
> There is no basic kernel ACPI driver which can catch hotkey ACPI events
> for all laptops of different vendor.
> We need to have different corresponding hotkey driver to initialize the
> hotkey method and catch the ACPI notify per vendor.

Got it.  Thanks!

From Kerry.Shu@sun.com Mon Jan 12 11:01:45 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CJ1its028665
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 11:01:44 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0CJ1f5h000610;
	Mon, 12 Jan 2009 19:01:43 GMT
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00M05GUUFX00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 11:01:42 -0800 (PST)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DHHGUTN8A0@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 11:01:41 -0800 (PST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CJ1f98010860; Mon,
 12 Jan 2009 19:01:41 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00601E6VP000@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 12:01:41 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD002QAGUDFT20@mail-amer.sun.com>; Mon,
 12 Jan 2009 12:01:25 -0700 (MST)
Date: Mon, 12 Jan 2009 11:01:33 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout	01/16/2009]
In-reply-to: <18795.36533.261864.95194@gargle.gargle.HOWL>
Sender: Kerry.Shu@sun.com
To: James Carlson <James.D.Carlson@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496B938D.7040800@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1774



James Carlson wrote:
> Kerry Shu writes:
>> James Carlson wrote:
>>> Kerry Shu writes:
>>>> Darren J Moffat wrote:
>>>>> How does acpi_drv determine which vendor specific module to load ?  What 
>>>> acpi_drv will try to load all known vendor specific modules. Once one
>>>> module is loaded successfully, it's believed a vendor specific module
>>>> is found and function.
>>> How exactly does the system know which module works on a given system?
>> If the corresponding ACPI method is found in _init of the vendor
>> specific module, then _init will return SUCCESS and we know the
>> module works.
> 
> Do you read the misc/ directories appearing in the kernel's module
> search path and load every misc module whose name matches acpi_*, and
> expect at most one of them to return 0 from _init()?

My current implementation is to define a static array with known vendor
specific modules name(currently only acpi_toshiba) in acpi_drv.
Yes, it expects at most one of them to return 0 from _init().

> 
>>> Are these modules expected to test for platform compatibility by
>>> probing around in the module's _init(9E) function?
>> Yes. And per my understanding, the ACPI method string should be unique
>> per vendor.
> 
> OK.  I would think that a safer way to do this would be to have a new
> registry in /etc (acpi_modules?) that maps from method string to
> module name to be loaded.
> 
> But as long as you've tested your search method, and it doesn't cause
> undue hardship, and this is the _only_ thing that's likely to be using
> it, I guess I don't have a strong feeling about this.
> 

Got it. If I do find conflicts in our testing, I'll take your
suggestion. Thanks! Btw, for Toshiba, we are searching for "TOS6208" and
"TOS1900" in ACPI namespace.

Thanks,
Kerry

From carlsonj@phorcys.east.sun.com Mon Jan 12 11:19:33 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CJJXxu029727
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 11:19:33 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CJJNsE034005;
	Mon, 12 Jan 2009 12:19:30 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00A05HOE8100@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 11:19:26 -0800 (PST)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00HL3HODK770@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 11:19:26 -0800 (PST)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n0CJJOe2023823; Mon,
 12 Jan 2009 14:19:24 -0500 (EST)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n0CJJOv2023820; Mon,
 12 Jan 2009 14:19:24 -0500 (EST)
Date: Mon, 12 Jan 2009 14:19:24 -0500
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <496B938D.7040800@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: laptop-hotkeys-iteam@sun.com, PSARC-ext@sun.com,
        Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <18795.38844.898816.546129@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
Status: RO
Content-Length: 882

Kerry Shu writes:
> My current implementation is to define a static array with known vendor
> specific modules name(currently only acpi_toshiba) in acpi_drv.
> Yes, it expects at most one of them to return 0 from _init().

OK; thanks.  That's what I was looking for.

> Got it. If I do find conflicts in our testing, I'll take your
> suggestion. Thanks! Btw, for Toshiba, we are searching for "TOS6208" and
> "TOS1900" in ACPI namespace.

But no TOS6200?

(I think Linux is trying to unify the various naming schemes,
including ACPI modules, PCI IDs, and others, through lkddb.  It'd be
nice if we could do something similar rather than having a new wheel.)

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From Kerry.Shu@sun.com Mon Jan 12 11:39:50 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CJdo5L000413
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 11:39:50 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CJdo4i047265;
	Mon, 12 Jan 2009 12:39:50 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00105IMDGM00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 11:39:49 -0800 (PST)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DELIMDMTC0@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 11:39:49 -0800 (PST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CJdnL0009261; Mon,
 12 Jan 2009 19:39:49 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00G01GZ4MR00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 12:39:49 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00E2KIM63CD0@mail-amer.sun.com>; Mon,
 12 Jan 2009 12:39:42 -0700 (MST)
Date: Mon, 12 Jan 2009 11:39:50 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <18795.38844.898816.546129@gargle.gargle.HOWL>
Sender: Kerry.Shu@sun.com
To: James Carlson <James.D.Carlson@sun.com>
Cc: laptop-hotkeys-iteam@sun.com, PSARC-ext@sun.com,
        Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496B9C86.9090403@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1136



James Carlson wrote:
> Kerry Shu writes:
>> My current implementation is to define a static array with known vendor
>> specific modules name(currently only acpi_toshiba) in acpi_drv.
>> Yes, it expects at most one of them to return 0 from _init().
> 
> OK; thanks.  That's what I was looking for.
> 
>> Got it. If I do find conflicts in our testing, I'll take your
>> suggestion. Thanks! Btw, for Toshiba, we are searching for "TOS6208" and
>> "TOS1900" in ACPI namespace.
> 
> But no TOS6200?

We only got docs about "TOS6208" and "TOS1900" from Toshiba. And the
Toshiba laptops we have support either of them. I'll ask IHV team for
help to get info about "TOS1900". It should be straightforward to add it
or more in if we have the related docs. Thanks!

> 
> (I think Linux is trying to unify the various naming schemes,
> including ACPI modules, PCI IDs, and others, through lkddb.  It'd be
> nice if we could do something similar rather than having a new wheel.)
> 

How do you think about our current ACPI modules naming?
acpi_drv: for generic ACPI method
acpi_toshiba, acpi_XXXX: for vendor specific ACPI method

Regards,
Kerry

From john.plocher@gmail.com Mon Jan 12 11:50:12 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CJoCR7000561
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 11:50:12 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CJo52D021244;
	Mon, 12 Jan 2009 11:50:06 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00H0FJ3HPA00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 12:50:05 -0700 (MST)
Received: from sca-ea-mail-3.sun.com ([192.18.43.21])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD001J9J3GKOC0@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 12:50:04 -0700 (MST)
Received: from relay14i.sun.com
 (ip124.net129179-4.block1.us.syntegra.com [129.179.4.124])
	by sca-ea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CJo4qs013030;
 Mon, 12 Jan 2009 19:50:04 +0000 (GMT)
Received: from mmp12es.mmp.us.syntegra.com ([160.41.208.12] [160.41.208.12])
 by relay14i.sun.com with ESMTP id BT-MMP-2213302; Mon,
 12 Jan 2009 19:50:03 +0000 (Z)
Received: from relay14i.sun.com (relay14i.sun.com [129.179.4.124])
 by mmp12es.mmp.us.syntegra.com with ESMTP id BT-MMP-59813137; Mon,
 12 Jan 2009 19:50:03 +0000 (Z)
Received: from rv-out-0708.google.com ([209.85.198.241] [209.85.198.241])
 by relay1ib.sun.com with ESMTP id BT-MMP-23299903; Mon,
 12 Jan 2009 19:50:03 +0000 (Z)
Received: by rv-out-0708.google.com with SMTP id k29so11466499rvb.8 for
 <multiple recipients>; Mon, 12 Jan 2009 11:49:56 -0800 (PST)
Received: by 10.140.136.6 with SMTP id j6mr14850510rvd.126.1231789796934; Mon,
 12 Jan 2009 11:49:56 -0800 (PST)
Received: by 10.141.20.13 with HTTP; Mon, 12 Jan 2009 11:49:56 -0800 (PST)
Date: Mon, 12 Jan 2009 11:49:56 -0800
From: John Plocher <john.plocher@gmail.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
To: Phi Tran <phitran@sac.sfbay.sun.com>
Cc: PSARC-ext@sun.com, laptop-hotkeys-iteam@sun.com, Kerry.Shu@sun.com
Message-id: <acff61d30901121149u1fecd49p54bd52b9dbd83440@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
Content-disposition: inline
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma; h=domainkey-signature:received:received:message-id:date:from:to
 :subject:cc:in-reply-to:mime-version:content-type
 :content-transfer-encoding:content-disposition:references;
 bh=Fg//mjtXYkwueUYbcO7RcWcOPeWc5hh9dwOo6KZsca4=;
 b=k+C7jYYnXBuQyfaEIaqvGp8MWKAw/zNm3aYM6X1+Ttyv3HaYFER0yagIwH9TynYefG
 EVuwZ9qnT1M+GmML2NGOVXeTN/Zrm/kuavcrEQHUro9m/yrmDJ0/CN5XyJ94UMj8NImY
 xfCIszf7Af1kHlvwgS9TZP6HVBS5v5F71ntpQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
 h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
 :content-type:content-transfer-encoding:content-disposition :references;
 b=T8kSPIdIN2uq8MccDiWCRTtJpc7VyIedX1WV4ztHE28K2MxzdT6iCejK+t2UXyuOBR
 C/QWdKJWwWEEcjiVi4W0sZ+66RfHp5mp/hNsaCve8XoWjMzKS+fIrJhNuJTWZlY62KyT
 DO1Bd0gWQ+Bt97u9doyc2WA4YHMOtRStqIYqM=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.134sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
Status: RO
Content-Length: 1185

[jumping in late after reading the thread...]

> Since there is no generic ACPI specification for other hotkeys, most
> vendors just define their own specific ACPI based hotkey method. This
> case will also add Toshiba specific ACPI hotkey method support for:
> 1. Fn + ESC: audio mute On/Off
> 2. Fn + F1: screen lock
> 3. Fn + F3: suspend to RAM(on S3 capable platform)
> 4. Fn + F8: wireless LAN On/Off
> 5. Fn + F9: touchPad On/Off

So, to use a real world example to flesh out the details:  I don't
have a toshiba; instead I've got an apple mac laptop.  It uses

F1 lower screen backlite
F2 brighten screen backlite
F3 mute
F4 lower volume
F5 raise volume
F6 NUM LOCK
F7 cycle between internal and external screen mirroring -vs-
independent displays
F8 kbd backlite off
F9 lower kbd backlite
F10 brighten kbd backlite
F11 Move windows off screen to show desktop & icons on it
"Eject" eject's cd/dvd
Lid close Suspend to RAM

With this proposal, can this platform be detected and these keys be
set up and used automatically? If not, what needs to be done to make
it work (and who whould have to do the work - you, someone in the OS
developer community, the end user, ???)

  -John

From carlsonj@phorcys.east.sun.com Mon Jan 12 12:01:41 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CK1fIs015380
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 12:01:41 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CK1bRj028069;
	Mon, 12 Jan 2009 12:01:38 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00207JMMPM00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 12:01:34 -0800 (PST)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DRYJMKMXC0@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 12:01:33 -0800 (PST)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n0CK1VRu023999; Mon,
 12 Jan 2009 15:01:31 -0500 (EST)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n0CK1V1m023996; Mon,
 12 Jan 2009 15:01:31 -0500 (EST)
Date: Mon, 12 Jan 2009 15:01:31 -0500
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <496B9C86.9090403@sun.com>
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: laptop-hotkeys-iteam@sun.com, PSARC-ext@sun.com,
        Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <18795.41371.597265.265902@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL> <496B9C86.9090403@sun.com>
Status: RO
Content-Length: 1118

Kerry Shu writes:
> > But no TOS6200?
> 
> We only got docs about "TOS6208" and "TOS1900" from Toshiba. And the
> Toshiba laptops we have support either of them. I'll ask IHV team for
> help to get info about "TOS1900". It should be straightforward to add it
> or more in if we have the related docs. Thanks!

OK.  TOS6200 seems known to the open source crowd ("Libretto 100" and
others), but if it's not there, it's not a problem.

> > (I think Linux is trying to unify the various naming schemes,
> > including ACPI modules, PCI IDs, and others, through lkddb.  It'd be
> > nice if we could do something similar rather than having a new wheel.)
> > 
> 
> How do you think about our current ACPI modules naming?
> acpi_drv: for generic ACPI method
> acpi_toshiba, acpi_XXXX: for vendor specific ACPI method

I didn't have a comment on those either way; the naming convention
seems fine to me.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From Kerry.Shu@Sun.COM Mon Jan 12 12:15:11 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CKFAY5019030
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 12:15:10 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CKF8cq016823;
	Tue, 13 Jan 2009 04:15:09 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0030JK97IC00@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 12:15:07 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00DYIK93MZE0@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 12:15:03 -0800 (PST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0CKF3Nv020368; Mon,
 12 Jan 2009 20:15:03 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00F01J3IJN00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Mon, 12 Jan 2009 13:15:03 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00H2EK8F2H10@mail-amer.sun.com>; Mon,
 12 Jan 2009 13:14:39 -0700 (MST)
Date: Mon, 12 Jan 2009 12:14:47 -0800
From: Kerry Shu <Kerry.Shu@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <acff61d30901121149u1fecd49p54bd52b9dbd83440@mail.gmail.com>
Sender: Kerry.Shu@Sun.COM
To: John Plocher <john.plocher@gmail.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@Sun.COM,
        laptop-hotkeys-iteam@Sun.COM
Message-id: <496BA4B7.40208@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <acff61d30901121149u1fecd49p54bd52b9dbd83440@mail.gmail.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1516


John Plocher wrote:
> [jumping in late after reading the thread...]
> 
>> Since there is no generic ACPI specification for other hotkeys, most
>> vendors just define their own specific ACPI based hotkey method. This
>> case will also add Toshiba specific ACPI hotkey method support for:
>> 1. Fn + ESC: audio mute On/Off
>> 2. Fn + F1: screen lock
>> 3. Fn + F3: suspend to RAM(on S3 capable platform)
>> 4. Fn + F8: wireless LAN On/Off
>> 5. Fn + F9: touchPad On/Off
> 
> So, to use a real world example to flesh out the details:  I don't
> have a toshiba; instead I've got an apple mac laptop.  It uses
> 
> F1 lower screen backlite
> F2 brighten screen backlite
> F3 mute
> F4 lower volume
> F5 raise volume
> F6 NUM LOCK
> F7 cycle between internal and external screen mirroring -vs-
> independent displays
> F8 kbd backlite off
> F9 lower kbd backlite
> F10 brighten kbd backlite
> F11 Move windows off screen to show desktop & icons on it
> "Eject" eject's cd/dvd
> Lid close Suspend to RAM
> 
> With this proposal, can this platform be detected and these keys be
> set up and used automatically? If not, what needs to be done to make

No, it still needs a hotkey driver for MAC and maybe also GUIs in Gnome.
Anyway, this case proposes an architecture for handling ACPI based
hotkeys in Solaris.

> it work (and who whould have to do the work - you, someone in the OS
> developer community, the end user, ???)

Anyone who wants to can work on it by following this proposal. :-)

Regards,
Kerry


> 
>   -John

From gdamore@sun.com Mon Jan 12 12:17:01 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CKH17f019123
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 12:17:01 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CKH02I006970;
	Mon, 12 Jan 2009 12:17:01 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00K01KCCFR00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 13:17:00 -0700 (MST)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00199KCBKQE0@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 13:17:00 -0700 (MST)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CKGx39025745;
 Mon, 12 Jan 2009 12:16:59 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00G01K822300@fe-sfbay-09.sun.com> (original mail from gdamore@sun.com)
 ; Mon, 12 Jan 2009 12:16:59 -0800 (PST)
Received: from [10.7.251.172] by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00JOSKCAOLC0@fe-sfbay-09.sun.com>; Mon,
 12 Jan 2009 12:16:59 -0800 (PST)
Date: Mon, 12 Jan 2009 12:07:32 -0800
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <496B9C86.9090403@sun.com>
Sender: Garrett.Damore@sun.com
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: James Carlson <James.D.Carlson@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496BA304.9060900@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL> <496B9C86.9090403@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 1889

In retrospect, perhaps having a separate directory under /kernel would 
be better, and then vendors could deploy their own acpi modules without 
having to touch the acpi_drv binary.

E.g.:

/kernel/acpi/acpi_toshiba
/kernel/acpi/amd64/acpi_toshiba

(Perhaps even /platform would be better... 
/platform/i86pc/kernel/acpi/acpi_toshiba, etc.)

If the "strings" are sufficiently unique, you could even use something 
along the lines of:

/kernel/acpi/acpi_TOS1900

There's a possibly different approach as well -- you could have acpi_drv 
be a nexus, and create child nodes with the node name of the form 
"acpi,TOS1900" or somesuch.  That might actually be the *most* elegant.

    -- Garrett

Kerry Shu wrote:
>
>
> James Carlson wrote:
>> Kerry Shu writes:
>>> My current implementation is to define a static array with known vendor
>>> specific modules name(currently only acpi_toshiba) in acpi_drv.
>>> Yes, it expects at most one of them to return 0 from _init().
>>
>> OK; thanks.  That's what I was looking for.
>>
>>> Got it. If I do find conflicts in our testing, I'll take your
>>> suggestion. Thanks! Btw, for Toshiba, we are searching for "TOS6208" 
>>> and
>>> "TOS1900" in ACPI namespace.
>>
>> But no TOS6200?
>
> We only got docs about "TOS6208" and "TOS1900" from Toshiba. And the
> Toshiba laptops we have support either of them. I'll ask IHV team for
> help to get info about "TOS1900". It should be straightforward to add it
> or more in if we have the related docs. Thanks!
>
>>
>> (I think Linux is trying to unify the various naming schemes,
>> including ACPI modules, PCI IDs, and others, through lkddb.  It'd be
>> nice if we could do something similar rather than having a new wheel.)
>>
>
> How do you think about our current ACPI modules naming?
> acpi_drv: for generic ACPI method
> acpi_toshiba, acpi_XXXX: for vendor specific ACPI method
>
> Regards,
> Kerry


From carlsonj@phorcys.east.sun.com Mon Jan 12 12:24:30 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CKOTeV019161
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 12:24:29 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CKOEq7020939;
	Tue, 13 Jan 2009 04:24:25 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00J0BKONBP00@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 12:24:23 -0800 (PST)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00HDMKONKHD0@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 12:24:23 -0800 (PST)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n0CKOMsD024064; Mon,
 12 Jan 2009 15:24:22 -0500 (EST)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n0CKOLGj024061; Mon,
 12 Jan 2009 15:24:21 -0500 (EST)
Date: Mon, 12 Jan 2009 15:24:21 -0500
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <496BA304.9060900@sun.com>
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Kerry Shu <Kerry.Shu@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <18795.42741.945636.587473@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL> <496B9C86.9090403@sun.com>
 <496BA304.9060900@sun.com>
Status: RO
Content-Length: 1125

Garrett D'Amore writes:
> In retrospect, perhaps having a separate directory under /kernel would 
> be better, and then vendors could deploy their own acpi modules without 
> having to touch the acpi_drv binary.

If that's where we go, then I'd rather see an /etc registry, as we do
with other forms of hardware/module ID and aliasing.

> There's a possibly different approach as well -- you could have acpi_drv 
> be a nexus, and create child nodes with the node name of the form 
> "acpi,TOS1900" or somesuch.  That might actually be the *most* elegant.

Yes ... and would make the use of a new subdirectory much less
interesting.

Given that there's only one of these now, there may not be many, and
that someone could reasonably design something better here later, it's
not clear to me that pushing a more flexible scheme is necessary.
(But I certainly agree with you that this would be cleaner.)

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From gdamore@sun.com Mon Jan 12 12:25:28 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CKPReI019173
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 12:25:27 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CKPJON021446;
	Tue, 13 Jan 2009 04:25:26 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00407KQC7000@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 12:25:24 -0800 (PST)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00418KQB6300@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 12:25:23 -0800 (PST)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CKPN95012505;
 Mon, 12 Jan 2009 12:25:23 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00G01HRTWL00@fe-sfbay-09.sun.com> (original mail from gdamore@sun.com)
 ; Mon, 12 Jan 2009 12:25:23 -0800 (PST)
Received: from [10.7.251.172] by fe-sfbay-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00J9JKPYOLG0@fe-sfbay-09.sun.com>; Mon,
 12 Jan 2009 12:25:10 -0800 (PST)
Date: Mon, 12 Jan 2009 12:15:43 -0800
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <acff61d30901121149u1fecd49p54bd52b9dbd83440@mail.gmail.com>
Sender: Garrett.Damore@sun.com
To: John Plocher <john.plocher@gmail.com>
Cc: Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        laptop-hotkeys-iteam@sun.com, Kerry.Shu@sun.com
Message-id: <496BA4EF.5030401@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <acff61d30901121149u1fecd49p54bd52b9dbd83440@mail.gmail.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 2821

John Plocher wrote:
> [jumping in late after reading the thread...]
>
>   
>> Since there is no generic ACPI specification for other hotkeys, most
>> vendors just define their own specific ACPI based hotkey method. This
>> case will also add Toshiba specific ACPI hotkey method support for:
>> 1. Fn + ESC: audio mute On/Off
>> 2. Fn + F1: screen lock
>> 3. Fn + F3: suspend to RAM(on S3 capable platform)
>> 4. Fn + F8: wireless LAN On/Off
>> 5. Fn + F9: touchPad On/Off
>>     
>
> So, to use a real world example to flesh out the details:  I don't
> have a toshiba; instead I've got an apple mac laptop.  It uses
>
> F1 lower screen backlite
> F2 brighten screen backlite
> F3 mute
> F4 lower volume
> F5 raise volume
> F6 NUM LOCK
> F7 cycle between internal and external screen mirroring -vs-
> independent displays
> F8 kbd backlite off
> F9 lower kbd backlite
> F10 brighten kbd backlite
> F11 Move windows off screen to show desktop & icons on it
> "Eject" eject's cd/dvd
> Lid close Suspend to RAM
>
> With this proposal, can this platform be detected and these keys be
> set up and used automatically? If not, what needs to be done to make
> it work (and who whould have to do the work - you, someone in the OS
> developer community, the end user, ???)
>   

Depends entirely on the implementation.  I've seen no fewer than three 
different approaches vendors use, and the details differ for each (I 
don't know what Apple uses):

1. keys send PS/2 or USB key events.  This requires no work other than 
the user establishing the handling using the gnome applications.

2. keys are handled using microcontroller firmware internally.  This 
requires no work on anyone's part.  They just work.

3. keys are handled using ACPI or similar BIOS, and require OS support.  
In the current proposal, adding support for a laptop that does this 
requires code modifications in ON.  The proposal could probably be 
refined so that unbundled versions could be developed, but ultimately 
someone would still need to develop code no matter what.

The complete anarchy here (some might call it "freedom for vendor 
innovation") is not helpful.  It would be nice if there were standards 
for this stuff.   IMO, most of the vendors aren't overly inclined to 
care much though, since they all deliver their own Windows platform 
drivers already, and usually they don't care that much about making 
things easy for other operating systems.  Even the vendors that 
cooperate and provide information (Toshiba) might not want to develop 
common standards, since their openness (or rather the closedness of 
their competitors) might actually be a competitive edge for them in 
certain markets.  (And developing common standards is *expensive* 
usually, since committees and politics then get involved.)

    -- Garrett
>   -John
>   


From gdamore@sun.com Mon Jan 12 13:03:01 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CL30WP019883
	for <psarc-ext@sac.sfbay.Sun.COM>; Mon, 12 Jan 2009 13:03:01 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0CL2rFl010393;
	Tue, 13 Jan 2009 05:03:00 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD0011JMGVKT00@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 13:02:55 -0800 (PST)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00HUVMGUK8D0@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 13:02:55 -0800 (PST)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CL2scF001195;
 Mon, 12 Jan 2009 13:02:54 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00901MFKEO00@fe-sfbay-10.sun.com> (original mail from gdamore@sun.com)
 ; Mon, 12 Jan 2009 13:02:54 -0800 (PST)
Received: from [10.7.251.172] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD00M86MGJ6SA0@fe-sfbay-10.sun.com>; Mon,
 12 Jan 2009 13:02:44 -0800 (PST)
Date: Mon, 12 Jan 2009 12:53:16 -0800
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <18795.42741.945636.587473@gargle.gargle.HOWL>
Sender: Garrett.Damore@sun.com
To: James Carlson <James.D.Carlson@sun.com>
Cc: Kerry Shu <Kerry.Shu@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496BADBC.2000401@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL> <496B9C86.9090403@sun.com>
 <496BA304.9060900@sun.com> <18795.42741.945636.587473@gargle.gargle.HOWL>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 1187

James Carlson wrote:
> Garrett D'Amore writes:
>   
>> In retrospect, perhaps having a separate directory under /kernel would 
>> be better, and then vendors could deploy their own acpi modules without 
>> having to touch the acpi_drv binary.
>>     
>
> If that's where we go, then I'd rather see an /etc registry, as we do
> with other forms of hardware/module ID and aliasing.
>
>   
>> There's a possibly different approach as well -- you could have acpi_drv 
>> be a nexus, and create child nodes with the node name of the form 
>> "acpi,TOS1900" or somesuch.  That might actually be the *most* elegant.
>>     
>
> Yes ... and would make the use of a new subdirectory much less
> interesting.
>
> Given that there's only one of these now, there may not be many, and
> that someone could reasonably design something better here later, it's
> not clear to me that pushing a more flexible scheme is necessary.
> (But I certainly agree with you that this would be cleaner.)
>   

I agree.  So, I'll give the current proposal a +1, and gently recommend 
that the nexus approach either be used now, the next time we have to add 
new vendor specific modules.  Thoughts?

    -- Garrett



From carlsonj@phorcys.east.sun.com Mon Jan 12 13:06:38 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CL6c65019924
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 13:06:38 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CL6YjF027854;
	Mon, 12 Jan 2009 13:06:35 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00209MMZ8E00@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 14:06:35 -0700 (MST)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00MVZMMY1Q10@brm-avmta-1.central.sun.com>; Mon,
 12 Jan 2009 14:06:34 -0700 (MST)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n0CL6XWY024199; Mon,
 12 Jan 2009 16:06:33 -0500 (EST)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n0CL6XLd024196; Mon,
 12 Jan 2009 16:06:33 -0500 (EST)
Date: Mon, 12 Jan 2009 16:06:33 -0500
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack	timeout	01/16/2009]
In-reply-to: <496BADBC.2000401@sun.com>
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Kerry Shu <Kerry.Shu@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <18795.45273.634275.697688@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL> <496B9C86.9090403@sun.com>
 <496BA304.9060900@sun.com> <18795.42741.945636.587473@gargle.gargle.HOWL>
 <496BADBC.2000401@sun.com>
Status: RO
Content-Length: 460

Garrett D'Amore writes:
> I agree.  So, I'll give the current proposal a +1, and gently recommend 
> that the nexus approach either be used now, the next time we have to add 
> new vendor specific modules.  Thoughts?

That sounds good.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From Henry.Zhao@Sun.COM Mon Jan 12 13:45:10 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CLj9f7021533
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 13:45:09 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CLj8mZ047257;
	Mon, 12 Jan 2009 14:45:09 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00905OF73700@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 13:45:07 -0800 (PST)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD004GTOF65G50@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 13:45:06 -0800 (PST)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0CLj60k023540;
 Mon, 12 Jan 2009 13:45:06 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00101MY9IB00@fe-sfbay-10.sun.com>
 (original mail from Henry.Zhao@Sun.COM); Mon, 12 Jan 2009 13:45:06 -0800 (PST)
Received: from [129.153.3.68] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDD005TMOETU380@fe-sfbay-10.sun.com>; Mon,
 12 Jan 2009 13:44:54 -0800 (PST)
Date: Mon, 12 Jan 2009 13:44:53 -0800
From: Henry Zhao <Henry.Zhao@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B8CDB.7040601@sun.com>
Sender: Henry.Zhao@Sun.COM
To: Kerry Shu <Kerry.Shu@Sun.COM>
Cc: Nicolas Williams <Nicolas.Williams@Sun.COM>,
        "Garrett D'Amore" <gdamore@Sun.COM>, Casper.Dik@Sun.COM,
        Darren Kenny <Darren.Kenny@Sun.COM>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@Sun.COM,
        laptop-hotkeys-iteam@Sun.COM
Message-id: <496BB9D5.3070605@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
 <496B74B4.8010203@sun.com> <20090112170137.GN6457@Sun.COM>
 <496B8CDB.7040601@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080630)
Status: RO
Content-Length: 2199

Kerry Shu wrote:
>
>
> Nicolas Williams wrote:
>> On Mon, Jan 12, 2009 at 08:49:56AM -0800, Garrett D'Amore wrote:
>>> I had suggested a similar approach (using keyboard keys) -- actually 
>>> my original suggestion went a step further, and suggested that this 
>>> module could emulate a USB keyboard and generate USB boot-protocol 
>>> HID keyboard events.
>>>
>>> However, the problem, as I understand it, is that as rich as the USB 
>>> spec is, there are still some keys that lack standard keyboard 
>>> defines in the USB spec -- e.g. the WLAN toggle key, and LCD 
>>> backlight control keys.
>>>
>>> I think the current plan has the X server generate key events (X11 
>>> events) so that tools like gnome can operate on them the same way as 
>>> ordinary keys.  While not as elegant as a lower level emulation 
>>> would be, I think it is reasonable.
>>
>> That's fine.  What's NOT fine is having to build a kernel module in
>> order to provide a set of mappings.  That's really difficult to use.  An
>> ioctl() that can take a list of mappings provided by a user-land program
>> that parses a configuration file would be better.  And either way there
>> needs to be a mechanism by which it is possible to discover what the
>> actual hotkey keyboard layout is (i.e., "what laptop is this?").
>
> A kernel module, hotkey driver, is to init and get the hotkey ACPI
> events. The key mapping is done in Xserver. Xserver maps each hotkey
> with same "keycode + modifier" no matter what laptop is.
> For your suggestion, we still need to define different unused keycode
> for each hotkey in configuration file. Anyway, per my understanding,
> we can hardly find enough unused keycode for them. (Henry can comment
> more). And it's also platform dependent.
Yes. Kerry describes the general picture how mapping is done in X 
server. Since
not enough unused keycode(s) are available,  we use "transit mapping" 
method in
which the same keycode (in the current design, it is 127, which is not 
being used)
and modifier are used for all possible keysysms (events),  a mapping to 
a desired
keysym is made prior to key/modifier posting,   and an unmapping made after.
>
> Regards,
> Kerry
>
>>
>> Nico


From casper@holland.sun.com Mon Jan 12 14:31:36 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0CMVZTB023687
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 14:31:36 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0CMVXGo006674;
	Mon, 12 Jan 2009 15:31:35 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00C0LQKLB400@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 14:31:33 -0800 (PST)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD004WNQKK6390@nwk-avmta-2.sfbay.sun.com>; Mon,
 12 Jan 2009 14:31:33 -0800 (PST)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n0CMVTkR062475; Mon, 12 Jan 2009 22:31:29 +0000 (GMT)
Date: Mon, 12 Jan 2009 23:31:29 +0100
From: Casper.Dik@sun.com
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B770C.2040306@Sun.COM>
Sender: casper@holland.sun.com
To: Darren Kenny <Darren.Kenny@sun.com>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        Phi Tran <phitran@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Kerry.Shu@sun.com, laptop-hotkeys-iteam@sun.com
Message-id: <200901122231.n0CMVTkR062475@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B7142.5000308@Sun.COM>
 <200901121643.n0CGh76h046188@dm-holland-02.uk.sun.com>
 <496B770C.2040306@Sun.COM>
Status: RO
Content-Length: 523



>Totally agree, but I believe (but could be mistaken) that the issue is that
>different laptops will generate different ACPI events - so the mapping from ACPI
>event to X event isn't consistent, and I think that this is where we would need
>a text document to allow people to do this mapping in the field....


Right, but if we define the interface for the ACPI drivers to use,
then that would help a lot.

	"If you get an ACPI event which says ``increase brightness'',
	 then call acpi_submit_event_xxx(....)"


Casper


From darren.moffat@sun.com Mon Jan 12 16:19:55 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0D0JtnF014833
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 12 Jan 2009 16:19:55 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0D0Jt3R022253;
	Mon, 12 Jan 2009 16:19:55 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDD00601VL7W900@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 16:19:55 -0800 (PST)
Received: from gmp-eb-inf-2.sun.com ([192.18.6.24])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDD00K5MVL4QM50@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 12 Jan 2009 16:19:54 -0800 (PST)
Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11])
	by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0D0JqUP007048; Tue,
 13 Jan 2009 00:19:52 +0000 (GMT)
Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDD00301VFRSG00@fe-emea-09.sun.com>
 (original mail from Darren.Moffat@Sun.COM); Tue,
 13 Jan 2009 00:19:52 +0000 (GMT)
Received: from [192.168.18.186]
 (ppp230-131.static.internode.on.net [203.122.230.131])
 by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28
 2007)) with ESMTPSA id <0KDD00G4YVKZ3HD0@fe-emea-09.sun.com>; Tue,
 13 Jan 2009 00:19:52 +0000 (GMT)
Date: Tue, 13 Jan 2009 00:19:46 +0000
From: Darren J Moffat <darren.moffat@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016	FastTrack	timeout	01/16/2009]
In-reply-to: <18795.45273.634275.697688@gargle.gargle.HOWL>
Sender: darren.moffat@sun.com
To: James Carlson <James.D.Carlson@sun.com>
Cc: "Garrett D'Amore" <gdamore@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>,
        Kerry Shu <Kerry.Shu@sun.com>
Message-id: <496BDE22.1020304@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <18795.36533.261864.95194@gargle.gargle.HOWL> <496B938D.7040800@sun.com>
 <18795.38844.898816.546129@gargle.gargle.HOWL> <496B9C86.9090403@sun.com>
 <496BA304.9060900@sun.com> <18795.42741.945636.587473@gargle.gargle.HOWL>
 <496BADBC.2000401@sun.com> <18795.45273.634275.697688@gargle.gargle.HOWL>
User-Agent: Thunderbird 2.0.0.17 (X11/20081023)
Status: RO
Content-Length: 372

James Carlson wrote:
> Garrett D'Amore writes:
>> I agree.  So, I'll give the current proposal a +1, and gently recommend 
>> that the nexus approach either be used now, the next time we have to add 
>> new vendor specific modules.  Thoughts?
> 
> That sounds good.

I'm also happy with this so I'm now happy with the whole proposal and it 
has my +1.

--
Darren J Moffat

From casper@holland.sun.com Tue Jan 13 01:23:05 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0D9N5MF029726
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 13 Jan 2009 01:23:05 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0D9MxrF002082;
	Tue, 13 Jan 2009 09:23:03 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDE00L07KQD3X00@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 01:23:01 -0800 (PST)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDE006ETKQCM6E0@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 01:23:01 -0800 (PST)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n0D9Mt3d011996; Tue, 13 Jan 2009 09:22:55 +0000 (GMT)
Date: Tue, 13 Jan 2009 10:22:55 +0100
From: Casper.Dik@sun.com
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B8998.6030503@sun.com>
Sender: casper@holland.sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>, Kerry Shu <Kerry.Shu@sun.com>,
        James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <200901130922.n0D9Mt3d011996@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
Status: RO
Content-Length: 520


>So, while I do wish that an easier user configuration were available for 
>these ACPI events (the first of those translations), or that the 
>industry had standardized a bit more here, the reality is that this 
>probably isn't practical, at least not at this point.

It would also be very nice if you want to create such keys for your 
laptop, that there's a standard interface you can do in the kernel.

I.e., make the platform specific modules very simple to make and put the 
smarts in a different module.

Casper


From Kerry.Shu@sun.com Tue Jan 13 10:17:04 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0DIH3ZX016746
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 13 Jan 2009 10:17:03 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0DIGxIb019381;
	Tue, 13 Jan 2009 10:17:03 -0800 (PST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDF00J239GEHV00@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 10:17:02 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDF0028Y9GBUZD0@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 10:17:00 -0800 (PST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0DIGx0n006024; Tue,
 13 Jan 2009 18:16:59 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDF009017RHZP00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Tue, 13 Jan 2009 11:16:59 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDF008T29G69770@mail-amer.sun.com>; Tue,
 13 Jan 2009 11:16:54 -0700 (MST)
Date: Tue, 13 Jan 2009 10:17:02 -0800
From: Kerry Shu <Kerry.Shu@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <200901130922.n0D9Mt3d011996@dm-holland-02.uk.sun.com>
Sender: Kerry.Shu@sun.com
To: Casper.Dik@sun.com
Cc: "Garrett D'Amore" <gdamore@sun.com>,
        Nicolas Williams <Nicolas.Williams@sun.com>,
        James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496CDA9E.2090200@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
 <200901130922.n0D9Mt3d011996@dm-holland-02.uk.sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 874



Casper.Dik@Sun.COM wrote:
>> So, while I do wish that an easier user configuration were available for 
>> these ACPI events (the first of those translations), or that the 
>> industry had standardized a bit more here, the reality is that this 
>> probably isn't practical, at least not at this point.
> 
> It would also be very nice if you want to create such keys for your 
> laptop, that there's a standard interface you can do in the kernel.
> 
> I.e., make the platform specific modules very simple to make and put the 
> smarts in a different module.

Yes, the platform specific module (hotkey driver) is simple. So is the
interface (we use sysevent). Hotkey driver is responsible to tell which
hotkey is pressed and generates corresponding hotkey sysevent (by
calling ddi_log_sysevent()). The hotkey keymapping work is done in
server.

Thanks,
Kerry

> 
> Casper
> 

From gdamore@sun.com Tue Jan 13 10:28:04 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0DIS3c6017734
	for <psarc-ext@sac.sfbay.Sun.COM>; Tue, 13 Jan 2009 10:28:04 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n0DIRxIv011367;
	Wed, 14 Jan 2009 02:28:02 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDF00K039YPS300@brm-avmta-1.central.sun.com>; Tue,
 13 Jan 2009 11:28:01 -0700 (MST)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDF007C59YO4LE0@brm-avmta-1.central.sun.com>; Tue,
 13 Jan 2009 11:28:01 -0700 (MST)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0DIS04A019181;
 Tue, 13 Jan 2009 10:28:00 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDF0030186Y3T00@fe-sfbay-10.sun.com> (original mail from gdamore@sun.com)
 ; Tue, 13 Jan 2009 10:28:00 -0800 (PST)
Received: from [10.7.251.172] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDF00GND9YA9K90@fe-sfbay-10.sun.com>; Tue,
 13 Jan 2009 10:27:46 -0800 (PST)
Date: Tue, 13 Jan 2009 10:18:15 -0800
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496CDA9E.2090200@sun.com>
Sender: Garrett.Damore@sun.com
To: Kerry Shu <Kerry.Shu@sun.com>
Cc: Casper.Dik@sun.com, Nicolas Williams <Nicolas.Williams@sun.com>,
        James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496CDAE7.9070109@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
 <200901130922.n0D9Mt3d011996@dm-holland-02.uk.sun.com>
 <496CDA9E.2090200@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 1350

Kerry Shu wrote:
>
>
> Casper.Dik@Sun.COM wrote:
>>> So, while I do wish that an easier user configuration were available 
>>> for these ACPI events (the first of those translations), or that the 
>>> industry had standardized a bit more here, the reality is that this 
>>> probably isn't practical, at least not at this point.
>>
>> It would also be very nice if you want to create such keys for your 
>> laptop, that there's a standard interface you can do in the kernel.
>>
>> I.e., make the platform specific modules very simple to make and put 
>> the smarts in a different module.
>
> Yes, the platform specific module (hotkey driver) is simple. So is the
> interface (we use sysevent). Hotkey driver is responsible to tell which
> hotkey is pressed and generates corresponding hotkey sysevent (by
> calling ddi_log_sysevent()). The hotkey keymapping work is done in
> server.

Do I think that all we need to document as the interface these modules 
use is:

1) the actual event names (and any payload details)
2) ideally, if there is some interface to ACPI itself that these modules 
should use, then those details.

Anyway, I'm not too worried at the moment... both of those sets of 
details can just be Project Private for now.  (Is that what how they're 
classified in the materials?)

    -- Garrett
>
> Thanks,
> Kerry
>
>>
>> Casper
>>


From Kerry.Shu@Sun.COM Tue Jan 13 10:38:09 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0DIc828018297
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 13 Jan 2009 10:38:08 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n0DIc4SQ003640;
	Tue, 13 Jan 2009 18:38:07 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDF00M05AFI5800@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 10:38:06 -0800 (PST)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDF00KDWAFHAC10@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 10:38:05 -0800 (PST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n0DIc559019466; Tue,
 13 Jan 2009 18:38:05 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDF00401A7SBC00@mail-amer.sun.com> (original mail from Kerry.Shu@Sun.COM)
 ; Tue, 13 Jan 2009 11:38:05 -0700 (MST)
Received: from [10.1.48.131] by mail-amer.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDF002OFAF53050@mail-amer.sun.com>; Tue,
 13 Jan 2009 11:37:53 -0700 (MST)
Date: Tue, 13 Jan 2009 10:38:01 -0800
From: Kerry Shu <Kerry.Shu@Sun.COM>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496CDAE7.9070109@sun.com>
Sender: Kerry.Shu@Sun.COM
To: "Garrett D'Amore" <gdamore@Sun.COM>
Cc: Casper.Dik@Sun.COM, Nicolas Williams <Nicolas.Williams@Sun.COM>,
        James Carlson <James.D.Carlson@Sun.COM>,
        Darren J Moffat <Darren.Moffat@Sun.COM>, laptop-hotkeys-iteam@Sun.COM,
        PSARC-ext@Sun.COM, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <496CDF89.2040002@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
 <200901130922.n0D9Mt3d011996@dm-holland-02.uk.sun.com>
 <496CDA9E.2090200@sun.com> <496CDAE7.9070109@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080519)
Status: RO
Content-Length: 1542



Garrett D'Amore wrote:
> Kerry Shu wrote:
>>
>>
>> Casper.Dik@Sun.COM wrote:
>>>> So, while I do wish that an easier user configuration were available 
>>>> for these ACPI events (the first of those translations), or that the 
>>>> industry had standardized a bit more here, the reality is that this 
>>>> probably isn't practical, at least not at this point.
>>>
>>> It would also be very nice if you want to create such keys for your 
>>> laptop, that there's a standard interface you can do in the kernel.
>>>
>>> I.e., make the platform specific modules very simple to make and put 
>>> the smarts in a different module.
>>
>> Yes, the platform specific module (hotkey driver) is simple. So is the
>> interface (we use sysevent). Hotkey driver is responsible to tell which
>> hotkey is pressed and generates corresponding hotkey sysevent (by
>> calling ddi_log_sysevent()). The hotkey keymapping work is done in
>> Xserver.
> 
> Do I think that all we need to document as the interface these modules 
> use is:
> 
> 1) the actual event names (and any payload details)
> 2) ideally, if there is some interface to ACPI itself that these modules 
> should use, then those details.
> 
> Anyway, I'm not too worried at the moment... both of those sets of 
> details can just be Project Private for now.  (Is that what how they're 
> classified in the materials?)

Yes, 1) is classified as Project Private for now. We've listed current
defined subclass.
for 2), we uses acpica interface(PSARC/1998/300). It's project private.

Regards,
Kerry

From casper@holland.sun.com Tue Jan 13 10:47:37 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0DIlbSd018463
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 13 Jan 2009 10:47:37 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0DIla2q002123;
	Tue, 13 Jan 2009 11:47:36 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDF00003AVCLM00@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 10:47:36 -0800 (PST)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDF00KBWAVBAD10@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 13 Jan 2009 10:47:36 -0800 (PST)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n0DIlTNg011953; Tue, 13 Jan 2009 18:47:30 +0000 (GMT)
Date: Tue, 13 Jan 2009 19:47:29 +0100
From: Casper.Dik@sun.com
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496CDAE7.9070109@sun.com>
Sender: casper@holland.sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Kerry Shu <Kerry.Shu@sun.com>, Nicolas Williams <Nicolas.Williams@sun.com>,
        James Carlson <James.D.Carlson@sun.com>,
        Darren J Moffat <Darren.Moffat@sun.com>, laptop-hotkeys-iteam@sun.com,
        PSARC-ext@sun.com, Phi Tran <phitran@sac.sfbay.sun.com>
Message-id: <200901131847.n0DIlTNg011953@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <496ADAB3.5070906@Sun.COM> <496AE12B.2030003@sun.com>
 <18795.17896.562807.896342@gargle.gargle.HOWL> <496B861E.5050401@sun.com>
 <20090112181412.GS6457@Sun.COM> <496B8998.6030503@sun.com>
 <200901130922.n0D9Mt3d011996@dm-holland-02.uk.sun.com>
 <496CDA9E.2090200@sun.com> <496CDAE7.9070109@sun.com>
Status: RO
Content-Length: 431



>1) the actual event names (and any payload details)
>2) ideally, if there is some interface to ACPI itself that these modules 
>should use, then those details.
>
>Anyway, I'm not too worried at the moment... both of those sets of 
>details can just be Project Private for now.  (Is that what how they're 
>classified in the materials?)


That's all fine; it's all "Open Source" so if you want, you can build your 
own.

Casper


From Phi.Tran@sun.com Tue Jan 20 12:58:17 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n0KKwHUG010103
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 20 Jan 2009 12:58:17 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n0KKwEmm003961;
	Tue, 20 Jan 2009 13:58:16 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KDS00D15FL30Y00@nwk-avmta-2.sfbay.sun.com>; Tue,
 20 Jan 2009 12:58:15 -0800 (PST)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KDS008ENFKVUE70@nwk-avmta-2.sfbay.sun.com>; Tue,
 20 Jan 2009 12:58:07 -0800 (PST)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n0KKw7Cd019749;
 Tue, 20 Jan 2009 12:58:07 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0KDS00101FFQEK00@fe-sfbay-10.sun.com>
 (original mail from Phi.Tran@Sun.COM); Tue, 20 Jan 2009 12:58:07 -0800 (PST)
Received: from [10.1.48.243] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0KDS002ICFKTRX00@fe-sfbay-10.sun.com>; Tue,
 20 Jan 2009 12:58:05 -0800 (PST)
Date: Tue, 20 Jan 2009 12:50:11 -0800
From: Phi Tran <Phi.Tran@sun.com>
Subject: Re: Laptop Hotkey Support [PSARC/2009/016 FastTrack timeout 01/16/2009]
In-reply-to: <496B877E.40705@sun.com>
Sender: Phi.Tran@sun.com
To: PSARC-ext@sun.com
Cc: Kerry Shu <Kerry.Shu@sun.com>, laptop-hotkeys-iteam@sun.com
Message-id: <49763903.6010301@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200901120401.n0C41A5b012275@sac.sfbay.sun.com>
 <20090112162659.GD6457@Sun.COM> <496B877E.40705@sun.com>
User-Agent: Thunderbird 2.0.0.16 (X11/20080922)
Status: RO
Content-Length: 121

This case timed out last Friday and has three +1.  There are no more
comments so I will mark this case as approved.

Phi

