I just installed Debian 10 on my gpd pocket 2 and it is working great except I cannot get the screen to persistently rotate on login.
Currently, I am able to rotate the screen by selecting "GNOME on xorg" from the gear menu when I login, and then run
xrandr --screen 0 -o right however this is going to get old fast.
I have tried a couple xorg solutions but have not had success. I created the following script based on https://github.com/joshskidmore/gpd-pocket-2-arch-guide#install-xorg-packages and https://unix.stackexchange.com/questions/103460/how-to-change-gnome-default-screen-rotation:
Option "Rotate" "right"
And I have installed in the following locations:
- /etc/X11/xorg.conf (by editing the current "monitor" section)
- /etc/X11/xorg.conf.d/ (I had to make this directory, then made “30-display.conf” with the above settings)
- /usr/share/X11/xorg.conf.d (just added "30-display.conf" file)
And all result in a flickering on login. I see a black flash (similar to when I execute
xrandr after login), then a square filled with static-grey for about 1s twice in a row, then it loads the screen in the "normal" / sideways orientation.
Even when I put
xrandr --screen 0 -o right in ~/.profile, the same effect is observed. This does work when I put it into ~/.bashrc but it is after login and again, I would like to automate this configuration.
I have a feeling that Debian is trying to implement the configuration but something is conflicting. How should I proceed with this venture?
EDIT: Some new information
Determined my screen manager according to https://unix.stackexchange.com/a/20376/293647 and it is:
After reading the following link, I discovered this about GDM:
Changes will take effect on logout. This is necessary because GDM does not respect xorg.conf.
Which is probably why I am not accomplishing rotation with xorg. So, what's next?
gnome is still not oriented but this code from the above link orients grub!
sudo vim /etc/default/grub
sudo update-grub # a lot of guides are missing this step