Re: [PATCH] sony-laptop: support rfkill via ACPI interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 23, 2009 at 01:30:30PM +0100, Norbert Preining wrote:
> On Mo, 23 Mär 2009, Mattia Dongili wrote:
> > A vaio SR user sent me this list for 0x9c that after a call to SN07(202)
> > becomes:
> > 
> > +       { 0x81, SONYPI_EVENT_MODEKEY_PRESSED },
> > +       { 0x01, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0x82, SONYPI_EVENT_PKEY_P1 },
> > +       { 0x02, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0x83, SONYPI_EVENT_PKEY_P2 },
> > +       { 0x03, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0x84, SONYPI_EVENT_PKEY_P3 },
> > +       { 0x04, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0x85, SONYPI_EVENT_PKEY_P4 },
> > +       { 0x05, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0x86, SONYPI_EVENT_PKEY_P5 },
> > +       { 0x06, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0x87, SONYPI_EVENT_SETTINGKEY_PRESSED },
> > +       { 0x07, SONYPI_EVENT_ANYBUTTON_RELEASED },
> > +       { 0, 0 },
> 
> Couldn't test that since several SONYPI_EVENT* are not defined in
> current -rc8 plus Matthew patch. And I didn't want to try it out. 

the above code was not meant to be tested. What you should do instead is
changing the line (after Matthew's patch):
	if (ev == 0x92 || ev == 0x93) {
in sony_acpi_notify to
	if (ev == 0x92 || ev == 0x93 || ev == 0x90) {
load the driver with debug=1 and press the unrecognized Fn keys.
You *should* get a bunch of "unknown input event XX" in the kernel log,
with those we can build the necessary mappings for your specific model
(hopefully not just yours).

-- 
mattia
:wq!
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux