Update 6/20/23: After my original post @DeltaWhy noticed that the touchscreen was still rotated in portait mode. Making it difficult to click on something like the virtual keyboard if you had the PT2 out of the keyboard case. To fix this you will also need to install xorg-xinput and add a line to the Xsetup file. I've updated my original post to include this fix. Huge thanks to @DeltaWhy. While at it, I also recommend checking out @frtodd 's post about getting the auto screen rotation working. I've been using it for awhile now and it works really well. Community ftw!
-------------
Hey there!
Just received my PineTab 2 in the mail today. So far it's a really cool piece of kit. However, I noticed on first boot that the KDE (sddm) login screen was rotated 90 degrees and in portrait mode. As one does I took it upon myself (with help from the internet) to figure it out. Below are the steps I went through to get it working. Be mindful that this is kind of a hacky way to accomplish this. Essentially we're running a script before the login screen is shown. Also note that the following commands are meant to be run in the terminal and are case sensitive.
Install xorg-xrandr and xorg-xinput. It's worth noting here that I had to login to the desktop using root (without a password) and give sudo access to that alarm account so that I could install and create these files.
Edit the Xsetup file in /usr/share/sddm/scripts/Xsetup. Add these couple of lines to your Xsetup file. Your file should look something like this after you have made the edits.
#!/bin/sh
#Xsetup - run as root before the login dialog appears
xrandr --output DSI-1 --mode 800x1280 --rate 60.00 --rotate right
xinput set-prop "pointer:Goodix Capacitive TouchScreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
Add this line to the Xsetup file and save it.
Once we've done that we need to create a new file for sddm to pull our configuration from. To do this create another file.
Add this line to sddm.conf and save the file. Being mindful that it is case sensitive.
That's it! Now reboot your PineTab 2 and the login screen should rotate 90 degrees and be in landscape orientation. Hope this helps someone else out.
p.s. This post was written on the PT2.
-------------
Hey there!
Just received my PineTab 2 in the mail today. So far it's a really cool piece of kit. However, I noticed on first boot that the KDE (sddm) login screen was rotated 90 degrees and in portrait mode. As one does I took it upon myself (with help from the internet) to figure it out. Below are the steps I went through to get it working. Be mindful that this is kind of a hacky way to accomplish this. Essentially we're running a script before the login screen is shown. Also note that the following commands are meant to be run in the terminal and are case sensitive.
Install xorg-xrandr and xorg-xinput. It's worth noting here that I had to login to the desktop using root (without a password) and give sudo access to that alarm account so that I could install and create these files.
Code:
sudo pacman -S xorg-xrandr xorg-xinput
Edit the Xsetup file in /usr/share/sddm/scripts/Xsetup. Add these couple of lines to your Xsetup file. Your file should look something like this after you have made the edits.
#!/bin/sh
#Xsetup - run as root before the login dialog appears
xrandr --output DSI-1 --mode 800x1280 --rate 60.00 --rotate right
xinput set-prop "pointer:Goodix Capacitive TouchScreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
Code:
sudo nano /usr/share/sddm/scripts/Xsetup
Add this line to the Xsetup file and save it.
Code:
xrandr --output DSI-1 --mode 800x1280 --rate 60.00 --rotate right
xinput set-prop "pointer:Goodix Capacitive TouchScreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
Once we've done that we need to create a new file for sddm to pull our configuration from. To do this create another file.
Code:
sudo nano /etc/sddm.conf.d/sddm.conf
Add this line to sddm.conf and save the file. Being mindful that it is case sensitive.
Code:
[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
That's it! Now reboot your PineTab 2 and the login screen should rotate 90 degrees and be in landscape orientation. Hope this helps someone else out.
p.s. This post was written on the PT2.