robclark changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Chrome OS Trogdor Devices - Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630 - Lenovo ThinkPad X13s - and various other snapdragon laptops) - https://oftc.irclog.whitequark.org/aarch64-laptops
<altacus> jhovold: Thanks for the s3 info. Very glad to hear that there's still room for improvement for the idle battery time. Hibernation would be a great alternative to s3 idle.
<altacus> I'm guessing there's virtually no chance that Qualcomm will add s3 to their firmware,
<altacus> jhovold: Thank you for the wiki! It really does answer so many of my questions!
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
<craftyguy> it is common that qualcomm SoCs don't do S3?
DanaG has quit [Remote host closed the connection]
DanaG has joined #aarch64-laptops
<travmurav[m]> craftyguy: altacus don't think you even /need/ s3 on qcom (or even on arm in general), the sleep model is different
<travmurav[m]> i.e. s2idle on 7c1 aspire1 is ~10 days of suspend from full battery (~0.2W iirc)
<travmurav[m]> but to elaborate
<travmurav[m]> based on my knowledge of ~10 years old qcom platforms + some educated guesses the sleep works like this:
<travmurav[m]> when Linux wants to cpuidle, it decides how deep the idle level it can use considering the entry/exit latency. for s2idle the deepest level will be picked. then the firmware is notified of the level via PSCI and linux executes WFI (wait-for-interrupt) instruction. Then <implementation defined> the device waits for the interrupt, and when it arrives, the device is resurrected and returned to Linux
<travmurav[m]> on qcom 10 years ago, the act of setting idle level would pick a "program" in special hardware blocks that run when WFI is executed. I doubt this has changed much
<travmurav[m]> and that program would perform actions like gating off cpu clocks, disabling core power regulator etc
<travmurav[m]> so in the "best" case when you find yourself in the middle of the WFI, the cpu core is dead, unpowered; the ram is in self-refresh; and the only thing running in the soc is the small "aon" core that is waiting on an interrupt to wake everything up
<travmurav[m]> which would practically be s3 I guess
<travmurav[m]> so for x13s to make use of that, one would need to make sure there is nothing interfering with the idle entry, since if some hw block is in use, it can inhibit it
<travmurav[m]> i.e. afaict on x13s the asoc boardfile doesn't disable clocks when the sound is not used anymore, so you would never get to a really low idle where all remoteprocs are dead, given you still seem to boot with clk_ignore_unused, there will be more stuff like that
<craftyguy> thanks for the explanation. ya I wasn't implying that S3 was needed. I have a lot of experience on x86, where S3 is (or was) pretty common, so I was curious about it here
iivanov has joined #aarch64-laptops
<travmurav[m]> (thinking a bit, seems like I mixed up PSCI an pre-psci paths, the wfi remark is somewhat wrong then)
krzk_ has quit [Quit: leaving]
krzk has joined #aarch64-laptops
Ablu has joined #aarch64-laptops
chenxuecong has joined #aarch64-laptops
chenxuecong has quit []
chenxuecong has joined #aarch64-laptops
<chenxuecong> how can I fix invalid framebuffer when booting linux
chenxuecong has quit [Remote host closed the connection]
<Jasper[m]> chenxuecong: What platform/device
xroumegue has quit [Ping timeout: 480 seconds]
zsw has joined #aarch64-laptops
zsw has quit []
chenxuecong has joined #aarch64-laptops
<chenxuecong> HUAWEI MateBook E go
<chenxuecong> with sc8280xp
<chenxuecong> thanks
chenxuecong has quit [Remote host closed the connection]
svarbanov_ has joined #aarch64-laptops
svarbanov has quit [Ping timeout: 480 seconds]
<clover[m]> steev: just got back from nola for a bach party, what linux version are we on now?
<Bioxvirizm-x13s[m]> clower last update with you repository mutter broke system=\
<clover[m]> are you using gnome bioxvirizm?
<steev> i believe 6.5.7? i have some new stuff (pulling in some of the sound fixes from johan's latest push) but something seems off and i'm getting failed boots
<Bioxvirizm-x13s[m]> clover[m]: yes 45
<steev> probably a newer mutter with gnome 45?
<Jasper[m]> steev: HMMMM failed boots how?
<clover[m]> sorry about that, i just pushed a new one about 5 minutes ago, try using the recovery version and updating
<clover[m]> the recovery disk i mean
<clover[m]> i have to carry mutter because of the patch it needs for edp
<Bioxvirizm-x13s[m]> steev: mutter was version 45
<steev> Jasper[m]: that i do not know because i stupidly don't make the boots verbose, just at the point it should load gdm, it reboots instead :)
<steev> that and, i haven't had time to reboot to research it as i'm working on some things for work
<clover[m]> Bioxvirizm-x13s: make sure to disable gdm and start it manually until you know it's fixed
<Bioxvirizm-x13s[m]> I have an iso with the latest ubuntu, if I boot into the live sd, supposedly I can roll back the app? I just don't understand how yet)
<Jasper[m]> steev: @[(⊙_◎)] sounds similar to what we're having
<clover[m]> Bioxvirizm-x13s: just use the archiso, mount and arch-chroot into your root partition, and then fix it from there
<steev> for me, it's just with the asoc and regmap fixes applied
<clover[m]> not super sure why your mutter didn't work though, booted just fine here so its a bit concerning
<clover[m]> try a pacman -Syu to make sure you have all latest packages
<Bioxvirizm-x13s[m]> It's good to have a desktop computer)
<Bioxvirizm-x13s[m]> clover[m]: I update x13 every day)
<clover[m]> still try it because i pushed mutter a few times today
<clover[m]> make sure you have mutter 45.0+r57+g909cc6c24-0
<Bioxvirizm-x13s[m]> So I'm lucky) your arch has been living with me since spring.
<Bioxvirizm-x13s[m]> lived)))
<clover[m]> steev: to clarify, is what is in your 6.5.y branch safe to use or are there currently booting issues with it
<steev> clover[m]: it's safe, i don't push things (without saying so) if they aren't reliably booting
<clover[m]> Bioxvirizm-x13s: 0 bytes ...
<Bioxvirizm-x13s[m]> interestingly the mutter file is 0 bytes in size. The computer just shut down during installation.
<steev> that would definitely cause mutter issues :D
<clover[m]> steev cool
<Bioxvirizm-x13s[m]> steev: do you think?)
<Bioxvirizm-x13s[m]> clover: can i ask you from bin/ to send me the mutter file?
<clover[m]> ➜ ~ md5sum /usr/bin/mutter
<clover[m]> f0ac3838617249188ac22d8318ee6341 /usr/bin/mutter
<Bioxvirizm-x13s[m]> It's also 0 bytes.
<clover[m]> just do a sudo pacman -S mutter, you should get what i have, without having to manually copy binaries
<Bioxvirizm-x13s[m]> iso takes forever to download, I booted into Ubuntu.
<clover[m]> i see
<Jasper[m]> Bioxvirizm-x13s[m]: Not trying tty?
<clover[m]> dm'd bioxvirizm the binary
<clover[m]> keep a spare iso on a thumb drive and shove it in a drawer, then you can quickly fix your arch system if or when it breaks
<steev> you can chroot into an arch system from an ubuntu one
<clover[m]> havent tried
<steev> a chroot is a chroot
<clover[m]> i figured arch-chroot did some fancy or extra stuff behind the scenes
<steev> it probably does the mounts
<HdkR> FEX's x86 rootfs setup chroots from Ubuntu in to Arch. It works okay
iivanov has quit [Quit: Leaving]
<enyalios> i actually do all my gentoo updates while chrooted in from my ubuntu install
<enyalios> i still want my sound working while im compiling all my updates
<clover[m]> nice
<clover[m]> how is gentoo on an x13s?
<enyalios> it works great except i cant get the sound working still
<enyalios> its very frustrating
<enyalios> i just need a big block of time to compile the kernel a bunch of times to test different versions and different configs
<enyalios> and recompile pipewire a bunch with different options
<enyalios> but its hard to have a lot of time with kids, especially a small one
<enyalios> so ive just been using ubuntu mostly, which works very well
<enyalios> i think i have everything working in gentoo that works in ubuntu except for audio
<clover[m]> do you have pd-mapper?
<clover[m]> i guess if your battery charge status is working then you have pd-mapper, but i think that also somehow affects sound
<enyalios> yes
<enyalios> i couldnt get any sound at all with bare also
<clover[m]> are you using a steev kernel with laptop_defconfig?
<enyalios> with pipewire i can get sound sometimes
<enyalios> but it stops working with no error messages that i can tell
<enyalios> yes steev's 6.5.3 with laptop_defconfig
<enyalios> alsa-ucm-conf with that extra pull request patched in
<enyalios> the latest linux-firmware version from gi
<enyalios> t
<enyalios> alsa-ucm-conf is 1.2.10
<clover[m]> i am using the srini's alsa-ucm-conf on his x13s-volume-fixes branch
<enyalios> i believe i tried that too, but steev said to use the packaged one with the extra pull request
<enyalios> which distro are you on?
<clover[m]> endeavourOS
<enyalios> as far as my googling shows, sound *should* be working
<enyalios> but its not, so im pretty sure its a configuration issue or something
<clover[m]> basically arch but purpler
<enyalios> lol :-)
<enyalios> arch has always seemed very appealing too
<enyalios> but ive been on gentoo for like 20 years and really love it
<enyalios> plus no systemd makes me very happy
<enyalios> if you like purple, you should check out gentoo
<enyalios> its very purple too
<enyalios> ;-)
<clover[m]> haha
<clover[m]> well, let us know if you ever figure out sound
<enyalios> will do
krzk is now known as Guest3860
Guest3860 has quit [Quit: leaving]
krzk has joined #aarch64-laptops
<Jasper[m]> OH CRAP I JUST SAW ERROR LOGS FOR THE HANG I'VE BEEN GETTING
<Jasper[m]> Couldn't take a pic in time
<Jasper[m]> It was an ARM-SMMU hang
dcavalca has joined #aarch64-laptops
<altacus> travmurav: Thank you so much for that in depth overview of idle states with linux. I'm still re-reading it to fully absorb it.