rayanamukami3 has quit [Read error: Connection reset by peer]
rayanamukami3 has joined #asahi
Dcow has quit [Quit: dcow]
jacksonchen666 has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi
goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
capta1nt0ad has joined #asahi
ChaiTRex has quit [Quit: ChaiTRex]
ChaiTRex has joined #asahi
capta1nt0ad has quit [Remote host closed the connection]
DragoonAethis has quit [Quit: hej-hej!]
ChaiTRex has quit [Remote host closed the connection]
ChaiTRex has joined #asahi
DragoonAethis has joined #asahi
bgb has joined #asahi
ma1 has joined #asahi
jamespmorgan has joined #asahi
ma has quit [Ping timeout: 480 seconds]
jamespmo_ has quit [Ping timeout: 480 seconds]
bgb has quit [Quit: WeeChat 3.5]
ten15723 has quit [Ping timeout: 480 seconds]
tobhe_ has joined #asahi
pwg has quit [Server closed connection]
pwg has joined #asahi
tobhe has quit [Ping timeout: 481 seconds]
user982492 has joined #asahi
<nicolas17>
hm does asahi shut down cleanly if it runs low on battery?
agraf has quit [Server closed connection]
agraf has joined #asahi
mewra has quit [Server closed connection]
mewra has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
gruetzkopf has quit [Server closed connection]
gruetzkopf has joined #asahi
unko has quit [Server closed connection]
unko has joined #asahi
florolf has quit [Server closed connection]
florolf has joined #asahi
<marcan>
that's up to userspace
<marcan>
I looked into the kernel side (at least flushing NVMe) but I didn't find an SMC event for it
<marcan>
what I did find is an SMC property that flips on
<marcan>
so 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
<marcan>
but 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)
<tpw_rules>
why not leave it up to userspace?
<marcan>
this is about last-gasp panic shutdown
<marcan>
the property goes high like 10 seconds before hard shutdown or something
<tpw_rules>
just to make sure the nvme is flushed properly?
<marcan>
in that case it makes sense for the kernel to flush NVMe, yes, because that completes the safety scorecard for the NVMe deferred flush story
<marcan>
without this we still have that corner case where if your laptop runs out of battery you lose ostensibly committed data
<tpw_rules>
ahh
<marcan>
(up to one second, but still)
<tpw_rules>
i forget, does it actually violate ordering guarantees?
<marcan>
I don't think it violates ordering guarantees, but I'm not sure anyone really stress-tested that
<tpw_rules>
that's what will really screw your fs
<marcan>
yeah, I know
<marcan>
FWIW macOS has this problem, at least on desktops if you pull the plug
<marcan>
e.g. if you rsync data over then delete the source, pull the plug, data is gone from both sides
<marcan>
I find that unacceptable, right now our window is much smaller than macOS though we still have it on desktops
<marcan>
but on laptops it should be possible to close it entirely
<marcan>
(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)
<marcan>
we already have panic shutdown when you hold the power button, FWIW
<marcan>
SMC gives us three warnings, we do a software initiated hard shutdown on the third (which flushes NVMe)
<marcan>
instead of waiting for it to kill power itself
<marcan>
I should throw SMC into ghidra, now that the t8103 iboot encryption keys leaked for some firmwares
<marcan>
I did look at some iOS SMC firmwares before, but they're missing a lot of stuff that's in the macs
<marcan>
would 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)
<marcan>
it would be nice if there's some flag we can enable to actually get an event delivered on battery critical
<nicolas17>
hm looking at logs I think my system *did* shut down cleanly
<nicolas17>
but I can't figure out what triggered the shutdown
<nicolas17>
Plasma powerdevil settings are "critical level: 5%; at critical level: do nothing" so I think that was *not* it
<nicolas17>
"systemd-logind[456]: The system will power off now!"
<nicolas17>
but could be coincidence (10 minutes delay seems odd!)
<marcan>
that sounds like something userspace, yeah
j`ey has quit [Server closed connection]
j`ey has joined #asahi
<nicolas17>
found it
<marcan>
nicolas17: 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
<nicolas17>
upower did it
<marcan>
but lasting 10 minutes after that is more than I expected, I wonder if there's some event/prop I missed there
<marcan>
because that condition is exactly what I'd want to use to trigger a clean shutdown from userspace
<marcan>
(and then later the panic one I found from the kernel)
<nicolas17>
and it's documented that "if HybridSleep is not supported, Hibernate is used, if Hibernate is not supported, PowerOff is used"
<marcan>
that makes sense
<nicolas17>
so the answer is ultimately yes, asahi-the-distro does cleanly shutdown on low battery :P
<nicolas17>
because it ships upower configured like this
<marcan>
it'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)
<nicolas17>
sec, upower logs can help here
<marcan>
and 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
<nicolas17>
as far as upower knew, battery was 3% when the SMC reported that
<marcan>
looks like the current behavior is "good enough" then, if it shuts down at 2%
<chadmed>
its 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
<marcan>
though I still want to find an explicit event I can use to trigger a panic kernel flush
<marcan>
I don't recall that syslog at all from my SMC experiments, maybe it's new?
<marcan>
nicolas17: what's your SFR? (i.e. newest version of macOS ever installed)
<marcan>
(I should make m1n1 forward this stuff to the DT...)
<nicolas17>
never downgraded or did a second install
<nicolas17>
can I get the actual SFR version somehow?
<marcan>
you can from m1n1, but let me just add something for this into kboot real quick because we're going to want it handy
<nicolas17>
I haven't yet tried m1n1 console
<marcan>
give me a sec, I'll add this quickly and push out a release ;)
<marcan>
it's important stuff to have access to
<nicolas17>
UX-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
<nicolas17>
that could be something to discuss in KDE upstream
<nicolas17>
I don't think I have tried running my non-Mac non-Arch Linux laptop empty :)
<marcan>
well, it was at 2%
<marcan>
your computer is going to shut down when the battery dies whether you want it to or not
<marcan>
it makes sense for there to be a forced last-measure shutdown
<nicolas17>
of course
<nicolas17>
but then the GUI should say it's going to
<marcan>
maybe the UI should know about upower settings and display something like "UPower is configured to perform a critical shutdown at 2%"
<nicolas17>
(isn't "10 minutes to go down by 1%" awesome btw? :P)
Core3294 has joined #asahi
Core3294 is now known as blackMysticCat
<blackMysticCat>
has 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
<marcan>
nicolas17: it is :)
<marcan>
blackMysticCat: you cannot change the resolution on internal displays (they do not support it).
<blackMysticCat>
ah. is there any work around for the miniscule text in that case?
<marcan>
enable HiDPI support
<nicolas17>
sway needs to use a bigger font, not a different resolution...
<blackMysticCat>
thanks for the link!! and the amazing distro! really appreciate your hard work :) its gotten me excited about linux again
<marcan>
thanks :)
blackMysticCat has left #asahi [#asahi]
Xesxen has quit [Server closed connection]
Xesxen has joined #asahi
merry_ has quit [Server closed connection]
merry has joined #asahi
jannau has quit [Server closed connection]
jannau has joined #asahi
dhewg has quit [Server closed connection]
dhewg has joined #asahi
nzzz has quit [Server closed connection]
nzzz has joined #asahi
Shiz has quit [Server closed connection]
Shiz has joined #asahi
mort_ has quit [Server closed connection]
mort_ has joined #asahi
SSJ_GZ has joined #asahi
user982492_ has joined #asahi
<nicolas17>
marcan: did you already push a release? (I don't know what you meant by "quickly" in this context :D)
user982492 has quit [Ping timeout: 480 seconds]
maz has quit [Server closed connection]
<marcan>
nicolas17: not yet, kind of got carried away also implementing the DCP/GPU firmware versioning while I was here, almost done
maz has joined #asahi
<corion>
Yeah, 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.
<corion>
If I can use apple hardware with m1 AND linux, I no longer have to compromise on anything.
<corion>
So, thanks for that marcan et al!
<marcan>
nicolas17: update asahi-dev, reboot, and try `grep -a . /proc/device-tree/chosen/*-version`
<marcan>
added a bunch of goodies :)
sven has quit [Server closed connection]
sven has joined #asahi
<marcan>
speaking of, we really should start providing some kind of `asahi-diagnose` script that just collects All The Info and requiring it for bug reports
<nicolas17>
hm what do you mean by asahi-dev?
<nicolas17>
ah pacman repo?
<nicolas17>
marcan: do I just change pacman.conf to use -dev and run pacman -Syu?
<marcan>
yeah
<nicolas17>
ah cool, m1n1 is the *only* update, guess the non-dev repo is in sync now :)
<marcan>
it is, if you just updated, asahi-scripts was the last thing that went in a bit earlier
<marcan>
not bad, we've got our 12.3 baseline and some beta to look for new goodies
<nicolas17>
x.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
<marcan>
yeah
<marcan>
guess I'll look at the beta one and then see how much backports by just trying it
<nicolas17>
damn I wonder who got that into archive.org, they must care about data preservation >.>
<marcan>
and yet we lost the 12.4 InstallAssistant...
<marcan>
we 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
<marcan>
and Apple does pull those from their CDN, unlike IPSWs :(
<nicolas17>
yeah, IPSWs tend to stay in the CDN forever with very few exceptions, InstallAssistants disappear
sneak has quit [Server closed connection]
sneak has joined #asahi
<nicolas17>
Apple 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
<nicolas17>
and the split-off tvOS and watchOS simulators are probably a lost cause
<nicolas17>
marcan: maybe you can convince siguza to save install assistants, he already has a big NAS with IPSWs :P
<corion>
The 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.
<corion>
It's miniscule, but noticeable.
<corion>
And, I'm guessing, expected.
<nicolas17>
welp I have to be at an airport in 10 hours and I should get sleep at some point
<corion>
Perhaps off topic for this channel. Not sure.
<nicolas17>
my message sure is :p
<corion>
lol
<corion>
Seems relevant if you ask me.
nicolas17 has quit [Quit: Konversation terminated!]
<marcan>
nicolas17: I have a big NAS too :p
<marcan>
corion: yes
q3k2 has quit [Server closed connection]
q3k2 has joined #asahi
LinuxM1 has joined #asahi
<corion>
marcan: cheers
<corion>
small price to pay if I want to work on my tan using 100% brightness.
<marcan>
ha :p
TellowKrinkle has quit [Server closed connection]
TellowKrinkle has joined #asahi
highvoltage[m] has quit [Server closed connection]
highvoltage[m] has joined #asahi
jamespmo_ has joined #asahi
jamespmorgan has quit [Ping timeout: 480 seconds]
zkrx has quit [Server closed connection]
zkrx has joined #asahi
LinuxM1 has quit [Quit: Leaving]
SSJ_GZ has quit [Read error: No route to host]
SSJ_GZ has joined #asahi
opotin has quit [Server closed connection]
opotin has joined #asahi
LinuxM1 has joined #asahi
goldsoultheory has joined #asahi
<Cyrinux>
Hi, 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?
<Cyrinux>
Or I can install on the disk another Asahi then resize the first from here?
giskard has joined #asahi
LinuxM1 has quit [Quit: Leaving]
<das_j>
Maybe I'm just not finding it but is there a 6.0 asahi kernel tag that is not a rc?
riker77 has quit [Quit: Quitting IRC - gone for good...]
thansen has joined #asahi
LinuxM1_ has quit [Quit: Leaving]
LinuxM2 has joined #asahi
amarioguy2 is now known as amarioguy
<das_j>
Yeah remote kernel update
<das_j>
Best idea ever
<das_j>
What do I do with "kernel found but no devicetree for apple,j27 available"? Update m1n1 as well?
riker77 has joined #asahi
LinuxM2 has quit [Quit: Leaving]
LinuxM2 has joined #asahi
LinuxM2 has quit []
LinuxM2 has joined #asahi
<jannau>
is 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)
<das_j>
Aww great back to macos it is
<das_j>
It's 274
<jannau>
there should be a /m1n1/boot.bin.old on the ESP, that might still work if copied back to /m1n1/boot.bin
LinuxM2 has quit [Quit: Leaving]
xcpy0 has joined #asahi
<xcpy0>
Hey 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 ?
<das_j>
well looks like I didn't build the dtbs
<das_j>
good work, me
<sven>
xcpy0: it’s not possible to access the macOS partition because it’s apfs and sep-encrypted and neither is supported yet
<sven>
and there’s no guide for the gpu driver because it’s not ready for testing by end users yet
<jannau>
das_j: they should be built but are not installed by default
<das_j>
jannau: they are not built if you accidentially use a x86_64 config instead of an aarch64 one
<das_j>
Who would have thought
chadmed_ has quit [Remote host closed the connection]
lawrence has quit [Remote host closed the connection]
lawrence has joined #asahi
Chainfire has joined #asahi
axt has joined #asahi
<Chainfire>
Anyone 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...
styrowolf has joined #asahi
<Chainfire>
Various distro livecds that I've tried do not boot :(
styrowolf has quit [Remote host closed the connection]
user982492 has quit [Read error: Connection reset by peer]
user982492 has joined #asahi
ma1 has quit [Ping timeout: 480 seconds]
ma2 has quit [Ping timeout: 480 seconds]
Glanzmann has joined #asahi
ma2 has joined #asahi
<Glanzmann>
Chainfire: 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
<Glanzmann>
Chainfire: You can copy it also from macos. 'diskutil list; diskutil mount disk...; cd /Volumes/...; cp ; cp; cd / ; diskutil umount'.
jluthra has quit [Remote host closed the connection]
user982492 has quit [Read error: Connection reset by peer]
user982492_ has joined #asahi
ma2 has quit [Ping timeout: 480 seconds]
ma2 has joined #asahi
ma3 has joined #asahi
ma2 has quit [Ping timeout: 480 seconds]
creechy has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
creechy has joined #asahi
Dkey has joined #asahi
LinuxM1 has joined #asahi
Dcow has joined #asahi
Chainfire has quit [Remote host closed the connection]
LinuxM1 has quit [Quit: Leaving]
<Tramtrist>
oh M2 speakers are now TBA :/ headphones it is!
Chainfire has joined #asahi
Dcow has quit [Quit: dcow]
LinuxM2 has joined #asahi
Chainfire has quit [Remote host closed the connection]
gladiac has joined #asahi
Dcow has joined #asahi
janrinze has joined #asahi
maximiliangaedig has joined #asahi
<maximiliangaedig>
Hi, 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?
<maximiliangaedig>
I mean System Integrity Protection in this case
<sven>
sip is configured per installation
<ChaosPrincess>
Your macos is full security
<ChaosPrincess>
asahi is permissive
<sven>
and it cannot be enabled for asahi linux for obvious reasons ;)
<ChaosPrincess>
they do not affect each other
<maximiliangaedig>
ah okay so no security implications for macOS?
<ChaosPrincess>
None
<maximiliangaedig>
Awesome
<ChaosPrincess>
well, there is the security implication that find my becomes less effective
<maximiliangaedig>
I finally checked asahi out today, have to say great work, everything was working so well
<maximiliangaedig>
wdym?
<ChaosPrincess>
if your machine is stolen, it can still be used as a linux box instead of being completely remotely nuked
<maximiliangaedig>
can the attacker delete macos?
<ChaosPrincess>
Yes
<maximiliangaedig>
And the tracking of the device? I think macs can be tracked even when off right?
<maximiliangaedig>
Or idk if that was only ios
jacksonchen666 has quit [Ping timeout: 480 seconds]
jacksonchen666 has joined #asahi
<maximiliangaedig>
This "Find My Network" option, can it be somehow disabled without having my admin password?
<maximiliangaedig>
In the case someone can log onto asahi
<maximiliangaedig>
Also 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?
<ChaosPrincess>
Usb boot is possible, and yes, you can lock down linux enough, its just that the default install does not do that.
<maximiliangaedig>
Can I disable USB boot so it only accepts recovery things for MacOS or is that still the case when installing asahi?
<ChaosPrincess>
You need to create a secure boot chain from u-boot to whatever your bootloader is, and the kernel.
<ChaosPrincess>
Imo, just dont bother for now unless you like tinkering with linux
<corion>
I 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.
gladiac has quit [Quit: k thx bye]
<corion>
It works during grub, but not after booting the chosen kernel.
<corion>
Was too lazy to check issues tab on github, so if it's already known I apologize. :)
<maximiliangaedig>
I love tinkering with linux, I missed it when switching to a macbook
<maximiliangaedig>
Will bother with that later
<maximiliangaedig>
Is 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
user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamespmorgan has joined #asahi
joske has joined #asahi
joske has quit [Remote host closed the connection]
user982492 has joined #asahi
jamespmo_ has quit [Ping timeout: 480 seconds]
joske has joined #asahi
joske has quit [Remote host closed the connection]
<ChaosPrincess>
Try using edge kernel, iirc non-edge uses the boot framebuffer instead of dcp
Dcow has quit [Quit: dcow]
LinuxM2 has quit [Quit: Leaving]
<maximiliangaedig>
I have the edge
<ChaosPrincess>
Then go to non-edge :P
<maximiliangaedig>
that laggyness propably can't be fixed without the GPU driver
<maximiliangaedig>
but 120hz isn't in the display options
<maximiliangaedig>
ChaosPrincess: had it before edge
<maximiliangaedig>
both kernels have those problems
<maximiliangaedig>
edge looks a bitbetter
<jannau>
non-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
fmstrat has quit [Quit: WeeChat 3.1]
leo60228 has joined #asahi
Dcow has joined #asahi
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi
<das_j>
tpw_rules: have you had issues with the ethernet interface not being found?
<das_j>
(nixos-m1)
<tpw_rules>
das_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
<das_j>
hmmm weird but thanks. I've had missing firmware but after fixing that it still didn't work
<das_j>
Sounds like a problem for another day
<tpw_rules>
which machine?
Dcow has quit [Remote host closed the connection]
<tpw_rules>
and interface?
<das_j>
mac mini and regular 1G Ethernet on Linux 6.1
<tpw_rules>
yeah 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
<sven>
1g Ethernet shouldn’t need firmware. sounds like some issue with the pcie bus maybe
<sven>
does the bus show up?
<das_j>
difficult to say as I need networking in the initrd because my / is on iscsi
<das_j>
read as: I don't have my full tooling
<tpw_rules>
then did you add the right modules to boot.initrd.availableKernelModules?
<tpw_rules>
pcie should be up enough at that point as i put in enough to get usb working.
<das_j>
the 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
<das_j>
I'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 :/
<tpw_rules>
did 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
<das_j>
yes we may or may not have our own config 👀
<das_j>
(kconfig)
<tpw_rules>
then you didn't module or de-module something
<das_j>
most likely, yeah. I'll go through the diff with your config sometime tomorrow I hope
<das_j>
yours is a tad bit too minimal for us ;)
<tpw_rules>
when did you last revise it? i stole the official asahi config recently
<tpw_rules>
the original one was very minimal indeed
<das_j>
some time mid-22.05
<tpw_rules>
then there is probably a more reasonable one if you want to give that a try
<tpw_rules>
but i still wouldn't expect ethernet to be up in initrd without changing boot.initrd.availableKernelModules
<das_j>
it actually looks pretty complete now, yeah
<das_j>
I added tg3 to the modules
Glanzmann has joined #asahi
<Glanzmann>
das_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'.
<Glanzmann>
Debian showed in 'ip a s' the interface name as end0 and altname as enp3s0 but at least Debian was not taking up the interface.
Glanzmann has quit []
lawrence has quit [Remote host closed the connection]
leo60228 has quit []
leo60228 has joined #asahi
lawrence has joined #asahi
<das_j>
I can try that as well, thank you! Maybe that's all there is to the issue
leo60228 has quit []
leo60228 has joined #asahi
frytaped has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]