Fix for Meeting Notes in OneNote vs. PowerManagement & Auto-Lock

Discussion in 'Microsoft Surface Apps' started by HvT, Sep 23, 2014.

  1. HvT

    HvT Member

    Joined:
    Sep 13, 2014
    Messages:
    46
    Likes Received:
    5
    Trophy Points:
    8
    Situation:
    For battery's sake, standby is configured if on battery and idle for some minutes.
    For security's sake, auto-lock is configured if coming back from standby and after some minutes.

    Problem:
    During meetings, it can take some minutes between inking in OneNote. Then, the device is locked. Or - even worse - in standby. Logging back in without a keyboard takes too long, it's just annoying. I used to have my keyboard detached or wrapped to the back for meeting notes.
    Moreover, there is no FN-Key for screen brightness.

    Solution:
    Dim screen and simulate activity if idle and if OneNote is the active window (topmost window) - preventing standby and auto-lock, but save battery time as good as possible. Immediately on user activity, previous brightness gets restored.
    Dim screen and do not simulate activity in other cases - allowing regular windows power management and auto-lock. But screen dimming could still be useful to save battery.
    Get back to previous brightness on any activity, such as keyboard, mouse/trackpad, touch.
    Manually control brightness with CTRL-WIN and cursor keys.

    I wrote a small tool to do this. It seems to work for me, but it is a quick hack. It might work for you, too. I do not have much time to maintain it, but suggestions are welcome.

    Installation:
    Copy ZIP contents to some place in your filesystem. Have the EXE started during login, eg. by creating a link to it in your user's startup folder.

    Shortfalls:
    Done for and tested only with OneNote for Desktop. No plan to do it for Modern UI OneNote.
    Timers are not exact, but good enough for this purpose. You shall be safe staying 5 seconds under your power management profile. Windows default on my SP3 was 4 minutes. PowerTweak's default is 3,5 min. Or so, check INI file...
    Manual INI editing via Notepad. But works without INI file with some defaults, too.
    Yet no checks if on power supply or on battery. Would be possible to do, but perhaps not necessary...

    Enjoy
     

    Attached Files:

  2. HvT

    HvT Member

    Joined:
    Sep 13, 2014
    Messages:
    46
    Likes Received:
    5
    Trophy Points:
    8
    Updated:

    Installation:
    After copying the files and starting PowerTweak.exe, its tray icon has a context menu to create a link in your startup folder.

    OneNote Modern UI:
    Modified regex in default configuration file. At least for MUI-OneNote sharing the screen with Windows Desktop side by side, it seems to work - if MUI OneNote is the active app.

    Bugfixes...
     

    Attached Files:

Share This Page