NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.6k stars 13.76k forks source link

using Xorg + XFCE + xmodmap + .Xmodmap incurs constant Xserver load #114775

Open fogti opened 3 years ago

fogti commented 3 years ago

Describe the bug I installed the package xorg.xmodmap and populated the file .Xmodmap using xmodmap -pke, then modified keycode 107 to dead_greek, to use greek alphabet using my PrtScr key.

To Reproduce Steps to reproduce the behavior:

  1. Add xorg.xmodmap to the installed system packages, run nixos-rebuild switch
  2. Populate $HOME/.Xmodmap using xmodmap -pke > ~/.Xmodmap
  3. Modify some of the bindings. I modifed the line with keycode 107 to keycode 107 = dead_greek dead_greek dead_greek dead_greek
  4. At least after a reboot, and then login, the X server load stays at ~25% on my laptop.

Expected behavior The X server load should not depend on the presence of .Xmodmap.

Screenshots None.

Additional context Normally, XFCE greets me with a message "bounced keys are disable", but this doesn't seem to be the case when I use .Xmodmap.

Notify maintainers The file which contains the package is automatically generated. And it seems to be caused by a bad interaction between Xorg, XFCE and xmodmap.

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  # I'm not sure if the following is correct
  - xfce.xfce4-settings
  - xorg.xmodmap
# a list of nixos modules affected by the problem
module:
acarrico commented 3 years ago

I don't know about an issue with xmodmap, but I thought I'd point you to a recent xfce problem just in case:

When you did nixos-rebuild switch did you also upgrade xfce? If so, are you running into the xfce4-power-manager issue, which I reported upstream? If so, see the linked NixOS xfce4-notifyd issue.

fogti commented 3 years ago

I don't think I ran into this problem, but I also wasn't able to get xfce4-power-manager to work (but I also hadn't tried that hard).

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info