Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447656 - xinput --map-to-output 10 (pointer device) VGA1 (crtc) text cursor disappears and doesn't reappear until cursor change
Summary: xinput --map-to-output 10 (pointer device) VGA1 (crtc) text cursor disappears...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-18 00:34 UTC by Matthew Schultz
Modified: 2014-03-28 02:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2012-12-18 00:34:44 UTC
When the text cursor disappears from inactivity (i.e. not moving the mouse), the cursor does not reappear when you move the mouse within that same general area.  To get the cursor to reappear, you must move the mouse to a location that will cause the cursor to change to the default arrow (i.e. in the panel area).  

This appears to only affect KDE applications from what I can tell (e.g. Firefox 17.0.1 does not exhibit this problem).  I have noticed this bug on both konsole and kate using KDE 4.9.3.

In kate, I can also reproduce this problem if I move the mouse over the area where you type text and push the ctrl key, move the mouse slightly and notice the cursor does not reappear.

Note that this is a regression since I just tested kate in 4.8.5 and this problem did not exist in that version.


emerge --info
                                 
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.6.2-gentoo x86_64)                                                                                                                        
=================================================================                                                                                                                                                  
System uname: Linux-3.6.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.2                                                                                                                   
Timestamp of tree: Tue, 11 Dec 2012 21:00:01 +0000                                                                                                                                                                 
ld GNU ld (GNU Binutils) 2.22                                                                                                                                                                                      
app-shells/bash:          4.2_p37                                                                                                                                                                                  
dev-java/java-config:     2.1.11-r3                                                                                                                                                                                
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo sunrise x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://portage.home http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://server.home/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 audiofile avi bcmath bdf berkdb bluetooth bzip2 cairo calendar caps cdda cdr chardet cjk clamav cli consolekit cracklib crypt css ctype cups curl curlwrappers cxx dbus declarative device-mapper dga directfb dri dts dvb dvd dvdread emu-linux-x86 enca encode exif fbcon ffmpeg flac fontconfig foomaticdb fortran ftp fts3 gd gdbm gif gmp gnutls gpm gsm gtk gtk2 gzip hash hbci iconv idn ieee1394 imagemagick imap imlib innodb ipv6 ithreads java java6 javascript jpeg jpeg2k json kde keymap kipi lcms libcaca libnotify lirc lm_sensors logrotate lzma lzo mad matroska mbox mcal mhash mime mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer msession mudflap multilib mysql mysqli mysqlnd mythtv ncurses network nls nptl nptlonly nsplugin nss nvidia offensive ofx ogg openal opengl openmp openssl osc osmesa oss pam pcntl pcre pdf pdo pear perl php png policykit posix ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection rtc samba sasl sdl seamonkey session simplexml smp snmp soap sockets spell spl sql sqlite sse sse2 ssl ssse3 subversion suhosin svg syslog sysvipc tcpd theora threads thumbnail tidy tiff tokenizer transcode truetype tslib udev udisks unicode usb utempter v4l v4l2 vcd vdpau vorbis vpx wddx webkit wifi x264 xcb xcomposite xforms xine xinerama xml xpm xsl xv xvfb xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics tslib" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru" PHP_TARGETS="php5-2 php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia intel nv vesa fbdev v4l qxl virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Franz Trischberger 2012-12-18 08:01:30 UTC
Can't reproduce this with kde-4.9.4.
Will test later on with 4.9.3.
Could you tell us which kde-style/kwin-deko you are using. Also your graphics setup could be of help (graphics card+driver/mesa/xorg-server/compositing enabled + compositing type/Qt graphics system - for the last two open systemsettings/Desktop effects/Advanced)
Comment 2 Matthew Schultz 2012-12-18 15:02:53 UTC
(In reply to comment #1)
> Can't reproduce this with kde-4.9.4.
> Will test later on with 4.9.3.
> Could you tell us which kde-style/kwin-deko you are using. Also your
> graphics setup could be of help (graphics
> card+driver/mesa/xorg-server/compositing enabled + compositing type/Qt
> graphics system - for the last two open systemsettings/Desktop
> effects/Advanced)

After some more testing, I have managed to narrow down how to reproduce this problem.  There seems to be some kind of weird interaction with this bug and my touchscreen.  The bug does not show itself when I login and only use the mouse.  The touchscreen also is detected and evdev initializes it.  As soon as I activate the touchscreen by touching it so that it can control the cursor, the bug instantly appears where the cursor disappears and does not come back when moving the mouse until you move the mouse to a location where the cursor changes to an arrow.  Perhaps there's a bug in tslib for xorg-server that is causing this?
Comment 3 Matthew Schultz 2012-12-18 15:19:31 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Can't reproduce this with kde-4.9.4.
> > Will test later on with 4.9.3.
> > Could you tell us which kde-style/kwin-deko you are using. Also your
> > graphics setup could be of help (graphics
> > card+driver/mesa/xorg-server/compositing enabled + compositing type/Qt
> > graphics system - for the last two open systemsettings/Desktop
> > effects/Advanced)
> 
> After some more testing, I have managed to narrow down how to reproduce this
> problem.  There seems to be some kind of weird interaction with this bug and
> my touchscreen.  The bug does not show itself when I login and only use the
> mouse.  The touchscreen also is detected and evdev initializes it.  As soon
> as I activate the touchscreen by touching it so that it can control the
> cursor, the bug instantly appears where the cursor disappears and does not
> come back when moving the mouse until you move the mouse to a location where
> the cursor changes to an arrow.  Perhaps there's a bug in tslib for
> xorg-server that is causing this?

Moving the cursor with the touchscreen after it disappears works fine as well (i.e. appears where you tap).  It does not reappear when moving the mouse until a cursor change happens in a different area.  Also when I tap the screen after it disappears with the text cursor (e.g. in kate) and then I move the mouse, the arrow cursor reappears in the lower right hand corner of the screen even though that's not where it was last located when I tapped the screen using the touchscreen.
Comment 4 Matthew Schultz 2012-12-18 15:29:45 UTC
This problem is not specific to an arch.  I can reproduce on x86 and amd64.  It is not graphics specific since I can reproduce on intel or nvidia. I'm using oxygen deco on both test machines.  Compositing type is opengl and qt graphics system is raster.  xorg-server on both machines is 1.13.0-r1:

emerge -pv xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-base/xorg-server-1.13.0-r1  USE="ipv6 nptl tslib udev xorg xvfb -dmx -doc -kdrive -minimal (-selinux) -static-libs -xnest" 0 kB


mesa on both machines is 9.0

emerge -pv mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-9.0  USE="classic egl g3dvl gallium gbm gles1 gles2 llvm nptl osmesa shared-glapi xa xvmc -bindist -debug -openvg -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau (-wayland) -xorg" VIDEO_CARDS="-i915 -i965 -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"
Comment 5 Matthew Schultz 2012-12-28 05:35:39 UTC
(In reply to comment #4)
> This problem is not specific to an arch.  I can reproduce on x86 and amd64. 
> It is not graphics specific since I can reproduce on intel or nvidia. I'm
> using oxygen deco on both test machines.  Compositing type is opengl and qt
> graphics system is raster.  xorg-server on both machines is 1.13.0-r1:
> 
> emerge -pv xorg-server
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] x11-base/xorg-server-1.13.0-r1  USE="ipv6 nptl tslib udev
> xorg xvfb -dmx -doc -kdrive -minimal (-selinux) -static-libs -xnest" 0 kB
> 
> 
> mesa on both machines is 9.0
> 
> emerge -pv mesa
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] media-libs/mesa-9.0  USE="classic egl g3dvl gallium gbm
> gles1 gles2 llvm nptl osmesa shared-glapi xa xvmc -bindist -debug -openvg
> -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau (-wayland) -xorg"
> VIDEO_CARDS="-i915 -i965 -intel -nouveau -r100 -r200 -r300 -r600 -radeon
> -radeonsi -vmware"

