So i just recently purchased an HP 840 G2 and decided to make the switch to Elementary OS along with the purchase.
Running into an issue with the screen constantly rotating when the laptop is moved.
It also always rotates the screen if the computer times out and locks regardless if the laptop has been moved or not.
I looked into some possible fixes and kind of solved my problem.
$ gsettings set org.gnome.settings-daemon.plugins.orientation active false
didn't net me any results.
$ sudo systemctl stop iio-sensor-proxy.service
stops the screen rotation for the duration of the session.
If the laptop times out or is shutdown/restarted, the issue returns.
I did some more looking and i think i may have to run the latter as a startup script in order to have the issue fully resolved.
If so, any ideas on how to go about this? found 1 tutorial but i don't have the best knowledge when it comes to coding and scripting. Beginner at best. Or is there a simpler answer out there?