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:39tobhe[m] has joined #ubuntu-asahi
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:09john-cabaj[m]Does s2idle only keep the lower power cores active?
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](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: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:59john-cabaj[m]tobhe[m]: 🥁🔔
20:59john-cabaj[m]No cymbals?
20:59john-cabaj[m]Good call
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