#
#asahi-re · 2026-07-02 16:14
mischa85StanfordAppliedCyber[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
#asahi-re · 2026-07-02 12:57
sofusaites[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
#asahi-re · 2026-07-02 12:55
chadmedtracing anything that does heaps of dumps to stdout will choke the machine. you have to have a lot of patience
#asahi-re · 2026-07-02 12:55
chadmedthe tracer is really really slow. see if async makes it any better
#asahi-re · 2026-07-02 12:54
sofusthat is weird, maybe the logger is to slow? I kinda remember i needed to push harder / longer for it to trigger
#asahi-re · 2026-07-02 12:48
aites[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
#asahi-re · 2026-07-02 12:47
sofusoh i think you never triggered the force click then
#asahi-re · 2026-07-02 12:46
sofusso 53 01 13 90 would be the smallest where 13 90 are controlling the click, with 13 being strengt and 90 softness
#asahi-re · 2026-07-02 12:46
aites[m]Ahh right. I have only discovered 2 of these lengths so far 😅
#asahi-re · 2026-07-02 12:44
sofusiirc you can control the way it clicks with 3 different lengts of commands
#asahi-re · 2026-07-02 12:41
aites[m]sofus: What do you mean by send anything with the 3 different headers?
#asahi-re · 2026-07-02 12:41
sofusi kinda remember the first number being strenght and the second being "softness"
#asahi-re · 2026-07-02 12:38
sofusthey all start with xx 01
#asahi-re · 2026-07-02 12:38
sofusoh yeah! You can send anything with the 3 different headers, and there are 3 different command lenghts also
#asahi-re · 2026-07-02 12:36
aites[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
#asahi-re · 2026-07-02 12:36
aites[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?
#asahi-re · 2026-07-02 12:35
sofusi think the command with len 4 was the easiest to play around with
#asahi-re · 2026-07-02 12:34
aites[m]sofus: Yeah this is what I found as well
#asahi-re · 2026-07-02 12:34
sofusiirc 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
#asahi-re · 2026-07-02 12:24
sofusi think i deleted my notes :(
#asahi-re · 2026-07-02 12:24
sofuswe dont *need* to do anything force related actually
#asahi-re · 2026-07-02 12:22
chadmedyeah 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
#asahi-re · 2026-07-02 12:20
sofusbut libinput support would be very cool, i remember something about haptic "waves"
#asahi-re · 2026-07-02 12:19
sofuswe can change the default haptics without needing to do anything crazy
#asahi-re · 2026-07-02 12:16
chadmedidm 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
#asahi-re · 2026-07-02 12:16
sofusim suprised it did not break
#asahi-re · 2026-07-02 12:16
chadmedlmfao awesome
#asahi-re · 2026-07-02 12:15
sofuschadmed: no i just send a bunch of cursed commands to my trackpad
#asahi-re · 2026-07-02 12:14
sofusaites[m]: the code allows you to send events to the trackpad like this: echo -ne '220111f0' > /sys/class/input/event0/device/raw
#asahi-re · 2026-07-02 12:14
chadmedsofus: 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"
#asahi-re · 2026-07-02 12:11
chaos_princessboot m1n1 without loading the kernel, then use the python interface to play with dockchannel
#asahi-re · 2026-07-02 12:11
aites[m]I'll take a look at your code thanks 🙏
#asahi-re · 2026-07-02 12:11
aites[m]sofus: hahaha don't worry I won't, certainly better than what I've got so far
#asahi-re · 2026-07-02 12:11
aites[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
#asahi-re · 2026-07-02 12:10
sofusplease dont jugde :p
#asahi-re · 2026-07-02 12:10
sofushttps://github.com/sofus13/linux/commit/3339f7a049f4ed359d757d44c0c976c6b8cfb402
#asahi-re · 2026-07-02 12:10
sofusaites[m]: i actually made a *very* crappy sysfs driver for this some time ago
#asahi-re · 2026-07-02 11:52
chadmeda 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
#asahi-re · 2026-07-02 11:52
chaos_princessuse m1n1
#asahi-re · 2026-07-02 11:52
aites[m]https://gitlab.freedesktop.org/libinput/libinput/-/work\_items/1027#note\_2543949
#asahi-re · 2026-07-02 11:52
aites[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.
#asahi-re · 2026-07-02 11:51
aites[m]Thanks!
#asahi-re · 2026-07-02 11:51
aites[m]or would a different kind of method be reccomended for this?
#asahi-re · 2026-07-02 11:51
aites[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
#asahi-re · 2026-07-02 11:51
aites[m]https://gitlab.freedesktop.org/libinput/libinput/-/work_items/1027#note_2543949
#asahi-re · 2026-07-02 11:51
aites[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.
#asahi-re · 2026-07-02 03:23
starcatmeowmischa85: 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
#asahi-re · 2026-07-01 22:36
StanfordAppliedCyber[m]mischa85: what are you working on? i have a very advanced tree for a m4 hypervisor + sptm emulator (tainted) so if you're doing any virtualizatio work i'm fairly certain there's a lot of room for collaboration
#asahi-re · 2026-07-01 22:35
StanfordAppliedCyber[m]aside from that there's nothing magical at all, my sptm emulator can write to it just fine
#asahi-re · 2026-07-01 22:34
StanfordAppliedCyber[m]sptm just says "you shall not write to this" and enforces that in the page tables

plus ›