I just tried something similar with disper 0.2.3 and Ubuntu 9.10 and it took me a couple of hours to figure out why it was defaulting to the XRandr backend even through it had a good DISPLAY and I was pointing it to my home directory. It turns out disper falls back to ~/.Xauthority when trying to get the proper file however for whatever reason in Ubuntu 9.10 the Xauthority is in /var/run/gdm/auth-for-username-sesstionstring/database. I manually point the env variable in my script so disper runs correctly but the built in detection in xauth.py can't handle this type of Xauthority, I'm not sure what the cleanest way is to auto detect it there as a backup.
I just tried something similar with disper 0.2.3 and Ubuntu 9.10 and it took me a couple of hours to figure out why it was defaulting to the XRandr backend even through it had a good DISPLAY and I was pointing it to my home directory. It turns out disper falls back to ~/.Xauthority when trying to get the proper file however for whatever reason in Ubuntu 9.10 the Xauthority is in /var/run/ gdm/auth- for-username- sesstionstring/ database. I manually point the env variable in my script so disper runs correctly but the built in detection in xauth.py can't handle this type of Xauthority, I'm not sure what the cleanest way is to auto detect it there as a backup.