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:26andi-[m] has left #asahi [#asahi]
00:28yuyichao_ has quit [Ping timeout: 480 seconds]
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]
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: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:12joske has joined #asahi
07:13Glanzmannjoske: Sound support works for me with this patch from povik: curl https://tg.st/u/5nly | patch -p1
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: Do you see this control: https://tg.st/u/screenshot-air-2022-01-20-08_03_03.png ?
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: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:36mpsGlanzmann: would you mind to post your kernel config to me, I would like to compare or build straight with your config
07:37marvin24_ has joined #asahi
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: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:52joske has quit [Remote host closed the connection]
07:53joske has joined #asahi
07:58jbowen has joined #asahi
08:07jbowen has quit [Ping timeout: 480 seconds]
08:17joske has quit [Remote host closed the connection]
08:20joske has joined #asahi
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: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:44marcanbattery indicator I might make work in a stream starting in a few minutes, after I finish eating a snack ;)
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:47ChaosPrincessjoske: boots fast if you set asahi as primary, but otherwise the stock macos boot picker is super slow
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:49marcanon macOS I get like 1% battery drain per hour with the OS up and an active SSH session printing stuff every minute
08:50marcanalso consider you're running at 2GHz right now, still need to rewrite the cpufreq patches
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: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:51povikmy hunch is that it was the reboot that helped, and communication with cs42l83 is simply still not reliable
08:53marcanhopefully today should be a bit more productive, that GPIO reversing was much more of a rabbit hole than I expected
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: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:16FireFox317or they just didnt implement it yet? wouldnt be supprised by that either
09:19joske has quit [Remote host closed the connection]
09:25joske has joined #asahi
09:48MajorBiscuit has joined #asahi
09:58jbowen has joined #asahi
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:02kettenishttps://github.com/openbsd/src/blob/373fecfb9df277177f5e09f44c39ea580ce5ff00/sys/arch/arm64/dev/aplsmc.c#L94
10:02___nick___ has joined #asahi
10:03FireFox317 has quit [Ping timeout: 480 seconds]
10:06jbowen has quit [Ping timeout: 480 seconds]
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:11landscape15[m]joske: I guess everyone here has ever built an Hackintosh :) but I can’t understand how virtualSMC can help.
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: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:25landscape15[m]nico_32: m1n1 is already an hypervisor. The porting shouldn’t need too much effort for vmware
10:28mazthat's something they could work around (though shoehorning AIC and DART into ACPI could be... fun...)
10:35FireFox317 has joined #asahi
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:45nico_32this thing exists https://github.com/ARM-software/arm-enterprise-acs so I hope it pass on some platform
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:51kettenisOpenBSD runs on eMAG without any PCIe-related quirks, but we largely ignore all the fancy new stuff, so that probably helps
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: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:06mazthat's the core of the problem: instead of an abstraction layer, people want to use it as a quirk description mechanism.
11:08marcanjoske: well you did manage to send me down a rabbit hole instead of streaming today... but I just got somewhere
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_ 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`
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: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
14:04malvo has joined #asahi
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:49jbowen has joined #asahi
15:57jbowen has quit [Ping timeout: 480 seconds]
16:04jbowen has joined #asahi
16:29ChaosPrincesstried to run the new audio patch on a 13inch mbp. no sound, card does not even get detected by alsa
16:36ChaosPrincessin-kernel
16:38ChaosPrincessnothing
16:39ChaosPrincessapplied that on asahi branch, card is not detected
16:40ChaosPrincessthis is the dmesg
16:41FireFox317ChaosPrincess, maybe its missing the nodes in the devicetree?
16:48ChaosPrincessim running this tree for efi https://github.com/kettenis/u-boot/tree/apple-m1-m1n1-nvme/
16:50ChaosPrincesswell, upstream can't boot from nvme and raw linux can't enable pci-e
16:54j`eyhm this is old https://github.com/u-boot/u-boot/commit/7a82c3051c8fdc5c6a91db1f50303ad18c36621f
16:57GlanzmannChaosPrincess: Can you pase your kernel config, do you have CONFIG_APPLE_ADMAC=y and CONFIG_SND_SOC_APPLE_MCA=y ?
16:59ChaosPrincessGlanzmann: i am booting from u-boot
17:03GlanzmannBut I'm also just using asahi + jannau spi patch + povik sound patch from this very early morning.
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:07ChaosPrincess13inch mbp
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: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: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:13ghishadow[m] has left #asahi [#asahi]
17:29GlanzmannI updated https://tg.st/u/asahi-debian-live.txt to include the latest kernel, m1n1, iwd, and alsa-utils.
17:29Glanzmannkettenis: I tried once to use the debian arm64 kernel config and enable everything that asahi needs and it did not boot.
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:34ChaosPrincesspovik: added, didnt help
17:38mpsGlanzmann: this is compromise I made because users wants/needs options which doesn't makes sense to me
17:39ChaosPrincesswon't help much
17:43MajorBiscuit has quit [Ping timeout: 480 seconds]
17:44ChaosPrincesssee the card now, what did you have to enable in alsamixer to make it work?
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:45ChaosPrincesswell, it was noise since i tried to play a mp3 with aplay, but at least it something
17:46ChaosPrincessand as i can see it does not detect if headphones are not plugged, just assumes they are there
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: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:48Glanzmannpovik: I see. And than I heard that there are 6? speakers and you can hook them up differently.
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: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:51MajorBiscuit has joined #asahi
17:52ChaosPrincessanyone here running kde+wayland?
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: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: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: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: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:18joske has joined #asahi
18:21gladiac is now known as Guest1180
18:21gladiac has joined #asahi
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: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: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:59jmr2 has joined #asahi
19:03jmr2Question regarding the installer... When selecting the (newly created) boot disk, are you supposed to click on "restart", or just wait?
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: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: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: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: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
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