2022-12-04
00:11Dcow has joined #asahi
00:15user982492_ has joined #asahi
00:21user982492 has quit [Ping timeout: 480 seconds]
00:25Dcow has quit [Quit: dcow]
00:27Dcow has joined #asahi
00:44rayanamukami3 has quit [Read error: Connection reset by peer]
00:44rayanamukami3 has joined #asahi
00:54Dcow has quit [Quit: dcow]
00:58jacksonchen666 has quit [Remote host closed the connection]
01:04jacksonchen666 has joined #asahi
01:07goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:07user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:30capta1nt0ad has joined #asahi
01:41ChaiTRex has quit [Quit: ChaiTRex]
01:43ChaiTRex has joined #asahi
01:54capta1nt0ad has quit [Remote host closed the connection]
02:00DragoonAethis has quit [Quit: hej-hej!]
02:00ChaiTRex has quit [Remote host closed the connection]
02:00ChaiTRex has joined #asahi
02:00DragoonAethis has joined #asahi
02:16bgb has joined #asahi
02:55ma1 has joined #asahi
03:01jamespmorgan has joined #asahi
03:02ma has quit [Ping timeout: 480 seconds]
03:06jamespmo_ has quit [Ping timeout: 480 seconds]
03:58bgb has quit [Quit: WeeChat 3.5]
04:04ten15723 has quit [Ping timeout: 480 seconds]
04:06tobhe_ has joined #asahi
04:10pwg has quit [Server closed connection]
04:10pwg has joined #asahi
04:10tobhe has quit [Ping timeout: 481 seconds]
04:11user982492 has joined #asahi
04:18agraf has quit [Server closed connection]
04:18agraf has joined #asahi
04:22mewra has quit [Server closed connection]
04:23mewra has joined #asahi
04:45marvin24 has joined #asahi
04:49marvin24_ has quit [Ping timeout: 480 seconds]
04:59gruetzkopf has quit [Server closed connection]
04:59gruetzkopf has joined #asahi
05:00unko has quit [Server closed connection]
05:00unko has joined #asahi
05:03florolf has quit [Server closed connection]
05:03florolf has joined #asahi
05:11marcanI looked into the kernel side (at least flushing NVMe) but I didn't find an SMC event for it
05:12marcanso my idea was to just have the battery driver poll that every couple of seconds or something when the battery % is < 3% or something like that, and do a panic shutdown when it sees it
05:12marcanbut obviously that in and of itself wastes some power, so I'm not sure if it's a good idea (and it's not implemented yet anyway)
05:13marcanin that case it makes sense for the kernel to flush NVMe, yes, because that completes the safety scorecard for the NVMe deferred flush story
05:13marcanwithout this we still have that corner case where if your laptop runs out of battery you lose ostensibly committed data
05:14marcanI don't think it violates ordering guarantees, but I'm not sure anyone really stress-tested that
05:14marcane.g. if you rsync data over then delete the source, pull the plug, data is gone from both sides
05:15marcanI find that unacceptable, right now our window is much smaller than macOS though we still have it on desktops
05:16marcan(on desktops I'm not sure there's much we can do, but there's a kernel arg for those who want to disable the defers at the cost of significant flush performance)
05:17marcanSMC gives us three warnings, we do a software initiated hard shutdown on the third (which flushes NVMe)
05:18marcanI should throw SMC into ghidra, now that the t8103 iboot encryption keys leaked for some firmwares
05:18marcanI did look at some iOS SMC firmwares before, but they're missing a lot of stuff that's in the macs
05:18marcanwould be nice to know how a lot of this works (and looking at firmware is fairly safe from a cleanroom perspective, since you're just looking at the "other side" of what you have to implement)
05:19marcanit would be nice if there's some flag we can enable to actually get an event delivered on battery critical
05:21nicolas17Plasma powerdevil settings are "critical level: 5%; at critical level: do nothing" so I think that was *not* it
05:22m42uko has quit [Server closed connection]
05:22m42uko has joined #asahi
05:24nicolas17"kernel: macsmc-rtkit 23e400000.smc: RTKit: syslog message: extPwr.cpp:414: okBootiBoot=1 okBootAP_OS=0 ACSt=0x03 sel=0 AcPwr=0 fullPwr=0 battCap=149"
05:31j`ey has quit [Server closed connection]
05:31j`ey has joined #asahi
05:31marcannicolas17: the okBootiBoot=1/okBootAP_OS=0 thing is interesting, it suggests SMC thinks the battery is now too dead to actually boot the OS, which is an interesting state to be in
05:32marcanbut lasting 10 minutes after that is more than I expected, I wonder if there's some event/prop I missed there
05:32marcanbecause that condition is exactly what I'd want to use to trigger a clean shutdown from userspace
05:33nicolas17UPower.conf contains PercentageCritical=5, PercentageAction=2, CriticalPowerAction=HybridSleep
05:33nicolas17and it's documented that "if HybridSleep is not supported, Hibernate is used, if Hibernate is not supported, PowerOff is used"
05:33nicolas17so the answer is ultimately yes, asahi-the-distro does cleanly shutdown on low battery :P
05:34marcanit's interesting though, because I think we use the "UI capacity" to report battery %, and I'd expect Apple to let that drop to 0% before initiating shutdown (even though there's still reserve power available)
05:34marcanand yet you had 10 minutes after SMC reported, apparently, "battery too low to boot". So maybe that state is indeed higher than 0% for macOS
05:36chadmedits probably fine if we leave a little extra in the tank in terms of "real" capacity/critical levels just to preserve the cells given that (at the moment) the battery is subject to higher sustained discharge rate and chassis temp
05:41marcanyou can from m1n1, but let me just add something for this into kboot real quick because we're going to want it handy
05:44nicolas17UX-wise there is something confusing for users, the shutdown was done directly by upower, but Plasma has its own "shutdown on low battery" setting in the GUI (maybe handled by powerdevil?), and that was *disabled*... which means the settings I see in the GUI are not what will actually happen
05:47marcanmaybe the UI should know about upower settings and display something like "UPower is configured to perform a critical shutdown at 2%"
05:54Core3294 has joined #asahi
05:54Core3294 is now known as blackMysticCat
05:55blackMysticCathas anyone gotten sway to work successfully? im having trouble changing the resolution. the text is miniscule, but running "sway output Unknown-1 resolution 1920x1080" has no effect
06:01marcanblackMysticCat: you cannot change the resolution on internal displays (they do not support it).
06:02blackMysticCatah. is there any work around for the miniscule text in that case?
06:02imobilis has quit [Server closed connection]
06:03imobilis has joined #asahi
06:03blackMysticCatgotcha. I'll look into that
06:04blackMysticCatthanks for the link!! and the amazing distro! really appreciate your hard work :) its gotten me excited about linux again
06:04blackMysticCat has left #asahi [#asahi]
06:07Xesxen has quit [Server closed connection]
06:07Xesxen has joined #asahi
06:17merry_ has quit [Server closed connection]
06:18merry has joined #asahi
06:20jannau has quit [Server closed connection]
06:20jannau has joined #asahi
06:24dhewg has quit [Server closed connection]
06:24dhewg has joined #asahi
06:31nzzz has quit [Server closed connection]
06:31nzzz has joined #asahi
06:34Shiz has quit [Server closed connection]
06:34Shiz has joined #asahi
06:41mort_ has quit [Server closed connection]
06:41mort_ has joined #asahi
06:49SSJ_GZ has joined #asahi
06:53user982492_ has joined #asahi
06:54nicolas17marcan: did you already push a release? (I don't know what you meant by "quickly" in this context :D)
06:58user982492 has quit [Ping timeout: 480 seconds]
07:01maz has quit [Server closed connection]
07:01marcannicolas17: not yet, kind of got carried away also implementing the DCP/GPU firmware versioning while I was here, almost done
07:01maz has joined #asahi
07:09corionYeah, I gotta agree with blackMysticCat in backlog; I've daily driven linux as my primary OS since 1994, but I don't recall being this excited for linux on the desktop in a long time.
07:10corionIf I can use apple hardware with m1 AND linux, I no longer have to compromise on anything.
07:13marcannicolas17: update asahi-dev, reboot, and try `grep -a . /proc/device-tree/chosen/*-version`
07:14sven has quit [Server closed connection]
07:14sven has joined #asahi
07:14marcanspeaking of, we really should start providing some kind of `asahi-diagnose` script that just collects All The Info and requiring it for bug reports
07:27chadmed_ has joined #asahi
07:27JoshuaAshton has quit [Server closed connection]
07:28JoshuaAshton has joined #asahi
07:30chadmed_ has quit [Remote host closed the connection]
07:33nikorai_ has quit [Server closed connection]
07:33marcanm1n1 infers system firmware version from iBoot version and I used the table on the iPhone wiki
07:33chadmed_ has joined #asahi
07:35nikorai has joined #asahi
07:36eloy__ has quit [Server closed connection]
07:36eloy_ has joined #asahi
07:36user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:39marcannicolas17: the IPSW has all 12.6.1 stuff, but who knows, maybe the online update is different
07:42pg12 has quit [Server closed connection]
07:43pg12 has joined #asahi
07:50nicolas17x.0 beta 1 is normally behind auth and you need to be a paying member of the developer program, later betas are on the usual CDN
07:51nicolas17damn I wonder who got that into archive.org, they must care about data preservation >.>
07:52marcanwe need to start getting the matching InstallAssistant for every blessed firmware version into archive.org, otherwise doing dev installs for the hypervisor becomes a giant pain since you can only do a full restore with the IPSW
07:53nicolas17yeah, IPSWs tend to stay in the CDN forever with very few exceptions, InstallAssistants disappear
07:54sneak has quit [Server closed connection]
07:55sneak has joined #asahi
07:55nicolas17Apple recently deleted Xcode 14 betas before I got around to archiving them, I have now rescued the Xcode packages but I'm still missing a few "command line tools" packages
07:59nicolas17marcan: maybe you can convince siguza to save install assistants, he already has a big NAS with IPSWs :P
08:01corionThe performance hits I'm getting (small input lag with touchpad) on linux-asahi-edge could be because of DCP vs lack of GPU acceleration, yeah? I dont get it on linux-asahi.
08:10nicolas17 has quit [Quit: Konversation terminated!]
08:12q3k2 has quit [Server closed connection]
08:12q3k2 has joined #asahi
08:14LinuxM1 has joined #asahi
08:25TellowKrinkle has quit [Server closed connection]
08:25TellowKrinkle has joined #asahi
08:31highvoltage[m] has quit [Server closed connection]
08:32highvoltage[m] has joined #asahi
08:41jamespmo_ has joined #asahi
08:48jamespmorgan has quit [Ping timeout: 480 seconds]
09:07zkrx has quit [Server closed connection]
09:07zkrx has joined #asahi
09:09LinuxM1 has quit [Quit: Leaving]
09:17SSJ_GZ has quit [Read error: No route to host]
09:17SSJ_GZ has joined #asahi
09:20opotin has quit [Server closed connection]
09:21opotin has joined #asahi
09:31LinuxM1 has joined #asahi
09:58goldsoultheory has joined #asahi
10:06CyrinuxHi, is it possible to grow up a Asahi partition from macosx with diskutil ? I understand that filesystem ext4 is not recognize and so this fail. Anybody already success? Should I boot from Asahi on usb then parted and resize2fs?
10:14giskard has joined #asahi
10:16LinuxM1 has quit [Quit: Leaving]
10:40chadmed_i put to you that our branches might be deliberately based on RCs to dissuade people from trying to push this stuff into prod
10:44chadmed_you might want to pick cpufreq out of linux-asahi, i think m1n1 puts the secondaries into not-the-highest pstate
10:46das_jchadmed_: do you mean this set? https://lore.kernel.org/linux-pm/20220504075153.185208-1-marcan@marcan.st/
10:51le0n has quit [Quit: see you later, alligator]
10:54gabuscus has quit []
10:54gabuscus has joined #asahi
10:59Dcow has joined #asahi
11:01le0n has joined #asahi
11:18weitcis has joined #asahi
11:27weitcis has quit [Ping timeout: 480 seconds]
11:28thansen has quit [Quit: The Lounge - https://thelounge.github.io]
11:28das_jwell well well looks like I'll do a surprise visit at the office on a sunday because the mac does not boot anymore :D
11:41Dcow has quit [Quit: dcow]
12:01mps has quit [Quit: Lost terminal]
12:02LinuxM2 has joined #asahi
12:06LinuxM2 has quit []
12:06LinuxM2 has joined #asahi
12:06mps has joined #asahi
12:11VasilisT- has joined #asahi
12:15VasilisTheChu has quit [Read error: No route to host]
12:32LinuxM1_ has joined #asahi
12:32LinuxM2 has quit [Read error: Connection reset by peer]
13:10xcpy0 has quit [Quit: The Lounge - https://thelounge.chat]
13:14steffen[m]is msbc supposed to work currently with pipewire? I have no sound with hfp/msbc using airpods pro 1
13:14steffen[m]This might be related?: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2689
13:16amarioguy2 has joined #asahi
13:18amarioguy has quit [Ping timeout: 480 seconds]
13:33riker77 has quit [Quit: Quitting IRC - gone for good...]
13:34thansen has joined #asahi
13:37LinuxM1_ has quit [Quit: Leaving]
13:38LinuxM2 has joined #asahi
13:42amarioguy2 is now known as amarioguy
13:45das_jWhat do I do with "kernel found but no devicetree for apple,j27 available"? Update m1n1 as well?
13:45riker77 has joined #asahi
13:46LinuxM2 has quit [Quit: Leaving]
13:47LinuxM2 has joined #asahi
13:47LinuxM2 has quit []
13:49LinuxM2 has joined #asahi
13:50jannauis it "apple,j27" or "apple,j274"? I assume the later. that sounds more like update-m1n1 ran but didn't find dtbs. you want to look at $DTBS in update-m1n1 / m1n1's config ($CONFIG)
13:54jannauthere should be a /m1n1/boot.bin.old on the ESP, that might still work if copied back to /m1n1/boot.bin
13:58LinuxM2 has quit [Quit: Leaving]
14:04xcpy0 has joined #asahi
14:04xcpy0Hey guys, i have some questions about asahi, i hope this is the right channel, 1) is it possible to access (read only is fine) macos partition from asahi ? 2) is there some guide on how to use the WIP GPU driver ?
14:09svenxcpy0: it’s not possible to access the macOS partition because it’s apfs and sep-encrypted and neither is supported yet
14:09svenand there’s no guide for the gpu driver because it’s not ready for testing by end users yet
14:47das_jjannau: they are not built if you accidentially use a x86_64 config instead of an aarch64 one
15:15chadmed_ has quit [Remote host closed the connection]
15:31lawrence has quit [Remote host closed the connection]
15:33lawrence has joined #asahi
15:37Chainfire has joined #asahi
15:39axt has joined #asahi
15:39ChainfireAnyone know of any livecd that works to boot from uboot to have a GUI to use gparted? I have an old Debian one that I think Glanzman made but nowadays it reboots after a minute or so...
15:39styrowolf has joined #asahi
15:41styrowolf has quit [Remote host closed the connection]
15:42ciggi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
15:43user982492 has joined #asahi
15:43ciggi has joined #asahi
15:44ma2 has joined #asahi
15:46user982492 has quit [Read error: Connection reset by peer]
15:46user982492 has joined #asahi
15:48ma1 has quit [Ping timeout: 480 seconds]
15:59ma2 has quit [Ping timeout: 480 seconds]
16:24Glanzmann has joined #asahi
16:24ma2 has joined #asahi
16:26GlanzmannChainfire: My live usb stick should work. Of course you need the right '/boot/efi/m1n1/boot.bin'. The one for the current livecd image you can find here (make a backup of your old boot.bin) https://tg.st/u/u-boot.bin
16:27GlanzmannChainfire: You can copy it also from macos. 'diskutil list; diskutil mount disk...; cd /Volumes/...; cp ; cp; cd / ; diskutil umount'.
16:28jluthra has quit [Remote host closed the connection]
16:28GlanzmannChainfire: YOu can find the latest version here: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/ Godspeed.
16:29jluthra has joined #asahi
16:29Glanzmann has left #asahi [#asahi]
16:36user982492 has quit [Read error: Connection reset by peer]
16:36user982492_ has joined #asahi
16:41ma2 has quit [Ping timeout: 480 seconds]
16:58ma2 has joined #asahi
17:01ma3 has joined #asahi
17:07ma2 has quit [Ping timeout: 480 seconds]
17:19creechy has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
17:24creechy has joined #asahi
17:24Dkey has joined #asahi
17:26LinuxM1 has joined #asahi
17:29Dcow has joined #asahi
17:34Chainfire has quit [Remote host closed the connection]
17:36LinuxM1 has quit [Quit: Leaving]
17:49Chainfire has joined #asahi
17:55Dcow has quit [Quit: dcow]
18:16LinuxM2 has joined #asahi
18:34Chainfire has quit [Remote host closed the connection]
18:36gladiac has joined #asahi
18:37Dcow has joined #asahi
18:46janrinze has joined #asahi
18:54maximiliangaedig has joined #asahi
18:56maximiliangaedigHi, how does it look with SIP after installation? I installed it from macOS and followed the installer, what mode is my SIP in in this case and what is the most secure mode I can put it in?
18:56maximiliangaedigI mean System Integrity Protection in this case
18:57ChaosPrincessYour macos is full security
18:57ChaosPrincessasahi is permissive
18:57ChaosPrincessthey do not affect each other
18:57maximiliangaedigah okay so no security implications for macOS?
18:57maximiliangaedigAwesome
18:58ChaosPrincesswell, there is the security implication that find my becomes less effective
18:58maximiliangaedigI finally checked asahi out today, have to say great work, everything was working so well
18:58ChaosPrincessif your machine is stolen, it can still be used as a linux box instead of being completely remotely nuked
18:59maximiliangaedigcan the attacker delete macos?
19:00maximiliangaedigAnd the tracking of the device? I think macs can be tracked even when off right?
19:00maximiliangaedigOr idk if that was only ios
19:01jacksonchen666 has quit [Ping timeout: 480 seconds]
19:03jacksonchen666 has joined #asahi
19:06maximiliangaedigThis "Find My Network" option, can it be somehow disabled without having my admin password?
19:07maximiliangaedigIn the case someone can log onto asahi
19:08maximiliangaedigAlso shouldn't it be impossible to boot from a USB? And if so could I protect myself from such an attack by just locking down linux well enough?
19:10ChaosPrincessUsb boot is possible, and yes, you can lock down linux enough, its just that the default install does not do that.
19:13maximiliangaedigCan I disable USB boot so it only accepts recovery things for MacOS or is that still the case when installing asahi?
19:14ChaosPrincessYou need to create a secure boot chain from u-boot to whatever your bootloader is, and the kernel.
19:15ChaosPrincessImo, just dont bother for now unless you like tinkering with linux
19:17corionI have a curious issue sometimes when I boot up asahi-linux (standard, not edge). Trackpad and keyboard doesnt work post grub. To solve it I have to reboot again and then it will work just fine.
19:18gladiac has quit [Quit: k thx bye]
19:20maximiliangaedigI love tinkering with linux, I missed it when switching to a macbook
19:20maximiliangaedigWill bother with that later
19:25maximiliangaedigIs it currently a common issue that the screen is generally laggy (like 30fps on gnome) and is it currently possible to enable 120hz? I have read the wiki and saw the screen is supported but no details on that
19:28user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:28jamespmorgan has joined #asahi
19:29joske has joined #asahi
19:30joske has quit [Remote host closed the connection]
19:31user982492 has joined #asahi
19:35jamespmo_ has quit [Ping timeout: 480 seconds]
19:35joske has joined #asahi
19:37joske has quit [Remote host closed the connection]
19:38ChaosPrincessTry using edge kernel, iirc non-edge uses the boot framebuffer instead of dcp
19:44Dcow has quit [Quit: dcow]
19:50LinuxM2 has quit [Quit: Leaving]
19:55maximiliangaedigI have the edge
19:55ChaosPrincessThen go to non-edge :P
19:56maximiliangaedigthat laggyness propably can't be fixed without the GPU driver
19:56maximiliangaedigbut 120hz isn't in the display options
19:56maximiliangaedigChaosPrincess: had it before edge
19:56maximiliangaedigboth kernels have those problems
19:57maximiliangaedigedge looks a bitbetter
20:02jannaunon-edge should be faster/less laggy, with wayland edge is tear free. 120Hz is not yet supported since it's more complicated than selecting a 120Hz mode
20:08fmstrat has quit [Quit: WeeChat 3.1]
20:20leo60228 has joined #asahi
20:23Dcow has joined #asahi
20:25Dcow has quit [Remote host closed the connection]
20:26Dcow has joined #asahi
20:30Dcow has quit [Remote host closed the connection]
20:30Dcow has joined #asahi
20:44tpw_rulesdas_j: sorry, i have not run it on a machine with an integrated ethernet interface in a very long time. iirc some variants of that require firmware. does wifi work properly? if not then maybe it's a firmware issue. otherwise the kernel config is at this point essentially identical to the reference distro
20:52das_jhmmm weird but thanks. I've had missing firmware but after fixing that it still didn't work
20:53Dcow has quit [Remote host closed the connection]
21:04tpw_rulesyeah i would not expect that to have trouble. can you wait 10 or so minutes? there was an issue where it would take forever to fail to load unnecessary firmware but afaik that was fixed long ago
21:14das_jthe same config worked on 22.05 which is why I'm assuming something went wrong there. I can also not use the latest kernel because it doesn't build and I need to go one rc back
21:15das_jI'll try to get a recovery shell in the next couple of days, not sure when because people need the build capacity at regular office hours :/
21:15tpw_rulesdid you do something funky to the kernel package in nixos-m1? i have not tried the official 22.11 release on my machine yet but very strange that it does not build
21:21tpw_rulesbut i still wouldn't expect ethernet to be up in initrd without changing boot.initrd.availableKernelModules
21:21Dkey has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
21:26Glanzmann has joined #asahi
21:27Glanzmanndas_j: Regarding the ethernet interface issue on mac mini. On Debian with newer kernels the interface was renamed. It was earlier enp3s0 and lately end0. I had enough of it and run on my mini now the kernel commandline: net.ifnames=0 and use 'eth0'.
21:28GlanzmannDebian showed in 'ip a s' the interface name as end0 and altname as enp3s0 but at least Debian was not taking up the interface.
21:29Glanzmann has quit []
21:30lawrence has quit [Remote host closed the connection]
21:30leo60228 has quit []
21:31leo60228 has joined #asahi
21:33lawrence has joined #asahi
21:48leo60228 has quit []
21:49leo60228 has joined #asahi
22:27frytaped has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
22:33frytaped has joined #asahi
22:41Dcow has joined #asahi
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:00user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:01SSJ_GZ has quit [Ping timeout: 480 seconds]
23:03giskard has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
23:03giskard has joined #asahi
23:11giskard has quit [Ping timeout: 480 seconds]
23:13axt has quit [Quit: Leaving.]
23:37thevar1able has quit []
23:44maximiliangaedig has quit [Ping timeout: 480 seconds]
23:45giskard has joined #asahi
23:48povik has quit [Remote host closed the connection]
23:56giskard has quit [Ping timeout: 480 seconds]