Package Details: tpacpi-bat-git 106.f58e2ae-1

Git Clone URL: https://aur.archlinux.org/tpacpi-bat-git.git (read-only)
Package Base: tpacpi-bat-git
Description: A Perl script with ACPI calls for recent ThinkPads (such as T420 and W520) whose battery thresholds are not supported by tp_smapi
Upstream URL: https://github.com/teleshoes/tpacpi-bat
Licenses: GPLv3
Conflicts: tpacpi-bat
Provides: tpacpi-bat
Submitter: Lucky
Maintainer: frederik
Last Packager: frederik
Votes: 17
Popularity: 0.416559
First Submitted: 2013-04-27 15:59
Last Updated: 2016-04-21 16:39

Latest Comments

botika commented on 2013-11-15 00:49

Failed to start sets battery thresholds
for kernel 3.12.1x86_64

Anonymous comment on 2013-08-13 04:38

I needed to add "After=tlp.service" to [Unit] in tpacpi-bat.service. This way tpacpi always starts after tlp has loaded.

[Unit]
Description=sets battery thresholds
After=tlp.service

[Service]
Type=oneshot
ExecStart=/usr/bin/tpacpi-bat -s ST 0 40
ExecStart=/usr/bin/tpacpi-bat -s SP 0 80

[Install]
WantedBy=multi-user.target

Lucky commented on 2013-08-12 17:59

Mhm, i did not know much about systemd now, but for me it works without problems. I only need rebuild acpi_call, but this is not your error because 2nd start works without problems.

Have anyone a hint/fix?

Anonymous comment on 2013-08-11 18:33

tpacpi-bat fails to start on boot, but I'm able to execute it manually after boot.

[hit@arch ~]$ systemctl status tpacpi-bat.service
tpacpi-bat.service - sets battery thresholds
Loaded: loaded (/usr/lib/systemd/system/tpacpi-bat.service; enabled)
Active: failed (Result: exit-code) since P 2013-08-11 14:00:59 EEST; 5min ago
Process: 310 ExecStart=/usr/bin/tpacpi-bat -s ST 0 40 (code=exited, status=2)
[hit@arch ~]$ sudo systemctl start tpacpi-bat.service
[hit@arch ~]$ systemctl status tpacpi-bat.service
tpacpi-bat.service - sets battery thresholds
Loaded: loaded (/usr/lib/systemd/system/tpacpi-bat.service; enabled)
Active: inactive (dead) since P 2013-08-11 14:06:46 EEST; 4s ago
Process: 1330 ExecStart=/usr/bin/tpacpi-bat -s SP 0 80 (code=exited, status=0/SUCCESS)
Process: 1327 ExecStart=/usr/bin/tpacpi-bat -s ST 0 40 (code=exited, status=0/SUCCESS)

Lucky commented on 2013-07-14 19:46

@test0
Is this a proper solution?

install -Dm322 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${_pkgname%-*}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"

Yes i know Archlinux Perl Policies, but this is a program and no module. The other way is to patch the service file. I upload the /usr/bin version right now and will be change this maybe after feedback to patch service file version.

test0 commented on 2013-06-28 11:20

The service file this package installs is wrong. Replace it with this one: http://pastebin.com/b6Gq7K8K
The path for the file is /usr/lib/systemd/system/tpacpi-bat.service

This is only a temporary fix related to the Archlinux Perl Policies.