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

ACPI problem #6

Open
Dreadeath opened this issue Jun 20, 2015 · 0 comments
Open

ACPI problem #6

Dreadeath opened this issue Jun 20, 2015 · 0 comments

Comments

@Dreadeath
Copy link

Hi, on my laptop I have issues with acpi, battery never get state FULL, it is only "charging" on AC and when it hit 100%, state changes to "discharging" and that`s it. As a result, option to hide time or % on FULL state never trigger and when on AC with 100% battery, I see weird time like 19 hours left.

So as workaround, maybe you could check % for fullness, and not state. I change extension.js, idk if it is right or not, but it works for me at least (I check for 95% though, it is more convenient for me):

    case UPower.DeviceState.PENDING_DISCHARGE:
    case UPower.DeviceState.DISCHARGING:
      if (per_c > 95) {
        update_visible(cfg.whenFull);
        if (label_visible) {
        text = format_percent(per_c);
        }
      } else {
        update_visible('all');
        if (label_visible) {
          text = format_label(per_c, tte_s);
        }
      }
      break;
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

1 participant