#
…

2026-07-02

01:15pb17 has quit [Ping timeout: 480 seconds]
01:32hdbngr has quit [Ping timeout: 480 seconds]
01:40pb17 has joined #asahi-re
02:00yurix has quit [Remote host closed the connection]
02:00yurix has joined #asahi-re
02:08nela has quit [Ping timeout: 480 seconds]
02:12nela has joined #asahi-re
03:00starcatmeow has joined #asahi-re
03:18r0ni has quit [Quit: Textual IRC Client: www.textualapp.com]
03:18turboretor6 has joined #asahi-re
03:23turboretor has quit [Ping timeout: 480 seconds]
03:23turboretor6 is now known as turboretor
03:23starcatmeowmischa85: hi i'm also trying working on m4 mac mini, got the nvme part work by writing io sq/cq base addr to offset 0x1200 and 0x1208 after the create io sq/cq admin cmd
03:28integralpilot has joined #asahi-re
04:42integralpilot has quit [Quit: integralpilot]
04:43integralpilot has joined #asahi-re
04:49mattia013 has joined #asahi-re
06:36sofus has joined #asahi-re
06:39sofus has quit []
06:40sofus has joined #asahi-re
06:46hdbngr has joined #asahi-re
06:53pb17 has quit [Ping timeout: 480 seconds]
07:05pb17 has joined #asahi-re
07:21jtingiris has quit [Quit: ZNC 1.10.1 - https://znc.in]
07:21jtingiris has joined #asahi-re
07:27hdbngr_ has joined #asahi-re
07:28enverbalalic has joined #asahi-re
07:29starcatmeow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:34hdbngr has quit [Ping timeout: 480 seconds]
07:36enverbalalic has quit [Ping timeout: 480 seconds]
07:40integralpilot has quit [Quit: integralpilot]
07:41jtingiris has quit [Quit: ZNC 1.10.1 - https://znc.in]
07:41jtingiris has joined #asahi-re
07:48integralpilot has joined #asahi-re
09:04r0ni has joined #asahi-re
10:15jamie__ has quit [Remote host closed the connection]
10:15jamie__ has joined #asahi-re
10:18enverbalalic has joined #asahi-re
10:26enverbalalic has quit [Ping timeout: 480 seconds]
10:42Guest12229 has quit [Ping timeout: 480 seconds]
10:45enverbalalic has joined #asahi-re
10:45enick_590 has joined #asahi-re
11:51aites[m]Hi, all! I'm an asahi linux user (m2 max) and I've wanted to see if I could develop something macos forceclick-like functionality for asahi. I've been playing around with running macos under the m1n1 hypervisor and playing around with the macbook's dockchannel interface for its internal MTP trackpad, and was reading the conversations with marcan on the libinput gitlabs.
11:51aites[m]Following his findings, I think I'm starting to get a sense of which TX and RX packets do what, and I was wondering what I would use to try and write my own custom packets through dockchannel on macos to play around with what each packet does
11:51aites[m]or would a different kind of method be reccomended for this?
11:52aites[m]* Hi, all! I'm an asahi linux user (m2 max) and I want to see if I could develop some sort of macos forceclick-like functionality for asahi. I've been playing around with running macos under the m1n1 hypervisor and playing around with the macbook's dockchannel interface for its internal MTP trackpad, and was reading the conversations with marcan on the libinput gitlabs.
11:52chadmeda m1n1 experiment might be easier than trying to wrangle macos apis into sending custom HID packets across dockchannel, or just hack up a linux driver based on the existing hid dockchannel driver
12:10sofusaites[m]: i actually made a *very* crappy sysfs driver for this some time ago
12:10sofusplease dont jugde :p
12:11aites[m]chaos_princess: I'm sorry, I don't quite understand. I am using m1n1 hypervisor right now to trace the packets going through dockchannel I thought
12:11aites[m]sofus: hahaha don't worry I won't, certainly better than what I've got so far
12:11aites[m]I'll take a look at your code thanks 🙏
12:11chaos_princessboot m1n1 without loading the kernel, then use the python interface to play with dockchannel
12:14chadmedsofus: did you ever find a way to wire this up into libinput's existing forcepad stuff? when i looked at it (c. 2022?) there was basically nothing libinput could do with this sort of touchpad other than go "hm yes this is indeed a forcepad"
12:14sofusaites[m]: the code allows you to send events to the trackpad like this: echo -ne '220111f0' > /sys/class/input/event0/device/raw
12:15sofuschadmed: no i just send a bunch of cursed commands to my trackpad
12:16chadmedlmfao awesome
12:16sofusim suprised it did not break
12:16chadmedidm the default haptics the stm initialises the pad with but macos has some nice settings that it seems libinput intended to support at some point but never got around to
12:18integralpilot has quit [Remote host closed the connection]
12:19sofuswe can change the default haptics without needing to do anything crazy
12:20sofusbut libinput support would be very cool, i remember something about haptic "waves"
12:22chadmedyeah i remember needing a little bit more API surface to abstract away some things the same way macos does e.g. force required to register a click and the "type" of haptic provided but again this was aaaages ago
12:24sofuswe dont *need* to do anything force related actually
12:24sofusi think i deleted my notes :(
12:34sofusiirc there where 3 commands to control haptics, 0x22 to set the press haptic, 0x23 to set the up(?) haptic and 0x53 to just send an event
12:34aites[m]sofus: Yeah this is what I found as well
12:35sofusi think the command with len 4 was the easiest to play around with
12:36aites[m]And it seems that under 0x53 there are 2 (3?) different send commands, 53 01 13 90 seems to be a regular click, and 53 01 18 90 seems to be used for a force click?
12:36aites[m]But it seems to also be swapped with 53 01 17 90 sometimes when doing force click and I haven't gotten around to figuring out what's different yet
12:38sofusoh yeah! You can send anything with the 3 different headers, and there are 3 different command lenghts also
12:38sofusthey all start with xx 01
12:41sofusi kinda remember the first number being strenght and the second being "softness"
12:41aites[m]sofus: What do you mean by send anything with the 3 different headers?
12:44sofusiirc you can control the way it clicks with 3 different lengts of commands
12:46aites[m]Ahh right. I have only discovered 2 of these lengths so far 😅
12:46sofusso 53 01 13 90 would be the smallest where 13 90 are controlling the click, with 13 being strengt and 90 softness
12:47sofusoh i think you never triggered the force click then
12:48aites[m]that's weird, under the hypervisor I pushed the trackpad until the yellow highlight for the force click came up and I read the packets over the hypervisor log
12:54sofusthat is weird, maybe the logger is to slow? I kinda remember i needed to push harder / longer for it to trigger
12:55chadmedthe tracer is really really slow. see if async makes it any better
12:55chadmedtracing anything that does heaps of dumps to stdout will choke the machine. you have to have a lot of patience
12:57sofusaites[m]: i had written two of the "medium" events down: 53 01 2E 90 02 00 24 18 1B and 53 01 32 90 02 04 24 18 1B
13:01amarioguy has joined #asahi-re
13:14integralpilot has joined #asahi-re
13:15integralpilot has quit []
13:51alessaba has joined #asahi-re
14:05alessaba has quit [Ping timeout: 480 seconds]
14:06alessaba has joined #asahi-re
14:13yurix has quit [Remote host closed the connection]
14:14enverbalalic has quit [Ping timeout: 480 seconds]
14:15yurix has joined #asahi-re
14:21alessaba has quit [Ping timeout: 480 seconds]
14:22alessaba has joined #asahi-re
14:30enverbalalic has joined #asahi-re
14:52enverbalalic has quit [Ping timeout: 480 seconds]
14:59pb17 has quit [Ping timeout: 480 seconds]
15:01pb17 has joined #asahi-re
15:19enverbalalic has joined #asahi-re
15:42enverbalalic has quit [Ping timeout: 480 seconds]
16:14mischa85StanfordAppliedCyber[m]: got PCIe up on t6041, back on NVMe now. admin queue works from el2 via the +0x40000000 alias, but the fw's cold-boot FTL gives NVME_PERM_ERR before any host command
16:15mischa85looks like the coastguard uimmu translation for the fw's FTL DMA never gets set up
16:16mischa85so the million dollar question is: what programs the coastguard?
16:17svenalso, uh, this happens before you send any command on the admin queue?
16:17svencould also be that SART is setup incorrectly
16:22mischa85yeah, before any command, no identify sent.
16:22svencould also be that you're missing some additional initialization that was added on t6041
16:22mischa85should SART also cover the low range the firmware DMA's to?
16:23sventhe NVMMU only works together with a NVMe command on either queue
16:23svenSART contains a few regions put there by iboot including the firmware itself iirc
16:23svenand we also have to put the rtkit buffers in there
16:23svenbut i'd really expect that iboot sets all that up
16:33mischa85right. that makes sense. might be worth tracing ans bringup from xnu on t6040/t6041
17:05mischa85starcatmeow: is nvme-secure-bar present in your ADT?
18:20enverbalalic has joined #asahi-re
18:28enverbalalic has quit [Ping timeout: 480 seconds]
18:38enverbalalic has joined #asahi-re
18:46enverbalalic has quit [Ping timeout: 480 seconds]
19:02rosalyntg_ has joined #asahi-re
19:02rosalyntg has quit [Remote host closed the connection]
19:22enverbalalic has joined #asahi-re
19:37Calandracas_ has joined #asahi-re
19:41Calandracas has quit [Ping timeout: 480 seconds]
19:42flokli has quit [Quit: WeeChat 4.9.1]
19:43flokli has joined #asahi-re
19:46Calandracas_ has quit [Ping timeout: 480 seconds]
20:39amarioguy has quit [Ping timeout: 480 seconds]
20:47starcatmeow has joined #asahi-re
20:51starcatmeowmischa85: yes, but looks like we are having different issues. I was running into RTKit crash saying "cmd fetch error for host I/O SQ" and both I/O SQ/CQ addr are 0.
21:48StanfordAppliedCyber[m]mischa85: i'm writing cleanroom docs on my sptm emulator right now, i finished xnu-bootstrap a while ago (it's missing some stuff i learned recently, notably the cache stuff, but is overall correct), i finished sart yesterday, will work on dart + nvme + uat today, probably gonna do txm last because i may end up tossing that emulator entirely and just doing the "virtualize txm" thing separately
22:26pb17 has quit [Ping timeout: 480 seconds]
22:32SternXD has joined #asahi-re
22:37pb17 has joined #asahi-re
22:41starcatmeow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:10leah has quit [Ping timeout: 480 seconds]
…