atul-g / plasma-power-monitor Goto Github PK
View Code? Open in Web Editor NEWA KDE Plasma widget to monitor the power consumption of your battery.
License: GNU General Public License v2.0
A KDE Plasma widget to monitor the power consumption of your battery.
License: GNU General Public License v2.0
Relevant system info:
Operating System: Arch Linux
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Every time the widget polls (as specified by the polling interval), I get the above error message added to my journalctl
:
Feb 22 20:21:01 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:01 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:02 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:02 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:03 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:03 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:04 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:04 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:05 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:05 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:06 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:06 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:07 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:07 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:08 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:08 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:09 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
Feb 22 20:21:09 archlaptop plasmashell[2882]: XMLHttpRequest: Using GET on a local file is dangerous and will be disabled by default in a future Qt version.Set QML_XHR_ALLOW_FILE_READ to 1 if you wish to continue using this feature.
This is probably not great for my NVME drive :)
I have disabled the widget for the time being, although I really REALLY like it :)
Steps to reproduce:
journalctl
My journal goes back to Jan 17th, and then it already had those entries. So I don't know with which KDE version this started.
Of the 1428804 lines present in my journalctl
output, a huge majority of them is this message.
Currently, on my T560, it doesn't show the wattage at all. Not sure if it's because of the dual batteries or the fact that the power consumption is under /sys/class/power_supply/BATx/power_now
The UI kept restarting, as in going black all together where everything disappears then comes back. This happens in a random interval, but it doesn't take too long to happen again. Sometimes, it just hangs on a black screen where I only see the cursor. Removed the widget and the system is normal now.
Operating System: EndeavourOS
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-arch2-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: Inspiron 7573
When my laptop is charging, it works well
When my laptop is on battery, it works well
But when my laptop is fully charged and still connected to the power cord, 0.0W appeared
My laptop has a mechanism that stops charging when the battery is fully charged.
The text is bigger than the rest of the icons in the panel and looks off. Would it be possible to add the ability to resize the font?
I stop charging my laptop's battery at 80%. It would be cool to see a special logo without the 0.0 W
text. I'm not sure what logo looks the best. Maybe just the charging logo without the watts would be fine.
Hi,
I have been using this widget for few months now, I really like it and would love to keep using it when Plasma 6 lands later this year. Are there any plans to port this to KF6?
I was on KDE forums a bit ago and saw Nate and Alex mention guides for porting plasmoid are already available.
Here is a link the guide they mentioned.
https://develop.kde.org/docs/plasma/widget/porting_kf6/
Thank you.
Bill
Is there any way to see the power consumption in desktops (where a battery is not present) using this tool?
I am using Plasma Power Monitor applet on a HP 250 G5 laptop running KDE Neon (KDE Plasma 5.27.5), and Plasma Power Applet shows "NaN W".
The directory /sys/class/power_supply/BAT1
exists. I will be happy to provide any other necessary information.
FreeBSD uses something other than /sys/class/powe_supply/BAT[i]/
. If I made a PR adding the alternative filepath, will it be merged?
Whenever I am on AC, I see huge numbers, which apparently is a known issue mentioned in the README.md.
The power usage rises continously when the laptop is plugged in to A/C power. It is normal if you see high readings.
Could we have the string "AC" when on AC power instead?
This is basically what I want (or an option to make it this way):
Before | After |
---|---|
0.0 W | 0 W |
5.0 W | 5 W |
5.5 W | 5.5 W |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.