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

GUI #3

Open
Haptein opened this issue Oct 13, 2021 · 13 comments
Open

GUI #3

Haptein opened this issue Oct 13, 2021 · 13 comments
Labels
Discussion enhancement New feature or request

Comments

@Haptein
Copy link
Owner

Haptein commented Oct 13, 2021

Continuing off from the discussion started in #1 by @KarkanAlzwayed.

I actually planned for powerplan to get a profile edition (and perhaps some status plotting/monitoring) GUI at some point, but truth be told, at this point in time I'm not really experienced in writing pretty desktop GUI's and there's still other powerplan features I'd like to implement first. I actually had a look at QtDesigner a while ago and it seemed like a good starting point. If anyone has some framework/library recommendations or would like to give it a go that'd be great!

@KarkanAlzwayed By all means feel free to try! I think Open-Source projects like this are a great way to learn new things, and I'd be happy to do some code review and offer help if needed. If you end up deciding to give it a go, I think good places to start are the classes PowerProfile and CPUSpec. The main project structure is outlined simply here.

@Haptein Haptein added enhancement New feature or request help wanted Extra attention is needed labels Oct 13, 2021
@Surendrajat
Copy link

Flutter & Tauri are new shiny option these days, along with good old Qt/GTK.

Some projects in Flutter to check out:

Some tauri apps to check out: https://tauri.studio/en/showcase

@Haptein
Copy link
Owner Author

Haptein commented Oct 14, 2021

It actually sounds like the perfect excuse to learn Flutter haha. I guess I'll have to look into those later. Still, I think the priorities would be the following:

  • Common enough that most people already have the needed dependencies
  • Support for streaming graphs
  • Low resource usage
  • Respects system theme or pretty looks

@KarkanAlzwayed
Copy link

This would literally take me at least a year or two. lol
I have never ever created an app in my life. I do know programming fundamentals, but that's about it. I don't even know how to start.

@Haptein
Copy link
Owner Author

Haptein commented Oct 15, 2021

@KarkanAlzwayed Hey, no pressure ^^ I just created the issue because I think it's something that'll probably be requested sooner or later. I thought pointers as to where to start would be good to have here, for anyone wanting to give it a go.

@Haptein Haptein added Discussion and removed help wanted Extra attention is needed labels Oct 17, 2021
@KarkanAlzwayed
Copy link

I don't know what you did in your latest commit, but after my last git pull, the battery life has been ridiculously good. I have been promoting this project whenever I can. Thank you so much.

@KarkanAlzwayed
Copy link

KarkanAlzwayed commented Oct 26, 2021

I have a question, does this conflict with TLP and cpu-autofreq? I am running Manjaro, and it has both installed out of the box. Should I remove them, or with powerplan play well with them?

@Haptein
Copy link
Owner Author

Haptein commented Oct 26, 2021

Nice, I use Manjaro as well! I actually started developing this because neither did it completely for my needs (among other tools there), but currently I use TLP (without it's Processor options) alongside powerplan without issues.

As for auto-cpufreq, I think having it installed would be a bit redundant, and I would advice uninstalling it (since it supports less of a similar set of features). Before writing this program I actually submitted some code there, but for design reasons I grew disenchanted with the project. Auto-cpufreq's objective is a noble one, but as it is, it's not easy to develop on top and it's very prone to stuff breaking in my experience, and frankly speaking, it's delivery of "optimization" is very questionable.

All that said, If you ever get in a situation where X tool overrides powerplan's config at times (and you can't or rather not change X's configuration), you can just use powerplan with it's --persistent flag.

@KarkanAlzwayed
Copy link

I don't know what persistent flags are. lol
I just removed them both completely and kept powerplan. TLP was causing the fans to go crazy on my laptop when it is plugged in. I will experiment with the mix later on when I have time, for now, powerplan is doing more than enough for me. BTW, I've been sending you people over here :)

@Haptein
Copy link
Owner Author

Haptein commented Oct 26, 2021

I don't know what persistent flags are. lol

You can run it like this: powerplan --persistent
This way it periodically ensures it's configuration is maintained, this can be useful when other pieces of software mess with it.

I've been sending you people over here :)

Hey thanks! That's very nice of you 😁

@KarkanAlzwayed
Copy link

KarkanAlzwayed commented Oct 26, 2021

You can run it like this: powerplan --persistent This way it periodically ensures it's configuration is maintained, this can be useful when other pieces of software mess with it.

This is kind of badass/"Like a boss" behavior. Haha.

Hey thanks! That's very nice of you 😁

You're welcome!

EDIT: I have a couple of questions. I just noticed that even though I have bat_policy set to power in /etc/powerplan.conf, it shows as balance_power when running powerplan -s. Am I missing something?

Screenshot_20211025_222719

@Haptein
Copy link
Owner Author

Haptein commented Oct 27, 2021

EDIT: I have a couple of questions. I just noticed that even though I have bat_policy set to power in /etc/powerplan.conf, it shows as balance_power when running powerplan -s. Am I missing something?

Can you please a separate issue for this? Let's not flood this issue (GUI) with unrelated stuff. I also think it's ok if you open separate issues for questions/discussion. There's another participant here and they might be getting emails for each message 😅.

In the meantime, can you please test if this happens if you run powerplan (the instance not in monitor mode) with the mentioned --persistent argument?

@Haptein
Copy link
Owner Author

Haptein commented Dec 8, 2021

I've been real busy lately but I started work on a Qt GUI (among other things). I'll probably release it early 2022.

@KarkanAlzwayed
Copy link

Oh hell yeah. Let me know whenever you need me to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants