MControlCenter icon indicating copy to clipboard operation
MControlCenter copied to clipboard

KDE PowerDevil/power-profiles-daemon vs MControlCenter?

Open numerosmg opened this issue 1 year ago • 1 comments

On 6.9.8-arch1-1 Archlinux KDE6 plasma, EC version: 14L1EMS1.307, MSI Modern 14 H, it seems like KDE's PowerDevil overwrites MCC "Mode" setting? Or the current "mode" doesn't get updated on one app when changed on the other app?

Other MCC settings seem to work, though battery threshold seems to work kinda wonky:

If I set it to 60%, at 60% current charge the "Charging status" shows "Unknown". The KDE tray battery icon displays: "Battery at 60%, not charging". At the same settings, if I'm on current charge like 80%, it will still just "not charge", and not discharge.

It should discharge if way over the threshold, or am I wrong?

I THINK I've enabled ec_sys.write_support=1.

$ cat /proc/cmdline
BOOT_IMAGE= rw ec_sys.write_support=1 loglevel=3 quiet

but

$ modinfo ec_sys
filename:       /lib/modules/6.9.8-arch1-1/kernel/drivers/acpi/ec_sys.ko.zst
license:        GPL
description:    ACPI EC sysfs access driver
author:         Thomas Renninger <[email protected]>
srcversion:     44E90FE6B4CF87D50E11CE2
depends:        
retpoline:      Y
intree:         Y
name:           ec_sys
vermagic:       6.9.8-arch1-1 SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        57:72:60:87:11:9A:94:D6:AB:F4:9F:14:25:B0:71:DC:69:A4:97:AE
sig_hashalgo:   sha512
signature:      30:66:02:31:00:D7:87:FE:C9:89:9C:93:57:D7:90:D1:7D:54:C2:C9:
                14:5B:18:08:A3:B0:2B:90:0D:CC:C8:84:5A:70:B5:98:EB:76:47:AD:
                21:A6:9E:22:25:FE:8C:3B:75:F5:9D:E2:A1:02:31:00:CB:1B:8B:74:
                AE:1D:41:0B:5F:80:1C:5E:13:1C:BD:3F:AE:72:6B:99:A9:6F:8D:89:
                E4:6A:CC:58:57:33:F4:8D:D0:3B:1B:27:F5:B9:5C:DD:7D:FD:A6:6E:
                E6:62:B6:8B
parm:           write_support:Dangerous, reboot and removal of battery may be needed. (bool)

numerosmg avatar Jul 08 '24 14:07 numerosmg

Update PowerDevil with qdbus local.org_kde_powerdevil /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.refreshStatus

Once the maximum threshold is exceeded, the battery won't charge before reaching the minimum threshold (at -10% of the maximum threshold). By keeping your laptop plugged you are on AC, so the battery is not used/drained.

About the Unknown battery status, #216 will help. oops. You can get the exact value with cat /sys/class/power_supply/BAT*/status

By the way, your laptop was added to msi-ec 3 weeks ago, so it may help.

Jiogo18 avatar Feb 24 '25 13:02 Jiogo18

@numerosmg for performance modes, the power-profiles-daemon sets hints for the cpu/gpu (amd) frequency scaling and does other things that are specific to hardware.

The selector in MCC, or in EC in other words, changes the pre-defined TDP/TGP and other power limits profiles set in the bios, these profiles also have sets for fan curves that can't be modified (unless in advanced fan mode).

So basically you need to match both settings to get the best of your device.

mutchiko avatar Jul 18 '25 22:07 mutchiko