#
…

2021-11-02

00:05nobodynada has joined #asahi
00:46nobodynada has quit [Ping timeout: 480 seconds]
00:49nobodynada has joined #asahi
00:57nobodynada has quit [Ping timeout: 480 seconds]
01:07nobodynada has joined #asahi
01:22rohin2 has joined #asahi
01:24nobodynada has quit [Ping timeout: 480 seconds]
01:30nobodynada has joined #asahi
01:31artemist has quit [Quit: artemist]
01:34artemist has joined #asahi
01:50jmr2 has joined #asahi
01:53rohin2 has quit [Ping timeout: 480 seconds]
01:57kajiryoji has quit [Quit: ZNC 1.8.2 - https://znc.in]
01:58jmr2kettenis: ack. No success yet. Are there minimal instructions somewhere, or I’m the first to attempt this?
01:58jmr2What works: mkimage on the host, and ext2load usb on the Air. What doesn’t: getting anything else than a synchronous abort exception+reboot after the image content is displayed.
01:58jmr2The two most likely culprit: the kernel image in the mkimage package isn’t in the correct format; and/or I used invalid addresses in mkimage/ext2load/bootm.
01:59rohin2 has joined #asahi
02:00kajiryoji has joined #asahi
02:22rohin2 has quit [Ping timeout: 480 seconds]
02:28rohin2 has joined #asahi
02:30jmr2Oh... Just read past comments on the channel, and the direction is EFI. Looks like I'm not headed the right way. I'll keep reading.
02:30jmr2 has quit [Quit: Page closed]
02:31chadmedyeah i think the end game is to have mini chain load uboot and provide a minimal efi-like environment so that kernel updates and the like can happen identically to how they do now on the PC
02:31chadmedwithout doing that youd have to build a new m1n1 + dt + kernel and use kmutil to give it a boot policy (very annoying and probably too hard for your average user)
02:35jmr2 has joined #asahi
02:37jmr2The need for chainloading was clear for me, but EFI is something that I've managed to stay away from so far... So when I started experimenting with u-boot, it wasn't a natural direction.
02:38jmr2But there's no point in hard-coding a u-boot loader, so I'm better to start reading on UEFI!
02:44nobodynada has quit [Ping timeout: 480 seconds]
02:45nobodynada has joined #asahi
02:45jmr2 has quit [Quit: Page closed]
03:03nobodynada has quit [Ping timeout: 480 seconds]
03:06kiro has joined #asahi
03:08nobodynada has joined #asahi
03:24rohin2 has quit [Remote host closed the connection]
03:24rohin2 has joined #asahi
03:26nobodynada has quit [Ping timeout: 480 seconds]
03:35nobodynada has joined #asahi
03:39kov has quit [Quit: Coyote finally caught me]
03:39kov has joined #asahi
03:49rohin2 has quit [Ping timeout: 480 seconds]
03:57nobodynada has quit [Ping timeout: 480 seconds]
04:00PhilippvK has joined #asahi
04:00nobodynada has joined #asahi
04:03phiologe has quit [Ping timeout: 480 seconds]
04:07user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:23user982492 has joined #asahi
04:25hspak has quit [Quit: The Lounge - https://thelounge.chat]
04:27hspak has joined #asahi
04:40mika_ has joined #asahi
04:40mika_ has left #asahi [#asahi]
05:00c10l has quit [Quit: The Lounge - https://thelounge.chat]
05:00c10l has joined #asahi
05:03marvin24_ has joined #asahi
05:06marvin24 has quit [Ping timeout: 480 seconds]
05:24kiro has quit [Quit: Leaving]
06:25xiaomingcc[m] has joined #asahi
06:37gladiac has quit [Quit: k thx bye]
06:40gladiac has joined #asahi
06:43labavonn has joined #asahi
06:50Bey0ndB1nary has joined #asahi
06:51rkt is now known as Guest4690
06:51rkt has joined #asahi
06:53labavonn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
06:53Guest4690 has quit [Ping timeout: 480 seconds]
06:57kraem[m] has joined #asahi
07:00nobodynada has quit [Quit: leaving]
07:02jeffmiw has quit [Ping timeout: 480 seconds]
07:25sailorek1234 has joined #asahi
07:32bgb_ has joined #asahi
07:40bgb has joined #asahi
07:41bgb_ has quit [Ping timeout: 480 seconds]
07:43Bey0ndB1nary has quit []
07:59Bey0ndB1nary has joined #asahi
08:02bgb has quit [Ping timeout: 480 seconds]
08:14bgb has joined #asahi
08:16user982492 has quit [Remote host closed the connection]
08:20Bey0ndB1nary_ has joined #asahi
08:25Bey0ndB1nary has quit [Ping timeout: 480 seconds]
08:35Bey0ndB1nary_ has quit []
08:52robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:03robinp[m] has joined #asahi
09:21Bey0ndB1nary has joined #asahi
09:27kettenisjmr2: in principle the "classic" u-boot method of loading linux kernels should work, but the EFI boot path is all I tested so far
09:37j_eyI tested with 'booti' (but not from usb)
10:07kettenisj_ey: sucessfully?
10:13j_eynot usb/nvme though, I had some weird hackedup thing
10:28bgb has quit [Ping timeout: 480 seconds]
10:29Bey0ndB1nary has quit []
10:37bgb has joined #asahi
10:45bgb has quit [Ping timeout: 480 seconds]
10:50jochum has joined #asahi
10:54bgb has joined #asahi
11:02bgb has quit [Ping timeout: 480 seconds]
11:11bgb has joined #asahi
11:36bgb_ has joined #asahi
11:42bgb has quit [Ping timeout: 480 seconds]
11:42jan[m]123 has joined #asahi
11:57bgb_ has quit [Ping timeout: 480 seconds]
12:05bgb_ has joined #asahi
12:08NotImaginary has joined #asahi
12:12povikon the new MBPs, does macos check whether there's a person looking at the screen, so that it knows when the screen can be shut down?
12:12poviki have a feeling it does
12:13povikor it just behaves differently if there's video playing...
12:21chadmedi wouldnt be surprised if it has the iphone "attention" stuff in the notch. but if it does, that begs the question of why they didnt enable face id
12:21dvtkrlbs has joined #asahi
12:22jixwell I'm pretty sure playing a video does prevent the screen from going to sleep for most setups
12:22chadmedyeah macos has always prevented screen sleeping/dimming if a video is playing in the active window
12:22_alicepovik: it's just power assertions when you're playing a video, the new Macs only have an RGB camera, not an IR depth-sensing one.
12:23_aliceto see active power assertions, run `pmset -g assertions` in a terminal. (it also tells you the PID of whatever is causing it to not sleep!)
12:24dvtkrlbsoh that is a nice one. i most of the time just use `pmset -a disablesleep` to prevent sleep on lid close
12:25_alicedvtkrlbs: a better way to do that is to use the `caffeinate` command
12:25_aliceI usually use `caffeinate -disu`
12:25dvtkrlbswait does it prevent sleeps on lid close
12:25_aliceand you can prepend that to a command-line if you want the power assertion to only last during the lifetime of the child process
12:26chadmeddoes that stop external displays from being turned off?
12:26_alicemhmm, see the manpage for more info
12:26_alicechadmed: the `-d` option creates a power assertion to disable display sleeping, but i believe it applies to all displays globally on the system
12:27jmr2 has joined #asahi
12:27_aliceI think if you want it to only leave the external displays active, you have to use clamshell mode (plug in power + kb/mouse and close lid)
12:27_alicetbh the power assertions system on Darwin is something I miss on Linux and Windows....
12:28timokrgr has joined #asahi
12:28dvtkrlbscan you fake a clamshell?
12:28chadmeddarwin/osx used to be my favourite OS, but starting with Lion/Mountain Lion it really started getting bad
12:28_alicebeing able to temporarily alter the sleep/display off conditions without having to dig through menus is really really handy, especially when doing something like leaving a compile job going overnight, but not wanting your machine to stay awake when it's done
12:28jmr2kettenis: thanks. I'll let you know if I get it working.
12:28chadmedwhen they started bringing across all the ios APIs to integrate the ecosystem. i can see why lusers love that stuff, but it just gets in the way of what i want to do tbh
12:29_alicedvtkrlbs: I don't think so on modern Macs, since it's probably handled by the SMC or whatever.... but back in the early Intel days, I believe you could
12:30kovthat's something you can achieve with gnome/kde I for sure, but it really should be something that's more generally supported
12:30yuyichao has joined #asahi
12:30kov(leaving the compile job overnight and letting the machine sleep after that is finished, I mean)
12:31dvtkrlbs_alice: oh makes sense i have the 2017 non touchbar which does not have the t1 chip i really need to tinker with that
12:31_aliceprobably.... I think with gnome it's likely doable with a dbus command, but I don't think there's a simple user-friendly CLI tool to do it
12:31kovyeah, maybe a new rust project for me hmm
12:31jmr2j_ey: good to know, thanks. With booti, I'm stuck with an "Bad Linux ARM64 Image magic!" error - but I'm unable to find that magic number in either the compiled kernel or the one repackaged with mkimage.
12:32kovI have not checked, but I think the 'stop sleeping' is also a freedesktop standard, so the dbus calls would probably work for both gnome and kde
12:32_alicejmr2: which u-boot repo/branch are you using btw? i've been wanting to try kettenis's work, but i'm not sure which repo has all the most up-to-date commits
12:34_aliceoh, it's in mainline now :o
12:34jmr2Not necessarily the most up-to-date, though.
12:34yuyichao has quit [Read error: Connection reset by peer]
12:35yuyichao has joined #asahi
12:36NotImaginary has quit [Remote host closed the connection]
12:36NotImaginary has joined #asahi
12:39Ariadnewatching marcan debug hardware issues in real time is really fucking cool btw
12:40marcanAriadne: if only I could figure out wtf is going on here
12:40Ariadneusually when i get stuck on stuff like this, it is something that is in retrospect really stupid
12:53j_eyAriadne: yup, but it doesnt help with finding that silly thing!
12:53Ariadnenever said it did :p
13:13bgb_ has quit [Ping timeout: 480 seconds]
13:20bgb_ has joined #asahi
13:33yuyichao has quit [Ping timeout: 480 seconds]
13:34bgb_ has quit [Ping timeout: 480 seconds]
13:35kettenistook me three days to figure out that I had the polarity of the CS gpio inverted...
13:36NotImaginaryWhat is the currently recommended kernel to try?
13:37NotImaginaryIs there a more up to date branch or is upstream 5.15 enough?
13:37j_eykettenis: still dont understand the difference to linix there
13:38NotImaginaryI only want to to some experiments with the DRAM so I don't anything special
13:40kettenisj_ey: what happens if you mark the CS gpio active-low in your DT?
13:40kettenisdoes it break?
13:41j_eykettenis: I'll have a go tonight, in the office currently
13:42j_eyNotImaginary: if you just need a shell, 5.15 should be enough
13:42jmr2kettenis, j_ey: got u-boot+linux to start with booti on the Air. Thanks for the feedbacks, and disregard my previous questions. Working: dcp, internal+USB keybord/mouse, rootfs on USB. Not working yet: wifi (didn't find the correct syntax for initramfs in booti), nvme (haven't touched it yet).
13:43bgb_ has joined #asahi
13:45j_eyjmr2: booti the 2nd arg is the initramfs
13:46j_eyNotImaginary: thats quite an old one
13:46jixNotImaginary: I was pointed at https://rosenzweig.io/config a few days ago, but before that I ended up just using the defconfig + enabling simplefb which worked just fine so I never tested alyssa's config
13:47jmr2Saw that, but I'm getting an error from booti - invalid format, or something like that.
13:48j_eyjmr2: I have a command you can try, but itll be later tonight I can send it
13:48NotImaginaryjix: Thanks! I'll go with the defconfig
13:50jmr2Thanks. Don't bother, I'm quite sure I could figure it out. And in any case, this is just an intermediate milestone - next step is to go EFI.
13:50jmr2https://rosenzweig.io/config is something completely unrelated. The correct one is https://rosenzweig.io/.config
13:52jixwhoops that's what I get for trusting my memory instead of looking at the logs ^^
13:52NotImaginaryjmr2: Thanks I already figured that the sway config is probably not enough to build linux ^^
13:56j_eyjmr2: cool, then efi can load the initramfs
13:57kapres has joined #asahi
13:57yuyichao has joined #asahi
13:58kapres has quit []
13:58Ariadneas predicted, it was something stupid
13:59jmr2 has quit [Quit: Page closed]
14:21bgb has joined #asahi
14:25bgb_ has quit [Ping timeout: 480 seconds]
14:39sailorek1234 has quit []
14:51bgb has quit [Ping timeout: 480 seconds]
14:52jbowen has joined #asahi
15:14aleasto has joined #asahi
15:16rkt has quit [Ping timeout: 480 seconds]
15:21rkt has joined #asahi
15:35bgb has joined #asahi
15:57aleasto has quit [Remote host closed the connection]
15:58NotImaginary has quit [Quit: Leaving]
15:59xaiki has joined #asahi
16:11mps has joined #asahi
16:29aleasto has joined #asahi
16:33aleasto has quit [Remote host closed the connection]
16:34aleasto has joined #asahi
16:35aleasto has quit []
16:36aleasto has joined #asahi
16:37aleasto has quit [Read error: Connection reset by peer]
16:38aleasto has joined #asahi
16:42bgb has quit [Ping timeout: 480 seconds]
16:50bgb has joined #asahi
16:58bgb has quit [Ping timeout: 480 seconds]
17:04jbowen has quit [Read error: Connection reset by peer]
17:04kov_alice, would you look at that, we do have systemd-inhibit
17:05kovI was looking at what the most general mechanism we had that could be used to create my rust program, ended up finding that we already have it
17:07jbowen has joined #asahi
17:07bgb has joined #asahi
17:08_aliceI wonder if this API could be used to create an equivalent of `caffeinate -disu`..... maybe if you just have the callee spin indefinitely?
17:12kov_alice, systemd-inhibit <cmd> is equivalent to caffeinate -diu I believe, would still need to call the dbus interface to inhibit turning the screen off / locking the screen
17:15bgb has quit [Ping timeout: 480 seconds]
17:25bgb has joined #asahi
17:40grange_c1 has joined #asahi
17:40grange_c has quit [Quit: Ping timeout (120 seconds)]
17:40grange_c1 is now known as grange_c
17:43nobodynada has joined #asahi
18:10aleasto has quit [Quit: Konversation terminated!]
18:10aleasto has joined #asahi
18:12aleasto has quit [Remote host closed the connection]
18:12aleasto has joined #asahi
18:14aleasto has quit [Remote host closed the connection]
18:15aleasto has joined #asahi
18:32bgb has quit [Ping timeout: 480 seconds]
18:34nirusu[m] has joined #asahi
18:36nobodynada has quit [Ping timeout: 480 seconds]
18:41bgb has joined #asahi
18:44oi_wtf has quit [Remote host closed the connection]
18:45oi_wtf has joined #asahi
18:45nobodynada has joined #asahi
18:50bgb has quit [Ping timeout: 480 seconds]
18:59bgb has joined #asahi
19:07bgb has quit [Ping timeout: 480 seconds]
19:07dvtkrlbsat this point how many different subystems does systemd have
19:07nobodynada has quit [Ping timeout: 480 seconds]
19:16bgb has joined #asahi
19:17bps2 has quit [Ping timeout: 480 seconds]
19:25oi_wtf has quit [Quit: WeeChat 3.3]
19:26oi_wtf has joined #asahi
19:29bps2 has joined #asahi
19:43m6wiq has joined #asahi
19:49nskl has joined #asahi
19:56nsklaus_ has quit [Ping timeout: 480 seconds]
20:05aleasto has quit [Remote host closed the connection]
20:07___nick___ has joined #asahi
20:07___nick___ has quit []
20:08___nick___ has joined #asahi
20:09yuyichao_ has joined #asahi
20:13yuyichao has quit [Ping timeout: 480 seconds]
20:23rohin2 has joined #asahi
20:24bgb has quit [Ping timeout: 480 seconds]
20:31bgb has joined #asahi
20:40bgb has quit [Ping timeout: 480 seconds]
20:45bps2 has quit [Ping timeout: 480 seconds]
20:48bgb has joined #asahi
20:49bps2 has joined #asahi
20:50dvtkrlbs has quit [Ping timeout: 480 seconds]
20:55m6wiq has quit [Ping timeout: 480 seconds]
20:56bgb has quit [Ping timeout: 480 seconds]
21:03bps2 has quit [Ping timeout: 480 seconds]
21:05bgb has joined #asahi
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:13bgb has quit [Ping timeout: 480 seconds]
21:22rohin2 has quit [Ping timeout: 480 seconds]
21:23bgb has joined #asahi
21:27m6wiq has joined #asahi
21:31bgb has quit [Ping timeout: 480 seconds]
21:40bgb has joined #asahi
21:43j_eykettenis: setting active_low didnt seem to change anything, but as you pointed out the corellium spi driver is handling cs itself
21:45kettenisthat means that we can put that in the device tree without causing problems
21:46j_eywell, I think that driver should try to be rewritten to use more of the core SPI code..
21:46kettenisyes, I think so
21:51j_eyok, writing 1 in the spi driver is actually setting it to 0 on the pin
21:57jbowen has quit [Quit: leaving]
22:11j_eykettenis: can i see your spi binding?
22:13j_eyactually nvm, i was getting confused
22:13j_eythanks
22:14kettenisthat has the keyboard
22:15kettenisI used "apple,keyboard" as a compatible, but using "apple,hid" may be better
22:18kettenisthat's my spi driver
22:18j_eywell this explains it: if (IS_ENABLED(CONFIG_SPI_MASTER) && !strcmp(propname, "cs-gpios"), inside gpiolib-of.c
22:19kettenisugh, if it has that name it forces active-low?
22:20kettenisno excuse for not using the appropriate flag in the DT
22:20j_eylegacy is the excuse
22:20kettenisthanks for figuring that out
22:21j_eyso yes, all is well, active low is what we need :P
22:21kettenisthat is my keyboard/touchpad driver
22:37aleasto has joined #asahi
22:43dvtkrlbs1 has joined #asahi
22:47bgb has quit [Ping timeout: 480 seconds]
22:57bgb has joined #asahi
23:02m6wiq has quit [Quit: Leaving]
23:05bgb has quit [Ping timeout: 480 seconds]
23:14bgb has joined #asahi
23:21aleasto has quit [Quit: Konversation terminated!]
23:22bgb has quit [Ping timeout: 480 seconds]
23:30bgb has joined #asahi
23:31rohin2 has joined #asahi
23:55X-Scale` has joined #asahi
…