Launchpad has imported 26 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=98575.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2016-11-03T16:09:17+00:00 Aidan Walton wrote:

Created attachment 127721
Bosto Tablet removed and replugged. Note I have a tiny userspace program to 
detach the usbhid driver and then attach bosto_2g driver.

Hi,
I have a Bosto22HD. Some years ago I hacked the hanwang driver into my own and 
have been supporting this since as no other option was available. I recently 
upgraded to Ubuntu 16.10 and began having problems, but to be honest I'm not 
100% sure this is related to the upgrade.

When my driver registers with the usb subsystem I can inspect the output
of evtest and I see everything reported correctly. I attach copies.
Clearly we can see the ABS_PRESSURE events streaming from the kernel.
However when the driver is picked up by xfree86_evdev (?), i.e. the logs
from Xorg.0.log... I see no detection of and ABS_pressure Valuator.
However xinput shows the Valuator as being available, yet I do not see
pressure val changes.

Something is going on between kernel and X drivers? (evdev >
xfree86-evdev)

I even tried:
libevdev-tweak-device --abs ABS_PRESSURE --val 2047 /dev/input/event5

Sure enough xinput shows the property change as requested.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/0

------------------------------------------------------------------------
On 2016-11-03T16:11:52+00:00 Aidan Walton wrote:

Created attachment 127722
evtest ouput shows correct device EV_ and ABS_PRESSURE reporting within the 
same SYNC block

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/1

------------------------------------------------------------------------
On 2016-11-03T16:21:26+00:00 Aidan Walton wrote:

Created attachment 127723
xinput --list --long out of proximity

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/2

------------------------------------------------------------------------
On 2016-11-03T16:21:48+00:00 Aidan Walton wrote:

Created attachment 127724
xinput --list --long in proximity

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/3

------------------------------------------------------------------------
On 2016-11-03T16:22:11+00:00 Aidan Walton wrote:

Created attachment 127725
xinput --list --long in contact

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/4

------------------------------------------------------------------------
On 2016-11-03T16:29:13+00:00 Aidan Walton wrote:

My kernel:
4.8.0-26-generic

My Ubuntu Packages:
xserver-xorg-input-evdev (1:2.10.2-1ubuntu1) This contains 
/usr/lib/xorg/modules/input/evdev_drv.so

I assume this is what xinput is working with?

Finally my driver:
https://github.com/aidyw/bosto-2g-linux-kernel-module

Thanks

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/5

------------------------------------------------------------------------
On 2016-11-03T16:32:36+00:00 Aidan Walton wrote:

Created attachment 127727
xinput --test  Seems Pressure is not reported here...No surprise. But contact 
is seen as Button press  1

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/6

------------------------------------------------------------------------
On 2016-11-03T16:37:54+00:00 Aidan Walton wrote:

Within applications eg, Krita (2.9.7), Gimp, mypaint, I can move as
expected, but as pressure is missing I cant draw any lines.

With Krita(3+) its a different story, I can draw, but without pressure
(full pressure all the time.)

Final comment. This driver did work in all these applications in the
past, and recently on Ubuntu 16.04, even 16.10 (but it was a late night,
so exactly when this showed up is a bit fuzzy)

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/7

------------------------------------------------------------------------
On 2016-11-03T21:29:36+00:00 Peter Hutterer wrote:

can you get me a recording from evemu-record instead of evtest. I can
replay that one easily, evtest requires manual work. same thing though:
sudo evemu-record > tablet.evemu, select your device, and generate a
stylus movement.

This may be to do with libinput if you switched to libinput recently.
xinput list-props <device> will show you which driver, check the
property prefixes for the driver name.

I don't see anything obviously wrong with the protocol yet, but the
evemu one should help identifying that.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/8

------------------------------------------------------------------------
On 2016-11-04T01:34:13+00:00 Aidan Walton wrote:

Created attachment 127745
Simple test. Out prox, in prox(pen), touch/move(pen), out, in(eraser), 
touch/move(eraser),  out

It seems to be what I personally expected. Obviously evdev is supressing
many values that remain unchanged between sync reports, but in there are
blocks that contain all events in one sync block.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/9

------------------------------------------------------------------------
On 2016-11-04T01:36:01+00:00 Aidan Walton wrote:

Seems I'm not moved over to libinput just yet, or Wayland ;)

All prefix read 'evdev'. Best only to change one thing at once I guess.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/10

------------------------------------------------------------------------
On 2016-11-04T01:41:17+00:00 Aidan Walton wrote:

Just to be sure. I tested again xinput to be sure nothing has changed,
and indeed its the same. Valuator 2 : Ab Pressure, range correct, no
change in the value.

Xorg.0.log, evdev does not report Abs Pressure 
[ 78193.711] (II) config/udev: Adding input device Bosto Kingtee 22HD 
(/dev/input/event5)
[ 78193.711] (**) Bosto Kingtee 22HD: Applying InputClass "evdev tablet 
catchall"
[ 78193.711] (II) Using input driver 'evdev' for 'Bosto Kingtee 22HD'
[ 78193.711] (**) Bosto Kingtee 22HD: always reports core events
[ 78193.711] (**) evdev: Bosto Kingtee 22HD: Device: "/dev/input/event5"
[ 78193.711] (--) evdev: Bosto Kingtee 22HD: Vendor 0xb57 Product 0x9016
[ 78193.711] (--) evdev: Bosto Kingtee 22HD: Found absolute axes
[ 78193.712] (--) evdev: Bosto Kingtee 22HD: Found x and y absolute axes
[ 78193.712] (--) evdev: Bosto Kingtee 22HD: Found absolute tablet.
[ 78193.712] (II) evdev: Bosto Kingtee 22HD: Configuring as tablet
[ 78193.712] (**) evdev: Bosto Kingtee 22HD: YAxisMapping: buttons 4 and 5
[ 78193.712] (**) evdev: Bosto Kingtee 22HD: EmulateWheelButton: 4, 
EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 78193.712] (**) Option "config_info" 
"udev:/sys/devices/pci0000:00/0000:00:0b.1/usb1/1-3/1-3.2/1-3.2:1.0/input/input43/event5"
[ 78193.712] (II) XINPUT: Adding extended input device "Bosto Kingtee 22HD" 
(type: TABLET, id 11)
[ 78193.712] (II) evdev: Bosto Kingtee 22HD: initialized for absolute axes.
[ 78193.712] (**) Bosto Kingtee 22HD: (accel) keeping acceleration scheme 1
[ 78193.712] (**) Bosto Kingtee 22HD: (accel) acceleration profile 0
[ 78193.712] (**) Bosto Kingtee 22HD: (accel) acceleration factor: 2.000
[ 78193.712] (**) Bosto Kingtee 22HD: (accel) acceleration threshold: 4

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/11

------------------------------------------------------------------------
On 2016-11-04T03:06:42+00:00 Peter Hutterer wrote:

this is your own driver, right? Please set the abs resolution for x/y,
it'll make libinput handle the tablet better (well, at all, libinput
refuses tablets without x/y resolution). that's a side note.

Using the evdev driver, I'm getting a fair number of pressure updates
here (xinput test-xi2 and xinput test) and gimp sort-or responds to
drawing. Not sure what's happening there. what versions does ubuntu ship
these days?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/12

------------------------------------------------------------------------
On 2016-11-04T11:11:05+00:00 Aidan Walton wrote:

Id set the resolution if I knew how. Looking at the function in kernel
input.h, resolution is not defined. Tell me how?

Ubuntu's xinput is 1.6.2-1, but isn't this just a utility ...

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/13

------------------------------------------------------------------------
On 2016-11-04T12:46:14+00:00 Aidan Walton wrote:

If I use xinput --test-xi2   I only see Valuator's 0 & 1. 2(Pressure) is
missing.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/14

------------------------------------------------------------------------
On 2016-11-04T15:16:55+00:00 Aidan Walton wrote:

Hmm, I took my driver code, booted into an old install I had of Ubuntu
16.04, compiled it. Working! pressure seen in xinput, apps responding to
pressure as expected.

??? What's changed in 16.10 I wonder, or what's screwed on my install of
16.10?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/15

------------------------------------------------------------------------
On 2016-11-04T19:12:52+00:00 Aidan Walton wrote:

Okay, I tried Ubuntu 16.10 fresh install. Not working.

Ubuntu 16.04.1 LTS Working.
Hmmm

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/16

------------------------------------------------------------------------
On 2016-11-06T22:04:58+00:00 Peter Hutterer wrote:

look for input_abs_set_res() to set the resolution in the kernel.

xinput is just the tool, the versions that matter are the X server version 
(xserver-xorg) and the evdev driver's version (xserver-xorg-input-evdev)
one of the two may be at fault here, I suspect it's more likely evdev but I'm 
not sure what change could've done this. I recommend installing evdev from git 
and if that doesn't work either then you can bisect. 

Otherwise it's something specific to Ubuntu, I guess.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/18

------------------------------------------------------------------------
On 2016-11-10T13:27:42+00:00 Aidan Walton wrote:

Thanks Peter,
I added the resolution data as you requested. It does appear correctly now in 
the Valuator data, but it makes no difference to the pressure information.

I just want to reiterate. With fresh installs of Ubuntu, 16.10 directly from a 
live disk, I see the same problem.
With 16.04.1 LTS from a live disk, everything is okay. So we clearly have 
something changed in Ubuntu.

The problem is I have no idea which version of xf86-evdev is actually
compiled into the xserver-xorg-input-evdev package. I have tried to
track this down, but its not referenced in any material I can find. What
I can say is the the libevdev.so in both release packages are
identically sized, all symbols are exactly the same, and well, this I
think would hint strongly that they are using the exact same version of
the evdev driver.

I could try somehow to compile the very latest from git and I looked
into it, but there are a few dependencies and I'm really trying to get
to the root cause and of course hopefully resolve effectively for Ubuntu
if it really is an issue.

Does the source compile into the .so I need

I have opened a bug with Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1639337 ,
and, yes, apparently others are suffering the same, well one other at
the moment.

Please excuse my ignorance, I am certainly not very experienced with any
of this and there is much I have to learn.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/22

------------------------------------------------------------------------
On 2016-11-10T23:04:04+00:00 Peter Hutterer wrote:

I think ubuntu tracks the xf86-input-evdev version, so if the package is 
version 2.10.4, then that's the upstream version too..... yep:
http://packages.ubuntu.com/yakkety/xserver-xorg-input-evdev

libevdev.so is an unrelated package, it's a dependency for the driver
but it's not likely to be the source of the issue (especially if the .so
is the same). The xf86-input-evdev driver usually sits in
/usr/lib/xorg/modules/input/evdev_drv.so

as for the dependencies, you should get there with apt-get build-dep
xserver-xorg-input-evdev. check for the exact usage, I never remember
(on an RPM distry myself) but google will help there. Once that's done,
the git driver should compile just fine. A quick check shows that the
ubuntu version doesn't seem to have any patches over upstream, so
I'really need you to try the git version and bisect to figure out what's
going on.

But 16.10 is on 2.10.2, so you're most likely running into bug 95315
that was fixed in 2.10.3

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/24

------------------------------------------------------------------------
On 2016-11-12T12:31:49+00:00 Aidan Walton wrote:

I'm not sure this is related.... I refer you to the comments from
other Ubuntu users regarding downgrading to 2.10.1, by installing
xserver-xorg-input-evdev_2.10.1-1ubuntu2_amd64.deb. This seems to have
fixed the issue.
I have not done this and probably will not make this change. I think
it will force a downgrade also to the xserver-xorg-core package. I
don't much like that idea.

But if what this other person says can be confirmed (see the ubuntu
bug tracker) then I think something else if wrong.??

On 11 November 2016 at 00:04,  <bugzilla-dae...@freedesktop.org> wrote:
> Comment # 19 on bug 98575 from Peter Hutterer
>
> I think ubuntu tracks the xf86-input-evdev version, so if the package is
> version 2.10.4, then that's the upstream version too..... yep:
> http://packages.ubuntu.com/yakkety/xserver-xorg-input-evdev
>
> libevdev.so is an unrelated package, it's a dependency for the driver but
> it's
> not likely to be the source of the issue (especially if the .so is the
> same).
> The xf86-input-evdev driver usually sits in
> /usr/lib/xorg/modules/input/evdev_drv.so
>
> as for the dependencies, you should get there with apt-get build-dep
> xserver-xorg-input-evdev. check for the exact usage, I never remember (on an
> RPM distry myself) but google will help there. Once that's done, the git
> driver
> should compile just fine. A quick check shows that the ubuntu version
> doesn't
> seem to have any patches over upstream, so I'really need you to try the git
> version and bisect to figure out what's going on.
>
> But 16.10 is on 2.10.2, so you're most likely running into bug 95315 that
> was
> fixed in 2.10.3
>
> ________________________________
> You are receiving this mail because:
>
> You reported the bug.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/27

