#
…

2024-01-24

02:27john-cabaj has joined #ubuntu-asahi
02:49john-cabaj has quit [Ping timeout: 480 seconds]
14:55john-cabaj has joined #ubuntu-asahi
19:37eslerm[m]there is some discussion in the Fedora Asahi channel now
19:38eslerm[m]Asahi uses s2idle for sleep mode
19:39tobhe[m] has joined #ubuntu-asahi
19:39tobhe[m]sure, that's because we don't have hardware sleep states
19:39tobhe[m]but that's not the actual problem. Apple is doing the same
19:40tobhe[m]and I am pretty sure that some of it is wrong. we do disable CPUs
19:47tobhe[m]replied over there
20:05john-cabaj[m] has joined #ubuntu-asahi
20:05john-cabaj[m]My Thinkpad uses s2idle
20:05john-cabaj[m]I don't think s3 works well anymore
20:08tobhe[m]most modern hardware doesn't support it.
20:08tobhe[m]another example of things using s2idle are basically all phones
20:09john-cabaj[m]Does s2idle only keep the lower power cores active?
20:10tobhe[m]less even, I think only a single one needs to remain active
20:10tobhe[m]and only register interrupt handlers for lid and power button
20:17tobhe[m]I think it is rather likely that there is some peripheral device not powering down properly
20:18tobhe[m]afaiu even macos doesn't use more than deep wfi, so the CPU should not be responsible for the difference we are seeing
20:54eslerm[m]<john-cabaj[m]> "My Thinkpad uses s2idle" <- aha, then I've likely used that on my t14s g2 and found a 0.40%/hour discharge rate
20:54eslerm[m]I'll test turning off just the monitor next then
20:54eslerm[m](battery capacity is different from the m2, but trends within each system might tell us something)
20:55john-cabaj[m]cat /sys/power/mem_sleep should tell you
20:56eslerm[m]s2idle [deep]
20:56tobhe[m]s2idle only means that all of the sleep logic is left to the OS instead of being done in firmware, comparing different hardware doesn't make a lot of sense
20:57john-cabaj[m]eslerm[m]: I think that means you're using s3
20:57john-cabaj[m]I just changed this last week in my BIOS (Linux --> Windows 10)
20:58tobhe[m]well unless you compare Apples to Apples 🥁
20:58eslerm[m]you can't compare between, but you can compare trends within
20:59john-cabaj[m]tobhe[m]: 🥁🔔
21:00eslerm[m]I didn't grok quick enough :)
21:10tobhe[m]But for real, this is incredibly hardware dependent since it really depends on your CPU but also all other attached devices and if and how they can be powered down and small differences in power consumption make a huge difference in battery runtime
21:17tobhe[m]if you look at the individual drivers you will usually find something like https://github.com/AsahiLinux/linux/blob/asahi/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c#L2954-L2981 where the device is powered down or switched to a low power mode during sleep
21:19tobhe[m]since this seems to have gotten worse recently it might be worth looking at recently added drivers
…