Ok, this is just informational -- I think I've made some headway but unfortunately I haven't figured out a solution yet.
I fixed a couple problems:
* xsetwacom was not being found when the sleep.d script was running
* root did not have access to the :0.0 display (as evidenced by "Failed to open display (:0.0) No protocol specified")
* Logging was broken / non-existant -- that's improved (set LOG)
Previously my testing process was also broken, so I was seeing false positive results. I assumed that rotating was not necessary before sleeping if the stylus was still not calibrated. It turns out that rotating then sleeping *is* necessary. It seems that the stylus is being recalibrated to the state it was at two cycles back... (that's just a guess though... more testing needed).
Ok, this is just informational -- I think I've made some headway but unfortunately I haven't figured out a solution yet.
I fixed a couple problems:
* xsetwacom was not being found when the sleep.d script was running
* root did not have access to the :0.0 display (as evidenced by "Failed to open display (:0.0) No protocol specified")
* Logging was broken / non-existant -- that's improved (set LOG)
Previously my testing process was also broken, so I was seeing false positive results. I assumed that rotating was not necessary before sleeping if the stylus was still not calibrated. It turns out that rotating then sleeping *is* necessary. It seems that the stylus is being recalibrated to the state it was at two cycles back... (that's just a guess though... more testing needed).