Skip to content

powerMonitor.on('suspend/resume') doesn't work at win10 tablet devices #8560

@Dominis13

Description

@Dominis13
electron.powerMonitor.on('suspend', () => {
    console.log('GOING TO SLEEP!');
    mainWindow.send('custom-suspend');
  });

This code works well on the PC and laptop win10, but on the tablet with win10 it does nothing. I can't see my console.log and don't get my custom event.
I've tried to install every win10 updates - it doesn't help.
I've tried to play with tablet mode on both laptop and tablet devices - there is no differences: tablet doesn't trigger event in the both modes, laptop does trigger event in both modes...

I use https://github.com/chentsulin/electron-react-boilerplate for my project, if it matters. For out project we use two different ways to build package, and have the same behavior in both packages.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions