UWP 从休眠中唤醒
UWP wake up from hybernation
目前我已经创建了一个 uwp C# 应用程序,它是一个基本的警报。
问题是当设备进入睡眠模式时,没有通知唤醒设备。
我正在使用以下内容:
var notify = ToastNotificationManager.CreateToastNotifier();
notify.AddToSchedule(myNotification);
myNotification
将在正确的时间出现,除非机器已关闭,我的意思是睡眠模式不是真正的完全关机。
有没有办法在通知发生之前将机器从睡眠模式唤醒?
一般来说,没有 API 可以让您从睡眠中唤醒 PC。一个很好的证明是,即使是官方的警报应用程序在很多情况下也会显示以下警告:
但是,当设备支持 InstantGo 时,这并不成立,只要电池寿命不是问题,它就会在闹钟和定时器上唤醒。许多新型号的笔记本电脑和平板电脑都支持此功能。可以在Microsoft Answers看到官方回复:
If the computer goes to sleep, alarms and timers might not work. Only newer laptops and tablets with a feature called InstantGo can wake up from sleep to sound an alarm or timer. And even with InstantGo, the device might not wake up if it isn’t plugged in.
最后,所有这些都适用于 Sleep 状态,但在 Hybernation 的情况下,我认为 PC 在任何情况下都不会唤醒案例.
目前我已经创建了一个 uwp C# 应用程序,它是一个基本的警报。
问题是当设备进入睡眠模式时,没有通知唤醒设备。
我正在使用以下内容:
var notify = ToastNotificationManager.CreateToastNotifier();
notify.AddToSchedule(myNotification);
myNotification
将在正确的时间出现,除非机器已关闭,我的意思是睡眠模式不是真正的完全关机。
有没有办法在通知发生之前将机器从睡眠模式唤醒?
一般来说,没有 API 可以让您从睡眠中唤醒 PC。一个很好的证明是,即使是官方的警报应用程序在很多情况下也会显示以下警告:
但是,当设备支持 InstantGo 时,这并不成立,只要电池寿命不是问题,它就会在闹钟和定时器上唤醒。许多新型号的笔记本电脑和平板电脑都支持此功能。可以在Microsoft Answers看到官方回复:
If the computer goes to sleep, alarms and timers might not work. Only newer laptops and tablets with a feature called InstantGo can wake up from sleep to sound an alarm or timer. And even with InstantGo, the device might not wake up if it isn’t plugged in.
最后,所有这些都适用于 Sleep 状态,但在 Hybernation 的情况下,我认为 PC 在任何情况下都不会唤醒案例.