ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
omioolddbotm^ has quit [Remote host closed the connection]
baozich has joined #asahi-dev
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-dev
hightower4 has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
Hibyehello has quit [Read error: Connection reset by peer]
Hibyehello has joined #asahi-dev
tobhe has joined #asahi-dev
tobhe_ has quit [Ping timeout: 480 seconds]
chip_x has quit [Ping timeout: 480 seconds]
chadmed_ has joined #asahi-dev
chadmed has quit [Read error: Connection reset by peer]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
yamii has joined #asahi-dev
yamii_ has quit [Remote host closed the connection]
<marcan>
pushed asahi-6.2-11 which should fix the M2 keyboard country code silliness (alongside new m1n1) and pulls in some fixes from lina
<marcan>
jannau, sven, kettenis, povik: any release blockers at this point?
<sven>
donโt think so, seems to work for me
<jannau>
marcan: did you test headphone audio on the m1 macbook air? iirc it was unclear if it was working after the PLL changes. I wouldn't rule out that it was just CS42L42 vs. CS42L83 confusion though
<marcan>
let me test that
<marcan>
I think some altdistro folks have reported problems with that for a while now (i2c lockups), but I have no idea how to repro it
<marcan>
it almost smells similar to the CS42L84 race I fixed that was breaking everything
<jannau>
CS42L83 on the mini works for me. on the air a speaker amp is on the same i2c bus as CS42L83
<marcan>
jannau: seems to work for me
<marcan>
everything is on asahi-dev now
<marcan>
if nobody has any objections let's push this out tomorrow or something (cc lina, you get to write the blog post)
<marcan>
I did notice the "pink squares" issue on kwin, but I guess we'll call that a known regression until either lina tracks it down or someone finds a worse repro
<jannau>
no objections from, everything works fine after the drm_sched fix except for the pink squares
<jannau>
+me
<marcan>
it's only on startup right? and I also noticed it on first sleep/resume
<marcan>
but never randomly in use or anything
<mps>
it is asahi-6.2-11 tag? will build it now and test on m1pro macbook
<marcan>
yes
<jannau>
yes, only the first 1 or 2 frames on startup. I haven't any other render errors
<mps>
ok, building it now
<marcan>
yeah, I get it fairly consistently on first sleep too, right when the screen goes black (but never subsequent sleeps)
<marcan>
sounds like an issue with initial sync between the compositor and DCP? but only when buffers first get created (wouldn't be surprised if sleep uses an extra dummy buffer or something)
<mps>
works fine for me
<mps>
on j316s
<jannau>
marcan: fdt_path_offset(dt, "keyboard") will resolve the alias for you
<marcan>
jannau: heh, why are we always calling fdt_get_alias then?
<marcan>
(in a lot of codepaths)
<marcan>
guess that needs some cleanup
<kettenis>
marcan: the mailbox flensing didn't actually result in device tree changes did it?
<marcan>
nope
<marcan>
purely a linux thing
<marcan>
the keyboard thing did but the m1n1 bump is backwards-compatible (and I don't know if you even use the /chosen kblang node yet?)
<kettenis>
I didn't; too much confusion about what the differences are between the apple keyboard layouts
<kettenis>
(and no real itch to fix it since the dutch keyboard layout is pretty much identical to the internatonal english one)
balrog has quit [Remote host closed the connection]
<kettenis>
one thing that I wanted to mention relating to the keyboard layouts is that apple has been changing the special function keys quite a bit over the years
<kettenis>
and I don't think that is captured by the layout id
balrog has joined #asahi-dev
<jannau>
marcan: I hadn't yet the motivation to clean it up but I discovered it and uses it for dcp's memory setup
<kettenis>
although my >10 year old "alumunium" apple usb keyboard has the brightness, volume and media keys in the same position, so maybe that is a thing of the past
<jannau>
if the layout tables in the linux hid-apple driver are to be trusted the special key layout changed late 2020/2021 with the m1 devices
spiekrguy has joined #asahi-dev
<kettenis>
the symbols on the F4/F5/F6 keys are indeed different on that usb keyboard, and different again on the my 2015 macbook
spikerguy has quit [Remote host closed the connection]
spikerguy has joined #asahi-dev
<marcan>
kettenis: it is not, this is why they have separate tables per model too, which is yuck
<marcan>
but at that point that just needs to look at the machine ID or something
<marcan>
I hope the differences aren't too major though
<marcan>
jannau: I think I'm going to have to open an issue on xkeyboard-config to work out how to solve this mess, but for starters, all that should be done in userspace, not hid-apple
<marcan>
the Fn key should be pure software, except maaybe fn+arrows for pgup/down/home/end, fn+bksp for delete, and fn+enter for insert, which are important enough to have in TTY mode and not model-specific
<marcan>
all the funny media key stuff should be done in xkb, among other things so users can switch between F-key and media key by default modes in the UI, not by hacking up module params
<marcan>
and yes this excludes xorg, and around the time we'll probably get this sorted out will be prime time for xorg to die
<marcan>
also, maybe we should do this *now*, before upstreaming support for these machines at all (spi/hid-apple/etc)
<marcan>
because if we upstream stuff with media key support, we enter into "don't break userspace" territory
<marcan>
if we upstream this from the get go with pure software Fn on all M1+ models, we don't have to have that argument
<marcan>
and we can add a module param if we want to get the media keys, and even enable it by default for now if we want in userspace, as long as the kernel default is not doing that stuff
baozich has quit [Quit: baozich]
baozich has joined #asahi-dev
akemin_dayo has joined #asahi-dev
Leftas7 has joined #asahi-dev
baozich1 has joined #asahi-dev
j`ey_ has joined #asahi-dev
___nick___ has quit [charon.oftc.net coulomb.oftc.net]
nyilas has quit [charon.oftc.net coulomb.oftc.net]
yamii has quit [charon.oftc.net coulomb.oftc.net]
tobhe has quit [charon.oftc.net coulomb.oftc.net]
psykose has quit [charon.oftc.net coulomb.oftc.net]
jn has quit [charon.oftc.net coulomb.oftc.net]
mps has quit [charon.oftc.net coulomb.oftc.net]
gladiac has quit [charon.oftc.net coulomb.oftc.net]
ChaosPrincess has quit [charon.oftc.net coulomb.oftc.net]
linuxgemini1 has quit [charon.oftc.net coulomb.oftc.net]
mkurz has quit [charon.oftc.net coulomb.oftc.net]
dabaum|2er0 has quit [charon.oftc.net coulomb.oftc.net]
yrlf has quit [charon.oftc.net coulomb.oftc.net]
Mrmaxmeier has quit [charon.oftc.net coulomb.oftc.net]
Retr0id has quit [charon.oftc.net coulomb.oftc.net]
cy8aer has quit [charon.oftc.net coulomb.oftc.net]
Mary6 has quit [charon.oftc.net coulomb.oftc.net]
leftas has quit [charon.oftc.net coulomb.oftc.net]
sefidel has quit [charon.oftc.net coulomb.oftc.net]
jole has quit [charon.oftc.net coulomb.oftc.net]
agraf has quit [charon.oftc.net coulomb.oftc.net]
manawyrm has quit [charon.oftc.net coulomb.oftc.net]
kit_ty_kate3 has quit [charon.oftc.net coulomb.oftc.net]
mixi has quit [charon.oftc.net coulomb.oftc.net]
j`ey has quit [charon.oftc.net coulomb.oftc.net]
lewurm has quit [charon.oftc.net coulomb.oftc.net]
akemin-dayo has quit [charon.oftc.net coulomb.oftc.net]
V_ has quit [charon.oftc.net coulomb.oftc.net]
milek7_ has quit [charon.oftc.net coulomb.oftc.net]
fugi has quit [charon.oftc.net coulomb.oftc.net]
m42uko_ has quit [charon.oftc.net coulomb.oftc.net]
wCPO6243651 has quit [charon.oftc.net coulomb.oftc.net]
VinDuv has quit [charon.oftc.net coulomb.oftc.net]
tired- has quit [charon.oftc.net coulomb.oftc.net]
ncopa has quit [charon.oftc.net coulomb.oftc.net]
flokli has quit [charon.oftc.net coulomb.oftc.net]
Deewiant has quit [charon.oftc.net coulomb.oftc.net]
leah2 has quit [charon.oftc.net coulomb.oftc.net]
povik has quit [charon.oftc.net coulomb.oftc.net]
vafanlignarde has quit [charon.oftc.net coulomb.oftc.net]
ahdeb[m] has quit [charon.oftc.net coulomb.oftc.net]
marcan has quit [charon.oftc.net coulomb.oftc.net]
rappet has quit [charon.oftc.net coulomb.oftc.net]
kaprests has quit [charon.oftc.net coulomb.oftc.net]
CME has quit [charon.oftc.net coulomb.oftc.net]
paddatrapper_ has quit [charon.oftc.net coulomb.oftc.net]
Foxboron has quit [charon.oftc.net coulomb.oftc.net]
mjolnir[m] has quit [charon.oftc.net coulomb.oftc.net]
matrix_ds has quit [charon.oftc.net coulomb.oftc.net]
baozich has quit [Read error: Connection reset by peer]
Retr0id has joined #asahi-dev
baozich has joined #asahi-dev
baozich2 has joined #asahi-dev
rappet has joined #asahi-dev
nyilas has joined #asahi-dev
mps_ has joined #asahi-dev
yamii has joined #asahi-dev
psykose has joined #asahi-dev
jn has joined #asahi-dev
tobhe has joined #asahi-dev
gladiac has joined #asahi-dev
ChaosPrincess has joined #asahi-dev
linuxgemini1 has joined #asahi-dev
dabaum|2er0 has joined #asahi-dev
mkurz has joined #asahi-dev
yrlf has joined #asahi-dev
cy8aer has joined #asahi-dev
Mary6 has joined #asahi-dev
Mrmaxmeier has joined #asahi-dev
VinDuv has joined #asahi-dev
sefidel has joined #asahi-dev
agraf has joined #asahi-dev
jole has joined #asahi-dev
manawyrm has joined #asahi-dev
kit_ty_kate3 has joined #asahi-dev
mixi has joined #asahi-dev
lewurm has joined #asahi-dev
V_ has joined #asahi-dev
milek7_ has joined #asahi-dev
m42uko_ has joined #asahi-dev
wCPO6243651 has joined #asahi-dev
fugi has joined #asahi-dev
tired- has joined #asahi-dev
ncopa has joined #asahi-dev
Deewiant has joined #asahi-dev
flokli has joined #asahi-dev
leah2 has joined #asahi-dev
povik has joined #asahi-dev
paddatrapper_ has joined #asahi-dev
matrix_ds has joined #asahi-dev
ahdeb[m] has joined #asahi-dev
mjolnir[m] has joined #asahi-dev
CME has joined #asahi-dev
Foxboron has joined #asahi-dev
vafanlignarde has joined #asahi-dev
kaprests has joined #asahi-dev
marcan has joined #asahi-dev
matrix_ds has quit [Max SendQ exceeded]
gladiac1 has joined #asahi-dev
___nick___ has joined #asahi-dev
baozich1 has quit [Ping timeout: 480 seconds]
baozich2 is now known as baozich1
gladiac is now known as Guest8244
gladiac1 is now known as gladiac
matrix_ds has joined #asahi-dev
leah2 has quit [Ping timeout: 480 seconds]
<jannau>
marcan: that would mean that we have to define our own translation table and diverge from hid-apple which media keys by default and F1 - F12 with fn
baozich has quit [Ping timeout: 480 seconds]
baozich1 is now known as baozich
Guest8244 has quit [Ping timeout: 480 seconds]
<marcan>
jannau: yes, it does
<marcan>
that's the plan :p
mps has joined #asahi-dev
<jannau>
I just noticed that we can drop apple_fn_keys_mbp13, upstream has macbookpro_dedicated_esc_fn_keys which is identical
mps_ has quit [Ping timeout: 480 seconds]
<marcan>
fnmode already has fnmode=0 which disables the fn emulation nonsense
<marcan>
I propose adding fnmode=4, edit keys only
<marcan>
and defaulting to that for anything apple silicon, which gives you a usable TTY/Xorg without anything machine-specific
<marcan>
and then all the other fn mappings happen in xkb
<marcan>
for those who want to fully control everything, fnmode=0 will then disable even that
<marcan>
then we're also disabling the iso_layout nonsense on anything apple silicon
<Tramtrist>
fnmode 4 as default
<marcan>
that needs to be fixed in xkb
<marcan>
yes, fnmode 4 as default
<Tramtrist>
๐
<marcan>
though honestly, I'm also tempted to just not support the media keys at all on these models, then fnmode!=0 would give you edit keys only and what you pick is irrelevant (and if you want media keys on Fn, don't use xorg)
<marcan>
but we'll probably want fnmode=4 anyway so that other older macs can switch to the Right Way too eventually
<marcan>
since we can't just yank out the Fn-mappings out from them
leah2 has joined #asahi-dev
baozich1 has joined #asahi-dev
baozich has quit [Read error: Connection reset by peer]
baozich1 is now known as baozich
baozich has quit [Ping timeout: 480 seconds]
spikerguy has quit [Quit: Page closed]
salimterryli has quit [Ping timeout: 480 seconds]
<cy8aer>
just a probably stupid question: Does xkb work with wayland (cause I screwed up my keytable with iso and stuff to have it more, like, iso...)
balrog has quit [Read error: No route to host]
balrog has joined #asahi-dev
<cy8aer>
hm read marcan's post ok that is all a X-mess no wayland thingie.
salimterryli has joined #asahi-dev
spikerguy has joined #asahi-dev
balrog has quit [Quit: Bye]
balrog has joined #asahi-dev
nopeslide13 has joined #asahi-dev
nopeslide1 has quit [Ping timeout: 480 seconds]
eiln has joined #asahi-dev
bcrumb has joined #asahi-dev
spikerguy has quit [Remote host closed the connection]
bcrumb has quit [Ping timeout: 480 seconds]
maximbaz has quit [Quit: bye]
maximbaz has joined #asahi-dev
chadmed has joined #asahi-dev
chadmed_ has quit [Read error: Connection reset by peer]
___nick___ has quit [Ping timeout: 480 seconds]
darkapex2 has joined #asahi-dev
darkapex1 has quit [Ping timeout: 480 seconds]
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.8]
balrog has quit [Quit: Bye]
balrog has joined #asahi-dev
nopeslide13 has quit []
nopeslide13 has joined #asahi-dev
nyilas has quit [Remote host closed the connection]