You are not logged in.

#1 2010-05-02 15:25:07

augustl
Member
Registered: 2010-02-22
Posts: 33

Finding the vendor and product identifiers for use in xorg.conf (1.8)

I would like to apply some specific configuration to my apple external keyboard, such as fixing the problem with the swapped | and < keys, and remapping some modkeys.

In order to do this in xorg 1.8, I have to add an InputClass section to a xorg config file, and give it the proper MatchVendor and MatchProduct, afaik. How do I find the correct values for MatchVendor and MatchProduct, though? Also, where would I find documentation for what options I can set for this device?

Offline

#2 2010-05-03 08:59:39

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Finding the vendor and product identifiers for use in xorg.conf (1.8)

I used the HAL-tools to accomplish this, but now HAL is deprecated, I'm not sure which tools will handle this... (udev?)

Offline

#3 2010-05-03 11:18:14

augustl
Member
Registered: 2010-02-22
Posts: 33

Re: Finding the vendor and product identifiers for use in xorg.conf (1.8)

Who knows smile There seems to be a complete lack of documentation. Not even "man xorg.conf" mentions anything about what exactly it matches against.

Offline

#4 2010-05-04 19:48:10

augustl
Member
Registered: 2010-02-22
Posts: 33

Re: Finding the vendor and product identifiers for use in xorg.conf (1.8)

Shameless bump, because I'm certain that _someone_ in the arch community has to know this.

Offline

#5 2010-05-04 22:00:17

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Finding the vendor and product identifiers for use in xorg.conf (1.8)

augustl wrote:

How do I find the correct values for MatchVendor and MatchProduct, though? Also, where would I find documentation for what options I can set for this device?

The values should be the same as the ones used for the udev rules.
So you can look to http://www.reactivated.net/writing_udev_rules.html
Especially 'Finding suitable information from sysfs'.

The 'udevinfo' command is replaced by the 'udevadm info' command.
So the command :
# udevinfo -a -p $(udevinfo -q path -n /dev/sda)

should be replaced by :

# udevadm info --query=all --path=$(udevadm info --query=path --name=/dev/sdx)
Replace /dev/sdx by the device of the keyboard.
Reason of edit : command line parameter syntax corrected.

It gives a list of all the attributes for a specific device, to write udev rules.
See 'man udevadm'

But the strings for the Vendor and the Product should be the same as for the MatchVendor and MatchProduct strings in the InputClass section of the xorg config file.
It's what I understand presently about that subject, as I just begin to study the changes with xorg 1.8 and the exclusive use of udev for configuring the input devices.
I just give you some ideas without guarantees at that time.
I have not yet experimented that.

Last edited by berbae (2010-05-05 09:32:15)

Offline

Board footer

Powered by FluxBB