After suspend stylus position confused about rotated screen in multi-monitor setup
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
ProcVersionSign
Uname: Linux 5.8.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
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_
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
ExtraDebuggingI
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-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
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.
dmi.modalias: dmi:bvnHewlett-
dmi.product.family: 103C_5336AN
dmi.product.name: HP EliteBook 2760p
dmi.product.sku: XX047AV#ABA
dmi.product.
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.102-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
tags: | added: multimonitor resume suspend-resume |
tags: | added: wacom |
affects: | xorg (Ubuntu) → mutter (Ubuntu) |
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.