Bug 20513 - Patch for Trust KB-1400S
Summary: Patch for Trust KB-1400S
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-03-06 11:04 UTC by Anselmo Luginbuhl
Modified: 2009-03-08 03:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to add Trust KB-1400S (1.64 KB, patch)
2009-03-06 11:04 UTC, Anselmo Luginbuhl
Details | Splinter Review
just an indentation correction on the previous patch (974 bytes, patch)
2009-03-06 11:16 UTC, Anselmo Luginbuhl
Details | Splinter Review
More appropriate inet file, to be applied after the other two patch. (706 bytes, patch)
2009-03-06 15:49 UTC, Anselmo Luginbuhl
Details | Splinter Review

Description Anselmo Luginbuhl 2009-03-06 11:04:17 UTC
Created attachment 23595 [details] [review]
patch to add Trust KB-1400S

Hi,

i've added the support for the Trust Slimline Keyboard 1400S,

mine is the model no. 14228, but only the special keys had to be mapped so I think all the other keyboards of the KB-1400S serie (different languages) should have the same special key codes.

In attachment the diff to the last git version.
Comment 1 Anselmo Luginbuhl 2009-03-06 11:16:24 UTC
Created attachment 23596 [details] [review]
just an indentation correction on the previous patch

I made a little indentation error in the previous patch in the inet file, this one correct some lines indentation.
Comment 2 Sergey V. Udaltsov 2009-03-06 13:35:33 UTC
A couple of questions:
1. Would it be fair just to call it trust_slimline?
2. I guess, just including media_nav_acpi_common would be enough, wouldn't it? Could you please try? Do not be afraid of mappings for non-existing keys.
Comment 3 Anselmo Luginbuhl 2009-03-06 15:48:44 UTC
(In reply to comment #2)
> A couple of questions:
> 1. Would it be fair just to call it trust_slimline?
> 2. I guess, just including media_nav_acpi_common would be enough, wouldn't it?
> Could you please try? Do not be afraid of mappings for non-existing keys.
> 
Hi,

1. That was my first thought, but today there are three Slimline keyboard, KB-1400S, KB-1350D, KB-1450 series, all with different media keys. May be more in the future? So i've choosed a more articulated name, but that's my first time with xkb, so feel free to change it.

2. You're perfectly right, media_nav_acpi_common cover nearly all the keys. The only one that as to be differently mapped is the home key. I've added in attachement the patch to inet, but as i'm not very used to git, the patch is the diff after my two previous patch, so, if you prefer, i should "restart" from the beginning.
Comment 4 Anselmo Luginbuhl 2009-03-06 15:49:53 UTC
Created attachment 23601 [details] [review]
More appropriate inet file, to be applied after the other two patch.
Comment 5 Sergey V. Udaltsov 2009-03-06 15:53:26 UTC
Actually I'd prefer to have I32 as WWW rather than HomePage, as a consistent usage pattern across symbols/inet file. I guess the difference is not critical here - usually tools can be configured to use either in shortcuts.

Is that essential key for you?
Comment 6 Anselmo Luginbuhl 2009-03-07 01:24:42 UTC
(In reply to comment #5)
> Actually I'd prefer to have I32 as WWW rather than HomePage, as a consistent
> usage pattern across symbols/inet file. I guess the difference is not critical
> here - usually tools can be configured to use either in shortcuts.
> 
> Is that essential key for you?
> 

Absolutly not, it was just to be coherent with the symbol printed on the keyboard (a little home), and consequentially with default shortcut configuration and keyboard symbol. And as i've seen on inet, I32 is used for different keys so I thouthgt it was right to change it.

Comment 7 Sergey V. Udaltsov 2009-03-07 01:43:40 UTC
Well, If you do "grep I32 inet", you'll see that it is never HomePage - it is either WWW or something totally different. I spent some time cleaning it :)

So, if you're happy just to use media_nav_acpi_common, I'll do the following thing. No modification to symbols/inet. Instead, the rule will be added to rules/base.m_s.part:

trust_slimline = inet(media_nav_acpi_common)

That way your model should work fine.

Agreed?
Comment 8 Anselmo Luginbuhl 2009-03-07 02:01:49 UTC
Absolutely, I just wanted to add my keyboard and give some contribution, and I don't know the complete schema of xkb. So your decision is final from my point of view. You've been very diplomatic with me :-), so I really appreciate your consideration of my little work.
Comment 9 Sergey V. Udaltsov 2009-03-07 02:07:09 UTC
You're very welcome. I depend on contributors like you (since I cannot buy all keyboard models myself:), so I am just trying not to irritate people.

Thanks for your contribution, the code will be put in place ASAP.
Comment 10 Sergey V. Udaltsov 2009-03-07 16:57:23 UTC
Committed! You can check in git - or wait till next release in May. Thanks again for the contribution.
Comment 11 Anselmo Luginbuhl 2009-03-08 03:04:45 UTC
I'll probably wait longer as i'm using debian testing :-(

Thank's for your work.

Anselmo


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.