Re: [DIGImend-devel] Genius PenSketch 12x9 in Ubuntu Precise (12.04)
Brought to you by:
spb_nick
|
From: Viktoria S. <vik...@fr...> - 2012-07-26 05:54:02
|
Hi! I have a look at this too. Based on this: http://www.reactivated.net/writing_udev_rules.html#basic You can name devices like this too: KERNEL=="hdb", NAME="my_spare_disk" But my question is how you want to identify the pen? To me there are no diferences from the udev perspective between the mouse and the pen. I query the xinput for the devices pen=id 11 mouse id=12. (Based on xinput list --long 11) xinput list-props 11 gives me the node: Device Node (264): "/dev/input/event14" udevadm info --name=/dev/input/event14 --attribute-walk gives me all the properties which I can use for creating rules. (or at least according to my understading....) For the mouse: xinput list-props 12 gives the node Device Node (264): "/dev/input/event15" udevadm info --name=/dev/input/event15 --attribute-walk gives the properties for the mouse But if I see things well the mouse data the same as the pen's data. (See the attached txt.) So the main question is still there: how do you make a deference between the mouse and the pen? Viktoria "Favux ..." <fav...@gm...> írta: >On Wed, Jul 25, 2012 at 2:05 PM, Nikolai Kondrashov <sp...@gm...> wrote:> > On 07/25/2012 09:59 PM, Favux ... wrote:> >>> >> Oh, now that is a different story. If we can match capability> >> bitmasks for pen, mouse, keyboard, etc. then what I was thinking of> >> was trying something on this order:> >>> >> ENV{NAME}="Serial Wacom Tablet $attr{id}"> >>> >> Using ENV{NAME} to change the name to what we want with device type> >> appended. Should show up in xinput list and Gimp etc.> >> >> > That would be just great! Somehow I either didn't notice this or didn't test> > it properly.> >> >> >> The thing I was wondering about was how to number them if needed, e.g.> >> pen1, pen2 and so on.> >> >> > All generic tablets I've seen so far have only one input of one type each,> > so there shouldn't be a need to number them. Although that could be arranged> > somehow, I'm sure.> >> > So we just need to classify the devices and name them appropriately. Like> > "pen", "mouse", "frame buttons", "frame dials", etc.> >> > Sincerely,> > Nick> > Right, and no reason for the names to be the same as Wacom's. If we> use pen then the Waltop's will end up with -pen stylus and -pen eraser> as the Wacom X driver appends it. A little clumsy but not terrible.> > Sure hope we can get it working.> > Favux> |