Skip to content
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

Error: unknown command "chargeonce" #391

Closed
beuerle opened this issue Mar 14, 2019 · 4 comments
Closed

Error: unknown command "chargeonce" #391

beuerle opened this issue Mar 14, 2019 · 4 comments

Comments

@beuerle
Copy link

beuerle commented Mar 14, 2019

Describe the bug

After the most recent upgrade to TLP 1.2, the chargeonce (sub)command is missing on my system:

$ sudo tlp chargeonce
Error: unknown command "chargeonce".
Usage: tlp start|true|bat|false|ac|usb|bayoff|discharge|setcharge|fullcharge|recalibrate|diskid

The fullcharge command works as expected and loads the battery:

$ sudo tlp fullcharge
Setting temporary charge thresholds for BAT0:
  stop  = 100
  start =  96
Charging starts now, keep AC connected.

System information:

$ sudo dmidecode
[..]
System Information
	Manufacturer: LENOVO
	Product Name: 20A7005KMS
	Version: ThinkPad X1 Carbon 2nd
	Wake-up Type: Power Switch
	SKU Number: LENOVO_MT_20A7_BU_Think_FM_ThinkPad X1 Carbon 2nd
	Family: ThinkPad X1 Carbon 2nd
[..]
Base Board Information
	Manufacturer: LENOVO
	Product Name: 20A7005KMS
	Version: 0B98417 WIN
	Asset Tag: Not Available
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Not Available
	Chassis Handle: 0x0000
	Type: Motherboard
	Contained Object Handles: 0
[..]
$ uname -a
Linux snowcrash 5.0.1-arch1-1-ARCH #1 SMP PREEMPT Sun Mar 10 10:55:53 UTC 2019 x86_64 GNU/Linux
$ pacman -Ss tlp
community/tlp 1.2-1 [installed]
    Linux Advanced Power Management

Expected behavior
According to the man page, the command should still be present:

chargeonce [BAT0|BAT1] (ThinkPads only)
              Charge main (BAT0) or auxiliary (BAT1) battery to the stop charge
              threshold once (bypassing start threshold).  Configured thresholds
              are restored upon next system boot-up.
@linrunner linrunner added the bug label Mar 15, 2019
@linrunner linrunner self-assigned this Mar 15, 2019
@linrunner
Copy link
Owner

Confirmed. I'll look into that soon.

linrunner added a commit that referenced this issue Mar 15, 2019
@linrunner
Copy link
Owner

Thanks for your report. I fixed the issue.

Could you please test with the master branch? There are packages in the AUR:

@beuerle
Copy link
Author

beuerle commented Mar 18, 2019

Yes, working again!

Thanks for the quick fix!

@beuerle beuerle closed this as completed Mar 18, 2019
@linrunner
Copy link
Owner

Thanks for your feedback. Fix released with version 1.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants