3

I am using xserver-xephyr in Debian Wheezy. My mouse inside the Xephyr window does not move smoothly. It looks as if the refresh rate was very low. When I move my mouse across the screen, it maybe refreshes 3 times. This looks more like the cursor was jumping, rather than moving smoothly.

Is it there some configuration I can change to make the mouse cursor move as smooth as normally ?

Michael Boies
  • 156
  • 1
  • 6
  • 22
  • Hi again, did you solve your [previous problem](http://unix.stackexchange.com/questions/186273/emulate-key-combination-with-xdotool)? – Arkadiusz Drabczyk Mar 07 '15 at 21:39
  • @Arkadiusz Drabczyk - no, but I got better at pressing the key combination. I have to hold `control_L` with my left hand and press `shift_L` with my right hand. Then the grab/ungrab works reliably. I have no idea why that is so. – Michael Boies Mar 08 '15 at 00:20
  • https://wiki.archlinux.org/index.php/Mouse_acceleration Try few commands from above link within a session. If it works, then we can fine tune the Xephyr configuration for the same reason – SHW Mar 11 '15 at 14:23
  • @SHW - that article describes how to change acceleration. But my problem seems to be different - mouse does not move smoothly. Besides, how can I edit `xorg.conf` only for `Xephyr` ? I don't want to change settings for normal `xorg`. – Michael Boies Mar 11 '15 at 19:36

1 Answers1

2

Try using the -host-cursor option.

Edit: per the Xephyr man page, this option reuses the host X session's cursor. Theoretically this is not supposed to produce a significant performance improvement. In practice, I've found that Xephyr's cursor is very slow on lower-spec machines, and this option handily fixes that issue every time.

It would be invoked by e.g.

Xephyr -host-cursor -screen 800x600 :1
DanL4096
  • 831
  • 6
  • 16
  • with `-host-cursor`, the cursor indeed moves perfectly smoothly. But a new problem is, the cursor shows as arrow all the time (i.e. does not change when I hover over a link, for instance). – Michael Boies Jun 01 '15 at 12:15
  • I'm guessing that can't be helped; probably a limitation of how X11 works. – DanL4096 Jun 01 '15 at 17:10