Stylus coordinates wrong when screen is rotated on Dell Venue 11 Pro 7140

Bug #1561943 reported by Asvin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unity-control-center (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I am using the pre-release 16.04 Ubuntu Xenial Xerus (development branch) with kernel 4.4.0-15-generic on a Dell Venue 11 Pro 7140. Touchscreen and Stylus are recognised out of the box:

xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Synaptics T Pad V 01.31 Touchpad id=9 [slave pointer (2)]
⎜ ↳ SYNA7500:00 06CB:780E Pen id=13 [slave pointer (2)]
⎜ ↳ SYNA7500:00 06CB:780E id=14 [slave pointer (2)]

When I am manually rotating the screen by 90° using the System Settings option (automatic screen rotation does not work), the touchscreen and touchpad work as expected, however, the stylus is not using the correct coordinates and the cursor is not following the stylus position. When I move the stylus left/right, the cursor moves up/down, and vice versa.

I had hoped to get a work around by disabling and re-enabling the stylus after rotating the screen using

xinput --disable "SYNA7500:00 06CB:780E Pen"
xinput --enable "SYNA7500:00 06CB:780E Pen"

but this didn't solve the problem.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-15-generic 4.4.0-15.31 [modified: boot/vmlinuz-4.4.0-15-generic]
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: asvin 1800 F.... pulseaudio
 /dev/snd/controlC1: asvin 1800 F.... pulseaudio
CurrentDesktop: Unity
Date: Fri Mar 25 11:21:35 2016
HibernationDevice: RESUME=UUID=f716048f-ce0e-4825-b3c4-563fa743242a
InstallationDate: Installed on 2016-03-23 (1 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323)
MachineType: Dell Inc. Venue 11 Pro 7140
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic.efi.signed root=UUID=a9cb1c53-fcf1-4691-a246-24b90dd908c6 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-15-generic N/A
 linux-backports-modules-4.4.0-15-generic N/A
 linux-firmware 1.157
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/27/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A09
dmi.board.name: 0XMVMH
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA09:bd10/27/2015:svnDellInc.:pnVenue11Pro7140:pvr:rvnDellInc.:rn0XMVMH:rvrA00:cvnDellInc.:ct8:cvr:
dmi.product.name: Venue 11 Pro 7140
dmi.sys.vendor: Dell Inc.

Revision history for this message
Asvin (m-launch7ad-u) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.5 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-wily/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Asvin (m-launch7ad-u)
tags: added: kernel-bug-exists-upstream
Revision history for this message
Asvin (m-launch7ad-u) wrote :

The problem occurred upon a fresh install. I just tested kernel 4.5.0-040500-generic with no success.

However, I found a work around by applying this script for manual screen and stylus rotation:

#!/bin/sh
# determine whether screen is already rotated
xrandr --current | grep primary | grep "left ("
if [ $? -eq 1 ];
then
  xrandr -o left
  # rotate stylus driver
  xinput set-prop 13 "Evdev Axis Inversion" 1, 0
  xinput set-prop 13 "Evdev Axes Swap" 1
else
  xrandr -o normal
  # un-rotate stylus driver
  xinput set-prop 13 "Evdev Axis Inversion" 0, 0
  xinput set-prop 13 "Evdev Axes Swap" 0
fi

I think the Systems Settings dialog for rotating the screen should also rotate the stylus. Looks like this bug is related the 8 years old issue of bug #217182.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Asvin (m-launch7ad-u) wrote :

Changed package, because bug is probably one of the unity-control-center.

affects: linux (Ubuntu) → unity-control-center (Ubuntu)
Revision history for this message
Justin Ferguson (jferg) wrote :

I am also experiencing this same problem on Ubuntu 17.10.1 on a HP Spectre x360 (Kaby Lake).

Revision history for this message
Steve Roberts (drgrumpy) wrote :

I also have the same issue on Mint 19 on HP Spectre x360

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.