#
✕ nick:marcan
#asahi-dev · 2023-03-15 04:27
marcanhowever, HID country codes are useless for specifying actual keyboard layouts (they get way more complex than that). Apple only uses them to select among the 3 physical keyboard types (key arrangements), not the layout printed on the keycaps.
#asahi-dev · 2023-03-15 04:26
marcan- specifying/overriding the HID country code (which is a standard device property for real HID devices). we could just go apple,country-code, but this feels like this should probably be a standard prop?
#asahi-dev · 2023-03-15 04:25
marcanrobher: got some time to talk about keyboard layouts in device trees? there are two levels to the mess:
#asahi-dev · 2023-03-15 03:29
marcanyeah okay, we need the kblang thing then. sigh.
#asahi-dev · 2023-03-14 17:15
marcananyway, good night
#asahi-dev · 2023-03-14 17:15
marcanwe need a pile of proper Mac layouts in xkb that actually work
#asahi-dev · 2023-03-14 17:15
marcanwe should be moving *away* from stupid driver quirks
#asahi-dev · 2023-03-14 17:15
marcanthis needs to be fixed in xkb, not as a hack in the driver
#asahi-dev · 2023-03-14 17:14
marcanokay, this is a mess
#asahi-dev · 2023-03-14 17:14
marcanand so Apple decided to put backtick/tilde on 102nd and put some other stuff left of 1
#asahi-dev · 2023-03-14 17:14
marcanI was using Greek as a test and apparently... normal Greek keyboards just have that key duplicated?
#asahi-dev · 2023-03-14 17:14
marcanhttps://m.media-amazon.com/images/W/IMAGERENDERING_521856-T1/images/I/71NQ6Rx0lRL._AC_SL1500_.jpg lol
#asahi-dev · 2023-03-14 17:07
marcanjannau: I thought that flag was for iso vs non-iso, implying that all ISO layouts needed the quirk by default
#asahi-dev · 2023-03-14 17:05
marcanalso -asahi10 package in asahi-dev now
#asahi-dev · 2023-03-14 17:05
marcanI should sleep :p
#asahi-dev · 2023-03-14 17:05
marcananyway, the table so far pushed to bits/090-spi-hid and asahi-wip (no tag for now)
#asahi-dev · 2023-03-14 17:04
marcanOTOH using kblang-calibration would mean we don't need to touch the driver for new devices...
#asahi-dev · 2023-03-14 16:58
marcanjannau: does hid-apple actually need to know more than iso/ansi/jis? I thought it only checked that (it can only check that, those are the only three types ever exposed in hid->country)
#asahi-dev · 2023-03-14 16:57
marcanthough we can map it N:1 of course
#asahi-dev · 2023-03-14 16:57
marcanyes, the problem is that doesn't map 1:1 to the HID codes IIRC
#asahi-dev · 2023-03-14 16:48
marcanbut it looks like the ordering doesn't follow a neat pattern like that
#asahi-dev · 2023-03-14 16:48
marcanthat's where the %3 guess came from, and the assumption that there was a model they scrapped between those two (or out of order)
#asahi-dev · 2023-03-14 16:48
marcanyes
#asahi-dev · 2023-03-14 16:45
marcanbut I think that's 0?
#asahi-dev · 2023-03-14 16:45
marcanthen I'm just missing ANSI M2 Pro
#asahi-dev · 2023-03-14 16:45
marcanwould be nice to have someone with the ISO layout on that one
#asahi-dev · 2023-03-14 16:44
marcanyeah, that tracks
#asahi-dev · 2023-03-14 16:44
marcanM2 Air US?
#asahi-dev · 2023-03-14 16:44
marcan3/4/5 are unknown
#asahi-dev · 2023-03-14 16:44
marcanguessing 6 is ISO but I don't have that data point
#asahi-dev · 2023-03-14 16:43
marcan7 seems to be J413 ansi
#asahi-dev · 2023-03-14 16:43
marcanit was wrong
#asahi-dev · 2023-03-14 16:43
marcanthe % 3 was a guess
#asahi-dev · 2023-03-14 16:41
marcanjannau: you have iso layout, right?
#asahi-dev · 2023-03-14 16:39
marcan(and what layout you have)
#asahi-dev · 2023-03-14 16:39
marcanfor people with M2s, can I get some confirmation of keyboard codes? `dmesg | grep 'Keyboard type'`
#asahi-dev · 2023-03-14 16:24
marcanwe're back to some measurable reduction in code
#asahi-dev · 2023-03-14 16:24
marcan 10 files changed, 530 insertions(+), 554 deletions(-)
#asahi-dev · 2023-03-14 16:24
marcanalso I'd forgotten to remove the old header file
#asahi-dev · 2023-03-14 16:23
marcanworked for me but eh
#asahi-dev · 2023-03-14 16:23
marcanoh 9 had that UB so who knows what that did
#asahi-dev · 2023-03-14 16:23
marcanuh, the changes I just made should've fixed that
#asahi-dev · 2023-03-14 16:20
marcanthere, asahi-6.2-10
#asahi-dev · 2023-03-14 16:19
marcanit's 1am ok :p
#asahi-dev · 2023-03-14 16:19
marcansigh :p
#asahi-dev · 2023-03-14 16:18
marcanwhich is a nice bonus
#asahi-dev · 2023-03-14 16:18
marcanalso in theory on edge, dropping the asahi mkinitcpio hook now shouldn't leave your system totally unbootable I think
#asahi-dev · 2023-03-14 16:18
marcanedge should have everything as modules so we'll see
#asahi-dev · 2023-03-14 16:17
marcanasahi-6.2-9 pushed, making asahi-dev packages now
#asahi-dev · 2023-03-14 16:05
marcanso much for my -50 lines... sigh

plus ›