2021-12-15
00:07Dcow_ has joined #asahi-dev
00:07leah has quit [Quit: WeeChat 3.3]
00:33jannauit probably should be integrated back into hid-magicmouse but that needs refactoring first. the report id clashes with MAGIC_TRACKPAD2_USB but both use a different format for the touch contacts
00:36jannauassuming we can get rid of applespi it will probably result in a negative line count change while supporting more hardware
00:51yuyichao has quit [Ping timeout: 480 seconds]
01:50skipwich has joined #asahi-dev
02:39Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:50leah has joined #asahi-dev
03:07PhilippvK has joined #asahi-dev
03:10phiologe has quit [Ping timeout: 480 seconds]
05:22yuyichao has joined #asahi-dev
06:11marcanmaz: there is a way to control the affinity per-cluster to some extent, and there is a grouping system which may allow CPUs to opt-in to only specific priority levels (unclear)
06:15marcanjannau: does it work? I was just adding a "no multitouch" comment, but I can skip that :p
07:02marcanalso re RTC, ehh, I'm not terribly interested in listing everything they have some driver for; I'm only throwing up WiFi because people keep bugging me about it :p
07:03marcanI think we've run out of drivers to even consider saving from them anyway, what's left is either a complete mess or kettenis already worked it out better ;)
07:11marcanjannau: the report IDs aren't supposed to be unique anyway; note how magicmouse_emit_touch ends up looking up the PID
07:20jannaumarcan: magicmouse_raw_event uses the Report IDs to identify the data format though. nothing a little refactoring can't fix
07:39pg12 has joined #asahi-dev
07:41pg12_ has quit [Ping timeout: 480 seconds]
07:44marcandrivers/hid/spi-hid/spi-hid-apple.c:828:27: error: ‘spi_hid_apple_shutdown’ undeclared here (not in a function); did you mean ‘spi_hid_apple_match’?
07:47marcanjannau: something's glitchy about the touchpad; clicking and dragging with one finger does not work (two fingers does), and two-finger scroll is kind of weird
07:59jannauoutput reports are not yet implemented, hid-apple doesn't seem to use them with the current keyboard id though
08:03marcanmtview shows good data from the event device, maybe xorg is somehow confused by something?
08:05marcan[ 691.453] (EE) event1 - MacBook Force Touch trackpad: kernel bug: Touch jump detected and discarded.
08:05marcanSee https://wayland.freedesktop.org/libinput/doc/1.19.2/touchpad-jumping-cursors.html for details
08:05marcan[ 691.453] (EE) event1 - MacBook Force Touch trackpad: WARNING: log rate limit exceeded (5 msgs per 24h). Discarding future messages.
08:06marcan[ 256.040] (EE) event1 - MacBook Force Touch trackpad: client bug: event processing lagging behind by 13ms, your system is too slow
08:06marcan[ 285.664] (EE) event1 - MacBook Force Touch trackpad: client bug: event processing lagging behind by 108ms, your system is too slow
08:22jannauI force pushed some minor changes, I still see occasionally jumps but 2 finger scrolling feels better
08:32ChaosPrincess has quit [Quit: WeeChat 3.3]
08:33ChaosPrincess has joined #asahi-dev
08:47jannaumarcan: libinput has quirks for applespi / apple touch pads which are not applied for hid-appleft
08:51jannauah, and I wondered why applespi doesn't report pressure. maybe libinput ignores events with low pressure values
08:55jannaumaybe a scaling problem: libinput thinks the trackpad is 69x50mm while it is more like 130x80
08:57somkls^ has joined #asahi-dev
09:22marcanjannau: so setting the correct pressure range now results in libinput defaulting to a touch pressure threshold *higher* than the palm detection threshold
09:32marcanpressure palm detection is stupid anyway; pressure has to be a misnomer here, intended for touchpad-based "pressure" detection which is more like area-based
09:34marcanlike I get ~600 solidly resting my palm on the touchpad, but I can easily get more than that pressing hard down with my finger
09:39_jannau_libuinput has AttrPressureRange=N:M, AttrPalmPressureThreshold=O, AttrThumbPressureThreshold=P quirks but those won't help if we report pressure instead of touch area like bcm5974
09:40aleasto has joined #asahi-dev
09:41mjg59Please do not assume that any of the attributes reported in bcm5974 are necessarily accurate
09:45_jannau_mjg59: the hardware documentation part looks mostly accurate as far as I've looked at it
09:50marcanthe correct solution is to translate it into something that meets the input specification
09:51marcanif libinput is doing insane things like setting a touch threshold higher than a palm threshold with a 0~6000 pressure range, that's a libinput bug
10:02marcangiven a quick test with a 355 ml can of Monster yielding values in the 370 range on top of my finger
10:07_jannau_does it report right/middle button clicks? I haven't managed to check if the the hardware reports them directly in the mouse button report
10:08marcanthose are for physical buttons only, unless we want to treat it as a touchpad and disable all the software logic for those
10:13marcanbut at least that's a style thing, it's not broken without it, just not the behavior macOS has
10:16marcanok, I'm going to say this is good enough for the asahi branch for now and finish up that progress report
10:16Dcow_ has joined #asahi-dev
10:21kenzie has quit [Remote host closed the connection]
10:22kenzie has joined #asahi-dev
10:38Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:42ChaosPrincesswould be cool to have that table on gsheets or whatever to track progress in real time as opposed to once per progress report
10:46svenohh... and you forgot about the most important thing ever: the watchdog for reboot support :-P
10:46TellowKrinkle[m]> Apple really don’t cut corners when it comes to making their hardware friendly to software developers :-).
10:46TellowKrinkle[m]Shouldn't that be "doesn't"?
10:46TellowKrinkle[m]Shouldn't that be "doesn't"?
10:47TellowKrinkle[m]chadmed: Oh interesting
10:59Jamie[m]1Dark blue ("Work in progress, available for testing in the linux-asahi branch") having a kernel version (for Device Tree on T600x) is a little confusing
11:03marcanit's a weird case because the review is pretty trivial, so *if* the AIC and DART stuff get merged in time it'll make it, otherwise not
11:11_jannau_I'd say not. There are not many uses cases where jpeg encode/decode perfomance/power use are relevant on a computer.
11:30marcansven: just sent you a quick fix for some fail in the pmgr build that the test robot caught, if you can review it before I fire off the next pull to arnd :)
11:45marcanarnd: I have a merge conflict with something that went into 5.16-rc5, are you okay if I base the 5.17 DT pull on that? It's not urgent, so that patch can also wait if that's easier.
11:53conradev has quit [Quit: -]
11:55conradev has joined #asahi-dev
12:07StupidYui has joined #asahi-dev
12:07marcanarnd: I guess I'd have to do something like merge 5.16-rc5 on top of my previous DT branch, then rebase off of that and fix the conflict, then send you the pull with that merge commit as base?
12:08unrelentingtechmarcan: oh you found the bcm5974 pressure thing :D that I reported to libinput a couple weeks ago https://gitlab.freedesktop.org/libinput/libinput/-/issues/697
12:10unrelentingtechyeah the "you have to set a resolution" thing isn't very.. discoverable
12:11j`eysven: did you say that the watchdog should automatically be picked up by the 'reboot' command?
12:12sveni had to use reboot -f inside my initramfs though but just reboot worked when i booted into a sane userland
12:23arndmarcan: torvalds and I are both used to sorting out merge conflicts. If the new patches you have work without the earlier bugfix, I'd prefer to keep the git history clean and do the conflict resolution on my end
12:23al3xtjames0 has joined #asahi-dev
12:24al3xtjames has quit [Read error: Connection reset by peer]
12:24al3xtjames0 is now known as al3xtjames
12:44jannaukettenis: none so I'ld guess ascii. using USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021 with hid-apple. That has an incorrect Fn key mapping
12:52kettenisthe other question is whether we need to add somephysical parameters for the touchpad in the device tree
12:56kettenismy Dutch ISO keyboard is to close to the Internation English ISO variant to make a distinction
12:57kettenisbut I'm wondering whether German (QWERTZ) or French (AZERTY) work correctly without userland configuration
13:13Dcow has quit [Read error: Connection reset by peer]
13:13Dcow_ has joined #asahi-dev
13:20marcanpovik: confession: I didn't actually test it, I just assumed it did given it's the same codec; I planned to but then I got distracted with touchpad stuff :)
13:21arndmarcan: ok, so no functional dependency, just a trivial conflict affecting context, don't worry about that then
13:22arndmarcan: and if you did need this as a dependency, you still wouldn't need to merge in -rc6, but just merge the fixes branch that contains this commit into your DT branch, that way you'd avoid backmerging all of the mainline changes from other people
13:25chadmed has quit [Quit: Konversation terminated!]
13:25chadmed has joined #asahi-dev
13:33Dcow has joined #asahi-dev
13:46povikmarcan: i have small (15M) rootfs.cpio.gz with alsa tools, it's been built by buildroot, i can send it to you if you want
14:21marcanarnd: pulls sent, hope I didn't screw up the wrapping this time :-) (I just turned it off in thunderbird after forcing it to hard wrap the cover message part only)
14:23arndmarcan: ok, I see it. There are no extra linewraps, but I still see the odd extra spaces at the start of each line that has one or more spaces at the beginning.. Not a problem since the commit message comes from the tag anyway, but I wonder what causes this
14:28kyoto has joined #asahi-dev
14:34kyoto has quit [Remote host closed the connection]
14:39arndDocumentation/process/email-clients.rst has a few things on Thunderbird, not sure any of those help
14:41mazmarcan: I came to that conclusion after a number of failed attempts at making TB work. eventually, I abandoned TB altogether, but git-send-email stayed...
14:43marcanmaz: I definitely don't trust TB for patches; kind of hoped it'd be good enough for pulls...
14:43marcanlooks like I *might* be able to make it work this way, as long as I remember to rewrap the cover text and then click the disable linewrap button
14:50c10l8 has joined #asahi-dev
14:52marcankettenis: https://news.ycombinator.com/item?id=29566308 looks like I need to start outsourcing a section of the report to you :-)
14:56sjg1_ has joined #asahi-dev
14:56nathanchance_ has joined #asahi-dev
14:56philpax_ has joined #asahi-dev
14:57c10l has quit [Ping timeout: 480 seconds]
14:57jabashque_ has joined #asahi-dev
14:57Lightsword_ has joined #asahi-dev
14:57nkaretnikov_ has joined #asahi-dev
14:57tardyp_ has joined #asahi-dev
14:58nkaretnikov has quit [Ping timeout: 480 seconds]
14:58nkaretnikov_ is now known as nkaretnikov
14:58nathanchance has quit [Ping timeout: 480 seconds]
14:58gruetze_ has joined #asahi-dev
14:58tbodt_ has joined #asahi-dev
14:59tbodt has quit [Ping timeout: 480 seconds]
14:59rcombs has quit [Ping timeout: 480 seconds]
15:00Lightsword has quit [Ping timeout: 480 seconds]
15:00jabashque has quit [Ping timeout: 480 seconds]
15:00koorogi1 has joined #asahi-dev
15:00tardyp has quit [Ping timeout: 480 seconds]
15:00tardyp_ is now known as tardyp
15:01sjg1 has quit [Ping timeout: 480 seconds]
15:01sjg1_ is now known as sjg1
15:01philpax has quit [Ping timeout: 480 seconds]
15:01_jannau_ has quit [Ping timeout: 480 seconds]
15:01yuyichao has quit [Ping timeout: 480 seconds]
15:02koorogi has quit [Ping timeout: 480 seconds]
15:02gruetzkopf has quit [Ping timeout: 480 seconds]
15:02_jannau_ has joined #asahi-dev
15:13j`eyI also got: drivers/hid/spi-hid/spi-hid-apple.c:56:17: warning: variable 'spi_hid_apple_status_ok' is not needed and will not be emitted [-Wunneeded-internal-declaration]
15:13rcombs has joined #asahi-dev
15:32yuyichao has joined #asahi-dev
15:41yuyichao_ has joined #asahi-dev
15:45yuyichao has quit [Ping timeout: 480 seconds]
15:56yuyichao_ has quit [Quit: Konversation terminated!]
15:56yuyichao_ has joined #asahi-dev
16:01Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:13yuyichao has joined #asahi-dev
16:15nathanchance_ has quit []
16:16nathanchance_ has joined #asahi-dev
16:16nathanchance_ has quit []
16:16nathanchance has joined #asahi-dev
16:19marcanalright, I think that's all the urgent-ish kernel stuff taken care of... I should follow up on spi and aic2 tomorrow and then maybe I'll have time for wifi :)
16:20yuyichao_ has quit [Ping timeout: 480 seconds]
16:35somkls^ has quit [Remote host closed the connection]
16:41Dcow has joined #asahi-dev
16:47kgarrington has joined #asahi-dev
16:49kgarrington has quit [Remote host closed the connection]
16:59riker77 has quit [Quit: Quitting IRC - gone for good...]
17:12riker77 has joined #asahi-dev
17:14riker77 has quit []
17:17kgarrington has joined #asahi-dev
17:18kgarrington has quit [Remote host closed the connection]
17:24kgarrington has joined #asahi-dev
17:24kgarrington has quit [Remote host closed the connection]
17:24dottedmagWouldn't it be nice if it also sent e-mails like "I have found some new code, checked it and it's perfect"?
17:25kgarrington has joined #asahi-dev
17:26kgarrington has quit [Remote host closed the connection]
17:27riker77 has joined #asahi-dev
17:46Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:49Dcow has joined #asahi-dev
17:57Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:18yamii has joined #asahi-dev
18:20Dcow has joined #asahi-dev
18:33Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:39Dcow has joined #asahi-dev
18:40Dcow has quit []
18:42somkls^ has joined #asahi-dev
18:54c10l8 has quit [Remote host closed the connection]
18:54c10l8 has joined #asahi-dev
18:54c10l8 has quit [Remote host closed the connection]
18:54c10l8 has joined #asahi-dev
18:54c10l8 has quit [Remote host closed the connection]
18:54c10l8 has joined #asahi-dev
18:54c10l8 has quit [Remote host closed the connection]
18:54c10l8 has joined #asahi-dev
18:54c10l8 has quit [Remote host closed the connection]
18:55c10l8 has joined #asahi-dev
18:55c10l8 has quit [Remote host closed the connection]
18:55c10l8 has joined #asahi-dev
18:55c10l8 has quit [Remote host closed the connection]
18:55c10l8 has joined #asahi-dev
18:55c10l8 has quit [Remote host closed the connection]
18:55c10l8 has joined #asahi-dev
18:55c10l8 has quit [Remote host closed the connection]
18:55c10l8 has joined #asahi-dev
18:55c10l8 has quit [Remote host closed the connection]
18:55c10l8 has joined #asahi-dev
18:55c10l8 has quit [Remote host closed the connection]
18:56c10l8 has joined #asahi-dev
18:56c10l8 has quit [Remote host closed the connection]
18:56c10l8 has joined #asahi-dev
18:56c10l8 has quit [Remote host closed the connection]
18:56c10l8 has joined #asahi-dev
18:56c10l8 has quit [Remote host closed the connection]
18:56c10l8 has joined #asahi-dev
18:56c10l8 has quit [Remote host closed the connection]
19:03Dcow has joined #asahi-dev
19:06Dcow has quit []
19:15Dcow has joined #asahi-dev
19:17Dcow has quit []
19:27FireFox317do we already have an idea how the backlight of the lcd is controlled on these m1 machines? Keyboard backlight seems to be PWM, but im not sure about the lcd backlight
19:27FireFox317Maybe it is SMC actually?
19:29FireFox317j`ey: ah thanks, will have a look at that
19:51___nick___ has joined #asahi-dev
19:51___nick___ has quit []
19:51c10l8 has joined #asahi-dev
19:51c10l8 has quit [Remote host closed the connection]
19:52c10l8 has joined #asahi-dev
19:52c10l8 has quit [Remote host closed the connection]
19:52c10l8 has joined #asahi-dev
19:52c10l8 has quit [Read error: Connection reset by peer]
19:52c10l8 has joined #asahi-dev
19:52c10l8 has quit [Remote host closed the connection]
19:52c10l8 has joined #asahi-dev
19:52c10l8 has quit [Remote host closed the connection]
19:52c10l8 has joined #asahi-dev
19:52c10l8 has quit [Remote host closed the connection]
19:52c10l8 has joined #asahi-dev
19:52c10l8 has quit [Remote host closed the connection]
19:53c10l8 has joined #asahi-dev
19:53c10l8 has quit [Remote host closed the connection]
19:53c10l8 has joined #asahi-dev
19:53c10l8 has quit [Remote host closed the connection]
19:53c10l8 has joined #asahi-dev
19:53___nick___ has joined #asahi-dev
19:53c10l8 has quit [Remote host closed the connection]
19:53c10l8 has joined #asahi-dev
19:53c10l8 has quit [Remote host closed the connection]
19:53c10l8 has joined #asahi-dev
19:53c10l8 has quit [Remote host closed the connection]
19:53c10l8 has joined #asahi-dev
19:53c10l8 has quit [Remote host closed the connection]
19:54c10l8 has joined #asahi-dev
19:54c10l8 has quit [Remote host closed the connection]
20:00c10l8 has joined #asahi-dev
20:23___nick___ has quit [Ping timeout: 480 seconds]
20:24alyssawould be easy to add support on top the DCP driver I wrote, but I don't have a macbook to test so didn't do it
20:58Dcow has joined #asahi-dev
21:33Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:37Dcow has joined #asahi-dev
21:40Dcow has quit []
22:35Dcow has joined #asahi-dev
22:38Dcow has quit []
23:15yuyichao has quit [Quit: Konversation terminated!]
23:15yuyichao has joined #asahi-dev