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

[BUG] What's going on here? Laptop showed 0 battery power and then shutoff #56

Closed
DeflateAwning opened this issue Jun 30, 2024 · 3 comments
Labels
bug Something isn't working needing further clarification Waiting for additional details or clarification wontfix This will not be worked on

Comments

@DeflateAwning
Copy link
Contributor

Describe the bug

The error message below happened. Right before the timestamps of the logs, the computer showed 0% battery and then shutdown due to critically-low battery.

DeflateAwning@host ~> sudo systemctl status fw-fanctrl.service
[sudo] password for DeflateAwning:                          
● fw-fanctrl.service - Framework Fan Controller
     Loaded: loaded (/lib/systemd/system/fw-fanctrl.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2024-06-30 14:27:12 PDT; 12min ago
   Main PID: 2166 (python3)
      Tasks: 2 (limit: 76620)
     Memory: 6.8M
        CPU: 21.528s
     CGroup: /system.slice/fw-fanctrl.service
             └─2166 /usr/bin/python3 /usr/bin/fw-fanctrl --run --config /etc/fw-fanctrl/config.json --no-log

Jun 30 14:29:04 host python3[4114]: Unable to establish host communication
Jun 30 14:29:04 host python3[4114]: Couldn't find EC
Jun 30 14:31:13 host python3[4799]: ioctl -1, errno 90 (Message too long), EC result 255 (<unknow>
Jun 30 14:32:54 host python3[7435]: ioctl -1, errno 90 (Message too long), EC result 255 (<unknow>
Jun 30 14:35:19 host python3[8437]: ioctl -1, errno 74 (Bad message), EC result 255 (<unknown>)
Jun 30 14:36:44 host python3[8940]: ioctl -1, errno 74 (Bad message), EC result 255 (<unknown>)
Jun 30 14:36:44 host python3[8940]: EC result 7 (INVALID_CHECKSUM)
Jun 30 14:37:06 host python3[9072]: ioctl -1, errno 74 (Bad message), EC result 255 (<unknown>)
Jun 30 14:37:43 host python3[9250]: ioctl -1, errno 90 (Message too long), EC result 255 (<unknow>
Jun 30 14:38:41 host python3[9598]: ioctl -1, errno 74 (Bad message), EC result 255 (<unknown>)

Environment (please complete the following information):

  • OS: Linux Mint
  • Version: Latest?
  • Configuration file: default
  • Installation method: installer script

Additional context
Crashes in a tool which controls system temperature are very bad.

In my opinion, this tool should be marked as Unstable in the README, based on this experience.

@DeflateAwning DeflateAwning added the bug Something isn't working label Jun 30, 2024
@leopoldhub
Copy link
Collaborator

Hi there, if I understand correctly, the programme got an error before your pc ran out of battery?
If so, could you provide the full logs?

Also, in the event of a crash or the service being stopped or paused, the original temperature controller takes over to avoid any hardware damage.

@TamtamHero
Copy link
Owner

TamtamHero commented Jul 1, 2024

I also have issues with false battery reporting. I have no idea where it comes from. I wrote about it a few days ago here: https://community.frame.work/t/responded-battery-percentage-gets-misreported-as-0-occasionally/38056/19

What makes you think ectool is the culprit ?
fw-fanctrl is indeed making a recurrent call to ectool battery. But I don't think that this call has any effect on the state of your OS (what's your distribution btw ?)

@leopoldhub leopoldhub added the needing further clarification Waiting for additional details or clarification label Aug 3, 2024
@leopoldhub
Copy link
Collaborator

Hi, as other members are encountering this problem without the use of ectool https://community.frame.work/t/responded-battery-percentage-gets-misreported-as-0-occasionally/38056/19 (post on Framework community forum by @TamtamHero ),
I assume that this is not specific to our project and will close the issue.

I hope it will be fixed soon.
Have a nice day.

@leopoldhub leopoldhub added the wontfix This will not be worked on label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needing further clarification Waiting for additional details or clarification wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants