2023-09-01
00:00steven has quit [Quit: ZNC 1.8.2 - https://znc.in]
00:01steven has joined #asahi-dev
00:27psykose has quit [Ping timeout: 480 seconds]
00:27eiln has joined #asahi-dev
00:30psykose has joined #asahi-dev
01:17psykose has quit [Ping timeout: 480 seconds]
01:19ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:22psykose has joined #asahi-dev
01:23ourdumbfuture has joined #asahi-dev
01:25psykose has quit [Remote host closed the connection]
01:26psykose has joined #asahi-dev
01:33jeisom has quit [Quit: Leaving]
01:35jeisom has joined #asahi-dev
02:00gabuscus has quit []
02:15ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:16jeisom has quit [Ping timeout: 480 seconds]
02:16ourdumbfuture has joined #asahi-dev
02:16psykose has quit [Ping timeout: 480 seconds]
02:20psykose has joined #asahi-dev
02:34gabuscus has joined #asahi-dev
02:35crabbedhaloablut has joined #asahi-dev
02:36ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:11drubrkletern has joined #asahi-dev
03:45Armlin has joined #asahi-dev
03:46Armlin has quit []
04:40bisko has joined #asahi-dev
05:12bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
05:28gladiac is now known as Guest1413
05:28gladiac has joined #asahi-dev
05:34Guest1413 has quit [Ping timeout: 480 seconds]
05:45drubrkletern has quit [Remote host closed the connection]
06:21knedlik has joined #asahi-dev
06:30knedlikGood morning peeps, since I didn't get a response yesterday (the channel wasn't very alive), are there any things I can help with programming-wise?
06:32marcaneiln: I'll look at the PMGR stuff. 0x400 is APPLE_PMGR_DEV_DISABLE, I don't know what 0x1000 is. We can merge as-is for now anyway and deal with it later.
06:33marcanknedlik: there's https://github.com/AsahiLinux/docs/wiki/Yaks-in-need-of-shaving if you want to find stuff to do
06:35knedlikLooked at that yesterday, I was thinking I might do the keyboard cleanup, but I'm not really sure what that task is about
06:36marcanthe problem is we need to treat Fn as a modifier, but we've run out of modifiers in Xorg-land, and this needs to work with XWayland somehow
06:39knedlikThe issue mentions X11 allows 8 modifiers - I could count exactly 8 on my keyboard, assuming right and left are different
06:40knedlikAlso, what's the current "base" branch on github that is used as a reference for development? asahi-wip?
06:41kr315 has joined #asahi-dev
06:42knedlik has quit [Quit: knedlik]
06:44marcanasahi-wip, but none of this has to do with the kernel really, just use `fnmode=0` for hid-apple to disable Fn handling on that side
06:45marcanX11 allows 8 modifiers, but those are effectively global - we're using all 8 *possible* modifiers already for 8 features, and now we need one more
06:49kr315 has quit [Remote host closed the connection]
06:49kr315 has joined #asahi-dev
06:51kr315 has quit []
06:51jannaumarcan: dottedmag but it didn't work out and the yak got unclaimed: https://github.com/AsahiLinux/docs/wiki/Yaks-in-need-of-shaving/_compare/c9a916b3fded7be3e4a39e22e35ecd20503e4293...15b5c09d55aa2ac07a913ca5e9ddb6a5b2f88771
06:52knedlik has joined #asahi-dev
06:55knedlikAnother thing I'm not sure if it's being worked on - I have a czech keyboard MacBook, but there's isn't an option for the Apple czech keyboard
07:03jannauI think you'll have to use the fedora installer to get a minimal system for bootstrap installed
07:20mx08 has quit [Quit: WeeChat 3.0]
07:22mx08 has joined #asahi-dev
07:33marcanknedlik: keyboard layouts in general need work, yes, that's related and we need as much help as we can get for Apple layouts
07:33marcanin general the idea is you pick czech and then, when the keyboard model is one of the Apple Aluminum ones, that should adapt to the Apple-specific variations
07:35marcanright, but AIUI the way it's *supposed* to work for these kinds of keyboards, since they use special models, is automatically
07:35marcaninstead of having a layout variant for "apple", the apple-isms are applied as a result of having an apple *model* with czech layout
07:56knedlikmcpe has joined #asahi-dev
07:58knedlik is now known as Guest1421
07:58knedlikmcpe is now known as knedlik
08:07knedlik has quit [Quit: Leaving]
08:07Guest1421 has quit [Quit: Guest1421]
08:07knedlik has joined #asahi-dev
08:33WindowPa- has quit [Quit: ZNC 1.8.2 - https://znc.in]
08:33WindowPain has joined #asahi-dev
08:45knedlik_ has joined #asahi-dev
08:45knedlik is now known as Guest1425
08:45knedlik_ is now known as knedlik
08:49Guest1425 has quit [Ping timeout: 480 seconds]
09:03knedlik has quit [Remote host closed the connection]
09:44eilnmarcan: if we're gonna merge, with some traces I can add more dt nodes + soc init data. p sure h13s share the same sensor, so little problem there. already added boilerplate for m2 resolution work too.
09:48_jannau__eiln: the m1 pro/max macbook pros have a 1920x1080 sensor: https://support.apple.com/kb/SP854?locale=en_US
10:07zane has joined #asahi-dev
10:27chadmed_ has joined #asahi-dev
10:34jeisom has joined #asahi-dev
11:01knedlik has joined #asahi-dev
11:01bisko has joined #asahi-dev
11:07knedlikSo before I claim the keyboard yak and embark on that little adventure, I got reminded of an issue that's been bugging me for quite a while
11:08knedlikAre there currently any issues with the speaker stuff that don't require very niche knowledge of audio-stuff?
11:14ourdumbfuture has joined #asahi-dev
11:15PaulFertserknedlik: https://github.com/chadmed/asahi-audio/blob/main/test_notes/j31x.md is an interesting read. If you have the right skills and equipment to prepare FIRs and other configs for hardware that's not already in https://github.com/chadmed/asahi-audio/tree/main/firs then it might help.
11:19knedlikInterestingly enough, the M1 13in Pro isn't J31x... am I right to assume the notes still apply?
11:25knedlik1) Is there a guide somewhere on properly building and installing the asahi kernel on the Fedora remix? Last time I tried, GRUB couldn't find it after a reboot
11:26knedlik2) Is there any info on how these configs (FIRs, what does it stand for?) work? How would I develop and test them while making sure my speakers survive?
11:31PaulFertserknedlik: 2) not anyhow, that's dev-only stuff, if you do not know the answer you're not supposed to enable speakers at all for now.
11:38knedlikI'm mainly looking around what other stuff than the keyboard yak is available before I dive into that rabbit hole the keyboard seems to be
11:53gladiac has quit [Quit: k thx bye]
12:07knedlik has quit [Remote host closed the connection]
12:33timokrgr has quit [Quit: User left the chat]
12:37timokrgr has joined #asahi-dev
12:45knedlik has joined #asahi-dev
12:48knedlikchadmed: I see, I was on the master branch, that makes sense... should those configs be reasonably safe(tm) considering you evidently know your stuff?
12:49knedlikJust asking how big of an idiotic move it would be to try them out, while keeping in ming any problems are on me.
12:56ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:57chadmed_ has quit [Remote host closed the connection]
13:05knedlikWell, the sound being bad doesn't matter to me that much right now, as long as my speakers continue working after....
13:07ourdumbfuture has joined #asahi-dev
13:27PaulFertserknedlik: stuff in that repo is not about safety at all, there's another specifically for safety: https://github.com/chadmed/speakersafetyd . And you can see by README it's not ready yet.
13:54ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:55ChaosPrincess has quit [Quit: ChaosPrincess]
13:56ChaosPrincess has joined #asahi-dev
14:04knedlik has quit [Quit: knedlik]
14:07ourdumbfuture has joined #asahi-dev
14:10knedlik has joined #asahi-dev
14:14chadmedPaulFertser: they meant safe to use absent speakersafetyd. the official advice is that they are _not_ safe to use without speakersafetyd
14:15sawyer has joined #asahi-dev
14:16malfunction54 has quit [Quit: Leaving]
14:16sawyereiln: I have more time than sense and an M1 Pro 16 inch with a fresh Asahi Fedora install if I can be of any use
14:19sawyerthough I've admittedly had a bit of trouble standing up a dev env for kernel stuff so far (might need some time to get that working)
14:22PaulFertserchadmed: you mean you tested it with all those filters in place on max loudness with the loudness war track and couldn't get anything to overheat, speakersafetyd didn't have any reason to act?
14:23PaulFertserchadmed: the official advice is that sound shouldn't be enabled, that I know. I'm trying to understand your statement about "safe to use absent speakersafetyd".
14:24chadmedim saying that knedlik was asking if the DSP stuff is safe to use without speakersafetyd
14:24knedlikActually I was asking if it was safe to use overall, and you configs *do* list it as a dependency
14:25knedlikAlthough I'm not sure I'm gonna need those speakers again if I play them at the absolute max volume
14:26chadmedthey are "safe" to use in the sense that they dont expose your speakers to any more danger than just blasting sound through them raw
14:27chadmedbut im not going to make any absolute guarantees of safety, and no one should be using this stuff without speakersafetyd in the wild
14:27knedlikMy question was primarily aimed towards use with speakersafetyd, as I wasn't planning on using it without them
14:27PaulFertserFrom Marcan's posts I had an impression that basically you can turn the volume all the way up safely for most "normal" sound streams but with certain content it becomes necessary to tone it down. DSP filters can make some of that contents safer but not all I guessed. Hence the confusion.
14:29chadmedafter about halfway macos starts bringing in a very aggressive compressor which ruins the sound quality anyway
14:29PaulFertserknedlik: speakersafetyd infers temperature of speakers and does it automatically whenever it becomes dangerously hot afaict.
14:30knedlikNow I need to find how the hell I build the kernel in release since debug ain't fitting onto the boot partition
14:36knedlikI tried this two times already, seems it updates the grub config *before* the image is written
14:36sawyer has quit [Quit: Textual IRC Client: www.textualapp.com]
14:40sawyer has joined #asahi-dev
14:49knedlikMake install throws 'error writing '/boot/initramfs-6.4.0-asahi+.img': No space left on device'
14:52jeisom has quit [Ping timeout: 480 seconds]
15:22zane has quit [Quit: WeeChat 4.0.4]
15:52roxfan has joined #asahi-dev
15:55roxfan2 has quit [Ping timeout: 480 seconds]
15:57marcanthe m1 air/pro and m2 pro are ancient case designs, they probably kept whatever old cameras those always had
16:06knedlikI'm out of idead now. No matter what I do, I always get error writing '/boot/initramfs-6.4.0-asahi+.img': No space left on device
16:38sawyer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:55PaulFertserFor Linux it's normal to have at least some debug symbols to get meaningful backtraces, that alone certainly doesn't bloat the modules much. So you're not supposed to be aiming for full elimination of debug sections in ELF files there.
16:56PaulFertserknedlik: why do not you use mkinitramfs manually with debug switch to see what exactly it's trying to pack in, and what files are there taking that much space really? You also can store it somewhere outside /boot while researching.
16:57sawyer has joined #asahi-dev
16:58knedlikLast time I used this stuff was when I last tried installing pure Arch on my x64 desktop
17:07knedlikBtw, is my configuration wrong, or is there some missing piece that's the reason why my keyboard isn't backlit?
17:19sawyer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:27knedlikThis is weird... the initramfs built by Dracut is 964 107 222 Bytes, which obviously doesn't fit
17:27sawyer has joined #asahi-dev
17:33jannauno, you can't. the bootloader has no idea that it has to mount a second partition nor how to mount it so that your symlink resolves
17:34PaulFertserIt was a joke right, no need to give a serious answer?
17:34jannauhow large are you installed modules (or vmlinuz / Image.gz in the case you've built everything in)
17:35jannaumy modules (`du -sch /lib/modules/6.4.0-asahi-9-arm64`) are 34M, less modules than a distro built but not really disabled everything I don't need
17:45PaulFertserknedlik: so how big are your new modules in /lib/modules if you remove the build/ and source/ symlinks from there (or probably use du -D to skip dereferencing symlinks)?
17:52knedlik has quit [Quit: knedlik]
17:57knedlik has joined #asahi-dev
18:07PaulFertserknedlik: without source and build symlinks?
18:11PaulFertserknedlik: what about "du -sh /lib/modules/<version>/*" ? I mean you should see where this all space goes for real. I'm not sure about -D option.
18:15ah-eiln: i'd love to help getting the camera to work on j316. here's the mac os log and the device tree. i tried putting together the dbt changes yesterday but just saw you updated something in the MR for t6000, would it be worth trying that?
18:17ah-err here's the log and device tree: https://gist.github.com/ah-/71c8f98a076b21d6c039d313e4d450f0
18:31ah-eiln: looks like some of the dtb addresses are a bit different, i'm on a j316c t6001, and I'm getting isp_dart: iommu@1860E8000 rather than iommu@2860e8000 in your branch. i guess you did it for j316s t6000?
18:31ah-i don't have a m1n1 proxyclient setup yet, i got the dt from the img4 tool. if it's helpful I can give that a go though
18:36eilnah-: yeah, the only way to know is through a trace. the dt isn't much use for this one, they dont even describe the power domains. it's all hardcoded throughout the kext
18:39ah-ok cool, i'll try running the trace. how do I do that best? with https://github.com/AsahiLinux/docs/wiki/SW%3AHypervisor?
18:39ah-I think i used to have a m1n1 proxyclient setup and can that to work again, but I'm not sure how to run your script and then boot osx to trace it
18:44knedlikjannau: new config shows 1MB on the file you told me and 'file' shows with debug symbols
18:47eilnah-: the hypervisor setup (needed to trace macos) is a bit tricky, sadly. you'll need a new macos install, an icloud account to get the kdks, install m1n1 yourself in recovery, etc. if you're familiar with kernel stuff you could test with a simple tethered boot setup (enable expert mode in installer).
18:51ah-ok I think i roughly found what I need to do, so I get the m1n1 proxy setup, then run your tracing script, then boot osx via https://github.com/AsahiLinux/docs/wiki/SW%3AHypervisor and that should give me the log?
19:05utsweetyfish has quit [Remote host closed the connection]
19:05utsweetyfish has joined #asahi-dev
19:06eilnmaybe I shouldn't have pushed the last one? it was more of a "jot down my notes from dumps"
19:21knedlik has quit [Quit: knedlik]
19:23knedlik has joined #asahi-dev
19:24knedlik has left #asahi-dev [#asahi-dev]
19:26knedlik has joined #asahi-dev
19:31utsweetyfish has quit [Remote host closed the connection]
19:32knedlikI can't have a while where everything works... of course the GPU stopped working after the kernel update
19:33utsweetyfish has joined #asahi-dev
19:36roxfan has quit [Ping timeout: 480 seconds]
19:37jeisom has joined #asahi-dev
19:37roxfan has joined #asahi-dev
19:40knedlik has quit [Remote host closed the connection]
19:42roxfan has quit [Read error: Connection reset by peer]
19:43knedlik has joined #asahi-dev
19:45midou has quit [Ping timeout: 480 seconds]
19:47knedlikWill the arch release stay as a viable option for Asahi dev? I'm seriously considering deleting Fedora and going back to the Arch fork
19:48knedlik has quit [Quit: knedlik]
19:50midou has joined #asahi-dev
20:09maximbaz has quit [Quit: bye]
20:09maximbaz has joined #asahi-dev
20:10ah-i had to open photobooth twice, the first time it took a few seconds and then it said there was no available camera, on the second attempt it worked and I saw the camera image
20:13duhanebel has joined #asahi-dev
20:51cylm_ has joined #asahi-dev
20:53cylm has quit [Ping timeout: 480 seconds]
21:11sawyer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:00nela has quit [Quit: bye!]
22:00nela has joined #asahi-dev
22:37utsweetyfish has quit [Remote host closed the connection]
22:38utsweetyfish has joined #asahi-dev
22:47sawyer has joined #asahi-dev
22:50utsweetyfish has quit [Remote host closed the connection]
22:51utsweetyfish has joined #asahi-dev
23:27utsweetyfish has quit [Remote host closed the connection]
23:27utsweetyfish has joined #asahi-dev
23:45jeisom has quit [Ping timeout: 480 seconds]
23:48crabbedhaloablut has quit []
23:52utsweetyfish has quit [Remote host closed the connection]
23:53utsweetyfish has joined #asahi-dev
23:58cylm_ has quit [Ping timeout: 480 seconds]