Phosh: rotating screen stops working after calling wlr-randr --transform several times
Device: oneplus-fajita
Version: v24.12
(installed via downloaded image)
Environment: Phosh
I have created some custom keyboard shortcuts in Phosh's settings:
Ctrl + Alt + CursorUp : wlr-randr --output DSI-1 --transform normal
Ctrl + Alt + CursorRight : wlr-randr --output DSI-1 --transform 90
Ctrl + Alt + CursorDown : wlr-randr --output DSI-1 --transform 180
Ctrl + Alt + CursorLeft : wlr-randr --output DSI-1 --transform 270
At first, changing screen orientation by executing any of the key combinations via squeekboard
works fine, but after less than 10 rotations (usually between 2 and 5), rotating the screen stops actually working.
I say "actually", because for a split-second the screen rotates in the desired direction, but it returns to the previous orientation immediately. So from a practical POV rotating the screen doesn't "actually" work anymore.
After the screen rotation has stopped working, it doesn't matter, whether I try to rotate the screen again by any of these methods:
- typing the key combination again
- running
wlr-randr --output DSI-1 --transform <whatever>
- manually switching via the top menu widget
- setting the top menu widget to automatically rotate the screen and let gravity do its thing
None of these methods work.
This is what I see in tinydm.log
after rotating the screen immediately after a fresh boot:
Here I successfully switch from the default normal
to 180
by typing Ctrl + Alt + CursorDown
in Squeekboard:
(localsearch-3:3767): Tracker-CRITICAL **: 20:53:23.341: Could not get landlock supported ABI: Function not implemented
(localsearch-3:3767): Tracker-CRITICAL **: 20:53:23.341: Refusing to extract file data since Landlock could not be enabled. Update your kernel to fix this warning.
Then I switch from 180
to 270
(note: this switch still works):
(phosh:3061): phosh-monitor-CRITICAL **: 20:54:08.812: phosh_monitor_get_fractional_scale: assertion 'phosh_monitor_is_configured (self)' failed
(phosh:3061): phosh-monitor-CRITICAL **: 20:54:08.812: phosh_monitor_get_fractional_scale: assertion 'phosh_monitor_is_configured (self)' failed
Debug: Tried file "/home/user/.local/share/squeekboard/keyboards/terminal/us_wide.yaml", but it's missing: No such file or directory (os error 2)
Info: Loaded layout Resource: terminal/us_wide
Surprise: Panel received new configuration without asking
(phoc:2986): phoc-wlroots-CRITICAL **: 20:54:32.627: [libinput] event5 - Synaptics S3706B: client bug: event processing lagging behind by 38ms, your system is too slow
Here I try to switch from 270
to 90
(this doesn't "actually" work anymore - the screen switches to 90
for a split-second, then returns to 270
on its own):
(phosh:3061): phosh-monitor-CRITICAL **: 20:54:36.138: phosh_monitor_get_fractional_scale: assertion 'phosh_monitor_is_configured (self)' failed
(phosh:3061): phosh-monitor-CRITICAL **: 20:54:36.139: phosh_monitor_get_fractional_scale: assertion 'phosh_monitor_is_configured (self)' failed
Debug: Tried file "/home/user/.local/share/squeekboard/keyboards/terminal/us.yaml", but it's missing: No such file or directory (os error 2)
Info: Loaded layout Resource: terminal/us
configuration cancelled, please try again
Debug: Tried file "/home/user/.local/share/squeekboard/keyboards/terminal/us_wide.yaml", but it's missing: No such file or directory (os error 2)
Info: Loaded layout Resource: terminal/us_wide
Surprise: Panel received new configuration without asking
Surprise: Panel received new configuration without asking
(phosh:3061): phosh-layout-manager-WARNING **: 20:54:36.256: No clock placement found to fully avoid notch
(phosh:3061): phosh-monitor-CRITICAL **: 20:54:36.276: phosh_monitor_get_fractional_scale: assertion 'phosh_monitor_is_configured (self)' failed
(phosh:3061): phosh-monitor-CRITICAL **: 20:54:36.277: phosh_monitor_get_fractional_scale: assertion 'phosh_monitor_is_configured (self)' failed
Surprise: Panel received new configuration without asking
Here I try to use the top menu widget in manual mode to switch from Landscape
to Portrait
(it stays at Landscape
):
(phoc:2986): phoc-wlroots-CRITICAL **: 20:54:54.509: [libinput] event5 - Synaptics S3706B: client bug: event processing lagging behind by 21ms, your system is too slow
The direction in which the screen gets reoriented doesn't seem to matter, nor whether a switch from Landscape to Portrait (or vice versa) is involved or not.