#asahi · 2022-02-20 15:39
svenugh, right. #asahi · 2022-02-20 15:38
svenbut I thought the monitor only did that weird disconnect/connect dance once#asahi · 2022-02-20 15:38
svenoh, right. yes#asahi · 2022-02-20 15:37
svenwe could always hack it by having a second core polling the whole time but that’s quite ugly :D#asahi · 2022-02-20 15:36
svengetting true hotplug to work correctly inside m1n1 would be quite annoying :/#asahi · 2022-02-20 14:20
svenok, so just do the same for the backlight node then#asahi · 2022-02-20 14:19
svenI haven’t looked into the smc driver but I assume there’s a node that is a gpio-controller#asahi · 2022-02-20 14:18
svenright, so just as i expected. #asahi · 2022-02-20 14:16
svenbut I’m willing to bet it just needs the right compatible and a gpio = <…> reference to the smc if it’s indeed just a smc gpio#asahi · 2022-02-20 14:14
svenit should contain an example#asahi · 2022-02-20 14:14
svenYou want to look for the dt binding of that driver#asahi · 2022-02-20 14:03
svenif it’s a smc gpio it might just need a device tree node to hook up that gpio backlight driver to the smc#asahi · 2022-02-20 13:55
svenisn’t that DCP? Or is that smc as well?#asahi · 2022-02-20 13:53
svensomeone just needs to hook up those events to whatever is the correct subsystem otherwise#asahi · 2022-02-20 13:52
svennot sure if the current smc driver does it but you can also activate those events and will get a rtkit message on those #asahi · 2022-02-19 20:20
svenit looks as if it doesn’t even recognize the cable#asahi · 2022-02-19 20:20
svenstrange#asahi · 2022-02-19 20:18
svenI was talking about Glanzmann’s issue#asahi · 2022-02-19 20:17
svenis there anything in dmesg with the broken cable?#asahi · 2022-02-19 20:17
svenand the usb curse strikes again!#asahi · 2022-02-19 18:28
sveni always just enabled it for tps #asahi · 2022-02-19 18:28
svendunno :D#asahi · 2022-02-19 18:25
svenhttps://www.kernel.org/doc/Documentation/trace/ftrace.txt#asahi · 2022-02-19 18:25
svenI’ve always enabled them with bootargs because I usually don’t have any userland but I believe it’s also possible to enable them in sys #asahi · 2022-02-19 18:24
svenbut I kinda expect that you’ll just see a lot of “plug status changed” events#asahi · 2022-02-19 18:24
svenyou can try to enable the tps trace points #asahi · 2022-02-19 18:23
svenweird#asahi · 2022-02-19 18:23
svenerr… wait, the macOS side is connected to MagSafe?#asahi · 2022-02-19 18:22
svenand then things go horribly wrong #asahi · 2022-02-19 18:22
svenohh… maybe it’s trying to negotiate a thunderbolt connection?#asahi · 2022-02-19 18:21
svenlooks like the cable is constantly reconnected for some reason #asahi · 2022-02-19 18:19
svenalmost all commands go through the io queue, no need to waste that space for the admin queue #asahi · 2022-02-19 18:19
svenyes#asahi · 2022-02-19 18:16
svenpovik: that message is normal once, but not every few seconds #asahi · 2022-02-19 17:24
svennot for two connected m1s#asahi · 2022-02-19 17:02
svenThe harder part is figuring out how to do that in a sane way so that it can be upstreamed ;)#asahi · 2022-02-19 17:01
svenyou just need to do that from linux#asahi · 2022-02-19 17:01
svenmacvdmtool essentially accesses some of the registers #asahi · 2022-02-19 17:01
svenyes, but it shouldn’t be too hard to add support to the tipd driver in the kernel#asahi · 2022-02-19 17:00
svenor write patches for the tps code to be able to issue the magic USB PD commands from Linux #asahi · 2022-02-19 16:59
svenyou can also use macvdmtool #asahi · 2022-02-16 18:34
svenmuch better signal-to-noise ratio there :)#asahi · 2022-02-16 15:19
svenu-boot will always get the device tree from m1n1#asahi · 2022-02-16 15:13
sven:)#asahi · 2022-02-16 15:08
svenlet me quote myself: (and eventually linux)#asahi · 2022-02-16 15:02
svenand you can even set -v from macos (and eventually linux) once you disable bootarg filtering in 1TR#asahi · 2022-02-16 15:02
svenif that's set -> wait for a usb device before jumping to the kernel#asahi · 2022-02-16 15:02
sveni think we can re-use the -v bootarg that can be set from e.g. 1TR#asahi · 2022-02-15 19:50
svendon’t think that necessary #asahi · 2022-02-15 19:50
svenIs this on a m1? (not pro/max)