Could NOT find KF6 (missing: Plasma) (found version â6.0.0â)
It says, it needs a KF6 dependency, here Plasma.
You need to install the development dependencies, here kio-dev libplasma-dev ki18n-dev, qt-quick-dev and qt-dev.
I donât know the precise naming of the packages but they should be pretty similar.
Thanks for you answer, but, I think I already have installed those packages.
sudo apt install libkf6plasma-dev libplasma-dev
Reading package lists⌠Done
Building dependency tree⌠Done
Reading state information⌠Done
libkf6plasma-dev is already the newest version (6.0.2-0xneon+22.04+jammy+release+build16).
libplasma-dev is already the newest version (6.0.2-0xneon+22.04+jammy+release+build16).
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Maybe some other hidden package, but I have no idea what is package is missing.
Not an answer but as the original author of this widget, I guess I need to tell you that you donât need it any more. You can achieve the same result by using the power profiles available in system settings under âEnergy Savingâ. The only thing you will miss is Dellâs thermal framework settings if you are using a dell laptop which supports that framework (you can use the cli tool smb-thermal-ctl for that).
The whole widget was just a quick and ugly hack btw
Thank you very much for your answer and thanks for doing this awesome widget, I use this widget ever since its inception. Maybe it is time to retire it or write a simple widget only to change the smb-thermal.
Do you have any idea if there is a way to run a smb-thermal-ctl script when changing the power profile?
Not sure if I should take this question to mean that the UI isnât discoverable enough and needs improvement. Either way, this is the straightforward option.
If youâre looking to react specifically to a power-profiles-daemon profile getting enabled, i.e. âpower-saverâ, âbalancedâ or âperformanceâ, then the D-Bus API of power-profiles-daemon can be monitored for its "ActiveProfile" property. I think it should send an automatic "PropertiesChanged" signal when that property (or any of its other ones) changed, but even in case it doesnât send a signal, polling would still be an option.
I was about to comment this as well, but I realized that I canât figure out how it works exactly. I mean what exactly are we seeing in that screenshot? That you can have some scripts running when entering or exiting the⌠âLeave unchangedâ power profile?
Also: I would expect to somehow be able to âattachâ such scripts in every power profile, but that doesnât seem to be the case.
@ismaelbonato
I want just to mention that smb-thermal-ctl is just a python script which uses the libsmbios library so if you are familiar with python it should be at least easy to adapt it to your needs.
Oooh, thatâs another angle I hadnât even considered. The custom script fields are for âpower statesâ, i.e. AC, battery, low battery. The âpower profileâ is a separate setting. I definitely struggled with labeling these fields when revamping the UI because a profile from âpower-profiles-daemonâ is obviously a âpower profileâ, but also AC/battery/low-battery is also obviously power-related. So I left the former as is because we canât do much about it, but labeled the latter âpower statesâ to give it at least some kind of distinction.
Guess it didnât work out.
What I would really like to do, but takes more work, is to move the custom script settings into a different tab, a sub-page, or even a different settings module altogether. There are a number of ways one could go about this, but all need a good amount of design work to improve on the current (somewhat poor) state of this particular setting.
If youâve got any short-term fixes in mind that could clear up this confusion without a bunch of extra work, good suggestions are definitely welcome. (Or patches! I know youâre a developer!)
An apparent quick fix would be relabeling thing. Ie instead of âRun custom scriptâ something like âRun script on AC power state changeâ and then labeling the âWhen entering/exiting this power stateâ to something that leaves no confusion on what state we are talking about. Ie âwhen connected/disconnected to AC powerâ, âWhen battery is running lowâ etc.
Iâll try to submit a patch for that (should be straightforward) and also a second patch (no promises on that) with a solution to attach a script to when entering/leaving each power profile.
Sorry Iâm spamming this but I just realized that when you are seeing it on a laptop computer, you get the three power states above (AC, Battery, Low Battery). If you look at the same page on a desktop PC (as I did) it makes little sense as you can see in the screenshot
Oh! I see the disconnect. If you never switch power state profiles or even know about them, of course thereâs no point to enter/exit script triggers. Thatâs a bug, yeah. Not just useless for desktop PC users, but actively harmful. (The third script, execute stuff on idle, theoretically still makes sense. So I guess we shouldnât hide it altogether.)
For the strings, we could define different labels depending on whether youâre looking at AC/battery/low-battery. But perhaps thatâs something to consider after figuring out how to deal with the desktop PC confusion. Iâll get this fixed for 6.1 at least, letâs see if we can have a quick fix for 6.0.x that doesnât introduce new translatable strings. Iâm thinking perhaps donât show the run conditions button and always show the idle timeout command.
It is nice to run a script when on AC or battery, but it would be awesome if I can run scripts when changing power profile or just on the widget properties something like this.
It would be easy than write a widget only to change the dell thermal staff and I think a lot o people would be happy with it.
Hey everyone. Glad to see that even the author of original widget replied here, but I think that setting CPU and GPU to 10-20% of its power is done better with GUI than using some scripts or even scenarios.
Of course you may do it with terminal every time you just want to watch a movie in a long road just for saving a lot of battery charge, but thatâs not what you want to remember to be done in an everyday routine life, especially as for me (regular KDE user with a very little knowledge). So thatâs a pity that topic starter gave up, gonna find my own way of solving this issue.
Well, you can change the CPUâs performance through the GUI in any case. For the GPU and other components related to performance I guess itâs up to the hardware vendor to implement these features in a way that they can be manipulated through âpower profiles daemonâ. ie, they have to do something about it in the bios in order to expose these in /sys/firmware/acpi/platform_profile.
I know this is not the solution you are asking, but Iâm still mentioning it. In any case the original widget used a shell script to interact with various settings under /sys and I guess you can still use it in the terminal without the need to remember much stuff. You can even set aliases like âperformanceâ, âpowersavingâ etc. Just run the script without any parameters and it will print out what you can do with it.
Hi to all, i tried for first time to develop a KDE widget and cmake gives me the same error Could NOT find KF6I18n (missing: KF6I18n_DIR)
Could NOT find KF6I18n (missing: KF6I18n_DIR).
I tried to install libkf6plasma-dev libplasma-dev, but itâs not seems working.
The project that i token by example is TreeNotes/
But is the same problem in kdevelop for Plasmoid template
Can you help me?
I believe you need to install the kf6-ki18n-dev package.
As a general hint, if you are in a deb based distro, the apt-file utility can help you locate these packages. For example in order to find the kf6-ki18n-dev package, I just run the following
Ok i found it and install, but there is a guide to prepare the environment, because Kdevelop says me KF6Plasma_DIR-NOTFOUND and iâm not finding anything on google about it
UPDATE:
I follow the instruction on Build It - KDevelop to install kdesrc and enabling the framework
i ran the command:
/kdesrc-build --include-dependencies kdevelop
And it given to me the error:
*** You need libgpg-error to build this program.
** This library is for example available at
*** ftp.gnupg.org:gcrypt/libgpg-error/
*** (at least version 1.47 is required.)
configure: error:
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
Then i downloaded source of libgpg-error-1.50:
i did
configure
make
make install and
it gived to me this error: