I'm using bluetooth mouse A4Tech BT-630 in Ubuntu 20.04. Each time I go afk the mouse goes to sleep and when I click any mouse button to wake it up the natural scrolling setting I've set previously is not restored.
Interestingly that the switch is still "on" in the System Settings app but the scrolling is reverse to natural in all windows. In order to fix this I have to switch natural scrolling setting to "off" and then back to "on" in the System Settings app. That only helps until the next time mouse goes to sleep.
The solution described here didn't help in my case. I hope someone have other ideas which may help me to overcome the issue.
In a terminal:
Using the arrow key, go down to one line after the one reading Identifier "libinput pointer catchall".
Press i for Insert. Then type or paste:
Then press ESC to exit edit mode, : for the menu, and then w to save the file and then q to quit.
To restart X without rebooding:
For details see: https://askubuntu.com/a/1283546/685777