-
Notifications
You must be signed in to change notification settings - Fork 41
QuickSettings: Increase minimum brightness to 10 as in settings. #183
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
base: master
Are you sure you want to change the base?
Conversation
src/qml/quicksettings/QuickSettings.qml (rootitem.brightnessToggle.onUnchecked): Set displaySettings.brightness to 10 instead of 0, matching the minimum value in the asteroid-settings app. Setting this to 0 leads to an unusable completely black screen on some hardware, e.g., LG G Watch R (lenok). Fixes AsteroidOS#182. Signed-off-by: Kevin Kofler <[email protected]>
|
Thanks a lot for spotting this and providing a fix! The brightness toggle will become rather sophisticated and exhibit a longpress function that increases and decreases the volume in 10% steps while keeping the toggle pressed. And its limited to a 10% to 100% range to wotk around the Ambient light sensor issue. The 10% minimum is also synced with the new cinemaMode toggle. |
|
I do not think the solution you merged is satisfying, unfortunately. In the code you committed, a quick press of the brightness toggle still sets the brightness to 0:
leading to a completely dark screen where it is not obvious how to recover from it. So I think the change I propose here is still needed in the new code (and I can rebase it to it). By the way, your |
|
It sounds to me like the solution to your problem is rather to change the mce config for your specific watch. Iirc, mce has some mapping between the 0-100 brightness setting and the actual number that gets written to the panel's sysfs entries and you could just remap what 0 means for your watch. On other watches, 0 doesn't turn it black. |
|
@kkofler Thanks for pointing out my error! Great catch. As per commit message, my intention was to set all occurrences of minimum brightness to 10. And i missed the main one, nice. My PR is not ready to merge yet since it needs some more reviews and eventual bugfix commits. @FlorentRevest we are already working around the 0% brightness issue in the displayPage, but never touched the brightnessToggle for completeness. Afair, some watches have crashing MCE or the light sensor reporting wrong values. Anyway, afair its an issue we decided to work around proactively since the difference between 0 and 10 is barely noticable but the eventual issue of a fully black screen is a major problem. |
|
See PR moWerk#1. |
Have to agree with @FlorentRevest on this one. The solution to this issue is to provide a correct mce configuration for the watch that has this issue. Imo we should try to avoid hacks to Qt code that are really hardware related. Given that these issues have been here for some time now I propose we could do the following:
In my opinion the best solution is the combination between the first two: Provide a new mce default and anyone can provide an ideal configuration for their watch. Another idea would be to apply the Qt/QML solution for now. And solve it differently in the future. But the issue with this approach is that it probably will never be fixed. |
src/qml/quicksettings/QuickSettings.qml
(rootitem.brightnessToggle.onUnchecked): Set displaySettings.brightness to 10 instead of 0, matching the minimum value in the asteroid-settings app. Setting this to 0 leads to an unusable completely black screen on some hardware, e.g., LG G Watch R (lenok).
Fixes #182.