#
…

2022-01-20

00:03joske has quit [Remote host closed the connection]
00:06jbowen has quit [Ping timeout: 480 seconds]
00:07aleasto has quit [Quit: Konversation terminated!]
00:09povikyeah, that's right, i meant MIXER knob on the low-level audio card
00:09povikanyway i may have found where the i2c issues lie
00:26andi-[m] has left #asahi [#asahi]
00:27j`eypovik: ooh
00:28povikoh, the i2c issues
00:28yuyichao_ has quit [Ping timeout: 480 seconds]
00:28povikthe codec may be upset because it transitions to an external MCLK clock before it
00:28povik* it's ready
00:29povik(the clock)
00:29povikreading the datasheet it looks like that can spill over to failed register accesses
00:40povikmaybe this helps
00:40poviki should really let it go for today
01:58jbowen has joined #asahi
02:06jbowen has quit [Ping timeout: 480 seconds]
02:12yuyichao_ has joined #asahi
03:01skipwich has quit [Quit: DISCONNECT]
03:01skipwich has joined #asahi
03:26phiologe has joined #asahi
03:29PhilippvK has quit [Ping timeout: 480 seconds]
03:58jbowen has joined #asahi
04:03kov has quit [Quit: Coyote finally caught me]
04:03kov has joined #asahi
04:06jbowen has quit [Ping timeout: 480 seconds]
04:29marvin24 has joined #asahi
04:33marvin24_ has quit [Ping timeout: 480 seconds]
04:41qeeg_ has joined #asahi
04:47qeeg has quit [Ping timeout: 480 seconds]
04:55user982492 has joined #asahi
05:11kenzie35 has joined #asahi
05:11vx^ has joined #asahi
05:11bpye6 has joined #asahi
05:13yuyichao has joined #asahi
05:13al3xtjames1 has joined #asahi
05:13al3xtjames has quit [Quit: Ping timeout (120 seconds)]
05:13aead has quit [Quit: ZNC - https://znc.in]
05:13kenzie3 has quit []
05:13al3xtjames1 is now known as al3xtjames
05:13vx has quit [Quit: :)~]
05:13bpye has quit [Quit: Ping timeout (120 seconds)]
05:13aead has joined #asahi
05:13yuyichao_ has quit [Remote host closed the connection]
05:13bpye6 is now known as bpye
05:58jbowen has joined #asahi
06:06jbowen has quit [Ping timeout: 480 seconds]
06:53Glanzmannrkjnsn[m]: Thank you. Did not notice,
06:53Glanzmannpovik: I try your patch now.
07:03Glanzmannpovik: Without the patch and rkjnsn[m] it works. I switched the sound card and plaed on the 'knob': https://tg.st/u/screenshot-air-2022-01-20-08_03_03.png
07:03GlanzmannNow I try your patch.
07:05Glanzmannpovik: With the patch the system feels faster, I had the feeling that it was hanging before. Sound works. Here is the dmesg: https://pbot.rmdir.de/yvxoM7hZr_BQ8_H_ezhhfg
07:07GlanzmannThe sound was working without modifying the knob after the reboot and it was a little bit loud. So I had move the volume down. The volume and mute keys work.
07:08Glanzmannpovik: Thank you for your patch and sound support.
07:09GlanzmannUpdated https://tg.st/u/asahi.txt if that is still someone using.
07:12joske has joined #asahi
07:13joskeGlanzmann: which machine?
07:13Glanzmannjoske: Sound support works for me with this patch from povik: curl https://tg.st/u/5nly | patch -p1
07:13Glanzmannjoske: m1 air.
07:13joskefor me the patch doesn't work (well, I hear no audio)
07:13Glanzmannjoske: I had to start alsamixer, press f6 select the second card from top.
07:13Glanzmannand moved the first two controls all the way up.
07:13joskeah let's try that
07:14Glanzmannjoske: I tested with mpv via pulseaudio and an mp3. I heard for several mintues.
07:14joskeI used the pulseaudio mixer
07:14Glanzmannjoske: I did this at first, too. After the reboot sound was working out of the box. But I think the first time you have to move these two.
07:17Glanzmannjoske: First knob is enough. Documented that under tripwires.
07:17joskeafter setting the volume, reboot?
07:17joskebecause I still hear nothing
07:17Glanzmannjoske: Nope.
07:18Glanzmannand you moved the first control up?
07:18Glanzmannalso check pavucontrol that the right card is selected.
07:18joskethe 2 first, the others don't move
07:18Glanzmannand use mpv to play a sound or so.
07:18joskegotta go help get the kids ready for school brb
07:25mpsGlanzmann: that is why I don't use such things like pulseaudio/pipewore/systemd and other 'smart' solutions. these are not solutions but are the problem
07:25mpsI use plain alsa fpr audio
07:27mps(perfection is not when you don't have anything more to add but when you don't have anything more to remove - ascribed to Leonardo da Vinchi)
07:36joskemps: you're the one that uses fvwm? ;-)
07:36mpsGlanzmann: would you mind to post your kernel config to me, I would like to compare or build straight with your config
07:37mpsjoske: no, this one is Glanzmann, I use awesome wm (similar window managers to some degree)
07:37marvin24_ has joined #asahi
07:38joskewell if you use debian it makes sense that you use some ancient WM ;-)
07:38mpsjoske: no, I use alpine linux
07:38joskeI meant Glanzmann
07:38joskealpine linux user are also a special bunch I'd say
07:39mpsjoske: :-)
07:39joskeI used to run gentoo, but that got tiring very quickly
07:39mpsjoske: what then are your thoughts about alpine developers ;)
07:40joskewell, I think they are a knowledgable bunch, alpine fills a specific need very well
07:41joskebut it's not a desktop OS
07:41joskevery useful for docker
07:41marvin24 has quit [Ping timeout: 480 seconds]
07:42mpsjoske: I use it as desktop for more than 3 years (also my daughter use it as desktop) and there are a lot of other people
07:42joskeyes, like I used fvwm in 1996 ;-)
07:42joskeyou *can*
07:43mpsjoske: postmarketOS is is distro for phones and tablets and it is based on alpine
07:43joskeI only ever ran it in containers, never actually installed it on hardware
07:43joskemps: sure, it's a lite base OS
07:45mpsjoske: nowadays it has kde, gnome and other similar things, which I don't like to have on alpine repo but I lost this batle where I was fighting against adding these
07:45joskepovik: My system seemed to freeze during playing with alsamixer
07:46joskepovik: and there are errors related to sound in dmesg: https://paste.debian.net/1227763/
07:46joskemps: hahaha, not everyone is comfortable using tiling window managers
07:47mpsjoske: what says `cat /proc/asound/cards` on your machine
07:48joskemps: [jos@air ~]$ cat /proc/asound/cards
07:48joske 0 [audio ]: simple-card - MacBook integrated audio
07:48joske MacBook integrated audio
07:48mpsjoske: and do you use air or pro
07:49mpsjoske: and this is only with povik patch on top of latest asahi kernel?
07:49joskeyes (and the input patch, otherwise no keyboard/mouse)
07:49mpsyes, already added this one
07:50mpsgoing to rebuild with povik patche on pro
07:52joskelet me try a reboot
07:52joske has quit [Remote host closed the connection]
07:53joske has joined #asahi
07:55joskehmm, now alsamixer first channel always falls back to 26
07:55joskeand second one stays put at 192
07:58mpshmm, no luck with patch
07:58mpsstill no card activated
07:58jbowen has joined #asahi
07:59mpsjoske: could you post your kernel config to me, please
07:59mpsprobably I made mistake somewhere
08:05mpsjoske: thanks
08:07jbowen has quit [Ping timeout: 480 seconds]
08:17joske has quit [Remote host closed the connection]
08:20joske has joined #asahi
08:21joskedisabled pulseaudio and reboot and now I have sound via audio jack :-)
08:26mpsjoske: heh nice (I told pulseaudio is problem not a solution :-) )
08:26joskewell I haven't had any problem with it until now
08:41marcanpulseaudio is kind of required for a smooth audio experience these days (e.g. automatic jack/speaker switching) and we're going to have to build something around that for speaker EQ... but there's also PipeWire which I very much look forward to using
08:41marcanso maybe I'll focus on PW first :)
08:43joskemarcan: for me there is only 1 thing stopping me from using asahi as daily driver: 4k pages support so I can use vs code
08:43joskebattery indicator and sleep would be nice though ;-)
08:44marcanbattery indicator I might make work in a stream starting in a few minutes, after I finish eating a snack ;)
08:44marcansleep... that's a much longer term problem :p
08:45joskemarcan: yay :-D
08:45joskesleep not such a big deal, it boots fast enough
08:45joskeshutdown would be nicer I'd say
08:46marcanshutdown should be easy
08:46marcanalso, I'd like to hear about what kind of battery drain rate people get with an up, but idle system, especially with no userspace processes waking things up (powertop etc)
08:46marcanmacOS can do insanely well there
08:47marcanand I want us to be the same, but that will take some polishing
08:47joskewell with Xorg taking 50% cpu all the time...
08:47marcanall the time? even when not doing anything?
08:47ChaosPrincessjoske: boots fast if you set asahi as primary, but otherwise the stock macos boot picker is super slow
08:47marcanthat sounds like a bug
08:48marcanlike some app is rendering something at full blast or something
08:48joskecan try to kill firefox
08:48marcanthat's another big thing: getting battery life to be as good as macOS, partially, means policing userspace and fixing that kind of nonsense
08:48marcanI want to build per-process power stats stuff like macOS has some day
08:48marcanideally display-off idle should be not much worse power consumption than true sleep mode
08:49joskeyes still 50% on 1 core, with just hexchat and a few terminals open
08:49marcanon macOS I get like 1% battery drain per hour with the OS up and an active SSH session printing stuff every minute
08:49marcanwhich is excellent
08:49marcan(I don't think any intel system can do that)
08:49marcanbut that's only ever going to work if the userspace UI isn't doing dumb things
08:49joskethe battery life is quite nice despite the 50% xorg
08:50marcanalso consider you're running at 2GHz right now, still need to rewrite the cpufreq patches
08:50joskebut as there's no battery indicator I can't really say
08:50marcanpcores can go up to 3.2GHz
08:50joskeI think I'm running with 3GHz
08:50marcanah, you changed something?
08:50joskecan I check that?
08:50joskeI used a patch posted here
08:50marcanif you're using stock m1n1 and nothing special in the kernel, everything is at 2GHz
08:50marcanif you patched m1n1 it can be 3, yes
08:51povikjoske: in the dmesg it looks like your system tries to suspend. that could be the freeze and hopefully that's not related to audio stuff
08:51joskepovik: it's working now
08:51povikas to why you had to disable pulseaudio, i don't know
08:51marcanI just picked 2GHz as a nice "faster than low, but not full blast" point, that also happens to make the e-cores and p-cores about ~equal in frequency
08:51joskewell it's still early days
08:51marcanbut that shouldn't matter much once cpufreq is done
08:51povikmy hunch is that it was the reboot that helped, and communication with cs42l83 is simply still not reliable
08:51j`eymarcan: stream 3 days in a row :o
08:51marcanj`ey: I spent >2 weeks without one!
08:52marcangotta catch up!
08:52j`eymarcan: :-)
08:52Glanzmannjoske: Yes, I use fvwm Since 1994 or so. https://tg.st/u/.fvwm2rc
08:53joskemarcan: I had yesterday's stream all day in the background during work :-)
08:53marcanhopefully today should be a bit more productive, that GPIO reversing was much more of a rabbit hole than I expected
08:53joskeI was hoping for battery/sleep/shutdown :-)
08:53marcanleave it to apple to have weird half-broken API abstractions :p
08:54j`eybattery should be a lot simpler, just reading some integer keys hopefully
08:54marcanalso I should add a debugfs for this to just read keys
08:55joskeI am co-maintainer of btop (like top), so the SMC stuff interests me
08:55joskeI thought there was no SMC on m1
08:56marcanit's embedded
08:56marcanI imagine you're also interested in PMP?
08:56marcanthat's the in-SoC power monitor coprocessor
08:56joskemy code that reads the SMC for temperature doesn't work (macOS)
08:56marcanSMC deals more with out-of-SoC measurements
08:56joskeso I resorted to CoreFoundation to read the temperature
08:57joskewhich is totally nuts, the keys don't seem to match
08:57joskeand there are dies with negative temperature
08:57marcanhttps://mrcn.st/p/Vqx8k9YF here's a dump from the m1pro mbp, fwiw
08:58marcando note that some keys are endian-reversed for who knows what reason
08:58joskeaha the TC keys are there
08:58joskewhen I use the SMC api on m1 (macOS) it just doesn't return any value for those
08:59joskenever tried other keys so I assumed there just wasn't any SMC
08:59joskeah but they are slightly different
08:59j`eySBAS = (flt , 0x85) 100.0
08:59j`ey100% charged!
08:59marcanit's plugged in since yesterday ;)
09:00joskeon intel macs, it's TC0c for temp of cpu 0
09:00marcanjoske: there is some key-meaning mapping in a dylib somewhere
09:00marcannot complete though
09:01joskeI'd be very interested in that
09:01marcanlet me take a quick look, see if I can dump it
09:02joskemarcan: that would be great, thx!
09:02j`eyVBUS = (ui32, 0x94) 1
09:02joskeIf I can use SMC API on m1 too would be better that this CF mess
09:02joskeyou never know which things you have to CFRelease etc
09:05marcanheh, foiled by 7-zip dmg extraction issues... sec
09:06marcanlibSMC is in the update/restore ramdisks at least
09:08joskemarcan: how many cores does this mac pro have?
09:08marcan2x4P 1x2E
09:08josketrying to make sense of the temp values
09:09j`eymarcan: jealous ;_;
09:09joskeTC10 could be temp of cpu 0 in cluster 1?
09:09joskebut then there are 12 of those
09:09marcanyeah, it's a bit weird
09:09joske10-13 20-23 and 30-33
09:09joskeI've already struggled so much with this temp stuff on macos
09:10marcanI also love just how fine-grained all this stuff is because we're going to be one of the platforms with the most junk in sysfs out there :D
09:10marcanpeople think `sensors` gives you fun output on some motherboards... wait until they see an M1
09:10marcanthis thing has a gazillion sensors, internal and external
09:11joske it's crazy the amount of temperature sensors you get back from CoreFoundation on M1
09:11joskebut you have no idea to what it all maps
09:11joskeand some are negative as said
09:12joskein the end we gave up on per core, and just averaged all with Tdie into one T reading
09:15marcanjoske: doesn't help that macos doesn't let you exercise individual cores I guess
09:15marcanon linux we can easily peg a core and see what temperature goes up first
09:15marcanah, this library looks like it has per-device info, but only for some things, seems related to accumulation? and I don't see the M1 Macs...
09:16joskealso seems impossible to get the CPU freq on macOS
09:16joskethe syscall just returns nothing
09:16joskeapparently you're not allowed to know ;-)
09:16FireFox317or they just didnt implement it yet? wouldnt be supprised by that either
09:17joskemarcan: if it takes too long, I'd rather you work on SMC ;-)
09:18joskethis dump is already very interesting
09:18joskeI'll see if I can use those keys with SMC API on M1
09:19joskerebooting to macOS :-)
09:19joske has quit [Remote host closed the connection]
09:25joske has joined #asahi
09:42* marcandigs around a bit more...
09:48MajorBiscuit has joined #asahi
09:49marcanI just had an idea...
09:49mpsGlanzmann: thanks
09:56kettenisaplsmc0.power1 6.87 W system
09:56kettenisthat is my j293 idling in OpenBSD
09:57marcanscreen on?
09:57kettenisyes, with the screen on (but not running X)
09:57kettenisthis is with the P-cores cranked up to max though
09:58kettenisinput power is roughly the same
09:58jbowen has joined #asahi
09:58kettenisunless the battery is charging; then input power is higher than system power
09:59kettenisI use PDTR as input power and PSTR as system power
09:59mps`10:58:27 up 2:01, 0 users, load average: 0.05, 0.35, 0.32` my uptime with firefox few terminals and few ssh connections
10:00___nick___ has joined #asahi
10:00___nick___ has quit []
10:02___nick___ has joined #asahi
10:02kettenisthat is the list of sensor keys that I currently use on OpenBSD
10:02kettenisI'm reasonably confident that these are all right
10:03kettenisnote that for the external sensors the board schematics seem to list the sensor keys
10:03FireFox317 has quit [Ping timeout: 480 seconds]
10:04mpspovik: audio now works on mb pro \o/ thanks
10:05joskekettenis: thx
10:06kettenisthat's a useful resource too
10:06povikstill needs some ironing out
10:06jbowen has quit [Ping timeout: 480 seconds]
10:07marcan"You are not allowed to use the contents of this document unless you openly publish
10:07marcanall the new information found with a single exception of having NDA with Apple."
10:07marcannot that "what SMC keys do" is copyrightable, but that statement sets off my legally dubious license detector
10:07aleasto has joined #asahi
10:08joskekettenis: I knew that already (I hackintosh also ;-))
10:09kettenislegally totally unenforcable
10:11kettenisand I openly publish my source code ;)
10:11landscape15[m]joske: I guess everyone here has ever built an Hackintosh :) but I can’t understand how virtualSMC can help.
10:12nico_32mapping a keyname to something readable
10:13bisko has joined #asahi
10:13kettenisI noticed there is a whole cottage industry of closed source Mac Apps that display temperatures and let you tweak fans
10:14povikhaha, i guess one can make a living off that
10:14kettenisI bet that notice is just a misguided attempt by the VirtualSMC guy to have those folks rip him off
10:15kettenisI ran across one of those guys using the github issue tracker for hist closed source app
10:16nico_32that's Microsoft approved since they do it for windows component
10:19nico_32i wonder if vmware is going to port their ESXi-arm to the m1
10:25landscape15[m]nico_32: m1n1 is already an hypervisor. The porting shouldn’t need too much effort for vmware
10:25maznico_32: there are no technical obstacle to it.
10:26kettenismy understanding was that ESXi requires ACPI though
10:28mazthat's something they could work around (though shoehorning AIC and DART into ACPI could be... fun...)
10:35FireFox317 has joined #asahi
10:39nico_32they want the platform to be ServerReady compliant so uefi, acpi, etc ...
10:39mazschaha! wrong platform then.
10:40mazit isn't even ARM architecture compliant, so forget about everything else.
10:41nico_32so no more pile of mac mini running esxi for macOS CI :(
10:42mazwell, not if they only want to support standard HW.
10:42ChaosPrincessaic and dart are the difficult parts
10:42ChaosPrincessuefi and acpi can be done in software
10:43mazbut I wouldn't put it past ARM to create a special ServerReady category just for the M1. that's what they do for every broken HW implementation out there.
10:43mazChaosPrincess: you can't fit AIC or dart in ACPI without a major revision of the spec.
10:43kettenisI don't think there is any platform that actually meets the spec
10:44mazthere are. the Ampere stuff is reasonably correct, for example.
10:45nico_32this thing exists https://github.com/ARM-software/arm-enterprise-acs so I hope it pass on some platform
10:46maza handful of machines, and mostly software models.
10:47mazand ARM will hand out exemptions for each and every broken system anyway.
10:47mazto the point where ServerReady doesn't mean anything.
10:48ketteniseMAG still had PCIe quirks in the Linux kernel, but those may have been for things outside the spec
10:49mazthey got an exemtion for it. I think Altra is sort of OK in that respect (I booted fairly old kernels on it without any extra patch).
10:49maz(although their IORT table is... interesting...)
10:50kettenisthe _DMA properties also don't make much sense
10:51kettenisOpenBSD runs on eMAG without any PCIe-related quirks, but we largely ignore all the fancy new stuff, so that probably helps
10:52kettenisbut yes, ServerReady is mostly just marketing bullshit ;)
10:53mazthe fun begins when people use the SR argument to justify adding terrible quirks to support ACPI on HW that really shouldn't use that.
10:56kettenisthe raspberry pi was an interesting experiment, but ACPI is still a bad idea on a SoC like that
11:00mazexactly.
11:01mazlx2160a is the poster child of such madness.
11:01mjg59ACPI suffers hugely from being a spec intended to solve a specific problem ("How do we provide some sort of abstraction layer for x86 that isn't int calls") that got kind of out of control
11:05mjg59I'm still confused how Toshiba ended up involved in 1.0
11:06mazthat's the core of the problem: instead of an abstraction layer, people want to use it as a quirk description mechanism.
11:08kettenismjg59: to move japan away from pc-98?
11:08marcanjoske: well you did manage to send me down a rabbit hole instead of streaming today... but I just got somewhere
11:08marcanlet's see if this yields anything :-)
11:09mjg59Taking an ecosystem that thrives on low-level differentiation and trying to re-model it on an ecosystem that has spent decades trying to be 100% compatible with a computer released in 1981 turns out to be hard
11:18user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:33joske has quit [Remote host closed the connection]
11:39kgarrington has joined #asahi
11:40kgarrington has quit [Remote host closed the connection]
11:46joske_ has joined #asahi
11:47joske_marcan: :-(
11:47joske_ has quit []
11:48joske has joined #asahi
11:48Genbuchan[m] is now known as GenbuchanPS5[m]
11:49mpshmm, replugging usb stopped to work for me, dmesg says `dwc3 502280000.usb: Configuration mismatch. dr_mode forced to host`
11:50Glanzmannmps: I'll try later today and let you know if it works for me.
11:50mpsGlanzmann: thanks in advance
12:02joske has quit [Remote host closed the connection]
12:19joske has joined #asahi
12:27joske has quit [Ping timeout: 480 seconds]
12:54joske has joined #asahi
13:02joske has quit [Ping timeout: 480 seconds]
13:12joske has joined #asahi
13:20joske has quit [Ping timeout: 480 seconds]
13:27marcanand so instead of streaming SMC here's the rabbit hole I ended up in: https://twitter.com/marcan42/status/1484155015585742857
13:32nico_32someone forgot to cleanup the release image ;)
13:35kettenisyou're supposed to finish the gpio stuff such that I can push my u-boot version that isn't based on a 1-year old branch ;)
13:46joske has joined #asahi
13:51joske has quit [Remote host closed the connection]
13:51joske has joined #asahi
13:54joskemarcan: I'd be interested in that json file ;-)
14:04malvo has joined #asahi
14:10as400[m]marcan: cool :)
15:03yuyichao has quit [Ping timeout: 480 seconds]
15:10joske has quit [Remote host closed the connection]
15:16joske has joined #asahi
15:21gladiac is now known as Guest1168
15:21gladiac has joined #asahi
15:24joske has quit [Ping timeout: 480 seconds]
15:25jbowen has joined #asahi
15:27Guest1168 has quit [Ping timeout: 480 seconds]
15:35yuyichao has joined #asahi
15:39jbowen has quit [Ping timeout: 480 seconds]
15:45mpsGlanzmann: usb hotplug works, I booted wrong kernel in which it didn't worked, heh
15:49jbowen has joined #asahi
15:57jbowen has quit [Ping timeout: 480 seconds]
16:04jbowen has joined #asahi
16:12MaryInteresting finding
16:29ChaosPrincesstried to run the new audio patch on a 13inch mbp. no sound, card does not even get detected by alsa
16:36mpsChaosPrincess: you build drivers in-kernel or as modules?
16:37mpscat /proc/asound/cards
16:38mpshmm, it works for me after latest patch povik posted
16:39ChaosPrincessapplied that on asahi branch, card is not detected
16:40j`eyChaosPrincess: get any of the mca dmesg output?
16:40ChaosPrincessthis is the dmesg
16:41FireFox317ChaosPrincess, maybe its missing the nodes in the devicetree?
16:42Glanzmannmps: I was just checking IRC, if you have fixed it and than wanted to reproduce.
16:44mpsGlanzmann: no, everything is ok now (well, more or less in current state of kernel)
16:44mpsGlanzmann: as wrote, booted wrong kernel
16:45j`eyChaosPrincess: unrelated, but not good that youre getting that early warning about efi
16:48kettenisI believe upstream fixed that not too long ago
16:49ketteniswhich is based on upstream code that is almost a year old
16:50ChaosPrincesswell, upstream can't boot from nvme and raw linux can't enable pci-e
16:54j`eymust be another fix
16:57GlanzmannChaosPrincess: Can you pase your kernel config, do you have CONFIG_APPLE_ADMAC=y and CONFIG_SND_SOC_APPLE_MCA=y ?
16:58GlanzmannChaosPrincess: You can boot using u-boot?
16:58kettenisI don't think that warning really matters
16:59ChaosPrincessGlanzmann: i am booting from u-boot
17:02GlanzmannChaosPrincess: Kernelconfig looks good for me, Do you want to try my kernel?
17:03GlanzmannBut I'm also just using asahi + jannau spi patch + povik sound patch from this very early morning.
17:03GlanzmannThe device tree I took from kettenis u-boot.
17:04GlanzmannChaosPrincess: If you use u-boot you can also use my debian live and try this one. But I need to update the kernel.
17:04ChaosPrincessthats exactly what im using too, asahi + cherry-picked keyboard fix from jannau + fix from today
17:06GlanzmannI see. Than I can only offer you my config. I'm not getting this big fat efi warning though.
17:07GlanzmannChaosPrincess: What m1 device do you have?
17:08GlanzmannSo same as mps and for him it works.
17:08GlanzmannChaosPrincess: Did you try to reboot, povik said it might be just that.
17:08ChaosPrincessmultiple boots
17:09ChaosPrincessalso, did y'all boot with headphones plugged in or not, and does it even matter
17:09GlanzmannAnd you have the latest macos firmware, latest asahi installer version and have packged u-boot like that: https://tg.st/u/asahi-uboot-quickstart.txt ?
17:10GlanzmannChaosPrincess: Do you hear clicks in the hadphone when you boot?
17:10ChaosPrincess12.0.1 firmware, asahi installer of version that i no longer remember, and u-boot that looks close enough to what is in that guide
17:11ChaosPrincessno clicks, i think
17:11GlanzmannBut you use the device tree that ships with u-boot from kettenis?
17:12GlanzmannStrange than I have no idea. If you want, I can incorporate the latest kernel in the debian live image. And test if I get sound withthat, if I do, you can try.
17:13GlanzmannYou can also try my u-boot which is here: https://tg.st/u/u-boot.macho
17:13GlanzmannIt is built as written in the guide with a very recent m1n1.
17:13ghishadow[m] has left #asahi [#asahi]
17:24povikChaosPrincess: you are missing CONFIG_SND_SOC_CS42L42
17:29kettenisseriously guys, what's up with this Kconfig disaster
17:29GlanzmannI updated https://tg.st/u/asahi-debian-live.txt to include the latest kernel, m1n1, iwd, and alsa-utils.
17:29Glanzmannkettenis: The issue is that we don't have a config that enabled everything.
17:29Glanzmannkettenis: I tried once to use the debian arm64 kernel config and enable everything that asahi needs and it did not boot.
17:30j`eykettenis: c u s t o m i s a t i o n
17:30GlanzmannNow I took jannaus config and adopted if I miss every other option.
17:30GlanzmannI would prefer if we would have just a kernel config where is everything on that could be one, ccache takes care of the rest.
17:31kettenisj`ey: c u s t o m i s a t i o n is bad
17:32kettenisover here we say "only n00bs push knobs" ;)
17:32j`eykettenis: :'(
17:34ChaosPrincesspovik: added, didnt help
17:34povikat least we can get to know each other over checking each other's .config options
17:34povikChaosPrincess: send dmesg
17:35mpsI like to tweak kernels for different systems and different use cases
17:35Glanzmannmps: I like when I can install Debian standard kernel and it just works(tm). :-)
17:36mpsI don't like any standard kernel, even ones I maintain for alpine
17:38mpsGlanzmann: this is compromise I made because users wants/needs options which doesn't makes sense to me
17:38povikof course, CONFIG_SND_SIMPLE_CARD
17:38povikdon't tell kettenis
17:39mpsChaosPrincess: I could post my config if you want
17:39ChaosPrincesswon't help much
17:40mpscat /proc/asound/card0/pcm0p/info | tpaste => https://tpaste.us/DXlq
17:41kettenisI don't see any i2c in that kernel dmesg either
17:41povik[ 0.661505] cs42l42 2-0048: CS42L42 Device ID (42A83). Expected 42A42
17:41povikthere's ^ in the second dmesg, so we are reaching the codec
17:42povikbut the card doesn't get initialized, because we need CONFIG_SND_SIMPLE_CARD
17:42mpspovik: right, I had to enable it
17:43MajorBiscuit has quit [Ping timeout: 480 seconds]
17:43mpsCONFIG_SND_SIMPLE_CARD_UTILS=m
17:43mpsCONFIG_SND_SIMPLE_CARD=m
17:44ChaosPrincesssee the card now, what did you have to enable in alsamixer to make it work?
17:44mpsCONFIG_SND_SOC_CS42L42=m
17:44povikMIXER knob, make sure you switch out of a pulseaudio virtual device, if there's any (use F6)
17:44ChaosPrincessyep, works now
17:44GlanzmannChaosPrincess: - In order to use sound, start alsamixer, press f6, select the card 'Macbook integrated audio' and move the first controls all the way to the top.
17:45mpspovik: knob or just increase level in MIXER
17:45ChaosPrincesswell, it was noise since i tried to play a mp3 with aplay, but at least it something
17:45povikgreat, i will do something about that MIXER business soon, i promise
17:45povikmps: increase level on the knob
17:45mpsthere is no mute switch
17:46Glanzmannmps: I use pulse audio on top of it, and it works just like on any other deivce.
17:46ChaosPrincessand as i can see it does not detect if headphones are not plugged, just assumes they are there
17:46GlanzmannBtw. I documented the sound stuff here: https://tg.st/u/asahi.txt
17:46mpspovik: it works fine, thank you
17:46povikgreat :)
17:47GlanzmannChaosPrincess: From the backlog I can tell you that is very hard to get the speakers working and also the risk of destroying them while trying ...
17:47povikhm? i wouldn't say that's true
17:47ChaosPrincesswell, at least mute if there is nothing plugged in
17:47mpsGlanzmann: I think event interface is not yet added to it, because this there is no detect options
17:47Glanzmannpovik: Okay, some people in here mentioned that they blow there speaker on other arm devices.
17:48povikah, i think we may be past that phase, and my mini came out unharmed
17:48Glanzmannmps: I use that: https://tg.st/u/volkey and it works.
17:48Glanzmannpovik: I see. And than I heard that there are 6? speakers and you can hook them up differently.
17:49GlanzmannAnd every speaker has its own chip?
17:49ChaosPrincessi think thats on 14+inch pro
17:49povikthe other day i visited #alsa-soc and i think i know what needs to be done for plug events to reach userspace
17:49kettenis13" has 4
17:49mpsGlanzmann: I made small lua script for awesome and control it with hotkeys and have text status bar widget to show volume
17:50Glanzmannmps: I had one with text status as well, but it was to much code complexity so that I killed it and now use this one and I now it just works (tm).
17:51povikGlanzmann: that's right, every speaker has its own chip, and we need to orchestrate that, there's just some work, wouldn't say it's very hard
17:51povikat least to get to baseline with 2 speakers as left/right
17:51MajorBiscuit has joined #asahi
17:51povikonce we want to have different stream for >2 speakers, there's yet more work
17:51kettenishardest bit is to come up with an appropriate device tree binding ;)
17:52povikhaha, may be
17:52ChaosPrincessanyone here running kde+wayland?
17:54GlanzmannChaosPrincess: Nope. I have fvwm2 + xorg, and my system is idle (no burning cpu).
17:54GlanzmannChaosPrincess: But I tried it a few times.
17:54GlanzmannBut only for a minute or so.
17:55Glanzmannpovik: Nice. I look forward to it.
17:56GlanzmannBut if I watch a movie with 1920x960 xorg burns 30% and mpv 70% CPU.
17:56GlanzmannI'm running at 2 GHZ.
18:01MajorBiscuit has quit [Ping timeout: 480 seconds]
18:04mpsheh, I build kde when it is released first time and debian pkg didn't existed to try it, deleted it few days later and never tried again
18:04mpssimilar was the gnome fate on my system, though I was xfce user for nearly full one year
18:04ChaosPrincessits way better than whatever the folks over at gnome are doing, but the wayland support is not it's strongest point
18:05Glanzmannmps: I was only trying gnome and kde because they supported wlan and wanted to compare the video performance to the xorg. In the beginning (when we did not have the modesetting) it was better, but now I use xorg and don't look back.
18:05Glanzmanns/wlan/wayland/g
18:05mpsGlanzmann: I do nearly same
18:06mpspovik: current audio status is quite fine for me because I mostly listen audio with headphones
18:08mpsnow what is missing for me is battery status, backlight control and maybe RTC (though NTP works fine)
18:08mpsbut not so important things machine is quite usable now
18:09Glanzmannmps: Yes, backlight control would be nice. Also the camera, mic and gpu accelerated graphics. But if I work, I'm already faster than on macos.
18:09GlanzmannNTP, I don't notice because the lock is already set when I open a terminal.
18:10mpscamera, mic and gpu are not things I need
18:11Glanzmannmps: I do a lot of online trainings, so with Linux I can't do that at the moment. But if I work on things, I already have everything that I need.
18:13poviki actually do not know where the mics on macbooks are hooked to, chip-wise
18:13povikalso so far i assumed the mini doesn't have an embedded mic, but that may not be true
18:13poviklet's see some schematics
18:17Glanzmannpovik: I looked at an dissaemble video of the mini and do not recall seeing a mic.
18:18joske has joined #asahi
18:19poviki opened the voice recorder app in macos and it didn't do anything :)
18:20povikoh no, i smell AOP is involved in this, which makes sense
18:21gladiac is now known as Guest1180
18:21gladiac has joined #asahi
18:21povikwhat's that you said? you don't need a mic?
18:22mpspovik: I don't need it, never use it
18:22j`eypovik: no mic needed, i can see what you type :D
18:23mpsj`ey: :)
18:26joske_ has joined #asahi
18:26joske has quit [Ping timeout: 480 seconds]
18:27Guest1180 has quit [Ping timeout: 480 seconds]
18:29poviki have it on good authority that AOP has an MCA block of its own, and that seems to be where the mic is hooked to
18:29povikthere's also an external FPGA sitting on the mic data lines
18:32Glanzmannpovik: What is the fpga for?
18:34joske_ has quit [Ping timeout: 480 seconds]
18:34poviki don't know, low-power keyword/voice detection maybe, or some part of it and AOP doing the other part
18:35povikor microphone beamforming? shrug
18:37povikof course, on mini /arm-io/admac-aop-audio is unused
18:37povikbut on macbooks that's where you get the mic samples from
18:38povikone mystery solved
18:40qm3ster[m] has joined #asahi
18:41joske has joined #asahi
18:49joske has quit [Ping timeout: 480 seconds]
18:50marcanhttps://mrcn.st/p/jcpn0idA well that's pretty much all the voltages/currents for j314 (and other info I could gather)
18:50marcanmostly process of elimination matching up SMC symbols with known sensors in the schematic...
18:51marcankettenis: probably would make sense to figure out a way to stuff these names in the device tree
18:58dottedmag"Air Intake Temp" so this thing can also double as a room thermometer
18:59jmr2 has joined #asahi
19:00kettenismarcan: not sure about that
19:00kettenisdifferent OSes may have a different opinion about what sensors are worth showing
19:01kettenisor what description to attach to the different sensors
19:01marcanduplicating this knowledge in every OS seems... suboptimal
19:02kettenisan OS is of course always free to ignore the information
19:03jmr2Question regarding the installer... When selecting the (newly created) boot disk, are you supposed to click on "restart", or just wait?
19:03marcanyou click
19:04jmr2Thanks :-)
19:06jmr2 has quit [Quit: Page closed]
19:08jmr2 has joined #asahi
19:10marcanpovik/Glanzmann: the FPGA is just a tiny thing that's just used to disable the mic when the lid is closed
19:10marcan(and a few other security-related things)
19:10jmr2(FWIW, I did almost all my installs so far from MacOS, not from RecoveryOS. In that context, you can just relock the lock and wait ~10s, without clicking on restart, and the installer detects the change. Might be a way to avoid the race condition in recoveryOS.)
19:10marcanit's one of the smallest FPGAs you can get (MachXO2), basically a CPLD
19:10marcanand it is not hooked up to be reprogrammable on purpose
19:11j`eymarcan: they probably picked the chip because the name matches the macOS kernel :P
19:11marcanit's a privacy thing
19:15marcanj`ey: I was going to say they probably watched the Smockie MachXO2 ad, but it seems it's been scrubbed from the internet :<
19:17jmr2 has quit [Quit: Page closed]
19:19raiaq has quit [Remote host closed the connection]
19:19raiaq has joined #asahi
20:02user982492 has joined #asahi
20:04darkapex2 is now known as darkapex
20:05Glanzmannmarcan: Wow, lots of sensors.
20:07Glanzmannmarcan: Thank you for the fpga explanation.
20:30VinDuvokay, I figured out why my monitor doesn’t work in m1n1: it looks like it briefly disconnects itself while going out of sleep mode
20:31VinDuvIf I call dcp_ib_get_hpd in a loop after dcp_ib_swap_begin I can see connected going back to 0 then to 1. DCP syslog also says “display HPD removed” then “display HPD asserted”
20:32VinDuvand I can “fix” it by waiting 2 seconds after dcp_ib_swap_begin and calling dcp_ib_set_mode again.
20:35povikmarcan: makes sense. i like that they did that (re: fpga)
20:35povikis AOP running after handoff from iboot, or do we have to start it?
20:42sveniirc we have to start it
20:42svenit’s also a bit of a misleading name since I think that SMC is more “always on” than AOP
20:43svenonly special case might be some of the deeper sleep modes
20:48jannauI guess it's called always-on because it implments the always-on feature. the device acts as if it is always-on even when it is sleeping
20:58j`eyfridtjof[m]: lolwtf is this
21:01fridtjof[m]I also have the power manager one,
21:03fridtjof[m](oh, i just noticed the video id in the file name doesn't even match up, so it's probably not the one you meant)
21:07joske has joined #asahi
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:08joske has quit []
21:36jbowen has quit [Quit: leaving]
21:45joske has joined #asahi
21:53joske has quit [Remote host closed the connection]
22:24user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:09flying_sausages has quit [Ping timeout: 480 seconds]
23:21flying_sausages has joined #asahi
23:31user982492 has joined #asahi
23:33aleasto has quit [Quit: Konversation terminated!]
23:35aleasto has joined #asahi
23:39user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:41user982492 has joined #asahi
23:45aleasto has quit [Remote host closed the connection]
23:47aleasto has joined #asahi
23:54aleasto has quit [Remote host closed the connection]
23:56aleasto has joined #asahi
…