Re: [DIGImend-devel] Genius PenSketch 12x9 in Ubuntu Precise (12.04)
Brought to you by:
spb_nick
|
From: Nikolai K. <sp...@gm...> - 2012-07-26 12:09:13
|
Hi Viktoria,
On Thu, Jul 26, 2012 at 2:09 PM, Viktoria S. <vik...@fr...> wrote:
> I have created 99-geniousmousepen.rules and I have putted into /lib/udev/rules.d directory. It's contents:
> ACTION=="add|change", ENV{ID_INPUT_TABLET}=="?*", ENV{NAME}="Genius
> MousePen i608X Pen", ENV{ID_MODEL}="MousePen_i608XE",
> ENV{ID_MODEL_ENC}="MousePen\x20i608XE",
> ENV{ID_SERIAL}="Genius_MousePen_i608XS", ENV{HID_NAME}="Genius MousePen
> i608X H"
>
> And it runs succesfuly. The udev rule gets applied, because the pen
> properties get changed. See the attached mod.txt (output of udevadm
> monitor --property while I was plug in the mousepen).
> But unfortunately the xinput still lists 2 Genius MousePen i608X instead
> of any of the changed names. I am confused. The xinput gets applied
> earlier than the udev rule? Or what can be the problem?
I should've thought of this earlier, but I think ENV variables are only for
use within udev and, maybe, programs that use libudev. Assigning them
doesn't change anything in the kernel. "Writing udev rules" says:
udev provides an ENV key for environment variables which can be used for
both matching and assignment.
The evdev driver doesn work with udev, but instead queries kernel directly
using EVIOCGNAME ioctl.
Maybe there is a way to change that name, but I haven't found it.
You still have the option of disabling the mouse event device if you don't
use it.
Sincerely,
Nick
|