I finally had a chance to to some more testing on this issue.
It was a strange issue because I was getting different results from my 2 devices. However I finally figured it out. I did see João's response to your post on the other thread. What he said was spot on with the particular issue you are having. The 'set wallpaper' setting just takes far too long to be able to set it during shut down. You can however get tasker to carry the restore set point through a reboot for simple settings that do not require a lot of time to complete. There is still a strange bug in the shutdown process that for some reason makes this work. First of all you need a profile that has a Event 'Device Shutdown' context and you need a second profile that has a state variable value context.
These profiles will force tasker to restore the settings of any state profile that has that option selected prior to shutdown.
Here is my test project.
To run test..
1- Set your display brightness to mid range
2- Enable the 'Set Display Brightness' and tap the check mark to save data.
3- The task will set your display to the lowest setting and your restore point will be the mid range.
4- Set the display brightness to full.
5- Re-boot device
6- Give the device time to activate the profile. It will set the brightness to the lowest setting.
7. Open tasker and disable the 'Set Display Brightness' profile.
8. The brightness should be restored to mid range.
Profile: Set Display Brightness (1035)
Time: From 8:01AM Till 7:59AM
Enter: Set Display Bright (1042)
A1: Display Brightness [ Level:1 Disable Safeguard:Off Ignore Current Level:Off Immediate Effect:Off ]
Profile: Value Not Set (1040)
Restore: no
State: Variable Value [ %Never_set !Set ]
Enter: Var Not Set Enter (1051)
A1: Notify [ Title:Var Not Set Enter Ran Text:%TIME Icon:null Number:0 Permanent:Off Priority:3 Repeat Alert:Off LED Colour:Red LED Rate:0 Sound File: Vibration Pattern: Category: ]
A2: [X] Beep [ Frequency:5368 Duration:1000 Amplitude:50 Stream:3 ]
A3: Stop [ With Error:Off Task: ]
Exit: Var Not Set Exit (1039)
A1: Notify [ Title:Var Not Set Exit Ran Text:%TIME Icon:null Number:0 Permanent:Off Priority:3 Repeat Alert:Off LED Colour:Red LED Rate:0 Sound File: Vibration Pattern: Category: ]
Profile: reboot task (929)
Restore: no
Event: Device Shutdown
Enter: reboot task on (930)
A1: Notify [ Title:Reboot Task Ran Text:%TIME Icon:null Number:0 Permanent:Off Priority:3 Repeat Alert:Off LED Colour:Red LED Rate:0 Sound File: Vibration Pattern: Category: ]