Thanks for your hints. I implemented remapping via udev, this will works whitout an xserver. You can find my notes and rules here: https://gist.github.com/eni23/3cedca6666602271f3cf2e01f1e06e7c