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: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:52chaos_princessuse m1n1
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: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: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: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: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: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: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:46sofusso 53 01 13 90 would be the smallest where 13 90 are controlling the click, with 13 being strengt and 90 softness
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: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
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]