* [PATCH] Add extra keys for rc6-mce
@ 2021-03-17 21:59 Leonardo Brondani Schenkel
2021-03-18 9:43 ` Sean Young
0 siblings, 1 reply; 3+ messages in thread
From: Leonardo Brondani Schenkel @ 2021-03-17 21:59 UTC (permalink / raw)
To: linux-media
[-- Attachment #1: Type: text/plain, Size: 2199 bytes --]
(This is my first time sending a patch to this project. I hope I'm doing
it right. This is not necessarily meant to be merged as-is.)
Over the years I have compiled a list of known MCE remote keys from
multiple sources. Unfortunately I have not written down those sources,
but I remember that among them there were IR databases such as the one
from Logitech Harmony, and also some web pages.
I noticed that the RC6-MCE keymap is missing a few of them, so I am
submitting a patch to include them.
I have a Harmony remote and also a JP1 programmable remote and I
personally tested all those keys.
I added comments in the diff after the fact to communicate to this list
what the buttons are on the remote, so you can know why the specific key
was chosen.
---
utils/keytable/rc_keymaps/rc6_mce.toml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/utils/keytable/rc_keymaps/rc6_mce.toml
b/utils/keytable/rc_keymaps/rc6_mce.toml
index 1ee9c722..672fa763 100644
--- a/utils/keytable/rc_keymaps/rc6_mce.toml
+++ b/utils/keytable/rc_keymaps/rc6_mce.toml
@@ -44,24 +44,32 @@ variant = "rc6_mce"
0x800f0425 = "KEY_TUNER"
0x800f0426 = "KEY_EPG"
0x800f0427 = "KEY_ZOOM"
+0x800f0428 = "KEY_OPEN" # Open/Close
+0x800f0429 = "KEY_WAKEUP" # Power on (discrete)
+0x800f042a = "KEY_SLEEP" # Power off (discrete)
0x800f0432 = "KEY_MODE"
0x800f0433 = "KEY_PRESENTATION"
0x800f0434 = "KEY_EJECTCD"
0x800f043a = "KEY_BRIGHTNESSUP"
+0x800f043b = "KEY_EXIT" # Exit/Close (Alt+F4 in Windows)
0x800f0446 = "KEY_TV"
0x800f0447 = "KEY_AUDIO"
0x800f0448 = "KEY_PVR"
0x800f0449 = "KEY_CAMERA"
0x800f044a = "KEY_VIDEO"
+0x800f044b = "KEY_ANGLE" # DVD angle
0x800f044c = "KEY_LANGUAGE"
0x800f044d = "KEY_TITLE"
0x800f044e = "KEY_PRINT"
+0x800f044f = "KEY_DISPLAYTOGGLE" # Display
0x800f0450 = "KEY_RADIO"
+0x800f0451 = "KEY_TITLE" # Title
0x800f045a = "KEY_SUBTITLE"
0x800f045b = "KEY_RED"
0x800f045c = "KEY_GREEN"
0x800f045d = "KEY_YELLOW"
0x800f045e = "KEY_BLUE"
+0x800f0464 = "KEY_GAMES" # Xbox
0x800f0465 = "KEY_POWER2"
0x800f0469 = "KEY_MESSENGER"
0x800f046e = "KEY_PLAYPAUSE"
--
2.31.0
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4494 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add extra keys for rc6-mce
2021-03-17 21:59 [PATCH] Add extra keys for rc6-mce Leonardo Brondani Schenkel
@ 2021-03-18 9:43 ` Sean Young
2021-03-18 10:37 ` Leonardo Brondani Schenkel
0 siblings, 1 reply; 3+ messages in thread
From: Sean Young @ 2021-03-18 9:43 UTC (permalink / raw)
To: Leonardo Brondani Schenkel; +Cc: linux-media
Hi Leonardo,
On Wed, Mar 17, 2021 at 10:59:56PM +0100, Leonardo Brondani Schenkel wrote:
> (This is my first time sending a patch to this project. I hope I'm doing it
> right. This is not necessarily meant to be merged as-is.)
>
> Over the years I have compiled a list of known MCE remote keys from multiple
> sources. Unfortunately I have not written down those sources, but I remember
> that among them there were IR databases such as the one from Logitech
> Harmony, and also some web pages.
>
> I noticed that the RC6-MCE keymap is missing a few of them, so I am
> submitting a patch to include them.
>
> I have a Harmony remote and also a JP1 programmable remote and I personally
> tested all those keys.
>
> I added comments in the diff after the fact to communicate to this list what
> the buttons are on the remote, so you can know why the specific key was
> chosen.
I can't see those comments.
> ---
> utils/keytable/rc_keymaps/rc6_mce.toml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/utils/keytable/rc_keymaps/rc6_mce.toml
> b/utils/keytable/rc_keymaps/rc6_mce.toml
> index 1ee9c722..672fa763 100644
> --- a/utils/keytable/rc_keymaps/rc6_mce.toml
> +++ b/utils/keytable/rc_keymaps/rc6_mce.toml
> @@ -44,24 +44,32 @@ variant = "rc6_mce"
> 0x800f0425 = "KEY_TUNER"
> 0x800f0426 = "KEY_EPG"
> 0x800f0427 = "KEY_ZOOM"
> +0x800f0428 = "KEY_OPEN" # Open/Close
> +0x800f0429 = "KEY_WAKEUP" # Power on (discrete)
> +0x800f042a = "KEY_SLEEP" # Power off (discrete)
Thank you for your patch. These files are generated from the linux kernel
tree. Your patch should modifiy drivers/media/rc/keymaps/rc-rc6-mce.c,
and then utils/keytable/rc_keymaps/rc6_mce.toml will be regenerated from
it.
Your patch also requires a Signed-off-by line.
Have a look through:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
Many thanks
Sean
> 0x800f0432 = "KEY_MODE"
> 0x800f0433 = "KEY_PRESENTATION"
> 0x800f0434 = "KEY_EJECTCD"
> 0x800f043a = "KEY_BRIGHTNESSUP"
> +0x800f043b = "KEY_EXIT" # Exit/Close (Alt+F4 in Windows)
> 0x800f0446 = "KEY_TV"
> 0x800f0447 = "KEY_AUDIO"
> 0x800f0448 = "KEY_PVR"
> 0x800f0449 = "KEY_CAMERA"
> 0x800f044a = "KEY_VIDEO"
> +0x800f044b = "KEY_ANGLE" # DVD angle
> 0x800f044c = "KEY_LANGUAGE"
> 0x800f044d = "KEY_TITLE"
> 0x800f044e = "KEY_PRINT"
> +0x800f044f = "KEY_DISPLAYTOGGLE" # Display
> 0x800f0450 = "KEY_RADIO"
> +0x800f0451 = "KEY_TITLE" # Title
> 0x800f045a = "KEY_SUBTITLE"
> 0x800f045b = "KEY_RED"
> 0x800f045c = "KEY_GREEN"
> 0x800f045d = "KEY_YELLOW"
> 0x800f045e = "KEY_BLUE"
> +0x800f0464 = "KEY_GAMES" # Xbox
> 0x800f0465 = "KEY_POWER2"
> 0x800f0469 = "KEY_MESSENGER"
> 0x800f046e = "KEY_PLAYPAUSE"
> --
> 2.31.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-18 10:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-17 21:59 [PATCH] Add extra keys for rc6-mce Leonardo Brondani Schenkel
2021-03-18 9:43 ` Sean Young
2021-03-18 10:37 ` Leonardo Brondani Schenkel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox