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

Kernel param panel_orientation is not applied to inputs (mouse). #8478

Open
voronind-com opened this issue Nov 25, 2024 · 0 comments
Open

Kernel param panel_orientation is not applied to inputs (mouse). #8478

voronind-com opened this issue Nov 25, 2024 · 0 comments
Labels
bug Not working as intended

Comments

@voronind-com
Copy link

voronind-com commented Nov 25, 2024

Please fill out the following:

  • Sway Version:
{
  "human_readable": "1.10",
  "variant": "sway",
  "major": 1,
  "minor": 10,
  "patch": 0,
  "loaded_config_file_name": "\/home\/voronind\/.config\/sway\/config"
}
  • Debug Log:
    https://gist.github.com/voronind-com/567033c1ef3f90b44d202ccd084889ee

  • Configuration File:
    https://gist.github.com/voronind-com/4700594d3eb80ea5071e2999dd40967b

  • Description:
    If you try to rotate one of the screens with video=HDMI-A-1:panel_orientation=upside_down kernel parameter or other transformation on KMS level, the screen video output is rotated correctly without transform on the Sway's side. However, the input (and cursor visually) is kept how it would be without the transform. So I get the correct video, but flipped inputs. map_to_output didn't help and would be a bad restriction anyway.

  • Video
    I've tried to record a video and observed a funny behavior. Right when I start screen recording, the input fixes itself and still works even after I stop the recording. But as soon as I leave the screen's workspace and re-enter, it's broken again. I record using wf-recorder and the full script can be found here.

  • Why
    Rotation on the KMS level helps to avoid transcoding screen recordings or the use of rotation metadata (that causes issues way too often). It also rotates the tty, which is nice.

@voronind-com voronind-com added the bug Not working as intended label Nov 25, 2024
@voronind-com voronind-com changed the title WIP: Kernel param panel_orientation breaks Sway inputs. Kernel param panel_orientation breaks Sway inputs. Nov 25, 2024
@voronind-com voronind-com changed the title Kernel param panel_orientation breaks Sway inputs. Kernel param panel_orientation is not applied to inputs (mouse). Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

1 participant