All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Jose Ignacio Naranjo <joseignacio.naranjo@gmail.com>
Cc: platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] toshiba_acpi: Add hotkeys support for Toshiba Satellite U940
Date: Tue, 21 Jan 2014 08:38:26 -0500	[thread overview]
Message-ID: <1390311506.5320.8.camel@x230> (raw)
In-Reply-To: <1385161342-8262-1-git-send-email-joseignacio.naranjo@gmail.com>

On Sat, 2013-11-23 at 00:02 +0100, Jose Ignacio Naranjo wrote:

First, I'm really sorry that it's taken me so long to get around to
reviewing this.

> +static struct key_entry keymap_satellite_u940[] = {
> +	{ KE_KEY, 0x13c, { KEY_BRIGHTNESSDOWN } },
> +	{ KE_KEY, 0x13d, { KEY_BRIGHTNESSUP } },
> +	{ KE_KEY, 0x13e, { KEY_SWITCHVIDEOMODE } },
> +	{ KE_KEY, 0x13f, { KEY_TOUCHPAD_TOGGLE } },
> +	{ KE_KEY, 0x157, { KEY_MUTE} },
> +	{ KE_KEY, 0x158, { KEY_WLAN } },
> +	{ KE_KEY, 0x12c, { KEY_KBDILLUMTOGGLE } },
> +	{ KE_KEY, 0x102, { KEY_ZOOMOUT } },
> +	{ KE_KEY, 0x103, { KEY_ZOOMIN } },
> +	{ KE_KEY, 0x139, { KEY_ZOOMRESET } },
> +	{ KE_END, 0 }

Yeah, that's pretty distinct from the original map. Boo.

> +
> +static int dmi_matched(const struct dmi_system_id *dmi)
> +{
> +	keymap = dmi->driver_data;
> +	return 1;
>+}

But I'm not a fan of doing this with DMI - if Toshiba are doing this for
some newer machines then it's possible that the map's changed for all of
them. Things that spring to mind:

1) The map may be different on all systems that support Windows 8?
2) There's some ACPI call that distinguishes between them?

Can you send me the output of acpidump for this system?

Thanks,
-- 
Matthew Garrett <matthew.garrett@nebula.com>

      parent reply	other threads:[~2014-01-21 13:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22 23:02 [PATCH] toshiba_acpi: Add hotkeys support for Toshiba Satellite U940 Jose Ignacio Naranjo
2013-12-05  6:55 ` Jose Ignacio Naranjo
2013-12-05 15:21   ` Matthew Garrett
2014-01-21 13:38 ` Matthew Garrett [this message]

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=1390311506.5320.8.camel@x230 \
    --to=mjg59@srcf.ucam.org \
    --cc=joseignacio.naranjo@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

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

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