You are not logged in.

#1 2014-07-23 15:26:18

Alcasa
Member
Registered: 2013-05-18
Posts: 46

[Thinkpad X220i Tablet] Mouse Cursor Corruption after Screen Rotation

Hello,

after rotating my screen 180° and using the stylus, the reversed cursor will remain after switching back to normal mode. It is shifted a bit from the active cursor and will move accordingly when moving the cursor.

Taking a screenshot fails, since the mouse cursor will not be shown. (Could this be related?)

Does anyone have a similar problem or could point me at the things responsible for drawing the mouse cursor? I am using default intel drivers with X11 Gnome Shell.

Many thanks in advance.


Here is the script I use for hinge rotation:

#!/bin/bash

old="0"
while true; do
	if [[ -e /sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode ]]; then
		new=`cat /sys/devices/platform/thinkpad_acpi/hotkey_tablet_mode`
		if [[ $new != $old ]]; then
			if [[ $new == "0" ]]; then
				echo "Rotate to landscape, turn off onboard."
				xrandr -o normal
                gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
				xinput set-prop "TPPS/2 IBM TrackPoint" "Device Enabled" 1
			elif [[ $new == "1" ]]; then
				echo "Rotate to invert, turn on onboard."
				xrandr -o 2
                gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
				xinput set-prop "TPPS/2 IBM TrackPoint" "Device Enabled" 0
			fi
		fi
		old=$new
		sleep 1s
	fi
done

Edit: added the code tags, thanks

Last edited by Alcasa (2014-07-28 20:43:50)

Offline

#2 2014-07-24 20:11:54

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Thinkpad X220i Tablet] Mouse Cursor Corruption after Screen Rotation

Use [_code_][_/code_] tags without the underscores for output/code. What if you disable and enable the main input device also? Have you seen this or this? Does the cursor get stuck when you change orientation twice with xrandr only?

Edit: Try to capture the mouse pointer with gimp.

Last edited by emeres (2014-07-24 20:24:22)

Offline

#3 2014-07-27 15:59:47

esrevinu
Member
Registered: 2013-12-12
Posts: 20

Re: [Thinkpad X220i Tablet] Mouse Cursor Corruption after Screen Rotation

It looks like a bug reported by me: https://bugs.archlinux.org/task/41317 .

Offline

#4 2014-07-28 20:42:00

Alcasa
Member
Registered: 2013-05-18
Posts: 46

Re: [Thinkpad X220i Tablet] Mouse Cursor Corruption after Screen Rotation

esrevinu wrote:

It looks like a bug reported by me: https://bugs.archlinux.org/task/41317 .

Thanks, this seems to be the same problem.

Offline

Board footer

Powered by FluxBB