It seems this bug only happens when calling --map-to-output for xinput which confines the pointer device to a specific crtc.  Perhaps this is an xorg bug?

where 10 is the touchscreen pointer device and VGA1 is the touchscreen crtc.

e.g. xinput --map-to-output 10 VGA1
Comment 6 Michael Palimaka (kensington) gentoo-dev 2012-12-28 12:27:25 UTC
(In reply to comment #5)
> It seems this bug only happens when calling --map-to-output for xinput which
> confines the pointer device to a specific crtc.  Perhaps this is an xorg bug?
> 
> where 10 is the touchscreen pointer device and VGA1 is the touchscreen crtc.
> 
> e.g. xinput --map-to-output 10 VGA1

Maybe X11 team has an idea.
Comment 7 Matthew Schultz 2012-12-28 13:45:38 UTC
> Also when I tap
> the screen after it disappears with the text cursor (e.g. in kate) and then
> I move the mouse, the arrow cursor reappears in the lower right hand corner
> of the screen even though that's not where it was last located when I tapped
> the screen using the touchscreen.

This problem is unrelated to xinput --map-to-output.  It happens anytime the touchscreen takes over moving the pointer and then you switch back to the mouse.
Comment 8 Matthew Schultz 2012-12-28 13:57:55 UTC
(In reply to comment #7)
> > Also when I tap
> > the screen after it disappears with the text cursor (e.g. in kate) and then
> > I move the mouse, the arrow cursor reappears in the lower right hand corner
> > of the screen even though that's not where it was last located when I tapped
> > the screen using the touchscreen.
> 
> This problem is unrelated to xinput --map-to-output.  It happens anytime the
> touchscreen takes over moving the pointer and then you switch back to the
> mouse.

I created bug 449042 to deal with this issue.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2014-03-14 13:27:18 UTC
Is this still occurring with latest Xorg/KDE?
Comment 10 Matthew Schultz 2014-03-28 02:31:33 UTC
It appears upstream fixed the issue.