#
…

2022-12-26

00:08Soni has quit [Ping timeout: 480 seconds]
00:11Hibyehello has joined #asahi
00:12mspe has quit [Quit: WeeChat 2.8]
00:15mspe has joined #asahi
00:17hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:46cylm has joined #asahi
00:47cylm_ has quit [Ping timeout: 480 seconds]
00:53Soni has joined #asahi
00:56hertz has joined #asahi
00:58hertz has quit []
01:06hertz has joined #asahi
01:37hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:41possiblemeatball has quit [Remote host closed the connection]
01:46hertz has joined #asahi
02:02possiblemeatball has joined #asahi
02:54yamii has quit [Ping timeout: 480 seconds]
03:11Brainium has quit [Ping timeout: 480 seconds]
04:55hendry has quit [Ping timeout: 480 seconds]
04:59greguu has quit [Ping timeout: 480 seconds]
05:15jluthra has quit [Remote host closed the connection]
05:15jluthra has joined #asahi
05:35yamii has joined #asahi
05:36rayanamukami3 has quit [Remote host closed the connection]
05:37rayanamukami3 has joined #asahi
05:41kettenis has quit [Remote host closed the connection]
05:41kettenis has joined #asahi
05:44SSJ_GZ has joined #asahi
05:45marcanI think that is a known race (cc sven)
05:47marcanhertz: the firmware loading process changed and now relies on initramfs mounting a tmpfs on /lib/firmware/vendor and putting the firmware there. this goes for both wifi and trackpad (which also needs firmware)
05:47marcanyou should familiarize yourself with those scripts if you are rolling your own install
05:49marcanSFR = System Firmware and Recovery
05:49hertzThanks, @marcan ! I will study them. You're talking about the scripts in asahi-scripts-20221220-1-any.pkg.tar.xz, right?
05:50marcanyes, the mkinitcpio stuff in particular
05:50marcanthis is also documented on the wiki (don't have the link handy but it's in the sidebar, the Open OS Ecosystem one)
05:50hertzWhat does SFR mean, though? Is it the recovery partition at the beginning of the disk?
05:50marcanit means the entirety of firmware and recovery that is global and not per-OS
05:50hertzOk, cool. Yeah, I've read the open OS ecosystem doc and made notes on it. Just haven't looked at those scripts in a while.
05:50hertzOk, got it. Thank you for that!
05:51marcanthat includes the stuff in NOR Flash, the stuff in iSCPreboot, the System Recovery partition, and also things like random auxiliary firmwares on external devices with flash
05:51marcanthe number the installer prints comes from a plist in iSCPreboot
05:52hertzOh, I see. That makes sense now.
05:52marcanfor m1n1/linux we guess an equivalent macOS version from the iBoot1 version (which isn't always unique but it covers what we care about) since that's all we get
05:53marcanFWIW, the trackpad behavior is that the device will show up with no firmware, but will fail if you try to open it and firmware is not available
05:53marcanI did it that way so you don't end up stuck on late firmware loads (unlike wifi, which just goes dead and worse, the module can't handle rebinds properly right now, it breaks when you try to use it later)
05:53hertzMy SFR version is 22.something and my OS version (xnu kernel version) is 21.something. Is that normal? I have 13.1 installed on the recovery partition but run 12.6.2 as my macos.
05:54marcanyes, that is normal
05:54hertzCool, thanks. It's a complicated boot process, but I've read though all the stuff on the wiki. Honestly, I understand Asahi's explanation better than the one in Apple Platform Security Guide :-)
05:55marcanyeah, apple's stuff is... kind of missing a lot of important details
05:55marcantook a while to make sense of it :)
05:55marcan(with some help from apple folks even)
05:55hertzHey, one other question. In the wiki it talks about setting one of the SMC keys (gioX where X is some char I forget) to turn on/off the wifi. How are you setting those keys? Just using the AppleSMC.kext in macos, or is there a linux way?
05:56hertzI'll say! (missing important details)
05:56marcanthe SMC GPIO is exposed as a standard GPIO controller in Linux and that GPIO is configured in the device tree as a power GPIO for PCIe
05:56hertzThat's awesome that they helped you. They're generally pretty secretive.
05:56marcanyou don't need to do anything other than have the relevant drivers
05:57marcanApple as a company are pretty secretive. Some Apple employees don't mind explaining already released software, that's just them being nice
05:57hertzOh interesting. So I can set that gpio under /sys somewhere?
05:57marcannone of this is supposed to be secret, it's just woefully underdocumented
05:57marcanyes, you can use the gpiochip chardev interface or the legacy sysfs stuff
05:57hertzYeah, that's my impression - not intended to be secret, but there's just very little information findable in good.
05:57bluetail8marcan about the race condition you mentioned, what does cc sven mean in that topic?
05:58marcanthough I don't recommend messing with SMC GPIOs too much since those are coming off of the PMU and you *could* break something maybe
05:58hertzOh, ok. gpiochip chardev is a good idea.
05:58marcanbluetail8: it means carbon copy sven
05:58hertzYeah, I understand the risks. I've already disassembled the machine and probed its test points and whatnot. If it dies, it dies... life will go on.
05:59hertzI wish I could get schematics and boardview for an M2 Air, but I can't find them online.
05:59bluetail8marcan I do not understand. Am I supposed to write a email, put you on the recipients list, but set sven on carbon copy (cc) ?
06:00marcanyeah, I only have the widely leaked ones (j293/j313/j314s)
06:00marcanbluetail8: no, you're supposed to wait for sven to comment here :p
06:00hertzYes, I've seen the m1 mbpro ones, but nothing for any M2 that I am aware of.
06:00hertzAnd the boards are nothing alike.
06:00marcanthe actual designs do share a lot though
06:00marcanelectrically
06:01marcanPMU GPIOs are pretty similar IIRC and some of the schematics have references to how other variants would be laid out
06:01hertzYeah, but the placement of test points and stuff like that -- that's really what I'm interested in. And that does seem to vary from what I can tell.
06:01marcanyeah, that would vary a lot
06:01marcanalso if you want to mess with SMC you might find the m1n1 tooling more useful
06:01marcanwhich runs over USB
06:01hertzI hope I can contribute to the project. Right now I am still getting my feet wet.
06:02marcantools/smccli.py and such
06:02marcanit can poll SMC keys so you can watch things like voltages/currents in real-ish time
06:02hertzOh ok, I'll take a look.
06:02hertzThat would be great.
06:02hertzIs the SMC integrated into the PMU chip on these A/S machines?
06:03marcanyou'll have to either install the m1n1 stub only (in expert mode) or do the m1n1 proxy backdoor dance on an asahi install (pretty sure that's on the wiki somewhere too, tl;dr csrutil disable for the asahi install then nvram boot-args-v
06:03marcanit's part of the SoC
06:03marcanthe PMU talks to it over SPMI
06:03marcanSMC just proxies that
06:03marcanyou can also talk to the PMU directly through another SPMI instance but I don't know what the commands for GPIOs are at that layer
06:04hertzSee I wish I could find the probe points for interfaces like that SPMI but without schematics and boardview I'm blind. Maybe I'll invest in an M1 just so I have a machine that matches the schematics I have.
06:05hertzWell, I'll start with the m1n1 stuff. Had not seen tools/smccli.py but it sounds like what I'm interested in.
06:06hertzOh nice!! This is A LOT of smc keys. This is the best thing I've seen.
06:06marcancaveat emptor some of those might be wrong
06:06marcanit's my living doc on this stuff
06:07hertzHow did you work all these out? Purely though software or also with hardware probing/
06:07marcanoh, I just realized smc_watcher is not pushed
06:07marcanlet me push that one
06:09marcansoftware, schematics, stuff from the diags images, etc
06:09marcanlots of guesswork
06:09marcanas I said lots might be wrong
06:09marcanbut it's a start on making sense of it all
06:10hertzI'll see if I can contribute anything as I get deeper into this stuff.
06:10marcanhttps://github.com/AsahiLinux/m1n1/blob/main/proxyclient/experiments/smc_watcher.py and that (which I just pushed) lets you monitor a subset of keys for changes, you can pass it a list of keys or key patterns (shell glob style)
06:11marcanit's how I worked out most of the battery stuff, starting at the output while charging/discharging/messing with things
06:11marcanon watcher you can ^C it and get the shell to make changes, then ^D to continue
06:11marcan*staring
06:11hertzThese look like a great scripts.
06:12hertzDo I do an m1n1-only install and then run them from that?
06:12marcanyou do a m1n1-only install and run them from another machine connected via USB
06:13hertzGot it. "proxyclient" - I didn't see that in the url initially
06:13marcanalso see the actual drivers we have so far for more fleshed-out logic, e.g. https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/power/supply/macsmc_power.c
06:13hertzYeah, I haven't tried the USB debug stuff yet. But it looks very interesting.
06:49bluetail8after lina created the gpu driver in rust, I thought every driver is going to be written in Rust now :D
06:58possiblemeatball has quit [Quit: Leaving]
06:59greguu has joined #asahi
07:06nicolas17 has quit [Ping timeout: 480 seconds]
07:24hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:49Dementor4 has joined #asahi
07:49SSJ_GZ has quit [Read error: No route to host]
07:50SSJ_GZ has joined #asahi
07:54mps has quit [Ping timeout: 480 seconds]
07:55Dementor has quit [Ping timeout: 480 seconds]
07:55Dementor4 is now known as Dementor
08:53mps has joined #asahi
09:01cylm has quit [Ping timeout: 480 seconds]
09:03jacksonchen666 has quit [Ping timeout: 480 seconds]
09:07jacksonchen666 has joined #asahi
09:36svenhm, looks like I need to spend some time trying to reproduce that issue now that multiple people ran into it
09:42hertz has joined #asahi
09:43corionAnyone else have issues with wifi disconnecting in gnome?
09:50corionMaybe I'm running multiple network managers..
09:52bluetail8sven is your response from the race condition of usb storage being not found unless you plug them in after a succesful boot?
09:53bluetail8(I use the USB type C ports since USB Type A seems less well performing)
09:57bluetail8thx for clarifying
10:56yumasi has joined #asahi
11:09eroc1990 has quit [Remote host closed the connection]
11:10eroc1990 has joined #asahi
11:25yumasi_ has joined #asahi
11:29yumasi has quit [Read error: Connection reset by peer]
11:29Dementor has quit [Read error: Connection reset by peer]
11:30Dementor has joined #asahi
11:31___nick___ has joined #asahi
12:01yumasi_ has quit [Remote host closed the connection]
12:03yumasi has joined #asahi
12:05___nick___ has quit []
12:09___nick___ has joined #asahi
12:10yumasi has quit [Remote host closed the connection]
12:11yumasi has joined #asahi
12:24yumasi has quit [Remote host closed the connection]
12:28yumasi has joined #asahi
12:29SmileyKeith has quit [Ping timeout: 480 seconds]
12:31yumasi has quit [Remote host closed the connection]
12:33yumasi has joined #asahi
13:04psykose has quit [Ping timeout: 480 seconds]
13:09yumasi has quit [Remote host closed the connection]
13:09yumasi has joined #asahi
13:17yumasi has quit [Ping timeout: 480 seconds]
13:25ximet has quit [Quit: The Lounge - https://thelounge.chat]
13:25ximet has joined #asahi
13:33bcrumb has joined #asahi
13:41yumasi has joined #asahi
13:50yumasi has quit [Remote host closed the connection]
13:51yumasi has joined #asahi
13:52yumasi has quit [Remote host closed the connection]
13:53nuup has quit [Quit: WeeChat 3.0]
13:53yumasi has joined #asahi
13:55Zopolis4 has quit [Quit: Connection closed for inactivity]
13:58bcrumb has quit [Quit: WeeChat 3.7.1]
13:59possiblemeatball has joined #asahi
14:01yumasi has quit [Ping timeout: 480 seconds]
14:10psykose has joined #asahi
14:24psykose_ has joined #asahi
14:26psykose_ has quit [Remote host closed the connection]
14:27psykose_ has joined #asahi
14:28psykose has quit [Ping timeout: 480 seconds]
14:53tiagom has joined #asahi
14:53tiagom has quit []
15:11corionI did in fact run multiple network managers. I removed the conflict and everything is working fine (re: wifi).
16:40mamba has quit [Quit: leaving]
16:49Nnubes256 has joined #asahi
16:51bluetail8 has quit [Ping timeout: 480 seconds]
17:23yumasi has joined #asahi
17:51roxfan2 has quit [Remote host closed the connection]
17:56roxfan has joined #asahi
18:04tpw_rulesanybody seen mtp occasionally failing to probe? https://gist.github.com/psanford/918bba69d22923a947c81dcee47c2e73 someone asked about this on nixos but i can't imagine it's specific to there
18:04tpw_rulesmore specifically it says that rtkit failed to wake up that coprocessor
18:04tpw_rules(or i guess that linux failed to wake up rtkit in that coprocessor)
18:05cylm has joined #asahi
18:08caef^ has quit [Remote host closed the connection]
18:14corionmarcan: are the funding goal percentages at pateron.com/marcan up to date? 20% seems a bit low, since it says "4k/month" is the initial goal. With 983 patreons, even if people only gave the smallest tier, you should be fairly close to 4k/month, or what am I missing? :)
18:15corionpatreon.com*
18:16j`eycorion: says 51% for me
18:17corionOh? I see 20% on the first goal, and 4% on the second.
18:18tpw_rulesit says 42% for me
18:18corionThat's weird.
18:21corionOr maybe I'm missing something.
18:22tpw_rulesi am not clued into the patreon habit but afaik there is nothing preventing a large fraction of patreons manually selecting down to $1/mo. there is nothing mandating the minimum tier
18:22tpw_rulesespecially since nothing offers any reward
18:23bluetail8 has joined #asahi
18:24corionThat makes sense, but surely the numbers should be the same for all of us, visiting the same url?
18:24tpw_rulesthat part i cannot explain
18:26sveniirc there was some bug with the currencies
18:26svenif you select eu vs usd the percentage changed
18:31corionIn that case, I hope 51% is the right number.
18:31yumasi has quit [Remote host closed the connection]
18:31tpw_rulesit says 100% on the first goal to me
18:32corionOh? So you have 42% on the second goal?
18:32corionThat's a lot better than 4%.
18:35Brainium has joined #asahi
19:00wCPO624365 has quit [Remote host closed the connection]
19:00wCPO624365 has joined #asahi
19:01rvalue- has joined #asahi
19:02rvalue has quit [Ping timeout: 480 seconds]
19:48psykose_ has quit [Remote host closed the connection]
19:48psykose has joined #asahi
20:21nicolas17 has joined #asahi
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:25Treibholz has quit [Quit: WeeChat 3.7.1]
21:36unicordion has joined #asahi
22:15possiblemeatball has quit [Quit: Leaving]
22:17yumasi has joined #asahi
22:25yumasi has quit [Ping timeout: 480 seconds]
22:27Brainium_ has joined #asahi
22:28Nnubes256 has quit [Quit: WeeChat 3.7.1]
22:33Brainium_ has quit []
22:34Brainium has quit [Ping timeout: 480 seconds]
22:41Zopolis4 has joined #asahi
22:52SSJ_GZ has quit [Ping timeout: 480 seconds]
23:20rayanamukami31 has joined #asahi
23:20rayanamukami3 has quit [Read error: Connection reset by peer]
23:20rayanamukami31 is now known as rayanamukami3
23:24DarkShadow44 has quit [Quit: ZNC - https://znc.in]
23:25DarkShadow44 has joined #asahi
23:30yumasi has joined #asahi
23:38yumasi has quit [Ping timeout: 480 seconds]
23:44jacksonchen666 has quit [Remote host closed the connection]
23:44jacksonchen666 has joined #asahi
23:45j1mryan has joined #asahi
23:57j1mryan1 has joined #asahi
23:58SmileyKeith has joined #asahi
23:59j1mryan has quit [Ping timeout: 480 seconds]
23:59j1mryan1 is now known as j1mryan
…