For me , the option "-keybd ephyr,,xkbmodel=evdev" was not enough. Try this :
1) see what are full options using command "setxkbmap -query" $ setxkbmap -query rules: evdev model: evdev layout: us 2) using this option for Xephyr: -keybd ephyr,,,xkbmodel=evdev,xkblayout=us,xkbrules=evdev and all is working now. NOTE : i am not using ssh connection, but starting a nested KDE session as another local user. Full script: -------- #!/bin/bash sudo -u another_user date || exit 0 killall Xephyr Xephyr -ac -screen 1420x820 -keybd ephyr,,,xkbmodel=evdev,xkblayout=us,xkbrules=evdev :3 & 2 > /dev/null sleep 1 export DISPLAY=:3 sudo -u another_user -H bash -c "/usr/bin/dbus-launch /usr/bin/startkde" ------- BTW: the ctrl+shift to greb keys to Xephyr window does not work for me, but ctrl+alt+shift does -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/585564 Title: Xephyr keyboard layout broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/585564/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs