#
…

2021-11-26

00:18bgb has joined #asahi
00:23chamomile has joined #asahi
00:23bgb_ has quit [Ping timeout: 480 seconds]
00:40bgb_ has joined #asahi
00:47bgb has quit [Ping timeout: 480 seconds]
01:26steevjannau: you didn't commit the patch?
01:41bgb has joined #asahi
01:44bgb_ has quit [Ping timeout: 480 seconds]
01:45chamomile has quit [Ping timeout: 480 seconds]
02:37darkapex3 has joined #asahi
02:41darkapex2 has quit [Ping timeout: 480 seconds]
02:43bgb_ has joined #asahi
02:49bgb has quit [Ping timeout: 480 seconds]
03:07method_ has quit [Ping timeout: 480 seconds]
03:15phiologe has quit [Ping timeout: 480 seconds]
03:36chamomile has joined #asahi
03:56Method has joined #asahi
03:57kov has quit [Quit: Coyote finally caught me]
03:59pent1ckel has quit [Remote host closed the connection]
04:00pent1ckel has joined #asahi
04:20marvin24 has joined #asahi
04:24marvin24_ has quit [Ping timeout: 480 seconds]
04:37chamomile has quit [Ping timeout: 480 seconds]
04:46chamomile has joined #asahi
04:56chamomile has quit [Ping timeout: 480 seconds]
05:09chamomile has joined #asahi
06:18jannausteev: fixed
06:21sailorek1234 has joined #asahi
06:58chamomile has quit [Ping timeout: 480 seconds]
06:59ae86 has joined #asahi
07:41ae86 has quit [Remote host closed the connection]
07:47ae86 has joined #asahi
07:51ae86 has quit [Remote host closed the connection]
09:11mpsjannau: you merged all previous patches in one big file?
09:13j_eymps: probably to simplify the process
09:14mpsgood, will test it
09:18aleasto has joined #asahi
09:22_jannau_yes, handling became annoying. it's now 74 patches. indiviual patches are still there but collected in a single mbox file
09:22svensounds like we need to hurry up with the upstreaming :D
09:22sventhanks for managing that tree btw.!
09:25mpsyes, thanks jannau
09:25_jannau_the increase in patches is mostly t6000 dts fixes for squashing and binding updates for t6000
09:27_jannau_I guess 30 patches are already submitted upstream
09:43kov has joined #asahi
10:01arapis[m] has joined #asahi
10:36c10l8 has quit []
10:36c10l8 has joined #asahi
10:37c10l8 is now known as c10l
10:48akemin_dayo has quit [Ping timeout: 480 seconds]
11:31marcanI think the t6000 upstreaming branch has most of the immediately upstreamable stuff (and some not)
11:53as400 has joined #asahi
11:54as400jannau: thx for that new pkgbuild. I just cross-compiled it.
12:25not_a_weeaboo[m] has joined #asahi
12:30akemin_dayo has joined #asahi
12:45bgb has joined #asahi
12:51bgb_ has quit [Ping timeout: 480 seconds]
13:11darkapex3 is now known as darkapex
14:06ae86 has joined #asahi
14:12as400 has quit [Remote host closed the connection]
14:20ae86 has quit [Remote host closed the connection]
14:21ae86 has joined #asahi
14:22sailorek1234 has quit []
14:23ae86 has quit [Remote host closed the connection]
14:36ae86 has joined #asahi
14:56ae86 has quit [Remote host closed the connection]
14:57ae86 has joined #asahi
15:08ae86 has quit [Remote host closed the connection]
15:09akemin_dayo has quit [Ping timeout: 480 seconds]
15:33eta is now known as eta_
15:36eta has joined #asahi
15:36eta has quit []
15:36eta has joined #asahi
15:38eta has quit []
15:39eta has joined #asahi
15:41mpsjannau: I built it and started, works. thanks
15:43mpsbut still have 'my' old problems, touchpad is detected but cursor doesn't move, though button work (looks like) because I can select text (highlighted) in terminal in the centre of screen
15:44mpsalso noticed that press Caps-Lock on console is sure method to freeze machine
15:45j_eyconsole meaning the VT, before X11?
15:45mpsj_ey: yes
15:45j_eyhm, I hadn't noticed that, will try later
15:46mpsin X that not happens, maybe because I remaped caps-lock to ctrl
15:46darkapex1 has joined #asahi
15:46_jannau_mps: air or pro 13/14/16?
15:46kettenisthat suggests that the corellium keyboard driver has bugs
15:46kettenis(no surprise there)
15:48darkapex has quit [Ping timeout: 480 seconds]
15:48_jannau_trackpad works for me more or less as expected under kwin/wayland
15:48eta_ has quit [Quit: Gateway shutdown]
15:49mps_jannau_: pro 2020, i think it is j293 code
15:49mps_jannau_: do you use FB or simpledrm
15:50mpsI'm guessing this trackpad problem could be related to display driver
15:50_jannau_macbook pro 14", simpledrm but I don't see how that could be related to the trackpad
15:51mps_jannau_: evtest shows moves
15:54mpsabout audio, I see that mpv detects multimedia keys from usb audio card (increase and decreases volume and mute/unmute it) but mpv is stuck
16:03mpskettenis: I'm thinking to test https://github.com/kettenis/u-boot but not sure should I use master branch or some other?
16:11akemin_dayo has joined #asahi
16:16nrl^ has quit [Remote host closed the connection]
16:17kettenisthe apple-m1-m1n1-nvme branch is what you want
16:17j_eymps: can you reproduce the caps lock thing? I can't. are the any errors printed?
16:19hspak has quit [Quit: The Lounge - https://thelounge.chat]
16:19mpskettenis: thanks
16:20mpsj_ey: yes, every time I press it (by mistake) machine freezes
16:20hspak has joined #asahi
16:21j_eymps: so the cursor stops blinking?
16:21j_eyyou could try run it under the hypervisor to see if it shows a crash in the shell
16:22j_eykettenis: i stopped writing to CLKIDLE, and everything seems to work *shrug*
16:22mpsj_ey: yes, cursor stops blinking and pressing any key nothing happens
16:22svenmight be interesting to look at the signals for different values of that register. It sounds like it’ll introduce some delay sometime during the SPI transmission
16:23j_eysven: signals, like ososcosilssiope or?
16:24* j_eytries setting it to 0xff
16:24svenprobably not necessary though if it still works without that write
16:24svenI’m just curious
16:24j_eyno noticable difference if i write 0xff
16:25j_ey(not very scientific, but I dont have such tools)
16:26svenheh, yeah. getting access to the spi signals is probably going to be a bit annoying
16:27j_eynor 0xffffff, I will remove it
16:33bgb_ has joined #asahi
16:36j_eysven: you know it's funny, the TX fifo is basically always empty
16:36j_eysven: i need to type at like 5000wpm to test it
16:37svenhrm, I tested it from m1n1 by just writing to it without starting a transaction
16:37svenor did I just confuse rx and tx?
16:38kettenistx is what you write from, rx is what you read from ;)
16:38bgb has quit [Ping timeout: 480 seconds]
16:38svenjust making sure :D
16:41j_eyooh, pressing capslock means i can trigger TX_FIFO_LEVEL being more than 0
16:46indra has joined #asahi
16:50tomtastic has quit [Quit: ZNC - https://znc.in]
16:50leah has quit [Quit: WeeChat 3.3]
16:53tomtastic has joined #asahi
16:55indra has quit []
17:03dsrt^ has joined #asahi
17:31slicey has joined #asahi
17:37Gaspare has joined #asahi
17:42chamomile has joined #asahi
17:55yuyichao has quit [Ping timeout: 480 seconds]
18:16yuyichao has joined #asahi
19:39YichaoYu[m]Just curious, how is the fn key in the 13” mbp implemented? Is it implemented in the hard/firmware or does the kernel handle it?
19:40j_eysoftware
19:40j_eythere's some stuff around applespi_translate_fn_key in drivers/input/keyboard/applespi.c
19:40YichaoYu[m]Does it mean it can be remapped? (Unlike most pc laptop)
19:43d0p1 has joined #asahi
19:44j_eyI havent tried
19:50YichaoYu[m]k, there's a fnremap option which seems like it'll do that
19:54kettenisapplespi.c was written by someone who didn't rrealize that this is a standard apple HID keyboard
19:54YichaoYu[m]Would be nice if that option (or the feature) survives the keyboard driver rewrite.
19:55kettenisdrivers/hid/hid-apple.c handles the function keys
19:55YichaoYu[m]meaning it could have used existing code?
19:55kettenisalmst certainly
19:56YichaoYu[m]I guess the `swap_fn_leftctrl` option would be what I want then. assuming the new driver uses it
19:56j_eywould have needed a new HID transport driver
19:57kettenisyes, applespi.c should have been written as a spi hid transport driver
19:57YichaoYu[m]and how would drawing the touchbar be handled?
19:58kettenistouchbar is a completely different device
19:58YichaoYu[m]yeah, but would that be handled by userspace or the kernel
19:58YichaoYu[m]for just showing F keys
20:02akemin_dayo has quit [Ping timeout: 480 seconds]
20:03akemin_dayo has joined #asahi
20:04j_eysince applespi is there.. Im not sure if its too bad to just use it (277 insertions(+), 103 deletions(-))
20:10aleasto has quit [Remote host closed the connection]
20:14jannauI've started with looking into implementing a spi apple HID transport but I don't get to it due git tree handling
20:19j_eyat least we have the applespi patch as something to use for now
21:21Dcow_ has joined #asahi
21:21Dcow has quit [Read error: Connection reset by peer]
21:33Gaspare has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:36Gaspare has joined #asahi
21:57jannaumps: I get "applespi spi0.0: Received corrupted packet (invalid packet length 849)" on deactivating capslock
21:57j_eyjannau: there's always one of those at the start, it was definitely after capslock?
21:58jannauand I can wedge the trackpad when I press capslock and move a finger on the trackpad
21:59slicey has quit [Quit: zzz]
22:00jannauj_ey: yes, repeatable. and pressing capslock alone can wedge the trackpad
22:01_chamomile has joined #asahi
22:01mpsjannau: ah, so I should try to remove xorg mapping from caps lock and maybe trackpad will work
22:03j_eyjannau: damn
22:03kettenisthe LED on the caps lock key is software controlled
22:03jannauI think capslock is hardware/kernel driver problem. you can't do anything in user space
22:03j_eyjannau: can you do the capslock thing in console?
22:03kettenislike it is on a USB keyboard
22:04kettenisand sending the command to turn the LED on/of probably interferes with receiving reports from the keyboard and/or touchpad
22:05mpskettenis: you are right
22:06mpsunmapping didn't helped
22:07j_eyjannau: you could try my new SPI driver.. I doubt it will make a difference
22:08chamomile has quit [Ping timeout: 480 seconds]
22:12Gaspare has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:22jannaumultiple keypresses wedge the trackpad as well. I'll look at it tomorrow
22:46_chamomile has quit [Ping timeout: 480 seconds]
22:57slicey has joined #asahi
22:57Gaspare has joined #asahi
23:00chamomile has joined #asahi
23:03ae86 has joined #asahi
23:04ae86 has quit [Remote host closed the connection]
23:07ae86 has joined #asahi
23:14ae86 has quit [Remote host closed the connection]
23:16ae86 has joined #asahi
23:24ae86 has quit [Ping timeout: 480 seconds]
23:28yuyichao has quit [Ping timeout: 480 seconds]
23:51Gaspare has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:51X-Scale` has joined #asahi
23:51Gaspare has joined #asahi
23:57X-Scale has quit [Ping timeout: 480 seconds]
23:59X-Scale has joined #asahi
…