Bug 1426858
| Summary: | tlp-stat syntax error lines 1217 and 1221 unary operator expected | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eric Lavarde <elavarde> |
| Component: | tlp | Assignee: | Jeremy Newton <alexjnewt> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | alexjnewt, oliver |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tlp-0.9-4.fc24 tlp-0.9-4.fc25 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-03-11 11:50:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Eric Lavarde
2017-02-25 20:34:07 UTC
I would say this is due to both /sys/class/power_supply/BAT1/energy_full and /sys/class/power_supply/BAT1/charge_full being missing on your system. Can you confirm this? Actually, the files were there but they were not related to any device (if I remove the battery, the message becomes "No such file or directory"). It was probably due to the battery being completely empty: after a load the files and their devices were there again. Your analysis is kind of correct, but the script should be improved to catch cleanly such use case. Understood, I've contacted upstream and I will be back-porting a fix. Thanks for your feedback! tlp-0.9-4.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3467d39a3e tlp-0.9-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-63643860fe tlp-0.9-4.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-3467d39a3e tlp-0.9-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-63643860fe tlp-0.9-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. tlp-0.9-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |