Nice work! Using the following:
everything works the way I want it to.
After tablet: cellwriter --show-window; cairo-dock -o &
Before tablet: killall cairo-dock
After normal: cellwriter --hide-window;cairo-dock -o &
Before normal: killall cairo-dock
Still the same issue with stylus and eraser. I don't think it's important. They both share the same usb by-path unlike touch.
By the way the TX2z does not have an eraser. And the stylus and touch do share the same usb by-path.
I guess you didn't like the icons on post #249?
PS: Sorry to hear about the bezel buttons. But not too surprised. So to get them going, if possible, will take some work. And we need another coder, especially one hardware oriented. MisteR2 could you maybe help?