See https://forum.xfce.org/viewtopic.php?id=13926 and upstream issue https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/168
There is a partial fix which apparently fixes the desktop shortcuts being locked, but not the multiple calls to xmodmap: https://gitlab.xfce.org/atomsymbol/libxfce4ui/-/commit/85d8d390f9f2265613da4291992523937a7a2519 XFCE desktop shortcuts are unusable for about 30-40 seconds after switching from tty to Xorg if there exists a .Xmodmap file in $HOME. Without a .Xmodmap file, the delay is about 10 seconds. Similar behavior gets triggered when a keyboard is reconnected to an USB port. With this patch, desktop shortcuts are usable immediately (likely in less than 0.25 seconds after switching from tty to Xorg). An issue not fixed by this patch is that /usr/bin/xmodmap can be executed about 30 times after switching to Xorg. However, on the tested machine with a relatively small .Xmodmap this does not pose a performance issue which would be noticeable by the user. ** Bug watch added: gitlab.xfce.org/xfce/xfce4-settings/-/issues #168 https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/168 ** Also affects: linux via https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/168 Importance: Unknown Status: Unknown ** Project changed: linux => xfce4-settings ** Package changed: linux (Ubuntu) => xfce4-settings (Ubuntu) -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/998310 Title: .Xmodmap file makes xorg temporarily reach high cpu usage (90%-100%) after resume or when coming back from tty to X session Status in Xfce4 Settings: Unknown Status in xfce4-settings package in Ubuntu: Incomplete Bug description: Each time when I resume my laptop, my computer nearly freezes for about 5 minutes and Xorg is using 90-100% cpu. This issue disappears and then everything is back to normal. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: xorg 1:7.6+12ubuntu1 ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16 Uname: Linux 3.2.0-24-generic x86_64 ApportVersion: 2.0.1-0ubuntu7 Architecture: amd64 Date: Fri May 11 22:57:03 2012 EcryptfsInUse: Yes InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427) ProcEnviron: LANGUAGE=ca_ES TERM=xterm LANG=ca_ES.UTF-8 SHELL=/bin/bash SourcePackage: xorg UpgradeStatus: Upgraded to precise on 2012-03-25 (47 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/xfce4-settings/+bug/998310/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp