linuxmint / linuxmint/cinnamon

Power management applet - showing wrong power status

Open
#6,324 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG stale
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Description

Using Cinnamon 3.2.7 (with Mint 18.1) on Asus UX410UAK laptop. This laptop will not charge the battery until its level drops below a given threshold.

When the device is plugged in but not charging the battery, the power applet shows "Using battery power" status and the same icon as if the laptop was running on battery. It should be something like "On AC power (not charging)" with a distinct tray icon.

Screen capture of the displayed status:

battery_applet_wrong_status

Commands showing the actual power status (AC adapter online):

mint@mint` ~ $ acpi -a -b -i
Battery 0: Discharging, 96%, discharging at zero rate - will never fully discharge.
Battery 0: design capacity 4240 mAh, last full capacity 4123 mAh = 97%
Adapter 0: on-line
mint@mint ~ $ upower -i /org/freedesktop/UPower/devices/line_power_AC0
  native-path:          AC0
  power supply:         yes
  updated:              Sun 26 Feb 2017 01:21:35 PM UTC (1708 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

mint@mint ~ $ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               ASUSTeK
  model:                ASUS Battery
  power supply:         yes
  updated:              Sun 26 Feb 2017 01:49:35 PM UTC (29 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              45.531 Wh
    energy-empty:        0 Wh
    energy-full:         47.013 Wh
    energy-full-design:  48.336 Wh
    energy-rate:         0 W
    voltage:             11.4 V
    percentage:          96%
    capacity:            97.2629%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the case using the reported acpi and upower commands, then trace the Cinnamon power applet's handling of an online AC adapter alongside a discharging battery. The fix is done when plugged-in-but-not-charging status has distinct wording and a distinct tray icon instead of appearing as battery-only operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.