From nobody Tue Sep 19 05:36:17 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 4RqVl72Bj3z4tQBs for ; Tue, 19 Sep 2023 05:36:19 +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 4RqVl65FNKz4Z0G; Tue, 19 Sep 2023 05:36:18 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [188.174.63.11] (helo=c720-1400094.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qiTPE-00HBxl-Fv; Tue, 19 Sep 2023 07:36:16 +0200 Received: from c720-1400094.fritz.box (localhost [127.0.0.1]) by c720-1400094.unixarea.de (8.17.1/8.14.9) with ESMTP id 38J5aHof001951; Tue, 19 Sep 2023 07:36:17 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-1400094.fritz.box (8.17.1/8.14.9/Submit) id 38J5aHvW001950; Tue, 19 Sep 2023 07:36:17 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-1400094.fritz.box: guru set sender to guru@unixarea.de using -f Date: Tue, 19 Sep 2023 07:36:17 +0200 From: Matthias Apitz To: Michael Gmelin Cc: Gleb Popov , kde@freebsd.org, freebsd-x11@freebsd.org Subject: Re: 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: Michael Gmelin , Gleb Popov , kde@freebsd.org, freebsd-x11@freebsd.org References: <68ED5BF0-4A51-4787-A11A-D75E8F23ED06@grem.de> 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: multipart/mixed; boundary="ofAdU/misAc5pqRF" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <68ED5BF0-4A51-4787-A11A-D75E8F23ED06@grem.de> X-Operating-System: FreeBSD 14.0-CURRENT 1400094 (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: 188.174.63.11 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Queue-Id: 4RqVl65FNKz4Z0G --ofAdU/misAc5pqRF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit El día lunes, septiembre 18, 2023 a las 10:41:52p. m. +0200, Michael Gmelin escribió: > > > > On 18. Sep 2023, at 18:03, Matthias Apitz wrote: > > > > El día lunes, septiembre 18, 2023 a las 11:36:17a. m. +0200, Matthias Apitz escribió: > > > >>> El día lunes, septiembre 18, 2023 a las 11:08:16 +0300, Gleb Popov escribió: > >>> > >>> On Mon, Sep 18, 2023 at 10:42 AM Matthias Apitz wrote: > >>>> > >>>> > >>>> 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 > >>> > >>> Probably you have something strange bound to this shortcut. Does the > >>> problem exist for a newly created user (with empty ~/.config and > >>> ~/.cache) ? > >> > >> The trees ~/.config and ~/.cache have been copied from the 2020's system > >> which is still in use. But I will follow your advice and test with a > >> newly created user. > > > > I created a new user 'test', did login as 'test', copied my ~guru/.xinitrc > > to ~/.xinitrc, started KDE with 'startx' and started on the empty desktop > > 'Konsole' from the Application launcher and with 'Konsole' the command > > 'top'. Using the key 'Control_L' a few times, let's say 10 times in 10 > > seconds, brings the proc Xorg to 60% and kglobalaccel to 20% CPU utilization. > > > > Please let me know, if I could check something. > > > > Could you share the content of your .xinitrc (excuse if you had before). It's attached. There is also nothing fancy configured for the desktop switch. Each new desktop just moves in from right to the left. I have configured 4 virtual desktops and from the fourth it cycles back to the first. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --ofAdU/misAc5pqRF Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=".xinitrc" # # test section to not boot KDE # # setxkbmap de -option terminate:ctrl_alt_bksp # twm & # xterm -fn 10x20 # exit # # end of test section # setxkbmap de -option terminate:ctrl_alt_bksp xrandr --output default --mode 1366x768 /usr/local/bin/xbindkeys # Trackpad section # device="Cypress APA I2C Trackpad" # xinput set-prop "$device" "libinput Tapping Enabled" 1 # # for those who like "natural" scrolling: # xinput set-prop "$device" "libinput Natural Scrolling Enabled" 1 # # this gives three buttons in the lower part of the TP: # xinput set-prop "$device" "libinput Middle Emulation Enabled" 0 # # # Trackpad layout (see man cyapa) # # 2/3 1/3 # +--------------------+------------+ # | | Middle | # | | Button | # | Left | | # | Button +------------+ # | | Right | # | | Button | # +--------------------+............| # | Thumb/Button Area | 15% # +---------------------------------+ # see also: # https://wayland.freedesktop.org/libinput/doc/latest/clickpad-softbuttons.html # # end of Trackpad section # # startplasma-x11 # echo .xinitrc-StartKDE > startkde.log exec ck-launch-session startplasma-x11 \ 2>&1 | while read line; do echo -n "$(date '+%T'): "; echo $line ; test "$line" = "startkde: Done." && exit ; done | tee -a startkde.log --ofAdU/misAc5pqRF--