Stylus/Touch on Lenovo Yoga 460 Convertible

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

Stylus/Touch on Lenovo Yoga 460 Convertible

Axel Kittenberger
Hello list,

got a Lenovo Yoga 460 convertible, installed latest kernel (4.6.rc3) and your X driver:
even the second button now works and the jumping issues are gone that were with previous driver (tested in xournal)!

However one issue remains: the whole thing only works when cold starting into Linux, when Windows ran previously and I reboot to get into Linux neither touch nor stylus works until I power off the tablet and start into Linux. So Windows must be setting something on the Wacom device that survives a reset and confuses Linux.

Any Idea where to start looking to fix this?

Kind regards, Axel



PS, this is a little bash daemon I wrote to keep in Gnome 3 the Wacom mapped to the internal display when new displays are attached or the internal display is rotated.
The touch input is kept in sync by default, but not the stylus and eraser out of some reason.


-----/opt/tablet/styluscorrect-----
#!/bin/bash
dbus-monitor --profile "interface=org.gnome.Mutter.DisplayConfig,member=ApplyConfiguration" |
while read -r line; do
orient=`xrandr -q | grep "eDP1 connected" | grep -o "[^ ]* (normal" | cut -f1 -d' '`
case $orient in
right)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate cw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate cw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
left)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate ccw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate ccw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
inverted)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate half
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate half
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
*)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate none
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate none
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
esac
done
-----~/.config/autostart/styluscorrect.desktop-----
[Desktop Entry]
Type=Application
Exec=/opt/tablet/styluscorrect
Name=Stylus Correction Deamon


------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Axel Kittenberger
Okay, 4.6.rc4 has the fix for this in it. Thanks for that.

Still wondering, would be there a more elegant solution to mapping? Why is touch mapping working good out of the box, but stylus/erases needs tinkering?

Kind regards

On Tue, Apr 19, 2016 at 11:09 AM, Axel Kittenberger <[hidden email]> wrote:
Hello list,

got a Lenovo Yoga 460 convertible, installed latest kernel (4.6.rc3) and your X driver:
even the second button now works and the jumping issues are gone that were with previous driver (tested in xournal)!

However one issue remains: the whole thing only works when cold starting into Linux, when Windows ran previously and I reboot to get into Linux neither touch nor stylus works until I power off the tablet and start into Linux. So Windows must be setting something on the Wacom device that survives a reset and confuses Linux.

Any Idea where to start looking to fix this?

Kind regards, Axel



PS, this is a little bash daemon I wrote to keep in Gnome 3 the Wacom mapped to the internal display when new displays are attached or the internal display is rotated.
The touch input is kept in sync by default, but not the stylus and eraser out of some reason.


-----/opt/tablet/styluscorrect-----
#!/bin/bash
dbus-monitor --profile "interface=org.gnome.Mutter.DisplayConfig,member=ApplyConfiguration" |
while read -r line; do
orient=`xrandr -q | grep "eDP1 connected" | grep -o "[^ ]* (normal" | cut -f1 -d' '`
case $orient in
right)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate cw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate cw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
left)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate ccw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate ccw
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
inverted)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate half
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate half
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
*)
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate none
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate none
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" MapToOutput eDP1
xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" MapToOutput eDP1
;;
esac
done
-----~/.config/autostart/styluscorrect.desktop-----
[Desktop Entry]
Type=Application
Exec=/opt/tablet/styluscorrect
Name=Stylus Correction Deamon



------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Jason Gerecke
Good to see you found the fix in RC4 -- it was only very recently
debugged and fixed. As for the stylus/eraser mapping, that's
definitely a bug; the pen should stay mapped to the correct display
even if new monitors are plugged in. Please follow [1] to file a bug
for GNOME's "gnome-settings-daemon" and choose "wacom" as the
component. Also, please reply back with a link to the bug so we can
try to diagnose things in parallel with the GNOME team.

