[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#531306: Auto-repeat broken



Package: xserver-xephyr


I'm using the script given below to start Xephyr from gdm, with the intention of creating a `multi-seat' environment.

Keyboard auto-repeat is broken.  Hold a key and it doesn't repeat.  If I login on my :0 display (without going through Xephyr), everything works fine.

This is my Xephyr command line:

# ps ax | grep Xephyr
1983 ? S 14:55 /usr/bin/Xephyr :1 -audit 0 -screen 1920x1200 -dpi 96 +kb r -auth /var/lib/gdm/:1.Xauth

The gdm settings:

[server-screen0]
name=screen0
command=/usr/local/bin/launch-xephyr -display :0.0 -xauthority /var/lib/gdm/:0.Xauth -audit 0 -screen 1920x1200 -dpi 96 +kb r
handled=true
flexible=false




$ cat /usr/local/bin/launch-xephyr
#!/bin/bash

trap "" usr1

XEPHYR=/usr/bin/Xephyr

args=()

while [ ! -z "$1" ]; do
if [[ "$1" == "-xauthority" ]]; then
 shift
 if [ ! -z "$1" ]; then
   export XAUTHORITY="$1"
 fi
elif [[ "$1" == "-display" ]]; then
 shift
 if [ ! -z "$1" ]; then
   export DISPLAY="$1"
 fi
else
 if ! expr match $1 'vt[0-9][0-9]*' >/dev/null; then
   args=("${args[@]}" "$1")
 fi
fi

shift
done

/usr/bin/xset s noblank
/usr/bin/xset s off
/usr/bin/xset -dpms

exec $XEPHYR "${args[@]}"






Reply to: