I thought this was a nice idea/work around and wanted to make an addition. First I believe this is an issue with displayport only not hdmi. I have 2 monitors using dp connections. This is the way I set this up to be more automated. I did not read ALL the comments so if someone else already recommended this, apologies.
- set windows to autolock after 10 minutes using secpol
- create a scheduled task that triggers on computer unlock to run your script
This is the workflow
- Idle 10 min, screen locks
- screen locks 1 min and display goes to sleep by default
- Come back, login, script runs
I have noticed that the error that disables the autohide does not always occur, but automating this will ensure that if it does, the system will correct itself. Still may have to close the error dialog.
Also I only just set this up and I haven't received the error yet, but assume this should work until the bug is resolved.