On Wed, Jul 20, 2011 at 02:12:15PM +1000, Peter Hutterer wrote:
[...]
> The amended rules file now looks like this:
> ---- %< ----
> ACTION!="add|change", GOTO="wacom_end"
>
> # Match all wacom tablets with a serial ID starting with WACf
> SUBSYSTEM="tty", SUBSYSTEMS="pnp", ATTRS{id}=="WACf*", ENV{ID_MODEL}="Serial
> Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"
> SUBSYSTEM="tty", SUBSYSTEMS="pnp", ATTRS{id}=="FUJ*", ENV{ID_MODEL}="Serial
> Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1"
>
> LABEL="wacom_end"
> ---- >% ----
Unfortunately, due to a silly mistake (forgot to udevadm trigger), my
testing setup yesterday was still using the old rules and I didn't spot the
issues with the file above. Main issue above is in the =, not == in the
SUBSYSTEM(s) check, but even with that the server won't add the new device.
Sorry.
Amended rules file below, with comments that should explain everything. This
file can be used as a drop-in to the current one.
> ---- %< ----
ACTION!="add|change", GOTO="wacom_end"
# Match all serial wacom tablets with a serial ID starting with WACf
# Notes: We assign NAME though we shouldn't, but currently the server requires
it
# We assign the lot to subsystem pnp too because server reads NAME from
# the parent device. Once all that's fixed, as simple SUBSYSTEM="tty"
# will do and the ENV{NAME} can be removed.
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*",
ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1",
ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="FUJ*",
ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1",
ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
LABEL="wacom_end"
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel