JasonWei512 / EnergyStarX

🔋 Improve your Windows 11 device's battery life. A WinUI 3 GUI for https://github.com/imbushuo/EnergyStar.
https://www.microsoft.com/store/productId/9NF7JTB3B17P
GNU General Public License v3.0
906 stars 19 forks source link

​Add a blackList list. #8

Closed He-Pin closed 1 year ago

He-Pin commented 1 year ago

Description / 描述

Add a blacklist too. Currently , we already have a whiteList, but I think a blackList should be great too. I have a group of applications, I want to limit all of them on start. Such as OneAgent.exe:)

Reproduction steps / 复现步骤

NOOP

Screenshots / 截图

NOOP

Windows version / Windows 版本

win11 22h2

Hardware specs / 硬件配置

image Thinkpad p1

JasonWei512 commented 1 year ago

I am not sure why you need a blacklist. Currently any process outside of whitelist (except programs with higher privileges like system services) will be throttled.

If you want to throttle programs with admin privileges, you can right click on the Energy Star X icon and select "Run as Admin".

If you want to throttle system services in Session 0, or run Energy Star X as admin at startup, that's not implemented yet.

Or do you want a "blacklist only" mode? That only processes on blacklist will be throttled?

He-Pin commented 1 year ago

Yes,i wnat to throttle all apps in the blacklist even the power adapter is connected.

JasonWei512 commented 1 year ago

Implemented in 1.0.4. Note that the program you want to throttle needs to be in the same Windows session with Energy Star X.