#
…

2022-02-21

00:17babilen has joined #asahi
00:20al3xtjames has quit [Quit: Ping timeout (120 seconds)]
00:20al3xtjames has joined #asahi
00:52axboe_ has joined #asahi
00:56axboe_ is now known as axboe
02:38chadmed has quit [Ping timeout: 480 seconds]
03:24PhilippvK has joined #asahi
03:27phiologe has quit [Ping timeout: 480 seconds]
03:38kov has quit [Quit: Coyote finally caught me]
03:38kov has joined #asahi
04:04axboe has quit [Quit: Lost terminal]
04:07axboe has joined #asahi
04:14marcanzv: if this still happens after setting the macOS volume as default, this is a monitor or Apple problem; nothing we can do about that unfortunately
04:15marcanall that boot options screen and recovery mode stuff is Apple code
04:15marcanwe just install the code, but there's no way for us to screw that up since it's signed, and once you make macOS the default none of the stuff we touched comes into play any more
04:41hays has quit [Remote host closed the connection]
04:57chadmed has joined #asahi
06:39eroux has joined #asahi
07:11Glanzmannzv: For me it happened a few times. (mac mini going black after reboot from u-boot.bin kmutil thing) - I always power it off and on again and everything works.
07:26Glanzmannjannau: Can you please write your command again to verify the dtb under Linux, I lost it.
07:50willemml has joined #asahi
07:54mixiGlanzmann: the command you're looking for should be "dtc -I dtb -O dts /sys/firmware/fdt"
07:55the_lanetly_052 has joined #asahi
07:57jannauGlanzmann: dtc -I fs -O dts -o - /proc/devicetree
07:57Glanzmannjannau: HThank you.
07:57Glanzmannmixi: Thank you, I'll check it in a break, and let you know
07:58jannaufrom memory so might be slightly off
07:59GlanzmannI'll figure it out, if it doesn't work.
08:39the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:18raiaq_ has joined #asahi
09:18jleightcap has quit [Read error: Connection reset by peer]
09:18coder_kalyan has joined #asahi
09:18tdmm_ has quit [Read error: Connection reset by peer]
09:18coder_kalyan_ has quit [Read error: Connection reset by peer]
09:18tdmm has joined #asahi
09:18jleightcap has joined #asahi
09:19raiaq has quit [Ping timeout: 480 seconds]
09:23willemml has quit [Quit: willemml]
09:53j`eyGlanzmann: for your notes: < tpw_rules> you can delete a non-apfs partition with: diskutil eraseVolume free n disk0sX
09:55MajorBiscuit has joined #asahi
10:07povikaaaand with that, audio capture works in duplex with playback: https://tpaste.us/XKVZ
10:08povik(i didn't want to advertise the drivers that got merged into asahi have capture support until i fixed ^)
10:16Glanzmannj`ey: I already put in my private notes: (infra) [~/work/scripts/web/vmware/aws] how diskutil | pbot -
10:16GlanzmannBut forgot the public notes, fixed.
10:18Glanzmannpovik: Wow. Cool. I have to try it this evening.
10:20povikwill work only on the jack, mics are still somewhen in the future
10:21GlanzmannOh I see, good to know. Because I currently don't have jack mic with me.
10:21Glanzmannpovik: If you need access to air again, just ping me. I left the setup inplace.
10:22poviki almost wanted to say mac mini is now feature complete as far as audio goes, but then there's still the hdmi audio path of course...
10:22povikGlanzmann: ok
10:26Glanzmannpovik: Updating the minis kernel now. :-) Btw. the debian artefacts are also up2date, if someone is using them.
10:27tomtastic has joined #asahi
10:27j`eypovik: did you think jack would be easier than speakers, or why do jack first?
10:27mpspovik: building and will check on MBP
10:28mpspovik: did you mentioned few days ago that you fixed these warning on build
10:30Glanzmannmps: m a r c a n s merge window is 15 minutes every 4 weeks, it is easy to miss. ;-)
10:31mpsGlanzmann: thanks
10:31tomtastic_ has quit [Ping timeout: 480 seconds]
10:33povikj`ey: it's easier because of linux internal reasons
10:34j`eypovik: ah
10:36kettenisseems the setup that apple uses with a separate digital amp for each speaker is somewhat unique
10:36povikthere's more than one speaker on one bus everywhere but the mac mini, and that took me some figuring out how to handle that correctly with the ASoC infrastructure
10:37povikprobably related to what kettenis says
10:38j`eyso the mac mini has speaker support?
10:38poviksure, had for a while
10:38povikthat worked first
10:38j`eyoh cool, I thought it was always just the jack that worked
10:42mpspovik: external mic works on MBP
10:42tomtastic has quit [Quit: ZNC - https://znc.in]
10:43poviki like that there 'mic' and 'mbp' in that sentence, now let's remove the
10:43povik* 'external' soon
10:43povikmps: let me know if you manage to break it
10:44mpspovik: if I know how I will try :)
10:45mpsis there internal mic control somewhere
10:45mpsdon't understand all these alsa switches
10:46tomtastic has joined #asahi
10:47j`eypovik: https://lore.kernel.org/lkml/202202202036.km0KGsP8-lkp@intel.com/ " warning: array subscript 1 is above array bounds of 'bool[1]'" :D
10:48povikmps: there wouldn't be an internal mic control, internal mic needs driver work first, be won't remove the 'external' that soon
10:48povikj`ey: :D
10:48mpspovik: ok, thanks for info
10:48poviks/be won't/we won't/
10:49mpsI think I saw these povik's warnings fix in today released linux-5.17-rc5
10:49tomtastic has quit [Read error: No route to host]
10:50povikhm? these warnings are in driver code that didn't make the mainline yet
10:50mpspovik: ah, yes
10:50mpsI saw it somewhere else but forgot where
10:51tomtastic has joined #asahi
10:52j`eypovik: no comments on v4 yet, but do you get the feeling NCO likely to be merged?
10:55povikyou tell me, i don't know how this works
10:55melek89[m] has joined #asahi
10:56poviki think i addressed what was raised before, don't know how likely it is i will now get a "merged for" note out of the blue
10:56j`eypovik: then it might be a nice surprise!
10:56povikit would be!
10:59tomtastic has quit [Quit: ZNC - https://znc.in]
11:02tomtastic has joined #asahi
11:13eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:38povikwhere's the source for the kernel test robot again?
11:38povikmaybe i should set up a personal instance
11:39poviki am surprised it spams the linux-kernel list
11:39povikis it hidden here as performance tests?
11:39a_fellow_human[m] has left #asahi [#asahi]
11:43povikseems easier to add my repo to the official instance. let's see if it can not spam mailing lists about stuff there
11:46dottedmagapple-admac.c warnings on m68k are very useful.
11:49sveni don't think anyone minds that spam fwiw
11:54svendottedmag: they actually point to a missing #include fwiw
11:56povikyeah. and in the report j`ey linked earlier they had pointed out an actual bug i missed
11:57_jannau_povik: I think nobody reads lkml unfiltered
11:57povikstill it's bit funny some computer out there is test-building admac on obscure platforms
11:58povik_jannau_: good, seems the cc can be turned off in the end
11:58j`eypovik: m168k
11:59j`eypovik: m1 + m68k = m168k :P
11:59j`eyor m69k nice
12:04sventhat’s what you get when you either add COMPILE_TEST or don’t depend on arm64 or ARCH_APPLE ;)
12:07immychan[m]Hi, for some reason after installing Asashi Linux but later deleting the partitions I can’t install it again, the installer won’t run and macOS recovery tells me that it can’t find any users to authenticate on the volume
12:07immychan[m]Any ideas why this might be happening?
12:37Glanzmannimmychan[m]: I would reboot into macos and try it again.
12:38GlanzmannMaybe the problem is that you have as default boot device a device selected which no longer exists?
12:38immychan[m]Already tried that, didn’t seem to work :/
12:38Glanzmannimmychan[m]: Can you paste the output of the asahi installer from macos?
12:38immychan[m]And I’ve tried reselecting my startup disk and it didn’t work
12:38immychan[m]I’ll do that in a moment
12:38GlanzmannSo your default startup disk is macos.
12:38GlanzmannYou booeted into macos, and run the installer from there?
12:39immychan[m]Essentially it just tells me to run the installer from my primary macOS install, which I am doing
12:39GlanzmannMaybe change the startup disk to the macos, reboot and try again.
12:39immychan[m]Did that too
12:39GlanzmannOtherwise I'm out of my depth, but I'm sure m a r c a n, can help.
12:39GlanzmannCan you paste the output of 'diskutil list'?
12:40immychan[m]I’ll do that in a second
12:57eroux has joined #asahi
13:02thevar1able has joined #asahi
13:05immychan[m]Weird, running an update seemed to sort this issue out
13:06immychan[m]Gonna try again to install Asashi
13:06j`eymarcan: one thing Im not clear on, will we ever be able to have the main macOS install on a separate harddrive? such that I can use ~all the internal SSD for linux?
13:09dottedmagj`ey: m68001
13:09j`eydottedmag: hehe
13:11Glanzmannimmychan[m]: I had also a few times. I needed a reboot. But could not reproduce.
13:42marcanj`ey: nothing stops you from deleting macOS if you want post facto, and I guess I should make the installer be able to recognize a external install for auth purposes... though I'm not sure if that works with Apple's own tooling to begin with, need to test
13:52grgy has left #asahi [WeeChat 3.4]
13:52GlanzmannWhat is the hdmi overscan on the mini?
13:52GlanzmannAnd how is it a problem?
13:55VinDuvGlanzmann: Some TVs cut the edges of the image when receiving an HDMI signal
14:00thevar1able has quit [Ping timeout: 480 seconds]
14:09GlanzmannVinDuv: I see, thank you for the explanation.
14:10j`eymarcan: I thought it was said that a macOS install was needed to update SFR or something. Just that 70G is quite a big chunk if you have the 256G model (which I do)
14:11marcanj`ey: yes, I mean if you have an install in an external HDD nothing stops you from deleting the internal one
14:11marcanI just haven't tested if all that works properly from an external one yet
14:11marcanthere's also the idevicerestore way of updating SFR, though it's a big hammer and probably not a good idea to recommend
14:11marcanI think that one ends up requiring internet activation due to its nature
14:12marcaneventually it's entirely possible we'll figure out how to trigger a run the updater ramdisks (I think it's a ramdisk?) from linux
14:14j`eycool, it's something youve at least thought about then, so im happy :D
14:28zvmarcan: thanks--it the behavior is still the same when the boot volume is macOS. I'll try to grab a monitor from work to test. Not sure why it worked only once for me.
14:47as400[m]Is it possible to boot macos on these new machines from external disk ?
14:48yuyichao has quit [Ping timeout: 480 seconds]
14:51mlq has quit [Ping timeout: 480 seconds]
14:51mlq has joined #asahi
14:56yuyichao has joined #asahi
15:07marcanas400[m]: indirectly, yes
15:07marcanthe kernel always boots from internal disk
15:08as400[m]marcan: So 1TR would need to stay on internal disk all the time, right ?
15:08as400[m]This last partition.
15:08marcanthat is not 1TR, that was a misunderstanding that became invalid with 12.x
15:09klaus has joined #asahi
15:09marcanthat is called System Recovery and is part of system firmware and nobody should ever delete it
15:09as400[m]oh, ok. I'm confused with all these recoveries.
15:10marcan1TR is not a thing, it's a mode
15:10marcan(yes the name is kind of terrible)
15:10as400[m]marcan: especially when you come from Linux. For me it's one big mess
15:10as400[m]I mean macos recoveries
15:11marcanit just means "the user held down the power button once and a proper recovery was booted"
15:11marcanyou mean when you come from x86 UEFI :p
15:11marcanthis is system firmware
15:12as400[m]marcan: probably ... :
15:12kettenishey at least having all your firmware in flash is FSF compatible ;)
15:12as400[m]kettenis: :)
15:16mpson some chromebooks u-boot can be put in flash
15:17ketteniswhen does flash stop being flash?
15:18kettenismany arm SBCs have eMMC flash
15:18as400[m]marcan: does System Recovery have the kernel to boot with ?
15:19mpskettenis: yes, I mean eeprom
15:19as400[m]mps: yes, I had uboot in SPI on Pinebook Pro.
15:20mpsas400[m]: I thought PineBook Pro is made this default
15:20mps'flash' term nowadays is ambiguous
15:22as400[m]mps: no, by default it has uboot on eMMC
15:24mpsas400[m]: I'll try to remember (and as usual I will forget ;) )
15:24mpsI don't have PineBook Pro
15:26as400[m]mps: actually this thing is such a crap... Nothing to talk about :)
15:40tomtastic has quit [Quit: ZNC - https://znc.in]
15:40tomtastic has joined #asahi
15:40klaus has quit [Quit: Konversation terminated!]
15:42as400[m]marcan: One more question about installer. Are you thinking of some mechanism of updating the stub macos partition from installer ?
16:11handlerug has quit [Remote host closed the connection]
16:11tdmm has quit [Remote host closed the connection]
16:11raiaq_ has quit [Remote host closed the connection]
16:11jleightcap has quit [Remote host closed the connection]
16:11WhyNotHugo has quit [Remote host closed the connection]
16:11coder_kalyan has quit [Remote host closed the connection]
16:12handlerug has joined #asahi
16:12coder_kalyan has joined #asahi
16:12WhyNotHugo has joined #asahi
16:12raiaq has joined #asahi
16:12jleightcap has joined #asahi
16:12tdmm has joined #asahi
16:28JamieMagee[m] has quit [Quit: Reconnecting]
16:28JamieMagee[m] has joined #asahi
16:30JamieMagee[m] is now known as JamieMagee
16:51willemml has joined #asahi
16:58tdmm has quit [Remote host closed the connection]
16:58handlerug has quit [Remote host closed the connection]
16:58jleightcap has quit [Remote host closed the connection]
16:58coder_kalyan has quit [Remote host closed the connection]
16:58raiaq has quit [Remote host closed the connection]
16:58WhyNotHugo has quit [Remote host closed the connection]
17:04coder_kalyan has joined #asahi
17:04handlerug has joined #asahi
17:04WhyNotHugo has joined #asahi
17:04raiaq has joined #asahi
17:04tdmm has joined #asahi
17:04jleightcap has joined #asahi
17:14willemml has quit [Quit: willemml]
17:28phiologe has joined #asahi
17:29willemml has joined #asahi
17:30PhilippvK has quit [Ping timeout: 480 seconds]
17:37PhilippvK has joined #asahi
17:37willemml has quit [Read error: Connection reset by peer]
17:40phiologe has quit [Ping timeout: 480 seconds]
18:02landscape15[m]as400: I asked the same question some time ago. It is surely possible, but I don’t know if you will at some point avoid to set again the boot object in 1TR
18:36Misthios has quit [Quit: Misthios]
18:36artemist has quit [Read error: Connection reset by peer]
18:37Misthios has joined #asahi
18:37Misthios has quit []
18:39Misthios has joined #asahi
18:42Misthios has quit []
18:46Misthios has joined #asahi
18:47___nick___ has joined #asahi
18:48___nick___ has quit []
18:49Misthios has quit []
18:49___nick___ has joined #asahi
18:50Misthios has joined #asahi
18:56roxfan2 is now known as roxfan
19:01as400[m]landscape15 - maybe macos install on external ssd would be enough ?
19:02as400[m]That would be cool.
19:08the_lanetly_052 has joined #asahi
19:08mlq has quit [Quit: WeeChat 3.0]
19:13as400[m]In case of my mbp 14 upower reports battery capacity lower than it really is - 54.5 Wh vs 60Wh. Anyone with the same symptom ?
19:14tpw_rulesi wonder what coconutBattery under macOS says
19:16as400[m]Well when I look at /sys/class/power-supply/macsmc-battery/ and so on there is 60 Wh reported.
19:17tpw_rulesthe SMC reports both a "design capacity" and "full charge capacity"
19:19as400[m]Yep - both over 60Wh
19:36mlq has joined #asahi
19:43VinDuvas400[m]: which upower metric are you talking about? energy-full?
19:51MajorBiscuit has quit [Quit: WeeChat 3.4]
19:55David[m]123456789here is the error I get when trying to reinstall asahi:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/nOqdMDjOYehSpoWBfCdelqnh)
19:55as400[m]VinDuv: don't remember exact name. Plasma shows the same but I think it uses upower.
19:57j`eyDavid[m]123456789: paste `diskutil list`
19:59j`eyweird, clearly there's enough space
20:01the_lanetly_052 has quit [Ping timeout: 480 seconds]
20:02landscape15[m]as400: yeah, but I still can’t imagine how you could make all that stuff one-click :)
20:03tpw_rulesdisk0s5 and disk0s6 are probably in the opposite order on the hard disk
20:03tpw_rulesin fact i'm confident that's the case since the apfs recovery should be the last partition physically
20:04j`eyyeah, that looked odd
20:04tpw_rulesdiskutil gets confused when the partition table isn't sorted and puts in phantom free space
20:04tpw_rulesyou'll have to sort it with gdisk on linux or delete disk0s6
20:05David[m]123456789yes bc it's not free, there is a failed debian install
20:05VinDuvas400[m]: from what I can tell, upowerd might be doing some calculations depending on what’s available in sysfs https://github.com/freedesktop/upower/blob/master/src/linux/up-device-supply.c#L574
20:05VinDuvbut if you have energy_full in sysfs it should use that for the battery capacity
20:07as400[m]VinDuv: yes it's there but ignored somehow. Strange.
20:07GlanzmannDavid[m]123456789: Is u-boot working?
20:07David[m]123456789not anymore since I installed debian
20:08GlanzmannWhat happens when you pick 'Linux' in the boot picker?
20:15David[m]123456789it did not appears
20:17GlanzmannSo, you had u-boot.
20:17GlanzmannThan you started the Debian installer. I can see the esp partition and the Linux partition.
20:17GlanzmannYou installed grub and kernel using the 'boot.sh' script?
20:17GlanzmannAnd than after rebooting u-boot was gone?
20:17GlanzmannI have no explanation how that can happen.
20:18GlanzmannIt never happened to me, and I did a lot of installations.
20:18GlanzmannDid you try to boot it more than once?
20:18GlanzmannSo powering off your device and powering it on again?
20:18GlanzmannDavid[m]123456789: But to answer your question, if you want to reinstall the stub partition and u-boot, you can do it as follows.
20:19GlanzmannYou open a root shell in 1tr or macos and do the following: https://tg.st/u/delete_stub_parition.txt
20:20GlanzmannFrom the last output you pasted the identifier of the stub partition was disk0s3 but that can change after you reboot.
20:21David[m]123456789I booted it several time, the first time there were 2 flashes of the Apple logo followed by the recovery proposing me to change startup disk (which I did) bc the custom kernel was broken or sthg like this ; the only thing differeront from your video was to install KDE
20:23GlanzmannOkay, try to reinstall the stub. But I have no explanation how this can happen.
20:23GlanzmannBecause the boot object will be copied somewhere else.
20:24GlanzmannMaybe you somehow destroyed the stub parition in a way that it is broken. But in order to see that I need a booted Linux and the output of https://pbot.rmdir.de/kCRi-yR4nW4D59POkQiulA
20:24GlanzmannThis is how it looks on my system.
20:25GlanzmannBut this was reordered when I updated the stub partition at some point.
20:25GlanzmannSo in the beginning the esp and Linux partition had a partition number behind 1tr.
20:26GlanzmannActually the above paste was from another installation method (dd) but this one was installed using the Debian installer: https://pbot.rmdir.de/Ct8mut-xMSBpz2CVcVn95A
20:27GlanzmannAs you can see by the size of the ESP partition.
20:42David[m]123456789I rerun into a bootloop reinstalling the stub
20:45GlanzmannThat can't be true.
20:45GlanzmannI think you know how to get rid of this.
20:47GlanzmannSo delete everything but under no circumstances delete these partitions: https://pbot.rmdir.de/tT5jcXftVa1gTmrzxziMCQ
20:47GlanzmannOnce you cleaned up, you should start over.
20:47GlanzmannIf you want we can do 1-on-1 session to get it right.
20:48mini has quit [Quit: ZNC closing...]
20:50mini has joined #asahi
20:51isaac has joined #asahi
20:57CME has joined #asahi
21:01isaac has quit [Quit: WeeChat 3.4]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:24eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:45Glanzmannmixi: You we're right. I really screwed up with the device tree. What happened is that I copied the right u-boot with the right device tree to /boot/efi and had a script 'ush' which than downloaded the wrong u-boot and installed that one.
21:45Glanzmannmixi: Backlight works. Problem is by default is off, because I forogt the defaulton thingy. I'm adding this now.
21:46sirn- has joined #asahi
21:47GlanzmannI can turn off and on the backlight of the air now by doing: echo 1 > /sys/class/backlight/backlight/bl_power ; sleep 1; echo 0 > /sys/class/backlight/backlight/bl_power
21:47Glanzmann0 menas on; 1 means off.
21:47kovGlanzmann, where can I find your dt for backlight?
21:47j`eyGlanzmann: is it the screen, or is it the backlight?
21:48sirn has quit [singleton.oftc.net coherence.oftc.net]
21:48sirn- is now known as sirn
21:48Glanzmannj`ey: I don't really know. But I would say it is the backlight.
21:49GlanzmannSo what happened now I booted the right device tree and linux made the screen go black.
21:49j`eyGlanzmann: well is it still visible?
21:49GlanzmannBut x started and logged me in.
21:49Glanzmannj`ey: No I can't see shit.
21:49GlanzmannBut I'm in a dark room right now.
21:49j`eyok so its the full screen :)
21:49j`eyoh, well turn some lights on!
21:50GlanzmannRest of the family is sleeping in the same room, but I turned on my mobile flash light, and I still can't see shit.
21:50GlanzmannSo what I did, I used a second machine to log in via ssh and poked at stuff in the /sys/class/backlight/ thingy until I found that bl_power it is.
21:51GlanzmannI'm fixing the patch, testing it and than pasting it.
21:51Glanzmannj`ey: Where should I put that patch to the arch/arm64/boot/dts/apple/t8103.dtsi?
21:51GlanzmannBecause I mean for the mini, you don't want or can turn of the screen.
21:52Glanzmannkov: One second.
21:52j`eyGlanzmann: in j313 j293
21:53j`eybit of duplication is fine
21:53GlanzmannOkay let me fix that up and than post the patch.
21:58hays has joined #asahi
22:00tomtastic has quit [Ping timeout: 480 seconds]
22:02tomtastic has joined #asahi
22:02GlanzmannTesting now.
22:03kovGlanzmann, great =)
22:04j`eycool! I can't test, havent had the chance to resinstall m1n1 after I reformatted
22:05Glanzmannj`ey: I test it right now and I bet mps tests it as soon as he gets a chance.
22:05GlanzmannThan it is tested.
22:08Glanzmannx-tested-by: Glanzmann on air.
22:09mpsGlanzmann: what, I just come back to home
22:09mpsah, bl_power
22:10j`eyI wonder if the smc gpio is used to turn the display off for sleep, and the dcp brightness control is for everything else
22:10mpsok will do, but have to finish some work first
22:10GlanzmannSure, let me know if it works for me. I just tested it, it works on the air.
22:11kettenisso toggling gP12 saves about 1W of power
22:11Glanzmannj`ey: No idea, but it was really getting on my nerves that I could not turn off the display. I always shutdown my systems when I was not using it.
22:11Glanzmannkettenis: I see, how did you measure it?
22:12kettenisthat's what the SMC power sensor reports
22:12j`eyLinux doesn't have that hooked up yet
22:12kettenispower consumption when idle drops from ~3.8W to ~2.8W
22:13kettenisBattery state: high, 99% remaining, 1355 minutes life estimate
22:14GlanzmannIs this on the air?
22:14GlanzmannDo you have it already hooked up to something in OpenBSD?
22:14kettenisno, I hacked the SMC driver for this
22:15kettenisbut I guess I'll write gpiobl(4) soon ;)
22:15GlanzmannSo when I press the power button on my air for a short time. I get in dmesg/syslog a key release event: [ 432.110637] macsmc-rtkit 23e400000.smc: RTKit: syslog message: apComms.cpp:373: SMC HID Event: 01 06 00
22:16GlanzmannDoes someone know how I can hook that up to a userland script?
22:17GlanzmannSomething i know which works out of the box is using syslog-ng and trigger a script everytime it sees that message, but I assume there is some event thingy I can subscribe to?
22:17kettenisnot sure if we've figured out how that event gets reported "properly" yet
22:17kettenisyou really don't want to parse the syslog output for that
22:17GlanzmannI also started a patch that does that for the kernel. But I did not know how to hook that up to smc, but it is ugly: https://tg.st/u/wip-displayblanking.patch
22:18j`eyfine for some hacks!
22:19GlanzmannI mean at some point, someone will do it properly. But until that. I like that.
22:19j`eyapple_smc_event_received in drivers/platform/apple/smc_core.c is a good place to start looking
22:20kettenisso the lid is hooked up to gP01
22:24kettenislooks like you could try hooking that up using gpio-keys-polled
22:27Glanzmannkettenis: So gpio-keys-polled would poll gP01 and send a key event and than I could use my window manager to do something when that key event is received?
22:29kettenislook at arch/arm/boot/dts/imx6q-novena.dts
22:30zvupdate: it was indeed the monitor. asus vs278q-p does not like mac mini m1. a different dell monitor works fine.
22:31Glanzmannkettenis: I see.
22:32GlanzmannBtw. I just pressed the sleep button (F6) on air with debian. The system was freezing.
22:32GlanzmannScreen turned off than it came back probably because i pressed it again and than freezed.
22:32GlanzmannAfter booting up again the system was hanging on boot with some nvme messages, I think.
22:32Glanzmannthan I powerecycled it again and it came up okay
22:32GlanzmannI can do a video.
22:33GlanzmannMaybe i should disable sleep.
22:38GlanzmannDebian folks: That disables any kind of sleep, I tested it: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
22:45j`eyGlanzmann: if youre still interested in looking: drivers/power/supply/macsmc_power.c apple_smc_register_notifier(power->smc, &power->nb);
22:46j`eyso this driver gets called, when an SMC notification happens. looks like all registered handlers would be called and its up to the callback to figure out if it needs to do something
22:49Glanzmannj`ey: I see. I'll write that down and come back to it. For now I did the following which works for me: https://pbot.rmdir.de/3_YRgJ6aDgkucwFDsSSoVA
22:50mpsI think gpio can trigger interrupt
22:50j`eyGlanzmann: good enough!
22:50mpsthough not sure will/should it be used for event interface
22:52artemist has joined #asahi
22:54kettenisif the interrupts are hooked up correctly for thise SMC gpios, gpio-keys instead of gpio-keys-polled should work
22:54j`eyno irq_chip in the current driver
23:04mpsGlanzmann: echo 1 > bl_power hangs machine but echo 0 > brightness works
23:05mpsGlanzmann: this is not surprise, it works same way on my arm chromebooks
23:11* povikmade it to the test robot's watchlist!
23:11poviki feel like this will be a nice procedural improvement
23:12j`eypovik: gg
23:21mpsso, if `echo 0 > brightness` works there must be PWM register/s
23:26mpshmm 5 fpwm in dts
23:31manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
23:31manawyrm has joined #asahi
…