gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock false
or simply use super key(windows key)+ o to toggle lock statemem_sleep_default=deep
to the kernel command line. However, now the screen will not be properly woken up on resume. To fix the screen wakeup issue, the following setting must be disabled in the BIOS settings:POST Behaviour -> Sign of Life -> Early Dell Logo Display[8]video
group.intel_iommu=off
to your kernel parameters. [9]