On Wed, Jul 20, 2011 at 12:16 AM, Peter Hutterer
<[email protected]> wrote:
>> What horrendous mistakes would I be making if I used?
>>
>> SUBSYSTEM="tty", SUBSYSTEMS="pnp", ATTRS{id}=="PNP0501",
>> ENV{ID_MODEL}="Serial Wacom Tablet", ENV{ID_INPUT}="1",
>> ENV{ID_INPUT_TABLET}="1"
>
> looks good to me though I would recommend using the $attr{id} in the
> ID_MODEL as well. Lennart?
OK, thanks. I suppose I should show you what I'm working from:
udevadm info -a -p $(udevadm info -q path -n /dev/ttyS0)
looking at device '/devices/pnp0/00:08/tty/ttyS0':
KERNEL=="ttyS0"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/pnp0/00:08':
KERNELS=="00:08"
SUBSYSTEMS=="pnp"
DRIVERS=="serial"
ATTRS{id}=="PNP0501"
looking at parent device '/devices/pnp0':
KERNELS=="pnp0"
SUBSYSTEMS==""
DRIVERS==""
> Note that this rule removes the symlink to /dev/input/wacom that you have in
> the above rule. Fair decision, but should be intentional ;)
So maybe?
SUBSYSTEM="tty", SUBSYSTEMS="pnp", ATTRS{id}=="PNP0501",
ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", SYMLINK+="input/wacom",
ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"
I've been trying to get the following to work without any luck.
Section "InputClass"
Identifier "Wacom legacy serial class"
MatchPnPID "PNP0501"
Driver "wacom"
Option "ForceDevice" "Serial"
EndSection
Of course you wouldn't need the ForceDevice option using the wacom_serial.ko.
>> And by the way shouldn't
>>
>> ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}"
>>
>> be
>>
>> ENV{ID_MODEL}="Serial Wacom Tablet PC $attr{id}"
>>
>> for WACf* and FUJ*?
>
> IMO no. Currently, all WACf and FUJ serial tablets are built into Tablet PCs
> but we don't know if that's the case in the future. They will remain Wacom
> tablets however (well, at least while handled by the ruleset).
Good point! I withdraw the remark.
Favux
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel