Closed linuxazo closed 1 year ago
Hi @linuxazo , I just added a long description which seems to be mandatory for some distros. Please try to build with latest master and report back if possible.
Dear @d4nj1 ,
Thanks to your prompt fix, I can confirm that your application builds just fine now and it creates a .deb package without errors. I had run tlpui with sudo, and all the functionality seems to be working. Immensely grateful for Your and team TLP efforts. I found tlp set of applications/scripts second to none when it comes to proper laptop power management under Linux these days.
When it comes to TLPUI, I can see that some improvements could be implemented. Namely PLATFORM_PROFILE support seems lacking: PLATFORM_PROFILE_ON_BAT in my laptops case is "quiet" and it is not selectable through TLPUI, rather I can only select "low-power" which is not present under available profiles in my machine.
Also I noticed that CPU_ENERGY_PERF_POLICY_ON_AC/BAT was already turned on by TLPUI even though, I did not use it in my tlp config file, simply because I have an AMD system, and those options are for Intel CPUs.
Just my five cents.
Wishing You a Happy New Year!
Also, on a further notice,
About storing settings, I am unsure if I can run tlp/tlpui as a regular non-root user and about the location of the config file. The default config file /etc/tlp.conf contains all available options commented out. My custom config file is under /etc/tlp.d/$HOSTNAME.conf and I only keep there the uncommented parameters that I actually use.
I see that TLPUI when run as sudo tlpui (the only way it works on my system, afaik), uses /etc/tlp.conf for storing its configuration.
Would it be possible to have it accept other config file location, like the one I am using? Together with the ability to parse the custom config file.
Just because it would be good to keep the default config file commented out for reference since some options are added/removed with new releases of TLP.
Thanks anyhow and regards!
When it comes to TLPUI, I can see that some improvements could be implemented. Namely PLATFORM_PROFILE support seems lacking: PLATFORM_PROFILE_ON_BAT in my laptops case is "quiet" and it is not selectable through TLPUI, rather I can only select "low-power" which is not present under available profiles in my machine.
I only support what is officially documented, see https://linrunner.de/tlp/settings/platform.html Maybe create a request at TLP for an extra quiet value.
Also I noticed that CPU_ENERGY_PERF_POLICY_ON_AC/BAT was already turned on by TLPUI even though, I did not use it in my tlp config file, simply because I have an AMD system, and those options are for Intel CPUs.
There might be some intrinsic defaults that TLP automatically applies even though they are not supported in the actual running environment. I can only reference to the official TLP documenation mentioned above.
Just my five cents.
Constructive feedback is always welcome! ;)
Wishing You a Happy New Year!
Thanks, I wish you to also have a good start.
About storing settings, I am unsure if I can run tlp/tlpui as a regular non-root user and about the location of the config file. The default config file /etc/tlp.conf contains all available options commented out. My custom config file is under /etc/tlp.d/$HOSTNAME.conf and I only keep there the uncommented parameters that I actually use.
I see that TLPUI when run as sudo tlpui (the only way it works on my system, afaik), uses /etc/tlp.conf for storing its configuration.
Would it be possible to have it accept other config file location, like the one I am using? Together with the ability to parse the custom config file.
Just because it would be good to keep the default config file commented out for reference since some options are added/removed with new releases of TLP.
You are right with your opinion,
due to historic reasons and after the update to TLP 1.3 the handling of config files has changed. Ideally nowadays all user configs changes should be applied in /etc/tlp.d/*.conf
and not in /etc/tlp.conf
anymore.
As TLPUI is/was my first bigger open-source project and refactoring everything probably will be painfull, I am currently thinking about a rewrite of the UI with not only the ability to add multiple configuration files, but also to be able to use maybe profiles for different work situations. Battery conservation is also a topic (#102) and furthermore beeing UI compatible with mobile devices (#111)
That beeing said my biggest issue is as always time. I did not win the lottery yet so I still have to work as an employee and also private life does not offer much free time atm.
I will close the issue for now. Feel free open another issue whenever you encounter anything not working as expected.
Kind regards
Dear Developer, thank You for your efforts.