Skip to content

Links the brightnesses of Plugged In and On Battery together

Notifications You must be signed in to change notification settings

HubKing/LinkBrightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkBrightness

LinkBrightness links the brightnesses of Plugged In and On Battery together, so that if you change one, the other is also changed:

console

If LinkBrightness is running in its own console window (ie not with another process attached such as command prompt) then it has an icon in the system tray. You can show/hide the window by double-clicking the tray icon:

tray_tooltip

You can exit LinkBrightness by closing the window or right-clicking on the tray icon and choosing Exit from the popup menu:

tray_context_menu

LinkBrightness can run from multiple user accounts at the same time safely. If one instance is in the middle of syncing the brightness then the others will not interfere. Since Windows' power-scheme brightness settings are global it should not matter which user account LinkBrightness is running from. It can run from administrator and limited user accounts, but cannot run from the Guest account due to lack of privileges.

Usage

LinkBrightness [/hide_on_start] [/hide_on_minimize] [/verbose]

The options pretty much do what they say. The hide options only work if LinkBrightness is running in its own console window. You can run LinkBrightness /? to see the full details of each option.

Probably most people using this program will want to run it in the background automatically at login. To do that open your startup folder (Type shell:startup into the Run box (Win+R)) and create a shortcut to LinkBrightness with the Run properties set to 'Minimized', and use command-line option /hide_on_start (and optionally /hide_on_minimize to minimize to tray).

Or to create a shortcut for all users put it in this folder instead:

%ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp

Why..

After having posted my question about how to link the two brightnesses together on Microsoft forum and on SuperUser and not receiving a working answer, I decided to do the work on my own.

This simple program does the following:

  • Wait for "brightness changed" event.
  • If the event occurs, read the Plugged In and On Battery brightnesses of current power plan.
  • If the two are different, set them to the same value.

Other

IF YOU DO NOT WANT TO BUILD THE SOURCE YOURSELF

You can download the most recent successful build of master branch from https://ci.appveyor.com/api/projects/HubKing/LinkBrightness/artifacts/LinkBrightness/bin/Debug/LinkBrightness.exe?branch=master

TO BUILD FROM THE SOURCE CODE

Use any IDE. I used SharpDevelop, because it is lightweighted. The .NET level is set to 4.5, but it may also work on .NET 2.

Licence

For the EXE and the source code, MIT Licence. Simply put, it is free for home and work.

About

Links the brightnesses of Plugged In and On Battery together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages