Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145692 - keycode 111 hardcoded as print screen in kde
Summary: keycode 111 hardcoded as print screen in kde
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-31 02:58 UTC by Pavel Bazika
Modified: 2006-08-31 08:46 UTC (History)
0 users

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 Pavel Bazika 2006-08-31 02:58:14 UTC
When Print screen is pressed in KDE xev outputs these messages:

FocusOut event, serial 31, synthetic NO, window 0x1a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 31, synthetic NO, window 0x1a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 31, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   4294967168 0   0 
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyRelease event, serial 31, synthetic NO, window 0x1a00001,
    root 0x65, subw 0x0, time 1671733774, (35,-25), root:(1352,934),
    state 0x10, keycode 111 (keysym 0xff61, Print), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

So only keyrelease event, no keypress event there. Normal behaviour is (for example when I press 'a' key):

KeyPress event, serial 32, synthetic NO, window 0x1a00001,
    root 0x65, subw 0x0, time 1671779381, (47,-24), root:(1364,935),
    state 0x10, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XmbLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x1a00001,
    root 0x65, subw 0x0, time 1671779452, (47,-24), root:(1364,935),
    state 0x10, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

When KSnapshot is installed, it's executed. Without KSnapshot, nothing happens. Problem is, when evdev driver for Xorg is used - there are different keycodes, 111, which is normally Print Screen, is assigned to the 'up arrow' button. Because these behaviour depends on keycode, when up arrow key is pressed, KSnapshot is executed or nothing happens.

I've searched at KDE bugzilla - there I've found, that it's not hardcoded in KDE and it's distro problem. The bug report there is at http://bugs.kde.org/show_bug.cgi?id=125559.

Is there a possibility how to disable this or it is a bug?

My emerge --info:
Portage 2.1-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -fomit-frame-pointer -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -fomit-frame-pointer -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo rsync://ftp.fi.muni.cz/pub/linux/gentoo"
LC_ALL="cs_CZ.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 16bit X a52 aac acpi alsa amd aotuv apache apache2 apm arts artswrappersuid asf asm automount avi bash-completion berkdb bidi bindist bitmap-fonts bzip2 cdinstall cid cjk cli crypt cscope ctype cups custom-cflags cvsgraph dbus dga dio dlloader doc dpms dri dv dvd dvdr dvdread encode exif fastbuild fbcon fontconfig fping ftp gd gif glibc-omitfp gphoto2 gpm hal hpn icc iconv icq input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse isdnlog jack java javascript jikes jpeg kde linuxthreads-tls lirc lm_sensors mad memlimit mime mmx mmxext mozilla mp3 mp4live mpeg mpeg2 mpeg4 mplayer multislot mysql mythtv ncurses nforce2 nls no-htdocs nocd noplugin nptl nptlonly nsplugin nvidia opengl openssh pam pascal pcre pdflib pmu png pnp posix pppd qt3 qt4 quicktime readline reflection sblive sdl sensord session sockets spl sql sse sse2 ssl subversion svga sysvipc test tga threads truetype truetype-fonts type1 unicode userlocales v4l v4l2 vhosts video_cards_fbdev video_cards_nv video_cards_s3 video_cards_s3virge video_cards_v4l video_cards_vesa video_cards_vga videos vidix visualization vorbis win32codecs xface xine xinerama xml xorg xv xvid xvmc zip zlib elibc_glibc kernel_linux linguas_cs lirc_devices_devinput userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Pavel Bazika 2006-08-31 08:46:19 UTC
Discovered, that it's an error in KDE, althought they written, that not. KHotkeys uses keycodes, not keysyms, that's the problem. Marked as invalid.