throttled icon indicating copy to clipboard operation
throttled copied to clipboard

Chenge /etc/lenovo_fix.conf to /etc/throttled.conf

Open ghost opened this issue 4 years ago • 7 comments

Hi,

When I git pull your repo for updates, I always make those changes:

  • rename lenovo_fix.py to throttled.py
  • change in Line 899 parser.add_argument('--config', default='/etc/lenovo_fix.conf', help='override default config file path') to parser.add_argument('--config', default='/etc/throttled.conf', help='override default config file path')

It will be great if you make thoses changes in your repo:

  • lenovo_fix.py to throttled.py
  • /etc/lenovo_fix.conf to /etc/throttled.conf
  • change the default config file in line 899 of throttled.py

If that is good for you, then I'll send a request to Debian Teams to add "throttled tool" it in their Stable/Unstable repo

ghost avatar Oct 27 '21 12:10 ghost

I agree with you that throttled.conf would be a better filename. I'm just afraid about backward compatibility. Do you think it is enough to add a few warnings in the readme or we should upgrade the install script?

Adding throttled to the Debian repo would be great!

erpalma avatar Oct 30 '21 08:10 erpalma

I think you should do both, warn new users about the change, and update the INSTALL script.

I do it manually on each pull. I think "throttled" sounds better than "lenovo_fix"

Yeah it is, once you commit your changes, I'll send an add request to Debian Maintainers. Your tool is awesome and it should be added into Debian :wink:

ghost avatar Oct 30 '21 08:10 ghost

Awesome!!!! You did it :heart:

Here is the package request I created: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998132

If you have any comment to add in the request, just send an email to [email protected]

ghost avatar Oct 30 '21 20:10 ghost

I updated to the latest git and ran sudo ./install.sh:

Updating config filename
mv: cannot stat 'etc/lenovo_fix.conf': No such file or directory

I see that /etc/lenovo_fix.conf was not renamed to /etc/throttled.conf.

nerijus avatar Nov 04 '21 11:11 nerijus

Fixed in latest commit, thanks!

erpalma avatar Nov 05 '21 09:11 erpalma

I did a git pull, sudo ./install.sh:

Copying config file
Config file already exists, skipping
Copying systemd service file

Newer throttled.py was not copied to /opt/throttled. Had to copy it manually and start service.

nerijus avatar Nov 05 '21 11:11 nerijus

My fault, it should be fixed now. I missed set -e

erpalma avatar Nov 06 '21 10:11 erpalma