Hi!
Just as in original post, solution didn’t work.
Maybe it works for people who load Ubuntu with GUI (gnome), but not for me.
One possible reason is that I launch new xsession every time device is powered on by using xinit.
I also have tried to use .xsessionrc with no avail.
if [ -x “/usr/bin/xset” ]; then
xset s off
fi