Summary: | Auto-rotate settings don't appear in KCM until leaving KCM and returning to it once | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Nate Graham <nate> |
Component: | kcm_kscreen | Assignee: | kscreen-bugs-null <kscreen-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, notmart, plasma-bugs, qydwhotmail, sitter |
Priority: | NOR | Keywords: | regression |
Version: | 5.93.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kscreen/-/commit/779c1f56d363f5f8afe7d71def5cd2d5699f8347 | Version Fixed In: | 6.1.4 |
Sentry Crash Report: | |||
Attachments: | Blind patch |
Description
Nate Graham
2024-06-19 23:30:17 UTC
Can reproduce. No wonder I don't see the option. what I'm seeing in busctl on the first run is that we `Get` the `AccelerometerOrientation` property. that returns `undefined`. after it returns, the service issues a `PropertiesChanged` on that property with `normal` (we probably fail to act on that correctly). on subsequent runs the property is already in the service-side cache and the `Get` returns `normal` instead of `undefined` i.e. the reason it works on subsequent runs is because the service already has the property cached and returns its value immediately instead of via a changed signal Created attachment 171126 [details]
Blind patch
Attached a blind patch, as I dont have the hardware to test this.
(In reply to David Redondo from comment #3) > Created attachment 171126 [details] > Blind patch > > Attached a blind patch, as I dont have the hardware to test this. Can you do a MR? I can test it A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreen/-/merge_requests/320 Git commit 7723a604662c83f10e3db90c4130b2fd3b461c82 by Marco Martin. Committed on 05/08/2024 at 14:48. Pushed by mart into branch 'master'. Emit OrientationSensor::availableChanged() when needed when we get the signal from QtSensors that the rotation sensor became available, forward the signal so that the QML part can show the autorotation checkbox M +1 -0 common/orientation_sensor.cpp https://invent.kde.org/plasma/kscreen/-/commit/7723a604662c83f10e3db90c4130b2fd3b461c82 Git commit 779c1f56d363f5f8afe7d71def5cd2d5699f8347 by Marco Martin. Committed on 05/08/2024 at 14:49. Pushed by mart into branch 'Plasma/6.1'. Emit OrientationSensor::availableChanged() when needed when we get the signal from QtSensors that the rotation sensor became available, forward the signal so that the QML part can show the autorotation checkbox (cherry picked from commit 7723a604662c83f10e3db90c4130b2fd3b461c82) bddbbfc6 Emit availableChanged() when needed Co-authored-by: Marco Martin <notmart@gmail.com> M +1 -0 common/orientation_sensor.cpp https://invent.kde.org/plasma/kscreen/-/commit/779c1f56d363f5f8afe7d71def5cd2d5699f8347 |