marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | "Does XXX work yet?": https://alx.sh/fs | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
<bluetail9>
TheLink even if it is, you would probably need 86box to emulate the x86 architecture. By 'patching' the java binaries, its most likely that its something like adding lwjgl for ARM64v8
<bluetail9>
if its java, it runs natively most likely
Moprius has quit [Quit: bye]
Brainium has joined #asahi
snajpa has joined #asahi
thansen has joined #asahi
<chadmed>
bluetail9: minecraft ships with some graphics libraries that have GLES support stripped out for some reason so you need to replace them with the upstream versions and do some patching
<chadmed>
but apart from that yeah it should work
<chadmed>
fwiw if its download time and space mojang are worried about youd think theyd just bundle up minecraft releases in a compressed archive, the mc launcher for some reason still downloads every single file with its own GET
<chadmed>
the overhead is insane
<ar>
chadmed: it gets to use http pipelining, so it's not that bad
<ar>
(tcp socket/tls session reuse)
<ar>
so it's not that bad
<chadmed>
its bad enough that it takes me almost an hour to download from scratch, which is pitiful considering i have an easily saturated 100mbps downlink
nyilas has quit [Remote host closed the connection]
agarttha has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
aomizu has joined #asahi
Zeroine has joined #asahi
<Zeroine>
I tried out Asahi for a bit on an M1 Air but I wanted to know if it's likely for me to encounter M1/Asahi specific issues with anything if I am just doing software development C/C++. I know this is probably hard to answer for sure but what I mean is, am I likely to experience something that can't be resolved by looking up stuff online like usual.
robinp has joined #asahi
agarttha has quit [Remote host closed the connection]
<chadmed>
Zeroine: at this stage no
<chadmed>
maybe page size mismatches depending on what exactly youre doing, but thats not endemic to apple silicon
<Zeroine>
sounds great, thank you
robinp has quit [Ping timeout: 480 seconds]
kesslerd has joined #asahi
nuh^ has joined #asahi
kesslerd has quit [Ping timeout: 480 seconds]
jhan has joined #asahi
robinp has joined #asahi
jhan has quit [Ping timeout: 480 seconds]
<i509vcb>
There is a network I am on which works on macOS but not on Linux. I had to switch to wpa_supplicant because of another network I use which is PEAP. I'd assume this would be a driver issue?
lewurm has quit [Read error: Connection reset by peer]
agarttha has joined #asahi
Zeroine has joined #asahi
<Zeroine>
Hey, any idea why the scaling options aren't showing for KDE plasma wayland? I checked display and monitor like the blog post about the GPU drivers says but the scaling options just are not there
<Zeroine>
I thought maybe this was because I didn't have the gpu drivers installed initially but still nothing after installing them
<Zeroine>
I want to set the scale to a higher one since the default is really hard to use
agarttha` has joined #asahi
<Zeroine>
If there's any info anyone might want, just ask
<Zeroine>
Oh, by the way, I installed plasma using plasma-desktop which I guess is supposed to be a more minimal version that what the asahi desktop version offers, I'm trying to save a bit of space
<Zeroine>
ah, I was missing the kscreen package
DarkShadow4444 has quit [Read error: Connection reset by peer]
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has quit []
DarkShadow44 has joined #asahi
DarkShadow44 has joined #asahi
agarttha has quit [Remote host closed the connection]
agarttha` has quit [Ping timeout: 480 seconds]
<Zeroine>
How should I configure sound on asahi? shouldn't just turning it on and setting the volume in alsamixer work? it doesn't for me
<Zeroine>
I think during the plasma-desktop install it prompted for some jack and maybe pipewire as well related packages/options but I went with the defaults
<ChaosPrincess>
what kind of sound do you want, headphone jack or speakers?
<Zeroine>
headphone jack, AFAIK speakers don't work/aren't safe to use yet
<Zeroine>
or maybe something has changed?
<ChaosPrincess>
and you are using upstream asahi, not a self-built kernel?
<Zeroine>
yeah I didn't build a kernel, I installed asahi-linux-edge for the GPU drivers
<ChaosPrincess>
does the headphone jack show up in the kde volume mixer?
<Zeroine>
I installed kmix but it doesn't want to start, just loads a bit and disappears but it does show up in alsamixer
<Zeroine>
alsamixer shows "MacBook Air J313" in F6 system info
<Zeroine>
oh, got kmix to start if I run it from the terminal, it also shows the same thing
<Zeroine>
oh I had one slider turned down which was hidden because there were so many in alsamixer, everything works now
<Zeroine>
ChaosPrincess: thanks though
robinp has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
Moprius has joined #asahi
aomizu has joined #asahi
altf4_ has joined #asahi
jacksonchen666 has joined #asahi
<altf4_>
hey, I kept having this issue where after I installed asahi on my m1 macbook pro and booted into it, whatever configurations I saved for apps (like terminals etc) kept getting reset after a reboot
axt has joined #asahi
jacksonchen666 has quit [Quit: WeeChat 3.8]
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Moprius has quit [Quit: bye]
Moprius has joined #asahi
<Zeroine>
I can't find any info on how to get the battery info on asahi
<Zeroine>
I didn't use the desktop install and installed plasma-desktop so it's not in the KDE bar that stores widgets by default (I assume it's there by default)
<Zeroine>
by the way I tried the battery widget in plasma which is preinstalled but it says "No batteries available"
<Zeroine>
I assume I can check by checking something exposed through /sys but I don't know where exactly to look
<jannau>
you probably need powerdevil and/or upower
<waldi>
linux provides that info in /sys/class/power_supply
<Zeroine>
looks like powerdevil and upower are already installed
robinp has joined #asahi
<Zeroine>
waldi: so the equivalent of MacOS's battery number is /sys/class/power_supply/macsmc-battery/capacity?
aomizu has joined #asahi
<Zeroine>
just wanna make sure I got the right one
<waldi>
sound like it
<Zeroine>
cool, I wonder why the widget can't show this though
<Zeroine>
the upower daemon is running
<mort_>
(Is this the right channel for this?) I'm trying to install Asahi on my 14" 2021 M1 Pro machine, I'm at the Asahi Linux Setup Program now but keyboard and trackpad doesn't work, not even an external USB keyboard
<waldi>
mort_: so you already finished the second stage setup inside the recovery system, where you have to supply your password a few times?
robinp has quit [Ping timeout: 480 seconds]
<mort_>
Yeah, so I'm in the actual Linux graphical environment after GRUB and everything. But a reboot seems to have fixed it
altf4_ has quit [Remote host closed the connection]
<Zeroine>
ah, the battery widget started showing the battery after a reboot by the way
robinp has joined #asahi
<mort_>
well, hello from Asahi Linux 🎉
<jannau>
mort_: this happens occasionally. We got a timeout for the communication with keyboard/trackpad controller wrong. already fixed but not yet in the stable release
<mort_>
aha
<mort_>
another thing: when holding down the power button during boot, it said "Loading startup options..." while the installer told me to expect "Entering startup options", I should probably file an installer issue for that
<mort_>
overall though, this was impressively smooth
grrowl has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
<lucenera>
mort_ hi
<lucenera>
Have you finally switched to the light side of the force?
<mort_>
yes
<mort_>
well, maybe, we'll see
<mort_>
there's a couple things I'll have to either figure out or wait until gets fixed, mainly that the screen brightness seems low (and has only 2 levels: off and pretty low), and wayland doesn't work
Moprius has quit [Remote host closed the connection]
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<mort_>
ah, sorry, I was being an idiot, I didn't update-grub
kesslerd has joined #asahi
<piroko>
accidentally left my macbook pro in sleep mode overnight. caught it with 4% battery left in the morning XD whoops!
djorz has quit [Quit: Gateway shutdown]
possiblemeatball has joined #asahi
grrowl has quit [Ping timeout: 480 seconds]
alex_ has joined #asahi
<alex_>
What's stopping M2 Pro/Max support currently? The need to support 13.2 in DCP and GPU?
<alex_>
I mean laptops, not desktops with HDMI weirdness
<jannau>
m2 pro/max general bringup, dcp 13.2 support and possibly adaptation for m2 pro/max, gpu 13.2 verification and adaptation for m2 pro/max
<alex_>
What's left in the bringup? Some PCIe stuff?
<marcan>
all the usual bringup stuff (pcie/phy/etc)
<marcan>
might go through a bunch of it next week
<alex_>
oh, nice, thanks!
<marcan>
I haven't been in a particular rush because it's blocked on DCP anyway
<marcan>
(to be useful)
<alex_>
Laptops could start with simpledrm if that still works
<marcan>
sure, though I'd rather get to feature parity asap :p
<marcan>
and the M2 Pro mac mini outright won't work without DCP
<marcan>
(or rather without equivalent DCP support in m1n1)
<marcan>
(well, it will, with no video at all)
<Tramtrist>
🔊
<alex_>
I've read about that problem of not having any video in m1n1 and uboot before kernel boots
<marcan>
AIUI the screen is identical on the M2 pro/max, so I wouldn't be surprised if the speakers are too
<marcan>
which would mean we can just carry over the m1 pro/max audio stuff
<alex_>
Probably those audio settings you studied could be taken look at for M2 pro/max as well
<marcan>
I think the only support coordinates missing are GPU and DCP, everything else should extrapolate from M1 pro/max and M2
<alex_>
thanks for explaining
<marcan>
alex_: I wouldn't be surprised if they share an AID on macos (which means identical speaker setup)
robinp has joined #asahi
<marcan>
in which case there is nothing to investigate, we just symlink the config
<chadmed>
i sure hope so, i dont want to sell my shiny new mini to get another laptop i dont need :P
<ChaosPrincess>
what about the new wifi chip
<marcan>
ah yeah, that too
<marcan>
hopefully nothing major there
<jannau>
wlan and bt but that's hopefully not much more than adding pci ids except for 6e support
<marcan>
wlan will need the usual OTP offsets and RAM offset stuff
<ChaosPrincess>
and then its more free work for broadcom? :P
<marcan>
but that's easy to pull from macos
<alex_>
upstream brcmfmac also 'forgot' 6E?
<marcan>
upstream brcmfmac "forgot" everything for the past 5 years
<marcan>
they aren't even implementing firmware mechanisms that have existed in brcm firmware for ages that brcmdhd supports
<ChaosPrincess>
which of the radio chips did apple want to bring in-house? cellular or wifi/bt?
<marcan>
(which is why sleep was broken for us etc)
<chadmed>
they have their own baseband/modem already
<sven>
Bluetooth will need some offsets to be pulled from the macOS driver or a simple hv trace as well
<marcan>
like right now brcmfmac presents zero feature flags to the firmware
<marcan>
which causes it to revert to an ancient interface
<marcan>
which is not what the dhd driver uses
<marcan>
and is part of the breakage
<sven>
OTP plus the memory regions that have to be mapped to the BAR
<marcan>
the whole feature mechanism is just unimplemented in brcmfmac (or was until I added it downstream)
<marcan>
and then setting that up properly changes things like how interrupts are delivered
<marcan>
and how the PM mailbox works
<marcan>
the whole thing is so out of date on modern brcm chips it's not even funny
<sven>
I’m still curious if that pcie bt interface will eventually appear on non-apple chips as well :D
<chadmed>
do they really just pay one person to look at the mailing list every few weeks so they can pretend they give a shit?
<marcan>
chadmed: he does reply but he himself said he gets about 20% of time to work on the driver
<marcan>
so they pay for 20% of a person to pretend that counts as maintaining a driver
<sven>
and knowing big companies that 20% is probably more like 5% in reality :/
<marcan>
yup
<chadmed>
honestly more than i expected from broadcom but yeah :/
<marcan>
either way he's not the bottleneck for me, he actually acks my patches and stuff, it's just mildly annoying that every time some issue comes up I need to either keep pressing or just throw more versions his way until he likes one because he'll leave all questions half-answered
<marcan>
I'm more worried about the cypress/infineon guys completely ignoring mails
<chadmed>
20% means 5% and only on a day where youve got no work orders to do anything else (these dont exist)
<chadmed>
is there anyone upstream against just shutting them out if they want to be like that?
<chadmed>
like if theyve had their chance to respond, do they lose the right to sook when patches break their stuff?
robinp has quit [Ping timeout: 480 seconds]
<marcan>
I don't think they'll block my changes if they say nothing, but we'll see
<alex_>
GPU support is going to be like M1x or M2, just some consts mostly, if anyone traced it?
<marcan>
right now I'm mostly waiting for the brcm guy to test whether my wpa3 patch actually works on his chips (because apparently the existing code was a hack cypress added for their firmware fork)
<marcan>
but I might just a version his way with the if(cyw) conditional and if he doesn't have time to test it he better just ack it, because he already confirmed the existing code doesn't work either so there is nothing to regress
<alex_>
btw what are those tunables and power curves? Does OS have some control over voltage (thus can over/undervolt) or it's some intrinsic for scheduling and power efficiency?
<marcan>
lina knows more but that is data passed to the firmware, I'm not sure if anyone knows for sure exactly what the firmware controls (i.e. whether you can *actually* change the clocks/voltages or it's just informational data for the power controller to do its math)
<marcan>
you can definitely control the min/max pstate at least
<marcan>
Apple seem to be pretty good at locking down actual pstate parameters into pmgr in iboot (that's how it works for CPUs), so I wouldn't be surprised if the GPU is the same and the firmware can't actually touch that, only make policy decisions
<alex_>
> wpa3 patch; Does WPA-EAP and AP mode work, or still pending?
<ar>
:>
<mort_>
is there a way to make asahi use 120Hz? I'm not finding anything about it online
<ChaosPrincess>
not yet
<alex_>
probably ProMotion is not there yet
<ChaosPrincess>
ProMotion is such a stupid name with how ungoogleable it is
<mort_>
otherwise, I'm impressed at how usable this system is, it's basically just perfect (except for sound) as soon as you install the edge kernel and mesa
<alex_>
has webcam ISP and SEP reverseing stalled?
<chadmed>
promotion is just marketing wank for VRR but getting 120hz to work at all is predicated on getting it to work
<marcan>
EAP works afaik (it always worked except we had a missing kernel compile option for key management...). AP mode does not.
<alex_>
marcan: Another thing to port from bcmdhd?
<marcan>
unclear why exactly AP mode is broken yet
<marcan>
but possibly
<mort_>
I assume there's some hardware detail which makes it harder to "just" enable 120Hz than to enable VRR
<marcan>
could also be an appleism though
<marcan>
mort_: "120Hz" mode ends up capped at 60Hz anyway for some reason, so yes
<mort_>
fun
<alex_>
maybe it's vrr up to 120, so averaging on less actually?
<mort_>
anyways, Bluetooth with my AirPods works better than it does on most Windows laptops I've used Linux on lol
<alex_>
peak 120 while base is lower than 60 for the expense of high peaks of 120 hz
<chadmed>
nah vrr doesnt work at all yet, it was just "please set the refresh rate to 120hz", which dcp said it had done but in actuality hadnt
<jannau>
I don't think that supporting vrr on the dcp side is particularly hard. for the promotion displays it's probably just setting timestamps in the swap struct and selecting the 120 Hz mode
<jannau>
external displays either need to select the right timing mode or explicitly configure min,(avg,)max refresh rate in addition
<alex_>
Just short of time to do that, right? All the USB/TB and bringup tasks
<alex_>
Does HDR/XDR just work with those 10-bit modes and a player that supports it (mpv cli)?
<jannau>
yes, a low priority feature, same for HDR. 10-bit is not HDR
<alex_>
hdr has little demand while DEs don't have it. VRR might be more usable with desktop
<mort_>
maybe I should read up a bit and try to shout at the DCP
robinp has joined #asahi
<mort_>
I've had HDR screens on my laptop and phone for many years now and I really don't get the appeal for anything other than watching movies
<mort_>
I do get the appeal of 10-bit, color banding is annoying
<alex_>
well, likely useful for HDR editing be it photo or video, maybe some games
<alex_>
doesn't 10b reduce banding?
Zeroine has quit [Quit: Connection closed for inactivity]
<mort_>
yeah, that's why I get the appeal of it :p
<TellowKrinkle>
Even when watching video, at least on my phone it raises the minimum brightness by a massive amount which is super annoying
<mort_>
that's how I view HDR too, as a mild annoyance
alex_ has quit [Quit: Page closed]
bisko has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
<mort_>
hmm I wonder if I could make a pretty decent sleep mode daemon...
<mort_>
listen for lid changes, when the lid closes, send SIGSTOP to all other processes, when it opens, send SIGCONT
<milek7>
why even brcmfmac and bcmdhd are separate things?
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jannau>
oops
bisko has joined #asahi
robinp has joined #asahi
bisko has quit []
<kettenis>
milek7: because android
nyilas has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi
alex_ has joined #asahi
<mort_>
it's interesting to me that everything about plasma 5 looks really good, including the lock screen, but the SDDM login screen kinda looks like something from KDE 3
<alex_>
I remember Hector has posted a toot regarding possibility of supporting Thunderbolt eGPU. Has anyone tried to play around with that now since experimental TBT should work fine for that point-to-point link?
<alex_>
amdgpu should probably be fine on ARM (not sure if 16k ones), so if that Normal mapping hack works that would be really cool for people doing AI or rendering while keeping portability
robinp has quit [Ping timeout: 480 seconds]
axt has quit [Quit: Leaving.]
Xe_ has quit [Remote host closed the connection]
jeffmiw has joined #asahi
robinp has joined #asahi
Xe has joined #asahi
alex_ has quit [Quit: Page closed]
robinp has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi
robinp has joined #asahi
Xe has quit [Remote host closed the connection]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi
Xe has joined #asahi
amarioguy has quit [Ping timeout: 480 seconds]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
nuh^ has quit [Remote host closed the connection]
<mort_>
it would be really cool if we could somehow expose the top part of the screen as a drawable area, maybe just a device in /dev which you can write RGB data to
<mort_>
I wanna be able to put some basic stuff like a clock up there
julio7359 has joined #asahi
<ChaosPrincess>
there is a 'show_notch' kernel argument
<mort_>
I assume that just extends the screen?
julio7359 has quit [Remote host closed the connection]
<ChaosPrincess>
yes
<ChaosPrincess>
and there is some kde plugin that gives a macos-stype menu bar
<mort_>
hmm neat
robinp has joined #asahi
kesslerd has quit [Ping timeout: 480 seconds]
c10l has joined #asahi
<cy8aer>
(as I just read the last post of @marcan: fixed my audio problem with the non stereo headset by restoring my alsamixer settings. There are channel selecting parameters which screwed up. Sorry for the post 😉 )
<marcan>
we should probably hardcode most of that stuff in at least the UCM if not outright in the kernel. too easy to mess up...
robinp has quit [Ping timeout: 480 seconds]
julio7359 has joined #asahi
eroc1990 is now known as Guest6570
eroc1990 has joined #asahi
djorz has joined #asahi
Guest6570 has quit [Read error: Connection reset by peer]
<mort_>
was 'show_notch' in the kernel command line supposed to show the whole screen including the part obscured by the notch?
robinp has joined #asahi
<mort_>
aha, it's apple_dcp.show_notch=1
robinp has quit [Ping timeout: 480 seconds]
<cy8aer>
mort_: But be warned: this parameter seems to be temporal and may be changed sometime (I use it too, the notch is 58px high)
<waldi>
and it is specific to the asahi kernel and not ment to appear in upstream linux
amarioguy has joined #asahi
jhan has quit [Remote host closed the connection]
robinp has joined #asahi
jhan has joined #asahi
user982492 has joined #asahi
<mort_>
got it
jhan has quit [Ping timeout: 480 seconds]
robinp has quit [Ping timeout: 480 seconds]
jamespmorgan has joined #asahi
rayanamukami3 has joined #asahi
jamespmo_ has quit [Ping timeout: 480 seconds]
jhan has joined #asahi
kesslerd has joined #asahi
jhan has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
jhan has joined #asahi
Z751 has joined #asahi
jhan has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi
robinp has joined #asahi
kesslerd_ has joined #asahi
Z751 has quit []
kesslerd has quit [Ping timeout: 480 seconds]
robinp has quit [Ping timeout: 480 seconds]
Guest6429 has quit [Quit: G-line: User has been permanently banned from this network.]
vx has joined #asahi
vx is now known as Guest6581
jhan has joined #asahi
robinp has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robinp has quit [Ping timeout: 480 seconds]
jeffmiw has quit [Remote host closed the connection]
jhan has quit [Ping timeout: 480 seconds]
jeffmiw has joined #asahi
luc has joined #asahi
luc has quit []
robinp has joined #asahi
mxz has quit [Quit: cya]
mxz has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
D-Spirits has joined #asahi
D-Spirits has quit []
D-Spirits has joined #asahi
D-Spirits has quit []
jhan has joined #asahi
D-Spirits has joined #asahi
mxz has quit [Quit: cya]
mxz has joined #asahi
user982492 has joined #asahi
jhan has quit [Ping timeout: 480 seconds]
jhan has joined #asahi
nopeslide1 has quit []
robinp has joined #asahi
jhan has quit [Ping timeout: 480 seconds]
nopeslide1 has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
jhan has joined #asahi
<D-Spirits>
Hi. I intend to buy a Mac Mini (2023) as a home server and support is basically "TBA". Has anyone tried to put Asahi on it yet ? What does (not) works ?
jeffmiw has quit [Ping timeout: 480 seconds]
<ChaosPrincess>
m2 pro? basically nothing works yet, it needs early boot code to be there before everything else works
<D-Spirits>
I was talking about the normal M2 model.
nyilas has quit [Remote host closed the connection]
jhan has joined #asahi
<D-Spirits>
For the context, I'm replacing my Intel E2180 based "server" and betting good perf/price ratio in the long term with this setup (and I have education pricing).
D-Spirits has quit [Quit: D-Spirits]
kitley has quit [Ping timeout: 480 seconds]
D-Spirits has joined #asahi
jhan has quit [Ping timeout: 480 seconds]
<mort_>
I see people claiming to get a pretty good battery life on asahi, but my laptop is usually hot to the touch and kde's battery widget at the moment says I'm at 45% with only 1h25m left, are there any power management tweaks?
<sven>
iirc there are known power issues with the pro or the max
<mort_>
aha, this is the m1 pro so it might be that
robinp has quit [Ping timeout: 480 seconds]
jhan has quit [Ping timeout: 480 seconds]
<chadmed>
battery life should improve significantly once we merge energy-aware scheduling stuff but there are some issues with interactivity in some edge cases so we want to find some ways to resolve those before doing so