Before filing your bug, I would suggest running
`/usr/lib/gnome-settings-daemon/gnome-settings-daemon -r --timed-exit
--debug > /tmp/g-s-d.log 2>&1`, waiting three or four seconds, and
then connecting your external monitor before the program stops running
(you'll have about 30 seconds). Attach the generated /tmp/g-s-d.log to
the bug for review -- it will contain information that will help us
figure out what is going wrong.

[1]: https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-settings-daemon

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 Tue, Apr 19, 2016 at 4:23 AM, Axel Kittenberger <[hidden email]> wrote:

> Okay, 4.6.rc4 has the fix for this in it. Thanks for that.
>
> Still wondering, would be there a more elegant solution to mapping? Why is
> touch mapping working good out of the box, but stylus/erases needs
> tinkering?
>
> Kind regards
>
> On Tue, Apr 19, 2016 at 11:09 AM, Axel Kittenberger <[hidden email]>
> wrote:
>>
>> Hello list,
>>
>> got a Lenovo Yoga 460 convertible, installed latest kernel (4.6.rc3) and
>> your X driver:
>> even the second button now works and the jumping issues are gone that were
>> with previous driver (tested in xournal)!
>>
>> However one issue remains: the whole thing only works when cold starting
>> into Linux, when Windows ran previously and I reboot to get into Linux
>> neither touch nor stylus works until I power off the tablet and start into
>> Linux. So Windows must be setting something on the Wacom device that
>> survives a reset and confuses Linux.
>>
>> Any Idea where to start looking to fix this?
>>
>> Kind regards, Axel
>>
>>
>>
>> PS, this is a little bash daemon I wrote to keep in Gnome 3 the Wacom
>> mapped to the internal display when new displays are attached or the
>> internal display is rotated.
>> The touch input is kept in sync by default, but not the stylus and eraser
>> out of some reason.
>>
>>
>> -----/opt/tablet/styluscorrect-----
>> #!/bin/bash
>> dbus-monitor --profile
>> "interface=org.gnome.Mutter.DisplayConfig,member=ApplyConfiguration" |
>> while read -r line; do
>> orient=`xrandr -q | grep "eDP1 connected" | grep -o "[^ ]* (normal" | cut
>> -f1 -d' '`
>> case $orient in
>> right)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> cw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> cw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> left)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> ccw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> ccw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> inverted)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> half
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> half
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> *)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> none
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> none
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> esac
>> done
>> -----~/.config/autostart/styluscorrect.desktop-----
>> [Desktop Entry]
>> Type=Application
>> Exec=/opt/tablet/styluscorrect
>> Name=Stylus Correction Deamon
>>

------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Axel Kittenberger
https://bugzilla.gnome.org/show_bug.cgi?id=765293

Shall I in the meantime try to upgrade gnome shell to latest git? On this system I got so many things already manually compiled to the latest of the latest to make it work, that won't matter any more :)


On Tue, Apr 19, 2016 at 7:15 PM, Jason Gerecke <[hidden email]> wrote:
Good to see you found the fix in RC4 -- it was only very recently
debugged and fixed. As for the stylus/eraser mapping, that's
definitely a bug; the pen should stay mapped to the correct display
even if new monitors are plugged in. Please follow [1] to file a bug
for GNOME's "gnome-settings-daemon" and choose "wacom" as the
component. Also, please reply back with a link to the bug so we can
try to diagnose things in parallel with the GNOME team.

