TLP icon indicating copy to clipboard operation
TLP copied to clipboard

Consider doing away with defaults.conf in /usr/share

Open gdevenyi opened this issue 10 months ago • 2 comments

Is your feature request related to a problem? Please describe.

The current default installation of tlp incldues a defaults.conf file, which sets a number of settings in a place where a user does not expect. If I want to install TLP and have it "not do anything" I expect to be able to provide a blank tlp.conf (and no /etc/tlp.d/* files) and have tlp do nothing. Instead I inherit a "hidden" config file.

Describe the solution you'd like

I would like to propose that defaults.conf be merged with tlp.conf and placed in /etc/tlp.d/00-defaults.conf so that users can see the defaults, and remove them if they wish to. Prefixing the filename will ensure additional settings made in other files are properly used.

gdevenyi avatar Jan 29 '25 18:01 gdevenyi

Your actual requirement is a convenient way to deactivate (almost) all defaults, isn't it? That's open to discussion.

I cannot and will not remove or move the defaults.conf. That would suddenly deconfigure all existing installations with the next version upgrade. I'm not going to discuss that.

so that users can see the defaults,

All defaults are documented inside tlp.conf as well as on the website.

linrunner avatar Jan 30 '25 17:01 linrunner

Your actual requirement is a convenient way to deactivate (almost) all defaults, isn't it? That's open to discussion.

Yes. The existence of defaults.conf outside of standard configuration locations makes this "hard" and opaque.

Very happy to consider alternative solutions.

gdevenyi avatar Jan 30 '25 17:01 gdevenyi

I cannot and will not remove or move the defaults.conf. That would suddenly deconfigure all existing installations with the next version upgrade. I'm not going to discuss that.

You can stop creating defaults.conf in that silly location for future versions, and still read the file on machines where it exists already.

This (reasonable) change doesn't have to be breaking.

spikespaz avatar Apr 25 '25 20:04 spikespaz

I want to install TLP and have it "not do anything". I expect to be able to provide a blank tlp.conf (and no /etc/tlp.d/* files) and have tlp do nothing.

@gdevenyi Done. Please test with:

TLP_DISABLE_DEFAULTS=1

For some packages see the download page.

linrunner avatar Jul 17 '25 09:07 linrunner

Which commit closed this issue, so that I may review and understand what exactly changed?

spikespaz avatar Oct 31 '25 22:10 spikespaz

TLP 1.9.0 Beta is out. Please help with testing! https://github.com/linrunner/TLP/issues/832

linrunner avatar Nov 05 '25 18:11 linrunner

The beta test is complete, and TLP 1.9.0 is now released. Have fun! 


linrunner avatar Dec 01 '25 15:12 linrunner