It is currently March 19th, 2024, 4:15 am

SysInfo - Last Sleep/Wake time

Report bugs with the Rainmeter application and suggest features.
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

SysInfo - Last Sleep/Wake time

Post by ikarus1969 »

Hi guys,

to complete my system skins i started to play around with the new SysInfoTypes of the SysInfo-plugin: LAST_SLEEP_TIME and LAST_WAKE_TIME.

I get a strange result: the value of the current time is less than the value of LAST_SLEEP_TIME.

Why is this?
Screenshot RM Last Sleep_Wake.png
User avatar
SilverAzide
Rainmeter Sage
Posts: 2579
Joined: March 23rd, 2015, 5:26 pm
Contact:

Re: SysInfo - Last Sleep/Wake time

Post by SilverAzide »

Have you considered the possibility you've traveled back in time since the last time you went to sleep? Nodded off next to your flux capacitor, perhaps?

Or maybe the sleep time is UTC/GMT, while current time is local? :confused:

All are valid theories, I think... ;-)
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: SysInfo - Last Sleep/Wake time

Post by ikarus1969 »

SilverAzide wrote: July 7th, 2020, 12:00 pm Have you considered the possibility you've traveled back in time since the last time you went to sleep? Nodded off next to your flux capacitor, perhaps?
:D
Maybe one of the paradox that happen when travelling back and forth in time?
User avatar
jsmorley
Developer
Posts: 22632
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: SysInfo - Last Sleep/Wake time

Post by jsmorley »

Not sure. I'm not seeing that...

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeasureTime]
Measure=Time
Format=%A, %B %#d, %Y %#I:%M %p

[MeasureSleep]
Measure=Plugin
Plugin=SysInfo
SysInfoType=LAST_SLEEP_TIME

[MeasureSleepTime]
Measure=Time
TimeStamp=[MeasureSleep]
DynamicVariables=1
Format=%A, %B %#d, %Y %#I:%M %p

[MeasureWake]
Measure=Plugin
Plugin=SysInfo
SysInfoType=LAST_WAKE_TIME

[MeasureWakeTime]
Measure=Time
TimeStamp=[MeasureWake]
DynamicVariables=1
Format=%A, %B %#d, %Y %#I:%M %p

[MeterDummy]
Meter=String

1.jpg


Time to re-format your PC... ;-)
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: SysInfo - Last Sleep/Wake time

Post by ikarus1969 »

Hi jsmorley,

with your code i get:
Screenshot Rainmeter.png
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: SysInfo - Last Sleep/Wake time

Post by ikarus1969 »

jsmorley wrote: July 7th, 2020, 2:07 pm Time to re-format your PC... ;-)
i guess i'll wait a little bit. Some problems tend to solve themselves alone (sometimes).
User avatar
jsmorley
Developer
Posts: 22632
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: SysInfo - Last Sleep/Wake time

Post by jsmorley »

ikarus1969 wrote: July 7th, 2020, 2:54 pm Hi jsmorley,

with your code i get:

Screenshot Rainmeter.png
Well, that's not good. You haven't at any point messed with your Date / Time on your PC have you?
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: SysInfo - Last Sleep/Wake time

Post by ikarus1969 »

jsmorley wrote: July 7th, 2020, 3:16 pm Well, that's not good. You haven't at any point messed with your Date / Time on your PC have you?
No messing that i'm aware of. It's a quite new system (bought in March right before the shops were closed due to corona) and then used it for home-office. I just changed the time-server to a local one to have the time synchronized but that's all.
User avatar
jsmorley
Developer
Posts: 22632
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: SysInfo - Last Sleep/Wake time

Post by jsmorley »

ikarus1969 wrote: July 7th, 2020, 3:21 pm No messing that i'm aware of. It's a quite new system (bought in March right before the shops were closed due to corona) and then used it for home-office. I just changed the time-server to a local one to have the time synchronized but that's all.
So what happens when you actually sleep and then wake the computer?
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: SysInfo - Last Sleep/Wake time

Post by ikarus1969 »

I remember some problems when user logon-time was introduced to rainmeter in conjunction with a fast-boot-option. Could that fast-boot interfer with the sleep/wake functionality?
Post Reply