(SOLVED) GPD Pocket 4 screen orientation
I am having trouble getting the screen orientation correct. It is fine in gamescope and in desktop mode when I change the orientation in kde system settings. But the startup screen and login screen are treating the screen like a portrait screen.
I have tried this command with every variation with no change. sudo rpm-ostree kargs --append-if-missing video=eDP-1:panel_orientation=left_side_up
In other distros I can use the following in GRUB. I have also tried using rpm-ostree kargs to addfbcon=rotate:1 with no change.
└─# nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet fbcon=rotate:1"
GRUB_CMDLINE_LINUX="fbcon=rotate:1"
GRUB_GFXMODE=1200x1920x32
└─# update-grub
Any support is appreciated.
Solution:Jump to solution
rpm-ostree kargs --append-if-missing="fbcon=rotate:1 video=eDP-1:panel_orientation=right_side_up"
21 Replies
Anybody have any ideas for me? Is the some info I could provide that would be useful?
dont think we can fix the startup screen and login screen because the panel is natively a portrait panel (im not the right person to ask this)
I can do it in non immutable linux easily. Just edit grub, but I can
I can't figure out how to do it. The methods that are documented don
don't seem to work. So I am assuming that I am missing something.
It is a similar problem to other handhelds with portrait screens. It works perfectly fine once logged in, but SSDM is sideways.
the steam deck panel is natively portrait. I don
I dont think this happens on the steam deck
I appreciate the response!
if changing grub is all you needed the same should work with just `rpm-ostree kargs --append-if-missing="whatever=yes"
Yes. but applying the same fixes that have worked for other portrait screens does not seem like it does anything.
Because it works for other portrait screens, and for this with other linux distro's that is why I am assuming I am missing something or not doing something correctly.
Here is the output from the command: rpm-ostree kargs
fbcon=rotate:1 video=DSI-1:panel_orientation=right_side_up rhgb quiet root=UUID=da554931-1249-4e15-87bf-6faf6acf6767 rootflags=subvol=root rw amdgpu.ppfeaturemask=0xfff7ffff bluetooth.disable_ertm=1 preempt=full kvm.ignore_msrs=1 kvm.report_ignored_msrs=0
and your output connector is named DSI-1
AAH. I had a feeling I was missing something that was staring back at me.
xrandr --listmonitors
Monitors: 1
0: +*eDP-1 2560/118x1600/189+0+0 eDP-1
so I changed the kernel arguments.
rpm-ostree kargs
fbcon=rotate:1 video=eDP-1:panel_orientation=right_side_up rhgb quiet root=UUID=da554931-1249-4e15-87bf-6faf6acf6767 rootflags=subvol=root rw amdgpu.ppfeaturemask=0xfff7ffff bluetooth.disable_ertm=1 preempt=full kvm.ignore_msrs=1 kvm.report_ignored_msrs=0 ostree=/ostree/boot.1/default/eee52f231ccf2356955194bed3a687a43abe1774f3ecf6ac933e4989fbda8d64/0
now the framebuffer orientation is now correct. KDE and gamescope orientation is still correct but the login screen is still sideways.
login screen you cant fix afaik, its why we do like steamos and skip it on the deck image and let steam handle the lock screen and such
plus most handhelds cant type in the password there anyway
I should be able to fix that by editing "/usr/share/sddm/scripts/Xsetup" in a normal distro, but it is not editable. I think because this is immutable and I don
I don't know how to make that change.
I get the reasoning behind the decision. Thank you for explaining that. The device I am using has a full keyboard. For whatever reason the steam pin input doesn't accept input from the physical keyboard.
make custom image to edit that at build time
however we do not ship x11 so idk if that will do anything
Is there a way to temporarily modify the file to see if that works before building a custom image? It doesn
it doesn't need to persist past a reboot. If I can change the file and log out it should tell me if that will work or not before making a custom image.
hmm
rpm-ostree usroverlay
will revert on reboot
so you would have to restart sddm to trigger the scriptalright. I got it. thanks again for the help. no need to edit that file or build a custom image. the final step was easier than either of us thought.
open kde system settings, go to SDDM section. then choose "apply plasma settings"
huh, never noticed that button
I found a post in a nixos forum where someone pointed it out as the "prefered way" to do this with wayland.
So the login screen is the only odd thing with my install. I would leave that out if adding info to the wiki for other people with the same hardware.
Solution
rpm-ostree kargs --append-if-missing="fbcon=rotate:1 video=eDP-1:panel_orientation=right_side_up"
that should be the only command someone would need to run to make the GPD pocket 4 fully functional. Everything I have tested works except the finger print reader
You can PR in the fix. Think it would be part of bazzite-hardware-setup
Or actually might even just be adding the dmi to the rotate checks
Sorry. I am not following. what do you mean by PR the fix?
You can contribute the fix to our GitHub
🙂
Thanks again for the help. I submitted a change to the wiki. Hopefully I did that correctly and it
is just pending someone's approval