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

<bat> missing or incorrect #97

Closed
kinkod opened this issue May 5, 2019 · 4 comments
Closed

<bat> missing or incorrect #97

kinkod opened this issue May 5, 2019 · 4 comments

Comments

@kinkod
Copy link

kinkod commented May 5, 2019

when i run sudo service tpacpi start, it fails. The error message is " missing or incorrect". I have tried setting battery to 0 1 and 2 in config file. Same error with all numbers. Also removed doublequotes so the numbers are integers, same problem.

System is Lenovo ThinkPad Edge E530 which is listed as a supported system.
Running Linux Mint 19.1

/etc/conf.d/tpacpi/tpacpi.conf.d

# battery is 1 for main, 2 for secondary, or 0 for either/both
BATTERY="0"

# Start charging threshold (0 for default, 1-99 for percent)
START_THRESHOLD="40"

# Stop charging threshold (0 for default, 1-99 for percent)
STOP_THRESHOLD="80"

journalctl -xe

-- Unit tpacpi.service has begun starting up.
May 05 07:20:15 Carbon tpacpi-bat[18785]: <bat> missing or incorrect
May 05 07:20:15 Carbon systemd[1]: tpacpi.service: Main process exited, code=exited, status=255/n/a
May 05 07:20:15 Carbon systemd[1]: tpacpi.service: Failed with result 'exit-code'.
May 05 07:20:15 Carbon systemd[1]: Failed to start sets battery thresholds.
-- Subject: Unit tpacpi.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
@teleshoes
Copy link
Owner

sorry, the service files are provided only for convenience and is not supported (by me) at all.
if you run tpacpi-bat directly, does it work?

e.g.:

wolke:~$ sudo tpacpi-bat -s ST 1 0
wolke:~$ sudo tpacpi-bat -g ST 1
0 (default)
wolke:~$ sudo tpacpi-bat -s ST 1 50
wolke:~$ sudo tpacpi-bat -g ST 1
50 (relative percent)
wolke:~$ sudo tpacpi-bat -s ST 1 0
wolke:~$ sudo tpacpi-bat -g ST 1
0 (default)

@kinkod
Copy link
Author

kinkod commented May 7, 2019 via email

@kinkod
Copy link
Author

kinkod commented May 7, 2019 via email

@teleshoes
Copy link
Owner

(sorry! very likely #37. which in turn is likely a firmware bug)

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

No branches or pull requests

2 participants