#
✕ nick:marcan
#asahi-dev · 2022-03-04 15:10
marcan*now
#asahi-dev · 2022-03-04 15:10
marcanyes, they are =m in the initramfs right no
#asahi-dev · 2022-03-04 15:08
marcannot sure what the codepath for that is...
#asahi-dev · 2022-03-04 15:08
marcanthe other is that it actually apparently tries to powergate ANS2 and then explodes
#asahi-dev · 2022-03-04 15:08
marcanone is that brcmfmac refuses suspend
#asahi-dev · 2022-03-04 15:07
marcanok, so there's at least two issues with s2idle
#asahi-dev · 2022-03-04 11:52
marcanbut oh well, at least I proved that modules work now (mostly)
#asahi-dev · 2022-03-04 11:52
marcanonly problem with the backlight dep is it means I have to build in rtkit, macsmc, macsmc-gpio, because there's no reasonable way to attach the backlight device post facto, and we definitely want simpledrm built in
#asahi-dev · 2022-03-04 11:41
marcanshould probably just be obj-y at that point
#asahi-dev · 2022-03-04 11:40
marcanobj-$(CONFIG_ARCH_APPLE)+= apple/
#asahi-dev · 2022-03-04 11:40
marcansven: the menu is enabled on COMPILE_TEST, but the objects aren't:
#asahi-dev · 2022-03-04 10:40
marcan>module
#asahi-dev · 2022-03-04 10:39
marcanit's probably missing some dep but I'd hope you have that if you have gpio-backlight...
#asahi-dev · 2022-03-04 10:39
marcando you have the backlight class enabled?
#asahi-dev · 2022-03-04 10:31
marcanno, other than macsmc in general (and the existing gpio-backlight stuff, and updated devicetrees)
#asahi-dev · 2022-03-04 10:30
marcan:D
#asahi-dev · 2022-03-04 10:29
marcanuse evtest to get them
#asahi-dev · 2022-03-04 10:29
marcanit's evdev
#asahi-dev · 2022-03-04 10:29
marcanthe former was missing
#asahi-dev · 2022-03-04 10:29
marcanbacklight control is kind of split; the kernel is expected to tie drm/fb power state events to backlight power, and userspace is expected to control backlight brightness
#asahi-dev · 2022-03-04 10:28
marcanbut as I said the actual display blanking/backlight off stuff needed a hook in simpledrm, otherwise it doesn't actually turn off
#asahi-dev · 2022-03-04 10:28
marcanno need to do anything
#asahi-dev · 2022-03-04 10:28
marcanworks out of the box in plasma
#asahi-dev · 2022-03-04 10:27
marcanit's just a HID switch
#asahi-dev · 2022-03-04 10:27
marcanwas there something that was supposed to be hard about that? :-)
#asahi-dev · 2022-03-04 10:27
marcanyes, it all works as expected
#asahi-dev · 2022-03-04 10:27
marcanLID?
#asahi-dev · 2022-03-04 10:26
marcankinda surprised simpledrm didn't have backlight support, it's trivial
#asahi-dev · 2022-03-04 10:26
marcanwill build the package/new installer later, got a thing now :)
#asahi-dev · 2022-03-04 10:26
marcanthat's enough to make DPMS work as expected in desktop environments, including shutting down the backlight when you close the lid
#asahi-dev · 2022-03-04 10:25
marcanjust pushed another asahi update with macsmc-hid and also added backlight support to simpledrm (and hooked it up in the DT)
#asahi-dev · 2022-03-03 16:26
marcanthe trigger is a refcounting bug in my code... but it's nasty that then the message complaining about that deadlocks :(
#asahi-dev · 2022-03-03 16:23
marcanhow's that for a scary callchain...
#asahi-dev · 2022-03-03 16:23
marcanhttps://mrcn.st/p/eWJPo7J0
#asahi-dev · 2022-03-03 16:22
marcan... caused by calling printk with an OF format specifier while holding the OF spinlock earlier in the call chain
#asahi-dev · 2022-03-03 16:22
marcanlove it when I trace my module issue to a deadlock in Linux's OF core
#asahi-dev · 2022-03-03 15:39
marcanyeah
#asahi-dev · 2022-03-03 15:33
marcankettenis: thanks, fixed in local bits/, will be in the next merge (once I work out the module issues I'm looking at)
#asahi-dev · 2022-03-03 15:00
marcanthere we go, thank you Home Assistant. I just made it toggle my keyboard LED lighting (which just kind of lights up my desk) once an hour. nice and unobtrusive.
#asahi-dev · 2022-03-03 14:54
marcanlol :D
#asahi-dev · 2022-03-03 14:53
marcanstream or no stream :)
#asahi-dev · 2022-03-03 14:53
marcanmight just set up a pile of alarms tbh
#asahi-dev · 2022-03-03 14:53
marcanI was actually thinking about that
#asahi-dev · 2022-03-03 14:52
marcanwell, kidney stones seem to be quite unpredictable, so I don't plan on twiddling my thumbs in bed all day when I'm feeling fine either... but yeah, if it hits me again, there's no way I'm getting out of bed until it's over.
#asahi-dev · 2022-03-03 14:44
marcan(nb: I didn't get anything done today because I had a bit of a health scare... I'm okay now, but if I disappear or have to take a break some days in the coming weeks, that's why)
#asahi-dev · 2022-03-03 14:34
marcannot that I've explicitly thought this through too much, but it seems we've largely settled on a "people work on their own branches and poke a stick at me when they want something merged" model for now :)
#asahi-dev · 2022-03-03 14:33
marcankettenis: you can just point me at fix commits if it's trivial stuff (even in u-boot), or just do them on top of the asahi branch and point me at them that way
#asahi-dev · 2022-03-03 13:41
marcanso it probably makes more sense to ignore all that and just target the vmapple kernel... and have fun implementing paravirtual metal
#asahi-dev · 2022-03-03 13:41
marcanand SPRR is also impossible to sanely do, unless you just ignore the extra permission restrictions (which will probably work)
#asahi-dev · 2022-03-03 13:40
marcanyou need to do some horrible vector table patching at the very least, and it still would be hard to get perfect

plus ›