Coder Social home page Coder Social logo

powerswitcher's Introduction

About:

PowerPlanSwitcher is a simple app that allows you to quickly switch between power plan schemas from application tray. In addition to a manual schemas switching it also supports an automatic switch when AC adapter gets connected/disconnected.

Features:

  • Windows10 styled flyout that allows quick power plan schemas changing
  • Ability to limit flyout only to Windows default power plan schemas
  • Automatic schema switching when AC adapter gets connected / disconnected
  • Launch on Windows startup
  • Flyout shortcut (Shift+Win+L)
  • Navigate the flyout with keyboard (use tab)
  • Change all settings by right-clicking on the tray icon :)
  • Get it at Windows Store for free!

Other:

Feel free to buy me a beer at: Donate

Special thanks to:

PowerPlanSwitcher Flyout

PowerPlanSwitcher Flyout 2

PowerPlanSwitcher Context Menu

PowerPlanSwitcher Context Menu 2

powerswitcher's People

Contributors

petrroll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerswitcher's Issues

Feature Request: Maintain power plan.

I'd like to see an option to regularly check if the power plan has changed and reset it back to the last selected power plan.

My reasoning is this: Win10, on my home desktop system, is continually resetting my power plan to power saving mode in the middle of operation despite the obvious "desktop" system it's running on. By that, I mean it will never run on a battery because it's not an option on this type of system. Power Saver mode is never necessary here.

This feature would help to work around a Win10 power mode detection bug.

I have been looking at the program sources for a while now but I am not quite up to the task of adding this feature myself at this time. I'm getting close, but recompiling the source is a little difficult without access to all of the prerequisite libraries.

Edit: Getting closer to adding a maintain setting to it. Not quite sure I'm ready to test the code but, with minimal changes to existing code, I think I'm close to a solution.

Automatic Switching Based on Running or Foreground Process

Thank you for creating this app.

A cool feature to have and probably extremely useful to many users - would be to have an ability to automatically switch power plan based on a detected Running Process and / or Foreground Process.

This would function similar to AC/Battery but instead, would allow a user to enter Process Name (*.exe name or window title) and have a radio button for 'Running / Background' or 'Foreground Only'.

An example of use case: if I'm browsing the web and Chrome is in foreground, I'd like a Balanced profile, but if I'm editing in Photoshop (and its in Foreground, as in not minimized and is active window) then High Performance plan is needed. If neither are running then Default Profile gets selected.

I hope you will consider this request. It would make this app totally awesome and very useful.

Thanks in advance!

Stoped working win10 update ver 2004

Wonderful app, don't want to be without it.

After windows update to version 2004 it said it was not compatible and would not start up anymore, so I reset the app under the apps and features and it then disappeared from installed app list.

I can no longer install it from the win store, the install fails around 90%. It is almost of there is some bits off the app left somewhere on the machine that it can not replace. I Dont know where to clean or check.

Works fine on my on my other 4 machines after update to latest version 2004.

Location icon

After installing the program, in the notification area is constantly hanging icon location: http://take.ms/uXR0b

PS The bug appeared in Windows 10 Creators Update.

Automatically enabled "Balanced" scheme

Right click on the icon PowerPlanSwitcher > Settings > turn on option "Show only default power schemas" > left click on the icon PowerPlanSwitcher > automatically enabled the scheme to "Balanced".

Feature request

Hi,

Thank you so much for creating this. It's to the point, simple and looks great :)
I have a request, though. To switch fast, one can activate the dialogue with the shortcut keys, then select the prefered profile with the up/down keys and confirm.

I think it would be even easier when one could:

  • press the shortcut key-combo to make the dialogue appear;
  • the same key-combo again to cycle through the profiles
  • after a certain delay, the selected profile is activated and the dialogue disappears.

What do you think? Possibly create a config setting to select the prefered method?

Thanks in advance.

Error Microsoft .Net framework

Open Control Panel > Power options > create a schema power management > switching to one of default power schemes > go to the settings of the newly created power scheme and deletes it > click the left mouse button on the icon PowerPlanSwitcher and I receive the following error: http://take.ms/jsecQ

Error code:
`Подробная информация об использовании оперативной
(JIT) отладки вместо данного диалогового
окна содержится в конце этого сообщения.

************** Текст исключения **************
System.InvalidOperationException: Коллекция была изменена; невозможно выполнить операцию перечисления.
в System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
в System.Collections.Generic.List1.Enumerator.MoveNextRare() в System.Collections.Generic.List1.Enumerator.MoveNext()
в PowerSwitcher.PowerManager.UpdateSchemas()
в PowerSwitcher.TrayApp.MainWindow.ToggleWindowVisibility()
в PowerSwitcher.TrayApp.TrayApp.TrayIcon_MouseClick(Object sender, MouseEventArgs e)
в System.Windows.Forms.NotifyIcon.OnMouseClick(MouseEventArgs mea)
в System.Windows.Forms.NotifyIcon.WmMouseUp(Message& m, MouseButtons button)
в System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
в System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Загруженные сборки **************
mscorlib
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

PowerSwitcher.TrayApp
Версия сборки: 0.4.1.0
Версия Win32: 0.4.1.0
CodeBase: file:///C:/Program%20Files/WindowsApps/28671Petrroll.PowerPlanSwitcher_0.4.1.0_x86__ge82akyxbc7z4/PowerSwitcher.TrayApp.exe

PresentationFramework
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll

PresentationCore
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

System
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

WindowsBase
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

System.Core
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xaml
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

Petrroll.Helpers
Версия сборки: 1.0.0.0
Версия Win32: 1.0.0.0
CodeBase: file:///C:/Program%20Files/WindowsApps/28671Petrroll.PowerPlanSwitcher_0.4.1.0_x86__ge82akyxbc7z4/Petrroll.Helpers.DLL

PowerSwitcher
Версия сборки: 1.0.0.0
Версия Win32: 1.0.0.0
CodeBase: file:///C:/Program%20Files/WindowsApps/28671Petrroll.PowerPlanSwitcher_0.4.1.0_x86__ge82akyxbc7z4/PowerSwitcher.DLL

System.Xml
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

Microsoft.GeneratedCode
Версия сборки: 1.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Windows.Forms
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

PresentationFramework.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_ru_31bf3856ad364e35/PresentationFramework.resources.dll

PresentationFramework-SystemXml
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll

UIAutomationTypes
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll

PresentationFramework.Aero2
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll

PresentationCore.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_ru_31bf3856ad364e35/PresentationCore.resources.dll

UIAutomationProvider
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll

mscorlib.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll

System.Windows.Forms.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.

`

README wallpaper

Hi, could you share the wallpaper you used in the first screenshot of the README.md file? Thanks
image

Option to "Show only custom power schema"

First of all, thanks a lot for this useful utility, I just recently switched pc that had model-specific software to switch to custom power plans automatically (what you app is doing, in other words!) and my new computer does not have it, so your utility will come very handy to me!

Now, here's a feature request that I believe would be relatively easy to implement (you already have an option to Show only default power schema, simply applying this code and inversing the list shown might do the trick?) and that would also be useful for customization purposes.

I thought about looking into your code and trying to do it myself, but I am quite busy right now as my session at school is ending - in the next few days, if I dive into it and that you aren't taking this feature request, I'll try to add it myself and create a pull request.

Until then, what do you think about this feature? (I know it would come useful to me!)

feature request: colorize icon based on active powerplan

this is a feature request: colorize the icon in the taskbar depending on the active powerplan so that user can see what powerplan is active at a glance (without having to click on the icon).
example:
settings:
name powerplan: powerplan1
color: green
Powerplan icon is green-colored (or numbered) in Windows tray

name powerplan: powerplan2
color: red
Powerplan icon is red-colored (or numbered) in Windows tray

Active powerplan: powerplan1
Powerplan is greencolored visible in the Window tray

Is there no release?

Hello there!

I just wanted to try this, as I've been using another program for that, but there is no release to download. I'm not a very advanced github user, so I am not sure where I should download it.

Thanks
Alex

Add dark icon, for Windows light theme

Hi!
First of all - greap app! I was thinking about writing sth like this myself, since MS is crippling Windows 10 functionality and forces some over-simplified ideas.

But here is the catch: app should use dark tray icon, when user has Light theme enabled.
image
Light theme is available in Windows Insider builds. I am using 1903, build 18356.1

only shows 1 power profile

Hi,
this app is amazing and precisely what i'm looking for , except it doesn't work well: it shows only 1 power profile (balanced) while there are 3 on my pc in the power settings.
I'm on Windows 11 on a HP Elitebook from 2020.

Does not work properly on 1803

I'm using the latest Windows 10 build, the flyout only Balanced power plan. If I choose another plan by traditional method then its ok but upon switching it shows only balanced again. Setting up switching power plans when using/not using AC power does not work.

Cannot update

Error while updating from Store (0x80070216). Before that worked like a charm.
OS: Windows 10 AU 1607 (Build 14393.953)

Can't push branch for PR

@petrroll I've created a branch from your master on my local box and I've added functionality to allow a hotkey to cycle to the next power schema. The problem is that it's not allowing me to push the branch to this repo so that I can create the pull request. I'm guessing this is a permissions issue. Can you give me permission to push a non-protected branch so that I can create a PR?

not compatible with: LENOVO Lenovo Legion Y9000K2021H.

When i find this application,i am so excited that i can get rid of the lenovo vantage which eats my computer ram. but when i run this exe file , i am super sad that its not compatible with my computer. i bought the newest one legion 7i. i hope powerswitch can be compatible to my computer one day. Thanks.

Not in active development (since Sep2017)

Due to a variety of reasons (below) I've stopped active development of this app in September 2017. I'm happy to help with PRs (bugfixes, new functionality, ...) but probably won't do any proactive development myself. Please keep filing issues, however, it might still be useful.

I might revisit development if some of the reasons for abandonment below stop being relevant / if someone incentives me to do so (there's paypal link in readme :) ).

Reasons:

  • Microsoft is moving from "Power plans" to a "power slider".
  • Personally don't use the app anymore (moved to desktop / modern laptop).
  • Little time :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.