| Summary: | In wayland, tablet mode enables (keyboard is disabled) but auto-rotate does not enable (but the option to auto-rotate in tablet mode is on) | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Magnus Anderson <todamath> |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Magnus Anderson
2023-02-07 19:16:34 UTC
https://github.com/alesya-h/linux_detect_tablet_mode gives instructions to run ``` stdbuf -oL libinput debug-events ``` to detect the correct events. It seems that no events are emitted when I flip the screen and the keyboard turns off. So it actually makes sense that it is not enabling. The keyboard disabling must be hardware-enforced? It does work on Windows though; and `iio-sensor-proxy` is installed. It's possible that driver support is not here or something? A substitute I produced, as I was annoyed by this a long time ago and found nothing, hopefully this can be useful for someone else:
```
sh -c 'rm "/tmp/fake-tablet-mode-rotated" 2>/dev/null && { kscreen-doctor output.1.rotation.none ; } || { kscreen-doctor output.1.rotation.left ; touch /tmp/fake-tablet-mode-rotated ; }'
```
I put this command into a widget in the title bar. The main thing I learned is `kscreen-doctor` existing.
Yeah, this is going to end up being an issue in Libinput, iio-sensor-proxy, or even the kernel. I'd recommend starting with Libinput. Good luck! |