You are not logged in.

#1 2025-11-22 13:15:09

Samuel Campbell
Member
Registered: 2025-01-26
Posts: 18

Rotation On sddm

I have a steam deck and it has a portrait panel and My bootloader and sddm are in portrait mode i tried to make a script to rotate it my bash was


xrandr --output eDP-1 --rotate right
Xsetup - run as root before the login dialog appears If somone could tell me where I went wrong that would be very helpful as I would like to make mmy own diy handheld mode and I cant do that with it rotated

Offline

#2 2025-11-22 14:39:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: Rotation On sddm

You can rotate the framebuffer, see https://www.kernel.org/doc/Documentation/fb/modedb.rst

i tried to make a script to rotate it my bash was

You can run xrandr and other commands in /usr/share/sddm/scripts/Xsetup - unless you've configured sddm to run on https://wiki.archlinux.org/title/SDDM#Wayland


The bootloader would be ahead of all of that and rotating that will be tricky, it might work w/ grub, for other bootloaders I'm not so optimistic.

Offline

#3 2025-11-22 19:06:06

Samuel Campbell
Member
Registered: 2025-01-26
Posts: 18

Re: Rotation On sddm

Ok I will try that thanks yeah I assumed the bootloader would be hard to change smile

Offline

#4 2025-11-22 19:30:59

Samuel Campbell
Member
Registered: 2025-01-26
Posts: 18

Re: Rotation On sddm

Okay I tried with and without wayland and both times it did not work wayland also would not let me sign in Idk what to do i might try to use gdm instead of sddm Idk if you have recommendations let me know possibly light dm ?

Offline

#5 2025-11-22 19:40:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: Rotation On sddm

For SDDM on X11, post the /usr/share/sddm/scripts/Xsetup and also the output of "xrandr -q"
nb. that if you're starting a wayland session from SDDM, the xrandr changes won't remain, you'll have to rotate the output in the session for sure (and maybe make sure to rotate them explicitly no matter what in case the session restores some settings)

Also what did you video= kerrnel commandline look like and

for OUT in /sys/class/drm/card*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://archlinux.org/packages/extra/x86_64/v4l-utils/

Offline

#6 2025-11-22 20:20:39

Samuel Campbell
Member
Registered: 2025-01-26
Posts: 18

Re: Rotation On sddm

here is the output of xrandr -q

eDP-1 connected 1280x800+0+280 right (normal left inverted right x axis y axis) 100mm x 160mm
   800x1280      89.87*+
   800x600       89.85 
   640x480       89.73 
   320x240       87.89 
   800x500       89.80 
   768x480       89.62 
   720x480       89.45 
   640x400       89.60 
   320x200       87.21 
   720x400       89.87 
   640x350       89.05 
DP-1 connected primary 1920x1080+1280+0 (normal left inverted right x axis y axis) 345mm x 195mm
   1920x1080     59.96*+
   1440x1080     59.99 
   1400x1050     59.98 
   1280x1024     59.89 
   1280x960      59.94 
   1152x864      59.96 
   1024x768      59.92 
   800x600       59.86 
   640x480       59.38 
   320x240       59.29 
   1680x1050     59.95 
   1440x900      59.89 
   1280x800      59.81 
   1152x720      59.97 
   960x600       59.63 
   928x580       59.88 
   800x500       59.50 
   768x480       59.90 
   720x480       59.71 
   640x400       59.95 
   320x200       58.14 
   1600x900      59.95 
   1368x768      59.88 
   1280x720      59.86 
   1024x576      59.90 
   864x486       59.92 
   720x400       59.27 
   640x350       59.28 

I found no card directory I found a card1 though but running  do echo $OUT; edid-decode it out put

bash: syntax error near unexpected token `do'

Offline

#7 2025-11-22 20:27:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: Rotation On sddm

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.

And seth also wrote:

post the /usr/share/sddm/scripts/Xsetup

running  do echo $OUT; edid-decode it out put

You're supposed to run the entire command, it loops through the relevant paths and prints the edids.

Offline

Board footer

Powered by FluxBB