Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto rotating screen does stretch background image #12150

Open
weewoo-meow opened this issue Apr 7, 2024 · 1 comment
Open

Auto rotating screen does stretch background image #12150

weewoo-meow opened this issue Apr 7, 2024 · 1 comment
Labels

Comments

@weewoo-meow
Copy link

Distribution

Mint 21.3

Package version

6.0.4

Graphics hardware in use

Intel HD Graphics 620

Frequency

Always

Bug description

When I rotate the screen fast and multiple times, especially flipping my Yoga X1 from normal landscape to upside-down and in the middle resizing to potrait mode because I was too slow, the background image zooms in. This can be performed multiple times to even zoom it more.

Steps to reproduce

  • Have a laptop with supports automatic screen rotation
  • Flip it fast to potrait mode
  • Flip it back to landscape mode
  • Repeat this multiple times

Expected behavior

No zoomed in background image

Additional information

Screenshot from 2024-04-07 08-02-02

@weewoo-meow weewoo-meow added the BUG label Apr 7, 2024
@weewoo-meow
Copy link
Author

I found a fix for myself, the solution is to prevent any rotation to portrait mode. As Cinnamon does not support this, I scripted my own desktop flip script and deactivated that Cinnamon flips the screen for me (first checkbox at window in screenshot must be true).

#!/bin/bash
monitor-sensor --accel | while IFS= read -r line; do
    if [[ $line == *"Accelerometer orientation changed: normal"* ]]; then
        xrandr -o normal
    fi
    if [[ $line == *"Accelerometer orientation changed: bottom-up"* ]]; then
        xrandr -o inverted
    fi
done

Run this in background and it does the job plus it is way more convenient. This script was written by me and I publish it under the WTFPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant