After suspend stylus position confused about rotated screen in multi-monitor setup

Bug #1901430 reported by Rob Frohne
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

I have a tablet computer that has the monitor rotated to upside down landscape position. There is also an external monitor connected to this computer. When I suspend and awake this computer, the stylus position is as if the tablet computer's screen was not rotated. The mouse cursor is fine, but not the stylus, and the confusion of the stylus goes into the external monitor.

Thanks for all you do to fix annoying bugs for all of us users!

A work around is to rotate the screen, as the stylus regains its bearings when you do that.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: xorg 1:7.7+19ubuntu15
ProcVersionSignature: Ubuntu 5.8.0-25.26-generic 5.8.14
Uname: Linux 5.8.0-25-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 25 10:57:29 2020
DistUpgraded: 2020-10-23 20:36:53,845 ERROR got error from PostInstallScript ./xorg_fix_proprietary.py (g-exec-error-quark: Failed to execute child process “./xorg_fix_proprietary.py” (No such file or directory) (8))
DistroCodename: groovy
DistroVariant: ubuntu
DkmsStatus:
 bcmwl, 6.30.223.271+bdcom, 5.4.0-52-generic, x86_64: installed
 bcmwl, 6.30.223.271+bdcom, 5.8.0-25-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company 2nd Generation Core Processor Family Integrated Graphics Controller [103c:162a]
InstallationDate: Installed on 2020-05-17 (161 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: Hewlett-Packard HP EliteBook 2760p
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-25-generic root=UUID=694dacef-c80d-436a-8434-767b308d9087 ro quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: Upgraded to groovy on 2020-10-24 (1 days ago)
dmi.bios.date: 07/15/2013
dmi.bios.release: 15.66
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68SOU Ver. F.42
dmi.board.name: 162A
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 05.40
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.ec.firmware.release: 5.64
dmi.modalias: dmi:bvnHewlett-Packard:bvr68SOUVer.F.42:bd07/15/2013:br15.66:efr5.64:svnHewlett-Packard:pnHPEliteBook2760p:pvrA0005F02:rvnHewlett-Packard:rn162A:rvrKBCVersion05.40:cvnHewlett-Packard:ct10:cvr:
dmi.product.family: 103C_5336AN
dmi.product.name: HP EliteBook 2760p
dmi.product.sku: XX047AV#ABA
dmi.product.version: A0005F02
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.102-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 20.2.1-1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.9-2ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200714-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Rob Frohne (frohro) wrote :
summary: - After suspend stylus position confused about rotated screen is multi-
+ After suspend stylus position confused about rotated screen in multi-
monitor setup
tags: added: multimonitor resume suspend-resume
tags: added: wacom
affects: xorg (Ubuntu) → mutter (Ubuntu)
Revision history for this message
Rob Frohne (frohro) wrote :

This kept bothering me so I came up with a work-around. I put the following file (with chmod 755 so it could be executed) in /etc/pm/sleep.d/ and called it 20_map-to-display. You have to use the xinput and xrandr commands to determine what your display is called (where I have LVDS-1) and which input devices are not mapped properly (numbers to put in where I have 13, 14, and 16), and modify those parameters. I think I also had to install pm-utils with apt.

PATH=/sbin:/usr/sbin:/bin:/usr/bin

case "${1}" in
        resume|thaw)
                sleep 5
                xinput map-to-output 13 LVDS-1
                xinput map-to-output 14 LVDS-1
                xinput map-to-output 16 LVDS-1
;;

I hope this helps anyone else with my particular problem.

Revision history for this message
Rob Frohne (frohro) wrote :

Unfortunately the above work-around only works when I suspend using pm-suspend. The system is using systems. I'm working on figuring that out now.

Revision history for this message
Rob Frohne (frohro) wrote :

Okay, so here is the new work-around. You put this file in /usr/lib/systemd/system-sleep/
I called it 20_map-to-display. Call it what you like. It needs to be executable.

#!/bin/sh
export HOME=/home/frohro/
export DISPLAY=:0

case $1/$2 in
        post/*)
                /usr/bin/su frohro -c "/usr/bin/sleep 3;/usr/bin/xinput map-to-output 13 LVDS-1"
                /usr/bin/su frohro -c "/usr/bin/sleep 3;/usr/bin/xinput map-to-output 14 LVDS-1"
                /usr/bin/su frohro -c "/usr/bin/sleep 3;/usr/bin/xinput map-to-output 16 LVDS-1"
;;
esac

I hope this is useful to someone else.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 20.10 (groovy) reached end-of-life on July 22, 2021.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in mutter (Ubuntu):
status: New → Won't Fix
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.