First install Alsa mixer https://play.google.com/store/apps/d...alex.alsamixer if you haven't already done so.
Open tasker and click on the task tab. Click the plus sign at the bottom to create a new task - I called mine reset Alsa mixer. Then in the task edit screen click + to add an action and select script, then select "run shell" and enter
su
alsa_amixer set "Speaker" "60"
as the command and tick use root.
Then go to the profile tab and create a new profile by clicking +, then event, then display, then display on and then select the task you created earlier as the action.
If everything has gone to plan, the alsa mixer should now be reset to 95% (60) every time you turn the screen on.
Comment