------------------------------------------------------------------------
On 2016-11-13T21:35:51+00:00 Peter Hutterer wrote:

(In reply to Aidan from comment #20)
> I'm not sure this is related.... I refer you to the comments from
> other Ubuntu users regarding downgrading to 2.10.1, by installing
> xserver-xorg-input-evdev_2.10.1-1ubuntu2_amd64.deb. This seems to have
> fixed the issue.

See bug 95315 comment 10. That's the issue and it was first introduced in 
2.10.2 and then reverted again in 2.10.3. So the above means that this is what 
we're looking at here - please update to 2.10.3 and it should be fixed.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/29

------------------------------------------------------------------------
On 2017-03-01T04:33:47+00:00 Peter Hutterer wrote:

closing based on comment 21

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/32

------------------------------------------------------------------------
On 2018-03-31T16:18:23+00:00 Aidan Walton wrote:

Hi, its been some time..

Okay please allow me to open this problem up once more. Perhaps you have some 
further info.
Regarding the build of evdev in Ubuntu. Now using Ubuntu 17.10 and the package: 
xserver-xorg-input-evdev (1:2.10.5-1ubuntu1)  is installed. I think its clear 
that the evdev version is ahead of the point you mentioned when closing this 
bug report.

However, I still have problems with ABS_PRESSURE. Most applications, it
seems those using XIv1 see pressure and act accordingly. A specific
application, Krita, apparently uses XIv2, and does not see pressure.

If I look at xinput --test 8, my tablet.

motion a[0]=24032 a[1]=12372 a[2]=825 
motion a[0]=24035 a[1]=12372 a[2]=829 
motion a[0]=24040 a[1]=12372 a[2]=833 
motion a[0]=24044 a[1]=12372 a[2]=835

a[0] = x, a[1] = y, a[2] = pressure

But when I watch the XI2 xinput test-xi2 8

EVENT type 17 (RawMotion)
    device: 8 (8)
    detail: 0
    flags: 
    valuators:
          0: 26332.00 (26332.00)
          1: 16756.00 (16756.00)

I never see pressure. So it seems that the valuator seen by xinput does
not get translated to an xi2 extended valuator.

xinput version 1.6.2
XI version on server: 2.3

Why is this?

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/36

------------------------------------------------------------------------
On 2018-04-02T22:28:00+00:00 Peter Hutterer wrote:

that is ... weird. the code paths are supposed to be the same and if the
raw motion doesn't see the axis, the xi1 event is not supposed to see
the axis either. RawMotion is what comes straight from the device,
before the other events are assembled.

I replayed attachment 127745 here and the pressure valuator definitely
shows up with xi2 as well. Note however that unlike XI 1.x where the
valuators are continuous, XI2 has a bitmask with the valuators set as
they come in from the device. IOW, events like these:

EVENT type 17 (RawMotion)
    device: 25 (25)
    detail: 0
    flags: 
    valuators:
          2: 591.00 (591.00)

Or even like these:

EVENT type 17 (RawMotion)
    device: 25 (25)
    detail: 0
    flags: 
    valuators:
          0: 7642.00 (7642.00)
          2: 617.00 (617.00)

So afaict, the evdev driver works correctly and events are sent to
clients as expected. Not sure why krita doesn't see it, but right now
I'm ETIME on almost everything so you'll have to investigate that
yourself, sorry.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/37

------------------------------------------------------------------------
On 2018-08-10T20:54:24+00:00 Gitlab-migration wrote:

-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has
been closed from further activity.

You can subscribe and participate further through the new bug through
this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-input-evdev/issues/7.

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-
evdev/+bug/1639337/comments/38


** Changed in: evdev
       Status: Confirmed => Unknown

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-input-evdev in Ubuntu.
https://bugs.launchpad.net/bugs/1639337

Title:
  Ubuntu 16.10 Abs_pressure not reported from kernel evdev to xserver-
  xorg-evdev

To manage notifications about this bug go to:
https://bugs.launchpad.net/evdev/+bug/1639337/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to