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: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:55the_lanetly_052 has joined #asahi
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: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: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:26Glanzmannpovik: Updating the minis kernel now. :-) Btw. the debian artefacts are also up2date, if someone is using them.
10:27tomtastic has joined #asahi
10:31tomtastic_ has quit [Ping timeout: 480 seconds]
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:42tomtastic has quit [Quit: ZNC - https://znc.in]
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:49tomtastic has quit [Read error: No route to host]
10:51tomtastic has joined #asahi
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: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: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
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: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: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:39immychan[m]Essentially it just tells me to run the installer from my primary macOS install, which I am doing
12:39immychan[m]Did that too
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: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]
14:00thevar1able has quit [Ping timeout: 480 seconds]
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:11marcanthere's also the idevicerestore way of updating SFR, though it's a big hammer and probably not a good idea to recommend
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: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: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:09klaus has joined #asahi
15:09marcanthat is called System Recovery and is part of system firmware and nobody should ever delete it
15:11marcanit just means "the user held down the power button once and a proper recovery was booted"
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: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:16as400[m]Well when I look at /sys/class/power-supply/macsmc-battery/ and so on there is 60 Wh reported.
19:36mlq has joined #asahi
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:58David[m]123456789/dev/disk0 (internal):... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/GQIyYtTMjRFIRMPgEjyRZeuh)
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_rulesin fact i'm confident that's the case since the apfs recovery should be the last partition physically
20:04tpw_rulesdiskutil gets confused when the partition table isn't sorted and puts in phantom free space
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:07David[m]123456789not anymore since I installed debian
20:15David[m]123456789it did not appears
20:17GlanzmannThan you started the Debian installer. I can see the esp partition and the Linux partition.
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: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: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:42David[m]123456789I rerun into a bootloop reinstalling the stub
20:47GlanzmannSo delete everything but under no circumstances delete these partitions: https://pbot.rmdir.de/tT5jcXftVa1gTmrzxziMCQ
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:48sirn has quit [singleton.oftc.net coherence.oftc.net]
21:48sirn- is now known as sirn
21:49GlanzmannSo what happened now I booted the right device tree and linux made the screen go black.
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:58hays has joined #asahi
22:00tomtastic has quit [Ping timeout: 480 seconds]
22:02tomtastic has joined #asahi
22:02Glanzmannkov / mps / j`ey: here is the patch: https://tg.st/u/0001-Hookup-backlight-for-MacBook-Pro-13-inch-M1-2020-J29.patch
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: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: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: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: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:19j`eyapple_smc_event_received in drivers/platform/apple/smc_core.c is a good place to start looking
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:30zvupdate: it was indeed the monitor. asus vs278q-p does not like mac mini m1. a different dell monitor works fine.
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: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: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
23:31manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
23:31manawyrm has joined #asahi