From nobody Mon Sep 18 07:42:10 2023 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RpxZv1zQkz4sjnV for ; Mon, 18 Sep 2023 07:42:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RpxZt3R11z3Gb4; Mon, 18 Sep 2023 07:42:14 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [212.222.85.178] (helo=pureos) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qi8tY-002szx-91; Mon, 18 Sep 2023 09:42:12 +0200 Date: Mon, 18 Sep 2023 09:42:10 +0200 From: Matthias Apitz To: kde@freebsd.org Cc: freebsd-x11@freebsd.org Subject: CPU consumtion by kglobalaccel / Xorg (was: Fwd: xorg-server-21.1.8_2,1 && key Control_L) Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: kde@freebsd.org, freebsd-x11@freebsd.org List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 212.222.85.178 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.68 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.978]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; REPLYTO_EQ_FROM(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[unixarea.de]; FROM_HAS_DN(0.00)[]; HAS_XOIP(0.00)[]; RCVD_TLS_ALL(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Rspamd-Queue-Id: 4RpxZt3R11z3Gb4 I investigated the problem described below further and modified ~/.xinitrc to not start plasma, but twm and one xterm. The issue depends clearly on KDE5. On KeyPress event of Control_L the two processes Xorg and kglobalaccel jump in top on the list, Xorg with 30++%. If one uses multiple time Control_L + TAB to rotate between the virtual desktops, this is lazy at the beginning and later the requests get somehow stacked nd re-played by its own like a movie. This is not with my older laptop installation with ports from end of 2020 (which have been bleeding edge at this time). Should I file a bug in bugs.kde.org or is that somehow a known issue? Thanks matthias ----- Forwarded message from Matthias Apitz ----- Date: Sun, 17 Sep 2023 17:16:09 +0200 From: Matthias Apitz To: freebsd-x11@freebsd.org Subject: xorg-server-21.1.8_2,1 && key Control_L Hello, I updated (using poudriere) to very recent ports and esp. the Xorg to to 7.7_3 and the server itself from xorg-server-1.20.9,1.txz to xorg-server-21.1.8_2,1. I'm using a desktop, where Control_L + TAB is used to circle around in virtual desktops. While using this I see some kind of lazy switch between the virtual desktops and investigating this it turned out, that simple pressing the key Control_L (i.e. without followed by TAB) makes the Xorg process consuming 20% to 50% of the CPU. Xorg is running as: /usr/local/libexec/Xorg -nolisten tcp -retro -logverbose 6 and pressing Control_L + TAB (for the desktop rotate) gives messages in /var/log/Xorg.0.log like these $ tail -f /var/log/Xorg.0.log ... [ 11019.507] [dix] EventToCore: Not implemented yet [ 11019.507] [dix] EventToCore: Not implemented yet [ 11019.663] [dix] EventToCore: Not implemented yet [ 11019.663] [dix] EventToCore: Not implemented yet [ 11019.663] [dix] EventToCore: Not implemented yet [ 11019.663] [dix] EventToCore: Not implemented yet What does this mean? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub ----- End forwarded message ----- -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub