I’ve been working on a fix for a similar issue, but it might not apply because my issue is caused by my mouse’s wireless reciever. I wrote a little script to replace the bluetooth wakup config file, and it works when I manually run it. However, this resets every time I restart and I’m having difficulty getting it to run on startup, probably because it requires sudo.
http://www.styluslabs.com/
Maybe try Write?