Before filing your bug, I would suggest running
`/usr/lib/gnome-settings-daemon/gnome-settings-daemon -r --timed-exit
--debug > /tmp/g-s-d.log 2>&1`, waiting three or four seconds, and
then connecting your external monitor before the program stops running
(you'll have about 30 seconds). Attach the generated /tmp/g-s-d.log to
the bug for review -- it will contain information that will help us
figure out what is going wrong.

[1]: https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-settings-daemon

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 Tue, Apr 19, 2016 at 4:23 AM, Axel Kittenberger <[hidden email]> wrote:
> Okay, 4.6.rc4 has the fix for this in it. Thanks for that.
>
> Still wondering, would be there a more elegant solution to mapping? Why is
> touch mapping working good out of the box, but stylus/erases needs
> tinkering?
>
> Kind regards
>
> On Tue, Apr 19, 2016 at 11:09 AM, Axel Kittenberger <[hidden email]>
> wrote:
>>
>> Hello list,
>>
>> got a Lenovo Yoga 460 convertible, installed latest kernel (4.6.rc3) and
>> your X driver:
>> even the second button now works and the jumping issues are gone that were
>> with previous driver (tested in xournal)!
>>
>> However one issue remains: the whole thing only works when cold starting
>> into Linux, when Windows ran previously and I reboot to get into Linux
>> neither touch nor stylus works until I power off the tablet and start into
>> Linux. So Windows must be setting something on the Wacom device that
>> survives a reset and confuses Linux.
>>
>> Any Idea where to start looking to fix this?
>>
>> Kind regards, Axel
>>
>>
>>
>> PS, this is a little bash daemon I wrote to keep in Gnome 3 the Wacom
>> mapped to the internal display when new displays are attached or the
>> internal display is rotated.
>> The touch input is kept in sync by default, but not the stylus and eraser
>> out of some reason.
>>
>>
>> -----/opt/tablet/styluscorrect-----
>> #!/bin/bash
>> dbus-monitor --profile
>> "interface=org.gnome.Mutter.DisplayConfig,member=ApplyConfiguration" |
>> while read -r line; do
>> orient=`xrandr -q | grep "eDP1 connected" | grep -o "[^ ]* (normal" | cut
>> -f1 -d' '`
>> case $orient in
>> right)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> cw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> cw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> left)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> ccw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> ccw
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> inverted)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> half
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> half
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> *)
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus" Rotate
>> none
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser" Rotate
>> none
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus"
>> MapToOutput eDP1
>> xsetwacom set "Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser"
>> MapToOutput eDP1
>> ;;
>> esac
>> done
>> -----~/.config/autostart/styluscorrect.desktop-----
>> [Desktop Entry]
>> Type=Application
>> Exec=/opt/tablet/styluscorrect
>> Name=Stylus Correction Deamon
>>


------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Carlos Garnacho
Hi!,

On Wed, Apr 20, 2016 at 9:57 AM, Axel Kittenberger <[hidden email]> wrote:
> https://bugzilla.gnome.org/show_bug.cgi?id=765293

Bouncing the issue back to this list again :).

The mapping doesn't seem to work because g-s-d is unable to get info
from libwacom for this tablet, and thus fails to see the devices as
"tablet". The libwacom warning gotten in logs is:

(gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.

And this is potentially worrysome... Is this ISD device sharing
vid/pid with a Bamboo for real?

Cheers,
  Carlos

------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Axel Kittenberger
Maybe I should update libwacom from your repository?
libwacom is on this device still debian jessie default, as I understood the website of linuxwacom, its only used by legacy stuff so I didn't bother.

On Wed, Apr 20, 2016 at 12:16 PM, Carlos Garnacho <[hidden email]> wrote:
Hi!,

On Wed, Apr 20, 2016 at 9:57 AM, Axel Kittenberger <[hidden email]> wrote:
> https://bugzilla.gnome.org/show_bug.cgi?id=765293

Bouncing the issue back to this list again :).

The mapping doesn't seem to work because g-s-d is unable to get info
from libwacom for this tablet, and thus fails to see the devices as
"tablet". The libwacom warning gotten in logs is:

(gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.

And this is potentially worrysome... Is this ISD device sharing
vid/pid with a Bamboo for real?

Cheers,
  Carlos


------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Axel Kittenberger
In reply to this post by Carlos Garnacho
> (gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
> 'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.
>
> And this is potentially worrysome... Is this ISD device sharing
> vid/pid with a Bamboo for real?

Sorry, I dont understand what is Bamboo? I'm not aware of any "bamboo" on this tablet.

on usb:056a:504a there are 3 sub devices, touch, stylus and eraser (which is unfortunally not a real eraser tip, but the stylus when pressing a button seems to be mapped to this device)


On Wed, Apr 20, 2016 at 12:16 PM, Carlos Garnacho <[hidden email]> wrote:
Hi!,

On Wed, Apr 20, 2016 at 9:57 AM, Axel Kittenberger <[hidden email]> wrote:
> https://bugzilla.gnome.org/show_bug.cgi?id=765293

Bouncing the issue back to this list again :).

The mapping doesn't seem to work because g-s-d is unable to get info
from libwacom for this tablet, and thus fails to see the devices as
"tablet". The libwacom warning gotten in logs is:

(gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.

And this is potentially worrysome... Is this ISD device sharing
vid/pid with a Bamboo for real?

Cheers,
  Carlos


------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Carlos Garnacho
In reply to this post by Axel Kittenberger
Hey,

On Wed, Apr 20, 2016 at 12:37 PM, Axel Kittenberger <[hidden email]> wrote:
> Maybe I should update libwacom from your repository?
> libwacom is on this device still debian jessie default, as I understood the
> website of linuxwacom, its only used by legacy stuff so I didn't bother.

libwacom role is to provide upper layers (desktop environments,
configuration panels, apps...) with detailed information about the
features supported by the different tablet models. This is very much
non-legacy, so updating won't hurt, although I'm not sure it will fix
your specific problem.

>
> On Wed, Apr 20, 2016 at 12:16 PM, Carlos Garnacho <[hidden email]> wrote:
>>
>> Hi!,
>>
>> On Wed, Apr 20, 2016 at 9:57 AM, Axel Kittenberger <[hidden email]>
>> wrote:
>> > https://bugzilla.gnome.org/show_bug.cgi?id=765293
>>
>> Bouncing the issue back to this list again :).
>>
>> The mapping doesn't seem to work because g-s-d is unable to get info
>> from libwacom for this tablet, and thus fails to see the devices as
>> "tablet". The libwacom warning gotten in logs is:
>>
>> (gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
>> 'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.
>>
>> And this is potentially worrysome... Is this ISD device sharing
>> vid/pid with a Bamboo for real?
>
> Sorry, I dont understand what is Bamboo? I'm not aware of any "bamboo" on
> this tablet.

Precisely, it is an entirely different model.

Reading the code again... this libwacom warning seems to happen
because there's duplicate info in your /usr/share/libwacom/ database,
so it happens well before the lookup, unlike I initially presumed.

So on one hand, it appears that some of your .tablet files in
/usr/share/libwacom is busted. You may want to reinstall or grep in
that directory to find out the extra file(s) that match
"usb:056a:00d0", only /usr/share/libwacom/bamboo-2fg-s-t.tablet should
do.

>
> on usb:056a:504a there are 3 sub devices, touch, stylus and eraser (which is
> unfortunally not a real eraser tip, but the stylus when pressing a button
> seems to be mapped to this device)

... and on the other hand, There seems to be no .tablet file in the
libwacom repo for your 056a:504a model, so updating libwacom won't
help just yet.

You'd in the end need a .tablet file very similar to:
https://sourceforge.net/p/linuxwacom/libwacom/ci/master/tree/data/isdv4-e6.tablet
that matches your usb vid/pid.

I just cooked up a patch (sent to libwacom-devel, with you in CC),
would be great if you tried it.

Cheers,
  Carlos

------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Jason Gerecke
On Wed, Apr 20, 2016 at 4:43 AM, Carlos Garnacho <[hidden email]> wrote:

> Hey,
>
> On Wed, Apr 20, 2016 at 12:37 PM, Axel Kittenberger <[hidden email]> wrote:
>> Maybe I should update libwacom from your repository?
>> libwacom is on this device still debian jessie default, as I understood the
>> website of linuxwacom, its only used by legacy stuff so I didn't bother.
>
> libwacom role is to provide upper layers (desktop environments,
> configuration panels, apps...) with detailed information about the
> features supported by the different tablet models. This is very much
> non-legacy, so updating won't hurt, although I'm not sure it will fix
> your specific problem.
>
>>
>> On Wed, Apr 20, 2016 at 12:16 PM, Carlos Garnacho <[hidden email]> wrote:
>>>
>>> Hi!,
>>>
>>> On Wed, Apr 20, 2016 at 9:57 AM, Axel Kittenberger <[hidden email]>
>>> wrote:
>>> > https://bugzilla.gnome.org/show_bug.cgi?id=765293
>>>
>>> Bouncing the issue back to this list again :).
>>>
>>> The mapping doesn't seem to work because g-s-d is unable to get info
>>> from libwacom for this tablet, and thus fails to see the devices as
>>> "tablet". The libwacom warning gotten in logs is:
>>>
>>> (gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
>>> 'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.
>>>
>>> And this is potentially worrysome... Is this ISD device sharing
>>> vid/pid with a Bamboo for real?
>>
>> Sorry, I dont understand what is Bamboo? I'm not aware of any "bamboo" on
>> this tablet.
>
> Precisely, it is an entirely different model.
>
> Reading the code again... this libwacom warning seems to happen
> because there's duplicate info in your /usr/share/libwacom/ database,
> so it happens well before the lookup, unlike I initially presumed.
>
> So on one hand, it appears that some of your .tablet files in
> /usr/share/libwacom is busted. You may want to reinstall or grep in
> that directory to find out the extra file(s) that match
> "usb:056a:00d0", only /usr/share/libwacom/bamboo-2fg-s-t.tablet should
> do.
>

I saw this same "Duplicate match" error quite recently in bug #313
[1], and it was the result of libwacom being incorrectly installed --
a (partial?) source installation to /usr/local instead of /usr/ was
apparently causing libwacom some heartburn. I'd read through the
linked bug and make sure that there aren't any traces of libwacom
lurking in /usr/local and possibly try the debugging steps mentioned.

>>
>> on usb:056a:504a there are 3 sub devices, touch, stylus and eraser (which is
>> unfortunally not a real eraser tip, but the stylus when pressing a button
>> seems to be mapped to this device)
>
> ... and on the other hand, There seems to be no .tablet file in the
> libwacom repo for your 056a:504a model, so updating libwacom won't
> help just yet.
>
> You'd in the end need a .tablet file very similar to:
> https://sourceforge.net/p/linuxwacom/libwacom/ci/master/tree/data/isdv4-e6.tablet
> that matches your usb vid/pid.
>
> I just cooked up a patch (sent to libwacom-devel, with you in CC),
> would be great if you tried it.
>
> Cheers,
>   Carlos

Now you have me wondering if a .tablet file needs to be generated for
mapping to work properly on tablet PCs... I don't /think/ so, but the
fact that its an integrated display complicates things. Now that the
kernel has its HID_GENERIC codepath, we're less aware of recent tablet
PC PIDs that are out in the wild...

[1]: https://sourceforge.net/p/linuxwacom/bugs/313/

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....

------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Carlos Garnacho
Hey Jason :),

On Wed, Apr 20, 2016 at 8:32 PM, Jason Gerecke <[hidden email]> wrote:

> On Wed, Apr 20, 2016 at 4:43 AM, Carlos Garnacho <[hidden email]> wrote:
>> Hey,
>>
>> On Wed, Apr 20, 2016 at 12:37 PM, Axel Kittenberger <[hidden email]> wrote:
>>> Maybe I should update libwacom from your repository?
>>> libwacom is on this device still debian jessie default, as I understood the
>>> website of linuxwacom, its only used by legacy stuff so I didn't bother.
>>
>> libwacom role is to provide upper layers (desktop environments,
>> configuration panels, apps...) with detailed information about the
>> features supported by the different tablet models. This is very much
>> non-legacy, so updating won't hurt, although I'm not sure it will fix
>> your specific problem.
>>
>>>
>>> On Wed, Apr 20, 2016 at 12:16 PM, Carlos Garnacho <[hidden email]> wrote:
>>>>
>>>> Hi!,
>>>>
>>>> On Wed, Apr 20, 2016 at 9:57 AM, Axel Kittenberger <[hidden email]>
>>>> wrote:
>>>> > https://bugzilla.gnome.org/show_bug.cgi?id=765293
>>>>
>>>> Bouncing the issue back to this list again :).
>>>>
>>>> The mapping doesn't seem to work because g-s-d is unable to get info
>>>> from libwacom for this tablet, and thus fails to see the devices as
>>>> "tablet". The libwacom warning gotten in logs is:
>>>>
>>>> (gnome-settings-daemon:1495): libwacom-CRITICAL **: Duplicate match of
>>>> 'usb:056a:00d0' on device 'Wacom Bamboo Touch (2FG)'.
>>>>
>>>> And this is potentially worrysome... Is this ISD device sharing
>>>> vid/pid with a Bamboo for real?
>>>
>>> Sorry, I dont understand what is Bamboo? I'm not aware of any "bamboo" on
>>> this tablet.
>>
>> Precisely, it is an entirely different model.
>>
>> Reading the code again... this libwacom warning seems to happen
>> because there's duplicate info in your /usr/share/libwacom/ database,
>> so it happens well before the lookup, unlike I initially presumed.
>>
>> So on one hand, it appears that some of your .tablet files in
>> /usr/share/libwacom is busted. You may want to reinstall or grep in
>> that directory to find out the extra file(s) that match
>> "usb:056a:00d0", only /usr/share/libwacom/bamboo-2fg-s-t.tablet should
>> do.
>>
>
> I saw this same "Duplicate match" error quite recently in bug #313
> [1], and it was the result of libwacom being incorrectly installed --
> a (partial?) source installation to /usr/local instead of /usr/ was
> apparently causing libwacom some heartburn. I'd read through the
> linked bug and make sure that there aren't any traces of libwacom
> lurking in /usr/local and possibly try the debugging steps mentioned.
>
>>>
>>> on usb:056a:504a there are 3 sub devices, touch, stylus and eraser (which is
>>> unfortunally not a real eraser tip, but the stylus when pressing a button
>>> seems to be mapped to this device)
>>
>> ... and on the other hand, There seems to be no .tablet file in the
>> libwacom repo for your 056a:504a model, so updating libwacom won't
>> help just yet.
>>
>> You'd in the end need a .tablet file very similar to:
>> https://sourceforge.net/p/linuxwacom/libwacom/ci/master/tree/data/isdv4-e6.tablet
>> that matches your usb vid/pid.
>>
>> I just cooked up a patch (sent to libwacom-devel, with you in CC),
>> would be great if you tried it.
>>WacomIntegrationFlags
>> Cheers,
>>   Carlos
>
> Now you have me wondering if a .tablet file needs to be generated for
> mapping to work properly on tablet PCs... I don't /think/ so, but the
> fact that its an integrated display complicates things. Now that the
> kernel has its HID_GENERIC codepath, we're less aware of recent tablet
> PC PIDs that are out in the wild...

Currently, yes... the split in gnome-settings-daemon wrt
input-to-output mapping is:

- the "xrandr" plugin takes exclusively care of touchscreens
- the "wacom" plugin takes care of anything recognized by libwacom

Anything that falls in between is unhandled. This will be likely
reshuffled shortly though, the refactor necessary to make tablet
settings work on wayland seems like a good excuse.

Nonetheless, for these devices the WacomIntegrationFlags make a good
hint about which display these devices belong to, although I'd expect
the additional heuristics to be just as effective (read: potentially
wrong) as it is with touchscreens.

Cheers,
  Carlos

------------------------------------------------------------------------------
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: Stylus/Touch on Lenovo Yoga 460 Convertible

Axel Kittenberger
In reply to this post by Jason Gerecke
> I saw this same "Duplicate match" error quite recently in bug #313
> [1], and it was the result of libwacom being incorrectly installed --
> a (partial?) source installation to /usr/local instead of /usr/ was
> apparently causing libwacom some heartburn. 

In my case the issue was created by 'make install'ing one newer libwacom version over the default package. Usually with unix software this works quite well. However in the directoy /usr/share/libwacom/ a mismatch can be created, if the different libwacom versions have the same devices in differently named files.

One simple solution might be to "rm *" /usr/share/libwacom on install, but I think thats kinda risky. 

I just wonder, couldn't you name the filenames by their vid-pid? In that case you'd also only have to open the files that are needed instead of having to scan them all?

Kind regards,

------------------------------------------------------------------------------
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...