Quantcast

Problem setting the buttons of the tablet

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem setting the buttons of the tablet

Marcelo Lacerda
I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
of input-wacom , xf86-input-wacom, and libwacom. The device it self
works for the most part, except for the tablet buttons(A,B,C,D).

I get the correct number of buttons from xinput(7, 3 for the pen and 4
for the tablet)
https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d

I am able to retrieve information about the 7 buttons:

$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
button +1
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
button +2
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
button +3
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
4
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
5
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
6
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
7
$ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7

But I can't set it to anything:

$ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
Invalid offset into Wacom Button Actions property.
$ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
Invalid offset into Wacom Button Actions property.

Is this a bug or am I doing something wrong?

My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
input-wacom is 0.30.2.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Jason Gerecke
Marcelo,

In addition to the "stylus" device, you should see a "pad" device in
the output of `xsetwacom list`. To set up the actions performed by the
buttons on the tablet itself, you need to use xsetwacom to configure
that "pad" device instead (the "stylus" device is only for the
stylus).

I'm not 100% sure what the device name will be (so check `xsetwacom
list`) but it'd be something like:

$ xsetwacom set "Wacom Intuos S 2 Pen pad" Button 1 key a
$ xsetwacom set "Wacom Intuos S 2 Pen pen" Button 3 key b
$ xsetwacom set "Wacom Intuos S 2 Pen pen" Button 8 key c
$ xsetwacom set "Wacom Intuos S 2 Pen pen" Button 9 key d

If the button numbers (1, 3, 8, 9) don't make all the buttons work,
try others in the range 1-10. The numbering is strange because we try
to have certain buttons do certain things by default (respectively:
left, right, forward, back).

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....

On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
<[hidden email]> wrote:

> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
> of input-wacom , xf86-input-wacom, and libwacom. The device it self
> works for the most part, except for the tablet buttons(A,B,C,D).
>
> I get the correct number of buttons from xinput(7, 3 for the pen and 4
> for the tablet)
> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>
> I am able to retrieve information about the 7 buttons:
>
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
> button +1
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
> button +2
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
> button +3
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
> 4
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
> 5
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
> 6
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
> 7
> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>
> But I can't set it to anything:
>
> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
> Invalid offset into Wacom Button Actions property.
> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
> Invalid offset into Wacom Button Actions property.
>
> Is this a bug or am I doing something wrong?
>
> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
> input-wacom is 0.30.2.
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
> _______________________________________________
> Linuxwacom-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Marcelo Lacerda
On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
> Marcelo,
>
> In addition to the "stylus" device, you should see a "pad" device in
> the output of `xsetwacom list`.

No, I don't see a pad.

$ xsetwacom list
Wacom Intuos S 2 Pen stylus         id: 11    type: STYLUS
msl09@choclotho:/tmp$

> Jason
> ---
> Now instead of four in the eights place /
> you’ve got three, ‘Cause you added one  /
> (That is to say, eight) to the two,     /
> But you can’t take seven from three,    /
> So you look at the sixty-fours....
>
> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
> <[hidden email]> wrote:
>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>> works for the most part, except for the tablet buttons(A,B,C,D).
>>
>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>> for the tablet)
>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>
>> I am able to retrieve information about the 7 buttons:
>>
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>> button +1
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>> button +2
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>> button +3
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>> 4
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>> 5
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>> 6
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>> 7
>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>
>> But I can't set it to anything:
>>
>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>> Invalid offset into Wacom Button Actions property.
>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>> Invalid offset into Wacom Button Actions property.
>>
>> Is this a bug or am I doing something wrong?
>>
>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>> input-wacom is 0.30.2.
>>
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
>> _______________________________________________
>> Linuxwacom-discuss mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Marcelo Lacerda
The pad appears in the syslog, though:

Apr  8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr  8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:

> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus         id: 11    type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one  /
>> (That is to say, eight) to the two,     /
>> But you can’t take seven from three,    /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Pourrito
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Marcelo Lacerda
Seems like the problem happens before xsetwacom is called:

https://gist.github.com/marceloslacerda/fafa82dbf9ad88784c5fe3fa71c40fa0

Strangely I can see the device in /dev/input/by-id/

usb-Wacom_Co._Ltd._Intuos_PS-event-if01
usb-Wacom_Co._Ltd._Intuos_PS-event-mouse
usb-Wacom_Co._Ltd._Intuos_PS-mouse

And printing the file while pressing the top buttons I get:

sudo cat /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PS-event-if01
�       W� � W��     W�
�    W�
�       W� �W� �    W�� � W���    W�_    �   W�_    �       Wy�
                                                                           � Wy�
                                                                                   �    W�� �       W�� �   W �   W


Is it a problem with the kernel module(or the kernel)? I made sure to install it from the git repository this time:

$ sudo modinfo wacom
filename:       /lib/modules/3.16.0-4-amd64/extra/wacom.ko
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
version:        v1.53-0.30.2.46.ge540f23
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>




On Sat, Apr 9, 2016 at 4:23 AM, Pourrito <[hidden email]> wrote:
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Marcelo Lacerda
I was able to work around the problem with a program that translates wacom raw inputs to x events:

The python script that translates the events:
https://gist.github.com/marceloslacerda/15ff6c7268d7a6e1354d7f944e49405e
The systemd service file that starts the program whenever it needs to be:
https://gist.github.com/marceloslacerda/7e7efa184c8b2d62844759cb9d3c4bf0

Seems to work for now.


On Sat, Apr 9, 2016 at 11:09 AM, Marcelo Lacerda <[hidden email]> wrote:
Seems like the problem happens before xsetwacom is called:

https://gist.github.com/marceloslacerda/fafa82dbf9ad88784c5fe3fa71c40fa0

Strangely I can see the device in /dev/input/by-id/

usb-Wacom_Co._Ltd._Intuos_PS-event-if01
usb-Wacom_Co._Ltd._Intuos_PS-event-mouse
usb-Wacom_Co._Ltd._Intuos_PS-mouse

And printing the file while pressing the top buttons I get:

sudo cat /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PS-event-if01
�       W� � W��     W�
�    W�
�       W� �W� �    W�� � W���    W�_    �   W�_    �       Wy�
                                                                           � Wy�
                                                                                   �    W�� �       W�� �   W �   W


Is it a problem with the kernel module(or the kernel)? I made sure to install it from the git repository this time:

$ sudo modinfo wacom
filename:       /lib/modules/3.16.0-4-amd64/extra/wacom.ko
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
version:        v1.53-0.30.2.46.ge540f23
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>




On Sat, Apr 9, 2016 at 4:23 AM, Pourrito <[hidden email]> wrote:
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss




------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Jason Gerecke
Since the device is clearly detected and working at the kernel layer, the issue must be with X not connecting to it for some reason. Could you provide us with a copy of your Xorg.0.log [1] for review?

[1]: Possibly found at /var/log/Xorg.0.log, ~/.local/share/xorg/Xorg.0.log, or as the output of the following command: `journalctl _COMM=Xorg _COMM=Xorg.bin _COMM=gdm-x-session -b0`

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....


On Sat, Apr 9, 2016 at 12:39 PM, Marcelo Lacerda <[hidden email]> wrote:
I was able to work around the problem with a program that translates wacom raw inputs to x events:

The python script that translates the events:
https://gist.github.com/marceloslacerda/15ff6c7268d7a6e1354d7f944e49405e
The systemd service file that starts the program whenever it needs to be:
https://gist.github.com/marceloslacerda/7e7efa184c8b2d62844759cb9d3c4bf0

Seems to work for now.


On Sat, Apr 9, 2016 at 11:09 AM, Marcelo Lacerda <[hidden email]> wrote:
Seems like the problem happens before xsetwacom is called:

https://gist.github.com/marceloslacerda/fafa82dbf9ad88784c5fe3fa71c40fa0

Strangely I can see the device in /dev/input/by-id/

usb-Wacom_Co._Ltd._Intuos_PS-event-if01
usb-Wacom_Co._Ltd._Intuos_PS-event-mouse
usb-Wacom_Co._Ltd._Intuos_PS-mouse

And printing the file while pressing the top buttons I get:

sudo cat /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PS-event-if01
�       W� � W��     W�
�    W�
�       W� �W� �    W�� � W���    W�_    �   W�_    �       Wy�
                                                                           � Wy�
                                                                                   �    W�� �       W�� �   W �   W


Is it a problem with the kernel module(or the kernel)? I made sure to install it from the git repository this time:

$ sudo modinfo wacom
filename:       /lib/modules/3.16.0-4-amd64/extra/wacom.ko
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
version:        v1.53-0.30.2.46.ge540f23
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>




On Sat, Apr 9, 2016 at 4:23 AM, Pourrito <[hidden email]> wrote:
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss





------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Marcelo Lacerda

On Mon, Apr 11, 2016 at 12:18 PM, Jason Gerecke <[hidden email]> wrote:
Since the device is clearly detected and working at the kernel layer, the issue must be with X not connecting to it for some reason. Could you provide us with a copy of your Xorg.0.log [1] for review?

[1]: Possibly found at /var/log/Xorg.0.log, ~/.local/share/xorg/Xorg.0.log, or as the output of the following command: `journalctl _COMM=Xorg _COMM=Xorg.bin _COMM=gdm-x-session -b0`

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....


On Sat, Apr 9, 2016 at 12:39 PM, Marcelo Lacerda <[hidden email]> wrote:
I was able to work around the problem with a program that translates wacom raw inputs to x events:

The python script that translates the events:
https://gist.github.com/marceloslacerda/15ff6c7268d7a6e1354d7f944e49405e
The systemd service file that starts the program whenever it needs to be:
https://gist.github.com/marceloslacerda/7e7efa184c8b2d62844759cb9d3c4bf0

Seems to work for now.


On Sat, Apr 9, 2016 at 11:09 AM, Marcelo Lacerda <[hidden email]> wrote:
Seems like the problem happens before xsetwacom is called:

https://gist.github.com/marceloslacerda/fafa82dbf9ad88784c5fe3fa71c40fa0

Strangely I can see the device in /dev/input/by-id/

usb-Wacom_Co._Ltd._Intuos_PS-event-if01
usb-Wacom_Co._Ltd._Intuos_PS-event-mouse
usb-Wacom_Co._Ltd._Intuos_PS-mouse

And printing the file while pressing the top buttons I get:

sudo cat /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PS-event-if01
�       W� � W��     W�
�    W�
�       W� �W� �    W�� � W���    W�_    �   W�_    �       Wy�
                                                                           � Wy�
                                                                                   �    W�� �       W�� �   W �   W


Is it a problem with the kernel module(or the kernel)? I made sure to install it from the git repository this time:

$ sudo modinfo wacom
filename:       /lib/modules/3.16.0-4-amd64/extra/wacom.ko
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
version:        v1.53-0.30.2.46.ge540f23
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>




On Sat, Apr 9, 2016 at 4:23 AM, Pourrito <[hidden email]> wrote:
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss






------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Jason Gerecke
Thanks, it looks like the culprit is this error here:

[ 66341.667] (EE) Wacom Intuos S 2 Pad pad: unable to ioctl xmax value.

This is a very strange error to get though, since it implies that either an old version of xf86-input-wacom is running (despite a newer one being installed) or that the input-wacom driver is broken. Based on your "redirect_keys" script, it looks like the check performed before printing that error should be satisfied, so I'm assuming that the former is the case. The snippet of Xorg.0.log you posted is missing the version information, but you should be able to find in in the logs on your system. Look for a line that says LoadModule: "wacom" -- the module version will be listed a line or two afterwards.

I'm guessing that you when you configured the xf86-input-wacom source, you forgot to add the correct prefix. Without it, the driver will be installed to /usr/local which the server doesn't check for drivers by default. If that is what happened then the version number will be something other than 0.32.0 and you can fix this by simply going to your xf86-input-wacom source directory and running "./configure --prefix=/usr && make && sudo make install" (note the explicit prefix).

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....


On Mon, Apr 11, 2016 at 11:55 AM, Marcelo Lacerda <[hidden email]> wrote:

On Mon, Apr 11, 2016 at 12:18 PM, Jason Gerecke <[hidden email]> wrote:
Since the device is clearly detected and working at the kernel layer, the issue must be with X not connecting to it for some reason. Could you provide us with a copy of your Xorg.0.log [1] for review?

[1]: Possibly found at /var/log/Xorg.0.log, ~/.local/share/xorg/Xorg.0.log, or as the output of the following command: `journalctl _COMM=Xorg _COMM=Xorg.bin _COMM=gdm-x-session -b0`

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....


On Sat, Apr 9, 2016 at 12:39 PM, Marcelo Lacerda <[hidden email]> wrote:
I was able to work around the problem with a program that translates wacom raw inputs to x events:

The python script that translates the events:
https://gist.github.com/marceloslacerda/15ff6c7268d7a6e1354d7f944e49405e
The systemd service file that starts the program whenever it needs to be:
https://gist.github.com/marceloslacerda/7e7efa184c8b2d62844759cb9d3c4bf0

Seems to work for now.


On Sat, Apr 9, 2016 at 11:09 AM, Marcelo Lacerda <[hidden email]> wrote:
Seems like the problem happens before xsetwacom is called:

https://gist.github.com/marceloslacerda/fafa82dbf9ad88784c5fe3fa71c40fa0

Strangely I can see the device in /dev/input/by-id/

usb-Wacom_Co._Ltd._Intuos_PS-event-if01
usb-Wacom_Co._Ltd._Intuos_PS-event-mouse
usb-Wacom_Co._Ltd._Intuos_PS-mouse

And printing the file while pressing the top buttons I get:

sudo cat /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PS-event-if01
�       W� � W��     W�
�    W�
�       W� �W� �    W�� � W���    W�_    �   W�_    �       Wy�
                                                                           � Wy�
                                                                                   �    W�� �       W�� �   W �   W


Is it a problem with the kernel module(or the kernel)? I made sure to install it from the git repository this time:

$ sudo modinfo wacom
filename:       /lib/modules/3.16.0-4-amd64/extra/wacom.ko
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
version:        v1.53-0.30.2.46.ge540f23
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>




On Sat, Apr 9, 2016 at 4:23 AM, Pourrito <[hidden email]> wrote:
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss







------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem setting the buttons of the tablet

Marcelo Lacerda
Sorry about the delay, yes I forgot to set the prefix path for xf86-input-wacom, setting it before building solved the problem. Sorry for the trouble.

On Mon, Apr 11, 2016 at 5:13 PM, Jason Gerecke <[hidden email]> wrote:
Thanks, it looks like the culprit is this error here:

[ 66341.667] (EE) Wacom Intuos S 2 Pad pad: unable to ioctl xmax value.

This is a very strange error to get though, since it implies that either an old version of xf86-input-wacom is running (despite a newer one being installed) or that the input-wacom driver is broken. Based on your "redirect_keys" script, it looks like the check performed before printing that error should be satisfied, so I'm assuming that the former is the case. The snippet of Xorg.0.log you posted is missing the version information, but you should be able to find in in the logs on your system. Look for a line that says LoadModule: "wacom" -- the module version will be listed a line or two afterwards.

I'm guessing that you when you configured the xf86-input-wacom source, you forgot to add the correct prefix. Without it, the driver will be installed to /usr/local which the server doesn't check for drivers by default. If that is what happened then the version number will be something other than 0.32.0 and you can fix this by simply going to your xf86-input-wacom source directory and running "./configure --prefix=/usr && make && sudo make install" (note the explicit prefix).

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....


On Mon, Apr 11, 2016 at 11:55 AM, Marcelo Lacerda <[hidden email]> wrote:

On Mon, Apr 11, 2016 at 12:18 PM, Jason Gerecke <[hidden email]> wrote:
Since the device is clearly detected and working at the kernel layer, the issue must be with X not connecting to it for some reason. Could you provide us with a copy of your Xorg.0.log [1] for review?

[1]: Possibly found at /var/log/Xorg.0.log, ~/.local/share/xorg/Xorg.0.log, or as the output of the following command: `journalctl _COMM=Xorg _COMM=Xorg.bin _COMM=gdm-x-session -b0`

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one  /
(That is to say, eight) to the two,     /
But you can’t take seven from three,    /
So you look at the sixty-fours....


On Sat, Apr 9, 2016 at 12:39 PM, Marcelo Lacerda <[hidden email]> wrote:
I was able to work around the problem with a program that translates wacom raw inputs to x events:

The python script that translates the events:
https://gist.github.com/marceloslacerda/15ff6c7268d7a6e1354d7f944e49405e
The systemd service file that starts the program whenever it needs to be:
https://gist.github.com/marceloslacerda/7e7efa184c8b2d62844759cb9d3c4bf0

Seems to work for now.


On Sat, Apr 9, 2016 at 11:09 AM, Marcelo Lacerda <[hidden email]> wrote:
Seems like the problem happens before xsetwacom is called:

https://gist.github.com/marceloslacerda/fafa82dbf9ad88784c5fe3fa71c40fa0

Strangely I can see the device in /dev/input/by-id/

usb-Wacom_Co._Ltd._Intuos_PS-event-if01
usb-Wacom_Co._Ltd._Intuos_PS-event-mouse
usb-Wacom_Co._Ltd._Intuos_PS-mouse

And printing the file while pressing the top buttons I get:

sudo cat /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PS-event-if01
�       W� � W��     W�
�    W�
�       W� �W� �    W�� � W���    W�_    �   W�_    �       Wy�
                                                                           � Wy�
                                                                                   �    W�� �       W�� �   W �   W


Is it a problem with the kernel module(or the kernel)? I made sure to install it from the git repository this time:

$ sudo modinfo wacom
filename:       /lib/modules/3.16.0-4-amd64/extra/wacom.ko
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>
version:        v1.53-0.30.2.46.ge540f23
license:        GPL
description:    USB Wacom tablet driver
author:         Vojtech Pavlik <[hidden email]>




On Sat, Apr 9, 2016 at 4:23 AM, Pourrito <[hidden email]> wrote:
I've got an intuos photo small and I guess the buttons are numbered in the same order.

Those button numbers are: 1, 3 on the left and 8, 9 on the right. So, to assign button 1 to a key, it would be something like:

xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key a"

Here is my xsetwacom config file as an example : 

#!/bin/sh

xsetwacom set "Wacom Intuos PT S 2 Pen stylus" button 3 key + && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 1 "key control z" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 3 "key shift" && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 8 key shift e && 
xsetwacom set "Wacom Intuos PT S 2 Pad pad" button 9 key p && 
xsetwacom --set "Wacom Intuos PT S 2 Pen stylus" PressureCurve 0 25 75 100





On avr. 9 2016, at 3:04 am, Marcelo Lacerda <[hidden email]> wrote:

The pad appears in the syslog, though:

Apr 8 22:01:27 choclotho kernel: [10640.500086] input: Wacom Intuos S
2 Pen as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0/input/input20
Apr 8 22:01:27 choclotho kernel: [10640.503144] input: Wacom Intuos S
2 Pad as /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.1/input/input21

On Fri, Apr 8, 2016 at 9:56 PM, Marcelo Lacerda
<[hidden email]> wrote:


> On Fri, Apr 8, 2016 at 9:46 PM, Jason Gerecke <[hidden email]> wrote:
>> Marcelo,
>>
>> In addition to the "stylus" device, you should see a "pad" device in
>> the output of `xsetwacom list`.
>
> No, I don't see a pad.
>
> $ xsetwacom list
> Wacom Intuos S 2 Pen stylus id: 11 type: STYLUS
> msl09@choclotho:/tmp$
>
>> Jason
>> ---
>> Now instead of four in the eights place /
>> you’ve got three, ‘Cause you added one /
>> (That is to say, eight) to the two, /
>> But you can’t take seven from three, /
>> So you look at the sixty-fours....
>>
>> On Fri, Apr 8, 2016 at 5:30 PM, Marcelo Lacerda
>> <[hidden email]> wrote:
>>> I'm using an Intuos Draw Small(usb:056a:033b) with the latest version
>>> of input-wacom , xf86-input-wacom, and libwacom. The device it self
>>> works for the most part, except for the tablet buttons(A,B,C,D).
>>>
>>> I get the correct number of buttons from xinput(7, 3 for the pen and 4
>>> for the tablet)
>>> https://gist.github.com/marceloslacerda/85150f3e8759e305f4cc88040a87ef9d
>>>
>>> I am able to retrieve information about the 7 buttons:
>>>
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 1
>>> button +1
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 2
>>> button +2
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 3
>>> button +3
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 4
>>> 4
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 5
>>> 5
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 6
>>> 6
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>> 7
>>> $ xsetwacom get "Wacom Intuos S 2 Pen stylus" Button 7
>>>
>>> But I can't set it to anything:
>>>
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 1
>>> Invalid offset into Wacom Button Actions property.
>>> $ xsetwacom set "Wacom Intuos S 2 Pen stylus" Button 4 "key a"
>>> Invalid offset into Wacom Button Actions property.
>>>
>>> Is this a bug or am I doing something wrong?
>>>
>>> My current version of xsetwacom is 0.32.0 libwacom is 0.18 and
>>> input-wacom is 0.30.2.
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
>>> gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
>>> _______________________________________________
>>> Linuxwacom-discuss mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss

------------------------------------------------------------------------------

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=<a href="tel:1444514301" value="+551444514301" target="_blank">1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss








------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
Loading...