Skip to content

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

@voronind-com

Description

@voronind-com

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions