Giter VIP home page Giter VIP logo

wingpanel-indicator-power's Introduction

Wingpanel Power Indicator

Translation status Screenshot

Building and Installation

You'll need the following dependencies:

  • libgranite-dev
  • libgtop2-dev
  • libudev-dev
  • libwingpanel-dev
  • libnotify
  • meson
  • valac

Run meson to configure the build environment and then ninja to build

meson build --prefix=/usr
cd build
ninja

To install, use ninja install

sudo ninja install

wingpanel-indicator-power's People

Contributors

andirsun avatar bagjunggyu avatar codygarver avatar colindemian avatar comradekingu avatar danirabbit avatar davidmhewitt avatar elementarybot avatar fabiozaramella avatar fitojb avatar hugok79 avatar ihorhordiichuk avatar johndumpling avatar josprachi avatar kvdz avatar lenemter avatar marcin-serwin avatar marcuswichelmann avatar mohelm97 avatar mtamas85 avatar nathanbnm avatar norwayfun avatar p-bo avatar queeup avatar ryonakano avatar tomiohl avatar weblate avatar xapantu avatar yarons avatar yassinemrabet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wingpanel-indicator-power's Issues

Prevent screensaver mode from activating

I usually install Caffeine indicator to prevent my machine from going to sleep, but I prefer not to have it. I don't really like having to many indicators.

Xubuntu/xfce has implemented a screensaver locker from activating on the Power applet called Presentation Mode.

I think it would be a neat idea to have it on eOS

xubuntu-xerus-indicators


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Two hr lines left in battery popover menu when backlight slider isn't available

On some systems the backlight slider in the battery popover menu could be not available because the GPU driver lacks support of /sys/class/backlight/interface especially this could happen with NVIDIA proprietary driver.

This could be OK, because the backlight can be controlled using xbacklight utility.
The user can bind it's media keys to control the backlight (which is bit hacky on eOS because we can't set one key binding in System Settings app) and can live without the default controller.

What I want to highlight is when the slider isn't showed in it's place there are two horizontal lines left. First one usually sits above the slider and last under the slider. This makes the UI bit ugly and it gives the user a feel that there is still something missing.

Can this be fixed in way that when the slider isn't available just don't show one of the horizontal lines, probably the first one? I mean completely hide the backlight block with the opening horizontal line?

Screenshot: https://i.imgur.com/AUsCI9M.png

Unresponsive behavior since 1/1/2018

I'm using Elementary OS 0.4.1 Loki. I wanted to have seconds and week numbers in the date indicator, so I cloned the wingpanel-indicator-datetime repo, made my edits and all was fine.

Now since 2018 (apparently, because it was working fine before my holidays until December 22nd), the whole wingpanel is unresponsive and very slow. When I pkill wingpanel it slowly reappears (like in 30 seconds) and it is very slow or even not responsive at all. For example right now the time shown is 10:05 but it is 10:07, so it's been stuck for at least 2 minutes.

I reverted my local wingpanel-indicator-datetime to master and installed again, it didn't work (though my edits are indeed gone).
I also reverted to system defaults with sudo apt install --reinstall wingpanel wingpanel-indicator-datetime but it's still not working properly (even after killing it).

Am I the only one experimenting this? How can I at least revert to a proper default working behavior, or better how can I run again my edited indicator without the wingpanel lagging like crazy?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Power indicator always displays 99% even though the battery is discharging (shows two batteries for some reason)

Not sure why, but my power indicator shows 99% battery all the time. If you click the indicator, it displays a second (I suspect the true battery) that is discharging. It's very confusing. Using a Lenovo Thinkpad X240. I attached a screenshot to display what I mean.

Launchpad Details: #LP1624946 mjpoetic - 2016-09-18 23:34:23 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Support smooth scrolling brightness change

After #57 is closed, the indicator will finally have scroll on the indicator icon. However, neither the icon scroll neither the scroller scroll can handle smooth scrolling gracefully. Currently, #57 increments the brightness 10% for every scroll event, which means a small amount of smooth scroll can lead to a big change.

To support smooth scrolling, the handler needs to check if the event is smooth and then change the brightness value with a value scaled by the delta_y

Power Indicator displays percentage level of main battery

My laptop has two batteries, and Elementary displays the 'main' (internal) battery as the percentage in the panel. GNOME displays the average percentage in its quick settings area.

Similarly, the external battery stops discharging at 5% and should probably not display a time remaining estimation as it isn't discharging.

screenshot from 2017-10-15 21 15 34

My laptop is a Thinkpad X240 if that is of interest.

Limit "low battery" popup notifications to one or two

Currently, I get like 5 messages that my battery is low. One at 20%, 15%, 10%, and like 2 when its critically. Arguably, only one of these if any are needed, as the batty indicator clearly shows when the battery is low, both by becoming a red when the battery is relatively low, and fully red when with an exclamation mark when the battery is critically low.

There should only by one OSD-notify alert: when the icon turns to the exclamation. I believe that's 10% battery life.

Launchpad Details: #LP794321 Avi Romanoff - 2011-06-07 23:51:24 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

(Mouse) Power indicator not shown

My Desktop PC doesn't run on Battery, but the mouse I use does.
The battery icon for the mouse is only shown on the lock-screen (and the percentage keeps on calculating)
After I logged in the indicator is gone, and cannot be restored via the settings.
Guess that this is a feature?

licensing information incorrect in some source files

For Example (maya-calendar):

Running licensecheck on the maya-calendar sources reports that some of the files which include licensing information include the wrong FSF address.

 $ licensecheck -r . | awk -F ": " '{ print $2 }' | sort | uniq -c | sort -gr

    163 No copyright UNKNOWN
    101 UNKNOWN
     38 GPL (v3 or later)
      6 LGPL (v2 or later) (with incorrect FSF address)
      4 No copyright GENERATED FILE
      4 BSD (2 clause)
      3 No copyright GPL (v3 or later)
      2 LGPL (v2.1 or later)

The affected files are:

 $ licensecheck -r . | grep incorrect
  ./core/Backends/Backend.vala: LGPL (v2 or later) (with incorrect FSF address)
  ./core/Backends/BackendsManager.vala: LGPL (v2 or later) (with incorrect FSF address)
  ./core/Backends/LocalBackend.vala: LGPL (v2 or later) (with incorrect FSF address)
  ./core/Backends/PlacementWidget.vala: LGPL (v2 or later) (with incorrect FSF address)
  ./plugins/CalDAV/CalDAVBackend.vala: LGPL (v2 or later) (with incorrect FSF address)
  ./plugins/Google/GoogleBackend.vala: LGPL (v2 or later) (with incorrect FSF address)

Package checkers / linters (for example the compulsory fedora one - rpmlint) complain very verbosely about this.

Launchpad Details: #LP1653413 Fabio Valentini - 2017-01-01 11:16:13 +0000

For systems with multiple batteries the panel indicator only shows first battery's status

I've 2 batteries in my laptop and the panel icon only shows the state of the first battery, which is always discharged before the second one, this is inaccurate to the entire power state of the system.

Suggested solution: use an average both/all batteries to get a "system level" and use that to show a single icon to reflect that state.

Launchpad Details: #LP1574418 Sam Hewitt - 2016-04-25 01:01:07 +0000

power indicator freezes wingpanel when combined with Logitech receiver

I have been using elementary OS for a few months now and the wingpanel always worked correctly and well. A while ago, I got myself a pair of Logitech devices (mouse and keyboard) that connect to my computer through their unifying receiver. Since Logitech doesn't have its official software for Linux, I installed Solaar. Shortly after, the wingpanel began to freeze very often so I then removed solaar using sudo apt-get purge solaar. The problem is that even after removing solaar and restarting, the unresponsive wingpanel problem persists. Note that this problem only happens when the Logitech receiver is plugged in. I'm not sure if this problem is related with Solaar or not.

I have narrowed down the problem to the power indicator. Uninstalling it fixes the issue, but obviously I'd prefer to keep it and use my Logitech devices if possible. I believe the problem is due to the extra battery indicators on the dropdown showing battery levels of my mouse and keyboard.

Please let me know if you need any more information. I'll add a screenshot of the dropdown power menu with 2 extra indicators if wingpanel stays responsive for long enough.

Launchpad Details: #LP1650771 Arsalan Ahmad - 2016-12-17 16:19:42 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Not handling laptops with 2 internal batteries

Typical current Thinkpad laptops have two batteries, a standard one which is easily removable, and an internal one to make hot swap possible and extend the overall battery life.

% upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               LGC
  model:                45N1113
  serial:               8978
  power supply:         yes
  updated:              ven. 09 févr. 2018 22:09:52 CET (117 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              19,37 Wh
    energy-empty:        0 Wh
    energy-full:         19,37 Wh
    energy-full-design:  23,48 Wh
    energy-rate:         0 W
    voltage:             12,636 V
    percentage:          100%
    capacity:            82,4957%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'

% upower -i /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               SANYO
  model:                45N1767
  serial:               3319
  power supply:         yes
  updated:              ven. 09 févr. 2018 22:11:52 CET (7 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              24,19 Wh
    energy-empty:        0 Wh
    energy-full:         37,46 Wh
    energy-full-design:  47,52 Wh
    energy-rate:         9,522 W
    voltage:             11,336 V
    time to empty:       2,5 hours
    percentage:          64%
    capacity:            78,83%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1518210712	64,000	discharging
  History (rate):
    1518210712	9,522	discharging

Major DE like Gnome and KDE handle it well and show only a battery indicator with the agregated remaining power.

The wingpanel indicator shows two icons instead, and the one that shows all the time is wrong (like not representing the real power status).

capture d ecran du 2018-02-09 22 02 41

Quick jump to 0% battery & Low Power notification

I've been experiencing a problem that looks like this:

  1. Battery is at XX% (can be any percentage, but always double-digits, let's say 31%)
  2. I start a task that is intensive on the processor (converting video, playing Football Manager)
  3. Battery jumps to 0% and Low Battery notification is shown
  4. Computer will turn off (Suspend?) within 10-20 seconds of this notification
  5. I plug in the laptop to power
  6. Battery starts charging from the initial XX% (ie, 31%)

Since plugging the laptop into power starts charging from the original battery percentage, and not 1%, I guess there is an issue with calculating the power consumption?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Battery status seems to not be updating with "show battery percentage" off

Here's a bug I've noticed just now in Loki 0.4. Possibly a one-time thing, but might be worth looking at:

  1. Disabled "Show battery percentage" in the popup menu for the battery indicator.
  2. Battery indicator kept saying "Calculating" and the indicator icon was half-full, ergo I thought that I still had power.
  3. Laptop shuts down.
  4. I start it back up, seeing that the battery icon is still "Calculating"
  5. I turned "show battery percentage" on and off again, and the correct percentage and battery status was shown, instantly going from "Calcuating" to "2%"...

Strange.

P.S A little suggestion now that I'm here -- Maybe add a "Disable touchpad when mouse connected" option to Switchboard mouse settings? KDE had it, and it was really useful... Especially now that I have to use a custom script to do it on Loki, as I keep touching my touchpad while typing... 😞


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Battery percentage is only based on primary battery even if multiple batteries exist

I'm using a thinkpad t430s with elementary OS 0.4. I have two batteries installed. Primary, and a smaller peripheral battery in my bay. eOS recognizes both and shows their percentages separately when I click the power icon. But it only uses the primary battery when 'show percentage' is enabled. I.e. battery power will remain at 100% until the secondary battery has fully depleted. Afterward the battery percentage will reflect the current state of the primary battery.

Launchpad Details: #LP1647127 Sam Levin - 2016-12-04 06:33:20 +0000

Screen dimming for OLED (with solution)

The built-in dimming function don't work on OLED screens, they handle it slightly different.

This works for OLED and should somehow be implemented into Elementary.

xrandr --output eDP1 --brightness 0 # fully dimmed
xrandr --output eDP1 --brightness 0.5 # half dimmed
xrandr --output eDP1 --brightness 1 # no dimming

Indicator freezes wingpanel

I found a number of users with this same bug on Stack Exchange: http://elementaryos.stackexchange.com/questions/7680/wingpanel-not-responding-loki (unlike the original poster, I did not install Dropbox—only major install was the Google Chrome repo and app)

I returned from system sleep to find the menu bar gone. When I Ctrl+Alt+Del, I get a notification that wingpanel is not responding, but no feedback if I opt for force quitting it. New Loki install, Intel integrated graphics on Gigabyte GA-H110M-A motherboard.

"sudo killall wingpanel" has no immediate change, but shows a small, white "wiping"-style movement in the top right, like when a notification closes. Sometimes the menu bar restores, but none of the icons or Applications menu respond. (Once I saw the bottom of the message bubble-style popout come out of "Applications", with the triangle part of the bubble pointing to Applications, but all but the bottom white margin of the bubble off the top of the screen. Eventually, I get another notice about how wingpanel is not responding. Force quitting starts the same process anew. I'm unable to get a working menu bar even after rebooting.

Update: The menu bar does become functional again, but only after a notification that I am connected to wired ethernet (even though I haven't touched the computer or installed anything to prompt the change). It quickly becomes unresponsive again.

Launchpad Details: #LP1623793 wolf - 2016-09-15 06:04:52 +0000

full battery shows hours remaining

When the battery is full, the indicator still shows 3hours left.
(The screenshot was taken at 99%, but the problems persists at 100%)
Expected behaviour: showing 1 minute left at 99% OR not showing time when battery is 100% charged and charger connected.

OS: Loki B1

Launchpad Details: #LP1594213 Philippe - 2016-06-20 01:39:29 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

battery indicator shows on battery when charging, charging when on battery

When first plugged in, the indicator and dropdown show that I'm on battery power, and how much time remains. When unplugged, it then shows that I'm charging and how long left until full. If left to sit for a minute so that the % goes either up or down, it then shows the correct status. When unplugging or plugging in again, it reverts to the incorrect status until once again the % changes on its own. This only happens before the first change in either direction.

This is on a 2012 MacBook Air, latest version of 0.4.1 at time of posting this.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Phantom Peripherals

On 0.4.1 Loki, recently reinstalled the OS on my laptop. The power tab shows a mouse that doesn't exist, not merely unplugged. I have tried plugging a mouse in and unplugging, as well as rebooting the machine. I have tried reinstalling wingpanel and the power indicator, but this "mouse" sticks around. Here is an image to show the issue:
wingpanel


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.