DisplaySettings, again. Does this exist in QML 5.15.[5,6,7,8,...]? Setting screen brightness proving problematic.
-
We are developing a medical device using boot2qt for a system with a Toradex iMX8 processor.
I am not involved directly with any of the Yocto work, base system configuration.
We are developing on Windows and cross-compiling for the target.
DisplaySettings does not exist for Windows, so any code has to be wrapped to avoid conflicts. (Or at least we have found nothing to indicate that it does.) Somehow, the required library was on the target sent to me. I built a custom build configuration that permitted DisplaySettings brightness to work on Linux (the target). That is, until the individual tasked with the boot2qt build did a clean build and was unable to construct the required library, resulting in a failed build that seems to be necessitating the removal of the use of the Qt/QML DisplaySettings class.
Our target does not have xrandr installed. I could write to the brightness text file, but that does seem like using a stone knife in the age of rockets, even if it is what will result by any other method. It also sounds like an approach that may not be maintainable long term. (Though, really, tweaking brightness from anything outside the GUI is something I have not done...least not since my last go-round with Xorg, minus this whole DisplaySettings attempt.)
Any suggestions as to what is going on here? I can find the docs for DisplaySettings, but my co-workers are telling me that it has been removed. And, yes, if we were using 6 it would appear that it may have gone away. Haven't seen any 6 docs pop up supporting it.
What is the key to making this work? Has it gone away in 6? (To be clear, we are NOT using 6 and WILL NOT be switching to it at this point in the project.)
Any help would be greatly appreciated. Thanks.
-
Taken directly from the 5.15.8 docs for DisplaySettings:
==========================================
Detailed Description
There is no need to create an instance of this object. To use it, simply import the QtDeviceUtilities.DisplaySettings module.
==========================================
But where is it? Why does it not exist for Windows? We have a commercial license. Where is this documented functionality? What is required to insure that the install of Qt that we are using includes the required library/module? In an operating room, setting the brightness is a very valuable capability.
And, yes, I know what a singleton is, having created numerous singletons for this project.