linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jerone Young <jerone.young@canonical.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Force key release for volume keys on Dell Studio 1557
Date: Sat, 13 Feb 2010 00:08:08 +0000	[thread overview]
Message-ID: <1266019688.2667.120.camel@laptop> (raw)

Dell Studio 1557 does not generate a release code when the volume keys
are pressed, causing them to generate infinite key presses. This forces
key release of these keys.

Signed-off-by: Jerone Young <jerone.young@canonical.com>

diff --git a/Makefile.am b/Makefile.am
index 728076a..e928559 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -540,7 +540,8 @@ dist_udevkeymap_DATA = \
 
 udevkeymapforcereldir = $(libexecdir)/keymaps/force-release
 dist_udevkeymapforcerel_DATA = \
-	extras/keymap/force-release-maps/samsung-other
+	extras/keymap/force-release-maps/samsung-other \
+	extras/keymap/force-release-maps/dell-studio-1557
 
 extras/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h
 	mkdir -p extras/keymap
diff --git a/extras/keymap/95-keyboard-force-release.rules b/extras/keymap/95-keyboard-force-release.rules
index 689afe9..659ee95 100644
--- a/extras/keymap/95-keyboard-force-release.rules
+++ b/extras/keymap/95-keyboard-force-release.rules
@@ -21,4 +21,6 @@ ENV{DMI_VENDOR}="$attr{[dmi/id]sys_vendor}"
 
 ENV{DMI_VENDOR}="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}="*N130*|*N140*|*SR70S/SR71S*", RUN+="keyboard-force-release.sh $devpath samsung-other"
 
+ENV{DMI_VENDOR}="Dell Inc.", ATTR{[dmi/id]product_name}="Studio 1557", RUN+="keyboard-force-release.sh $devpath dell-studio-1557"
+
 LABEL="force_release_end"
diff --git a/extras/keymap/force-release-maps/dell-studio-1557 b/extras/keymap/force-release-maps/dell-studio-1557
new file mode 100755
index 0000000..1718673
--- /dev/null
+++ b/extras/keymap/force-release-maps/dell-studio-1557
@@ -0,0 +1,3 @@
+0xa0 #mute
+0xae #volume up
+0xb0 #volume down



             reply	other threads:[~2010-02-13  0:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-13  0:08 Jerone Young [this message]
2010-02-13 11:54 ` [PATCH] Force key release for volume keys on Dell Studio 1557 Martin Pitt

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=1266019688.2667.120.camel@laptop \
    --to=jerone.young@canonical.com \
    --cc=linux-hotplug@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).