NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.61k stars 13.77k forks source link

Plasma via xrdp: keyboard layout issue #319356

Open lostmsu opened 3 months ago

lostmsu commented 3 months ago

Describe the bug

Arrow keys (and some other keys) do not work in Plasma inside XRDP session. Specifically, in text fields entering "hello" and pressing Left Arrow does not move cursor to the left before 'o'. Down Arrow key seems to work as Enter.

Arrow keys work in XRDP, on the login screen Left Arrow does the right thing.

Steps To Reproduce

  # Enable the X11 windowing system.
  # services.xserver.enable = true; - tried to uncomment that as well
  services.displayManager.sddm.enable = true;
  services.displayManager.sddm.wayland.enable = true;
  services.desktopManager.plasma6.enable = true;

  services.xserver.xkb = { # removing and adding this whole section does not fix it
    layout = "us";
    variant = "";
    options = "grp:win_space_toggle";
  };

  services.xrdp.enable = true;
  services.xrdp.defaultWindowManager = "startplasma-wayland";
  services.xrdp.openFirewall = true;

The RDP into the system (I am using Windows client).

Expected behavior

Left Arrow key should move cursor to the left

Screenshots

Works here image

Does not work here image

Additional context

NixOS is installed in Hyper-V with GPU partitioning enabled, but AFAIK the driver for vGPU has not been set up, Plasma reports llvmpipe.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.05 (Uakari), 24.05.1358.47b604b07d1e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

lostmsu commented 3 months ago

xev from nix-shell -p xorg.xev reports Arrow Down as keycode 104, KP_Enter

setxkbmap -query:

WARNING: Running setxkbmap against an Xwayland server
rules: evdev
model: pc105
layout: us