#asahi-dev · 2023-03-15 05:27
marcanit's actually just in AppleTopCase.kext/Contents/PlugIns/AppleTopCaseDriverV2.kext/Contents/Info.plist#asahi-dev · 2023-03-15 05:27
marcanso we get to do the same#asahi-dev · 2023-03-15 05:27
marcannevermind, macOS just has a table of the kblang -> everything else#asahi-dev · 2023-03-15 04:55
marcanjannau: can you run experiments/mtp.py and paste the output? I think I might have found the real keyboard type.#asahi-dev · 2023-03-15 04:41
marcanokay, that's one set of "what if we need more data" questions answered#asahi-dev · 2023-03-15 04:40
marcanno other info#asahi-dev · 2023-03-15 04:40
marcanso this is really just the language code#asahi-dev · 2023-03-15 04:40
marcanand the first byte is the version#asahi-dev · 2023-03-15 04:40
marcanokay, that eliminates a lot of mystery.#asahi-dev · 2023-03-15 04:39
marcanjannau: oh lol, kblang-calibration is just 2 bytes and then a CRC32 of those 2 bytes.#asahi-dev · 2023-03-15 04:32
marcanright now we have that in /chosen which is probably also suboptimal (I imagine it should go in the HID device node)#asahi-dev · 2023-03-15 04:31
marcanalternatively we could just punt on standardizing any of this and keep doing what we do now, which is just shove the Apple-specific enum code somewhere and have userspace handle mapping that, but that's... maybe not ideal.#asahi-dev · 2023-03-15 04:30
marcanif we go with outright putting xkb type/model/options into the DT, that would nicely solve the problem but creates an interesting spec dependency with the xkb stuff (and that isn't as strictly managed as DT bindings are re backwards compat etc)#asahi-dev · 2023-03-15 04:29
marcanhow should this be expressed in the device tree? if we go with a country code type thing, that's lossy and userspace then still needs at least per-vendor tables (and Apple sometimes has more than one layout for a given country and not-technically-country-specific layouts, which is an issue).#asahi-dev · 2023-03-15 04:28
marcanoutput: userspace eventually needs to know what xkb layout to use (and the equivalent best-fit console keymap, though console keymaps are pretty hit and miss anyway)#asahi-dev · 2023-03-15 04:28
marcaninput: our bootloader knows the layout from system firmware, as a proprietary enum#asahi-dev · 2023-03-15 04:27
marcan- so then we need something to specify the *actual* layout, in detail, in the device tree#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 19:39
Cyrinux97 too for azerty keyboard#asahi-dev · 2023-03-14 18:30
eric_engestromyeah, international english iso#asahi-dev · 2023-03-14 18:28
jannauhttps://support.apple.com/en-us/HT201794#asahi-dev · 2023-03-14 18:28
eric_engestromhow do I check?#asahi-dev · 2023-03-14 18:28
eric_engestromor maybe I misremember what I got#asahi-dev · 2023-03-14 18:28
jannauor they use the same type for ansi and iso#asahi-dev · 2023-03-14 18:27
eric_engestromack#asahi-dev · 2023-03-14 18:27
jannauapparently they botched the keyboard type for ansi keyboard on the m2 air#asahi-dev · 2023-03-14 18:26
jannauthanks, not your fault but apple's#asahi-dev · 2023-03-14 18:26
eric_engestromsorry :/#asahi-dev · 2023-03-14 18:26
eric_engestromwrong one?#asahi-dev · 2023-03-14 18:25
jannausigh#asahi-dev · 2023-03-14 18:25
eric_engestrom7#asahi-dev · 2023-03-14 18:25
jannaueric_engestrom: `dmesg | grep 'Keyboard type'`#asahi-dev · 2023-03-14 18:24
eric_engestromhow can I help?#asahi-dev · 2023-03-14 18:24
eric_engestrommarcan: just saw your toot, I have what you're looking for: m2 air with iso keyboard#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:13
jannauor fixing various european iso layouts#asahi-dev · 2023-03-14 17:11
jannauI now suspect it's original intention was to make apple's iso international layout similar to the PC us international layout#asahi-dev · 2023-03-14 17:10
jannauI orginally tought so too but it differs between iso english international and german (and a other european languages)#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:06
jannaugood night