I noticed this on Debian (buster). It appears to be caused by the
keyboard being detected multiple times, resulting in xfsettingsd running
xmodmap multiple times. To monitor, run:

  XFSETTINGSD_DEBUG=1 xfsettingsd --replace --no-daemon

After suspend/resume (or just unplug/plug the USB keyboard), xfsettingsd
launches xmodmap multiple times:

xfce4-settings(keyboard-layout): spawning "xmodmap /home/user/.Xmodmap"
xfce4-settings(keyboard-layout): New keyboard detected; restoring XKB settings.
Warning: Only changing the first 3 of 10 buttons.
xfce4-settings(keyboard-layout): spawning "xmodmap /home/user/.Xmodmap"
xfce4-settings(keyboard-layout): New keyboard detected; restoring XKB settings.
Warning: Only changing the first 3 of 10 buttons.
xfce4-settings(keyboard-layout): spawning "xmodmap /home/user/.Xmodmap"
Warning: Only changing the first 3 of 10 buttons.
xfce4-settings(keyboard-layout): New keyboard detected; restoring XKB settings.
xfce4-settings(keyboard-layout): spawning "xmodmap /home/user/.Xmodmap"
xfce4-settings(keyboard-layout): New keyboard detected; restoring XKB settings.
xfce4-settings(keyboard-layout): spawning "xmodmap /home/user/.Xmodmap"
xfce4-settings(keyboard-layout): New keyboard detected; restoring XKB settings.

As a test, doing:

  for x in {1..10}; do bash -c 'xmodmap ~/.Xmodmap &'; done

Has similar results of high CPU in xorg and xmodmap.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/xfce4-settings/+bug/998310/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to