fenrus75 / powertop

The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests
http://www.01.org/powertop
GNU General Public License v2.0
1.05k stars 131 forks source link

Allow running as non-root #154

Open EfogDev opened 2 months ago

EfogDev commented 2 months ago

Hey, so it actually works (partially) just with fakeroot: image

I believe it makes sense to allow running it as non-root? You don't get everything, but power consumption is there (the thing I personally need most of the time).

fenrus75 commented 2 months ago

hmmmm there really isn't a lot to report since almost all information is privileged (so some of what it reports is faked I suspect)

On Wed, Aug 7, 2024 at 4:45 PM EmbeddedMe @.***> wrote:

Hey, so it actually works (partially) just with fakeroot: image.png (view on web) https://github.com/user-attachments/assets/71c35743-86fb-48f6-a9bb-3e9f60106696

I believe it makes sense to allow running it as non-root? You don't get everything, but power consumption is there (the thing I personally need most of the time).

— Reply to this email directly, view it on GitHub https://github.com/fenrus75/powertop/issues/154, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FMTNSDW4RZ7NU3SA7LZQKWTBAVCNFSM6AAAAABMFLUQMKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TINJSHAYDKOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

EfogDev commented 2 months ago

Well my use case is I'm making a small GNOME extension to monitor momentary power consumption (running with -t 1). The readings look pretty accurate and consistent, except that (I think) it doesn't account for the screen in calculations. I'm pretty happy with the result, so it is better to get some data than to not get any at all, isnt't it?

fenrus75 commented 2 months ago

I'll ponder it some more... can you say exactly what data you want to use?

On Thu, Aug 8, 2024, 04:28 EmbeddedMe @.***> wrote:

Well my use case is I'm making a small GNOME extension to monitor momentary power consumption (running with -t 1). The readings look pretty accurate and consistent, except that (I think) it doesn't account for the screen in calculations. I'm pretty happy with the result, so it is better to get some data than to not get any at all, isnt't it?

— Reply to this email directly, view it on GitHub https://github.com/fenrus75/powertop/issues/154#issuecomment-2275589228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FL36SOBKR4DCYFLSFLZQNI5FAVCNFSM6AAAAABMFLUQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZVGU4DSMRSHA . You are receiving this because you commented.Message ID: @.***>