2023-09-28
00:09psykose has quit [Remote host closed the connection]
00:10psykose has joined #asahi
00:16ten15723774320 has joined #asahi
00:19dcow has quit [Remote host closed the connection]
00:21dcow has joined #asahi
00:22ten1572377432 has quit [Ping timeout: 480 seconds]
00:22ten15723774320 is now known as ten1572377432
00:33dcow has quit [Ping timeout: 480 seconds]
00:38leah2 has quit [Ping timeout: 480 seconds]
00:47leah2 has joined #asahi
01:00jeisom has quit [Remote host closed the connection]
01:07jn has joined #asahi
01:10jnn has quit [Ping timeout: 480 seconds]
01:20leah2 has quit [Ping timeout: 480 seconds]
01:22ten15723774327 has joined #asahi
01:27leah2 has joined #asahi
01:27ten1572377432 has quit [Ping timeout: 480 seconds]
01:27ten15723774327 is now known as ten1572377432
01:36ChaiTRex has quit [Remote host closed the connection]
01:36ChaiTRex has joined #asahi
01:43leah2 has quit [Ping timeout: 480 seconds]
01:46leah2 has joined #asahi
02:00gabuscus has quit []
02:00leah2 has quit [Ping timeout: 480 seconds]
02:10leah2 has joined #asahi
02:30gabuscus has joined #asahi
02:35crabbedhaloablut has joined #asahi
02:39leah2 has quit [Ping timeout: 480 seconds]
02:45ten15723774328 has joined #asahi
02:46leah2 has joined #asahi
02:51ten1572377432 has quit [Ping timeout: 480 seconds]
02:51ten15723774328 is now known as ten1572377432
02:53ten1572377432 has quit [Remote host closed the connection]
02:53ten1572377432 has joined #asahi
02:55leah2 has quit [Ping timeout: 480 seconds]
02:56leah2 has joined #asahi
03:27Guest1515 has quit []
03:28vx has joined #asahi
03:28vx is now known as Guest1546
03:58ten15723774325 has joined #asahi
04:04ten1572377432 has quit [Ping timeout: 480 seconds]
04:04ten15723774325 is now known as ten1572377432
04:36Fischmiep has quit [Ping timeout: 480 seconds]
05:00ten15723774320 has joined #asahi
05:06ten1572377432 has quit [Ping timeout: 480 seconds]
05:06ten15723774320 is now known as ten1572377432
05:14grogu_ has joined #asahi
05:16grogu has quit [Ping timeout: 480 seconds]
05:17Fischmiep has joined #asahi
05:32Fischmiep has quit [Ping timeout: 480 seconds]
06:15dza has quit []
06:15dza has joined #asahi
06:17Fischmiep has joined #asahi
06:18dza has quit []
06:18Mrmaxmeier has quit [Ping timeout: 480 seconds]
06:18dza has joined #asahi
06:20dza has quit []
06:20dza has joined #asahi
06:23dza has quit []
06:23dza has joined #asahi
06:28ten15723774321 has joined #asahi
06:33jjanzic1 has quit [Ping timeout: 480 seconds]
06:34ten1572377432 has quit [Ping timeout: 480 seconds]
06:34ten15723774321 is now known as ten1572377432
06:37nst has quit [Quit: WeeChat 3.8]
06:48Mrmaxmeier has joined #asahi
07:14Fischmiep has quit [Ping timeout: 480 seconds]
07:36Fischmiep has joined #asahi
07:45dylanchapell has quit [Remote host closed the connection]
07:48slp has joined #asahi
07:52oi_wtf has quit [Quit: WeeChat 4.0.5]
07:52oi_wtf has joined #asahi
08:15chadmed has quit [Quit: Konversation terminated!]
08:15chadmed has joined #asahi
08:20dylanchapell has joined #asahi
08:26jjanzic has joined #asahi
08:28nst has joined #asahi
08:39ChaosPrincess has quit [Quit: ChaosPrincess]
08:40ChaosPrincess has joined #asahi
09:14grace has joined #asahi
09:14grace has quit []
09:22dcow has joined #asahi
09:30dcow has quit [Remote host closed the connection]
09:36grce has joined #asahi
09:39grce has quit []
09:42hightower3 has quit [Ping timeout: 480 seconds]
10:36pg12 has quit [Ping timeout: 480 seconds]
10:36pg12 has joined #asahi
11:06ten1572377432 has quit [Remote host closed the connection]
11:07ten1572377432 has joined #asahi
11:20c10l has quit [Quit: Ping timeout (120 seconds)]
11:21c10l has joined #asahi
11:23ptudor_ has quit [Ping timeout: 480 seconds]
11:32jeisom has joined #asahi
11:32i509vcb has quit [Quit: Connection closed for inactivity]
11:51Moprius has joined #asahi
11:54Moprius has quit []
12:10minecrell has quit [Quit: :( ]
12:11minecrell has joined #asahi
12:23chadmed has quit [Remote host closed the connection]
12:24kdb424 has quit [Quit: Ping timeout (120 seconds)]
12:24dcow has joined #asahi
12:24compassion1785 has quit [Quit: Ping timeout (120 seconds)]
12:24grogu_ has quit []
12:24NateWeav has quit [Quit: Ping timeout (120 seconds)]
12:24kdb424 has joined #asahi
12:24compassion1785 has joined #asahi
12:25NateWeav has joined #asahi
12:25grogu has joined #asahi
12:25jonmasters has quit [Read error: Network is unreachable]
12:25nightstrike has quit [Read error: Network is unreachable]
12:25jonmasters has joined #asahi
12:25nightstrike has joined #asahi
12:28psanford has quit [Remote host closed the connection]
12:28psanford has joined #asahi
12:28alyssa has quit [Remote host closed the connection]
12:28Xe_ has quit [Remote host closed the connection]
12:29Xe has joined #asahi
12:29alyssa has joined #asahi
12:31ptudor has joined #asahi
12:38chadmed has joined #asahi
12:38amarioguy has joined #asahi
12:45ptudor_ has joined #asahi
12:47ChaiTRex has quit [Remote host closed the connection]
12:47ChaiTRex has joined #asahi
12:48leiocan I somehow grab the Image.gz equivalent (to feed into linux.py or run_guest_kernel) out of a EFI UKI kernel image?
12:48dcow has quit [Remote host closed the connection]
12:50ptudor has quit [Ping timeout: 480 seconds]
12:52leiois u-boot supposed to show any output on monitors? I don't really have a comparison to know from other hardware
12:56j`eyhttps://github.com/AsahiLinux/u-boot/blob/a5b0fccb5b8b13f4ea730f5bacde2aae707386df/arch/arm/mach-apple/board.c#L472
12:56leioso my conundrum freshly summarized is: I have built a patched fedora kernel rpm (for j475d dtb and hdmi and other support on it) and installed it, but after update-m1n1 I'm not getting any output on anything and can't know what's going on. I see a asahi logo in the middle of the screen, I think it comes from m1n1
12:58leiofor update-m1n1 I modified the sysconfig file in fedora to point to a patched m1n1 instead and just re-ran it. The dtb's it picks up already come from the new kernel package and include the new dtb's. But afterwards I just get no output beyond some m1n1 scroll-through and the logo on anything to know what's wrong
12:58leioI also installed a chainloading patched m1n1 as stage1 in the hope that the display is initialized (and that's why I see the logo now and some m1n1 output scroll by)
13:00leio(that output and logo are from stage2 then, as the current m1n1 patches don't set up the framebuffer base or something, so only the stage2 gets that going to display stuff on monitor)
13:04leioI guess I should make sure m1n1 stage2 does go through the cur_boot_args.video.base conditional that sets up a bunch of framebuffer things with fdt_setprop calls
13:06amarioguy has quit [Remote host closed the connection]
13:08j`eytrying to figure out what the stages of m1n1 are doing would be good, by connecting via USB
13:09leioand it has M2 ultra support as last commit to board.c, which I'm not sure whether is included in my binary or not
13:09leiothe nvram boot-args=-v stuff didn't work for me either - if boot.bin (stage2) is found, I never get any ttyACM* anymore
13:11j`eyif boot.bin starts it will try to load u-boot, and before it does that, it will disable usb
13:11jannegif you just boot the m1n1/boot.bin from the device via run_guest.py you will have the virtual serial through the whole stack
13:12leioI understood nvram option should give me the opportunity to connect to ttyACM and not have to do the "delete boot.bin" dances
13:14jannegif you want to switch easily between normal boot and m1n1 proxy boot a second proxy only install can be switched with the boot picker/startup disk
13:17dcow has joined #asahi
13:17leioI was hoping to get a proxy from stage1 with the boot-args, but yeah, something's up with that
13:17cy8aerWhat is that? https://www.heise.de/news/MacBook-Air-M2-13-Apple-empfiehlt-macOS-14-fuer-Langzeit-Akkugesundheit-9319295.html?wt_mc=rss.red.ho.ho.atom.beitrag.beitrag - sorry german, try the 118 firefox for translation: there is said that Sonoma should be used for better battery health on m2 macbook air. Is this the firmware stuff used for our 80% stuff and are we then able to benefit when installing Sonoma (and with a mac air m2 of course)?
13:22leioit kind of already implies that with "make RELEASE=1 enables m1n1 release behavior, which hides the console by default and provides an escape hatch to activate an early proxy mode", I just didn't make a connection
13:24ten1572377432 has quit [Remote host closed the connection]
13:25ten1572377432 has joined #asahi
13:39AnuthaDev has joined #asahi
13:56alyssa has quit [Quit: alyssa]
14:07jjanzic has quit [Ping timeout: 480 seconds]
14:10Dcow_ has joined #asahi
14:15kez has left #asahi [Leaving]
14:17dcow has quit [Ping timeout: 480 seconds]
14:17jjanzic has joined #asahi
14:18leiogot some u-boot output now, but not very useful, just resets seemingly immediately (does note about missing uboot.env, I assume that's optional) - https://dpaste.com/AXLHLFZXZ
14:22j`ey0x2404e80100 not sure what that address is, is that something in the DT that you can match it up to?
14:22ten1572377432 has quit [Remote host closed the connection]
14:22ten1572377432 has joined #asahi
14:27dcow has joined #asahi
14:28delsol has joined #asahi
14:34Dcow_ has quit [Ping timeout: 480 seconds]
14:48dcow has quit [Remote host closed the connection]
14:48dcow has joined #asahi
14:54dcow has quit [Remote host closed the connection]
14:54j`eythat's a bit confusing, it seems the 0x24.... address isn't in the m2 ultra map https://github.com/AsahiLinux/u-boot/commit/46d6873a2428a9e037660312d756c0ca412b1bdf so not sure if I'm misunderstanding something, or if there is something missing
14:57gachikuku has joined #asahi
14:58gachikukuI want to write assembly code targeting x86_64 using macos M1 laptop. I can compile it fine with nasm but don't know how to link it.
14:58gachikukuI know in asahi linux there is ld.lld and I used it and it worked fine but since I switched back to macos, I don't know how to link it.
14:59gachikukuI'm asking here because I got really good help here and, can't think of a better place to ask other than here
15:03gachikuk2 has joined #asahi
15:04gachikuk2 has quit []
15:07gachikuku has quit [Ping timeout: 480 seconds]
15:20gachikuku has joined #asahi
15:20gachikukuSorry, for bothering again. Is #asahi-offtopic even official? Can't see any logs about it.
15:25gachikuku has quit [Remote host closed the connection]
15:38AnuthaDev has quit []
15:40AnuthaDev has joined #asahi
15:43espo has joined #asahi
15:51vLily9 has joined #asahi
15:51vLily has quit [Read error: Connection reset by peer]
15:51vLily9 is now known as vLily
16:34i509vcb has joined #asahi
16:37pitusti don't think its asahi tbh, probably just the fact that asahi doesn't drive it at all makes it unstable
16:42AnuthaDev has quit []
16:53dcow has joined #asahi
17:01ChaosPrincessenable driver (you only need adp, z2 is unneccesary), do not bother with tiny-dfr, write zero to relevant sysfs file
17:03ChaosPrincessyea, something like that
17:03ChaosPrincess/sys/class/backlight/{something something adp}/brightness
17:04slp has quit [Ping timeout: 480 seconds]
17:06ChaosPrincesshttps://github.com/AsahiLinux/m1n1/blob/main/proxyclient/experiments/touchbar_rainbow.py#L38 line 38 and 39 is all you need, just change 0x8051 to iirc 0x51
17:06dcow has quit [Remote host closed the connection]
17:07ChaosPrincessactually i think the clocks will be off, so it will not work
17:07ChaosPrincesslinux powers down unused clocks and power and if there is no driver to use something - it gets disabled
17:10j`eyI didnt see anything in sway that used the render node stuff, but maybe they called it something different
17:10ChaosPrincesscomment out this line and recompile kernel :P https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/gpu/drm/adp/adp_drv.c#L94
17:19dcow has joined #asahi
17:26pitustChaosPrincess: half of the issue was the lack of /dev/dri/renderD* though, and that's not going to reappear i don't think?/
17:26ChaosPrincessis there no render nodes at all?
17:33ChaosPrincessyea, the lack of a render node is imo more a gpu driver issue
17:33ChaosPrincessor more likely lack thereof
17:34mohit815 has quit [Quit: mohit815]
17:35mohit815 has joined #asahi
17:36ChaosPrincessit is kinda annoying that there isnt a universal "please don't touch this display unless you specifically know how to do it" flag
17:37pitustlike idk lets imagine a hypothetical display server, let's give it a placeholder letter "X"
17:38pitustalas the compositor couldn't possibly read a config file to determine what to do i mean its not like it already has a config file for setting other things
17:39dottedmagChaosPrincess: When I asked in #wayland, I was pointed to something (I don't remember what exactly), but I'm not sure all compositors obey.
17:40ChaosPrincessnon-desktop? i set it, everything ignores it
17:41dottedmagI see, wlroots puts it in the struct, but the compositors are probably free to ignore it?
17:41ChaosPrincesshttps://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/gpu/drm/adp/adp_drv.c#L440
17:41ChaosPrincessand if i understand non-desktop correctly, the compositor is supposed to grab it anyway, and then give it to vr game runtime via drm lease
17:42ChaosPrincessin case of sway - idk, maybe, seems like yes
17:42ChaosPrincessi run kwin, it works there
17:43pitustdottedmag: maybe? but it also picked it as the only connector once, even though there is zero chance in hell it's the correct one to use
17:44ChaosPrincessbefore i was setting non-desktop, kwin just saw it as a second monitor, and allowed to drag windows there.
17:44pino has joined #asahi
17:45ChaosPrincessthere is a jannau's post on fedi where he put the task bar there
17:45pino is now known as ydalton
17:45pino has joined #asahi
17:46ChaosPrincessuhh, maybe? idk how that subsystem works, does it wrap a drm device?
17:46pinohi, is there way to definitively tell whether a program is running through software rendering?
17:47ChaosPrincesspino: in generic case or is it a browser
17:47ChaosPrincessabout:support
17:47delsol has quit [Remote host closed the connection]
17:48ChaosPrincessscroll to "Graphics" section, if llvmpipe is mentioned anywhere - its sw
17:50pino has quit []
17:50ydalton has quit [Remote host closed the connection]
17:50j`eyhttps://media.hachyderm.io/cache/media_attachments/files/110/203/289/306/469/441/original/c978e4844547a04c.jpeg touchbar+taskbar
17:50ydalton has joined #asahi
18:09ydalton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.3)]
18:11AnuthaDev has joined #asahi
18:18flom84 has joined #asahi
18:20AnuthaDev has quit []
18:23AnuthaDev has joined #asahi
18:25Moprius has joined #asahi
18:28tenkuu has joined #asahi
18:29tenkuu has quit []
18:29delsol has joined #asahi
18:30Moprius has quit []
18:32delsol has quit [Remote host closed the connection]
18:33cylm has quit [Ping timeout: 480 seconds]
18:36tenkuu has joined #asahi
18:46ten1572377432 has quit [Remote host closed the connection]
18:47ten1572377432 has joined #asahi
18:48dcow has quit [Remote host closed the connection]
19:00crabbedhaloablut has quit []
19:35ciggi_ has quit [Remote host closed the connection]
19:38tenkuu has quit [Quit: WeeChat 4.0.4]
19:40ciggi has joined #asahi
19:43basso has quit [Quit: The Lounge - https://thelounge.chat]
19:44basso has joined #asahi
19:53ChaosPrincesspitust: you just did.
19:53ChaosPrincessfor some stupid reason, tee fails with an error but changes the backlight anyway
19:54ChaosPrincessecho 0 >/.../brightness as root also works
20:00ChaosPrincesspitust: ok, listen here, everyone makes mistakes, dont be an ass about it cause i got claws too.
20:00ChaosPrincessthe minimum is 1 for anything to display, 0 is display off
20:01ChaosPrincessj`ey: the reason i didnt use it is cause i failed to realize it exists
20:01ChaosPrincessand yea, i guess the return value should be 0, i tested via echo > or tiny-dfr and neither seemed to care
20:06pitustChaosPrincess: sorry, didn't want to be rude. i know making these drivers is hard, and i appreciate it.
20:15alarumbe has joined #asahi
20:20larunbe has quit [Ping timeout: 480 seconds]
20:29flom84 has quit [Quit: Leaving]
20:34Guest1546 has quit []
20:35vx has joined #asahi
20:35vx is now known as Guest1608
20:41AnuthaDev has quit []
20:47marvin24 has joined #asahi
20:47ydalton has joined #asahi
20:49ydaltonChaosPrincess: wait, 1 = minimum and 0 = off? i thought jannau said that's not supposed to happen
20:51ChaosPrincessthat was in reference to kde's brightness slider, it does not allow you to set brightness to 0, to prevent the primary display from turning off and the user having to blindly hunt for the brightness slider. sysfs files have no such protection
20:52ChaiTRex has quit [Quit: ChaiTRex]
20:52ChaiTRex has joined #asahi
20:54ydaltonlike catting /sys/class/backlight/apple-panel-bl/brightness yields 0 but i can still see
20:55ChaosPrincessIt depends on specific device, the reason kde only goes to 1 is that for some devices 0=dimmest and for some 0=off
20:55ChaosPrincessand there is no way for userspace to find out
20:55jannegthe backlight api/sysfs leaves it undefined what 0 means and that's unfixable. for the new API 0 == minimal brightness is documneted
20:55ydaltoncuz on my old laptop i could set the brightness to 0 and that would set the backlight off
20:56ChaosPrincessAs said above, 0 means "idk what, try and see what happens"
20:57j`eyhttps://kernel-recipes.org/en/2022/talks/new-userspace-api-for-display-panel-brightness-control/
21:02ydaltonso if i read it correctly, integrate it with the drm_connector object (add some new fields) and explicitly define what 0 means for brightness
21:02Guest1608 has quit []
21:02vx^ has joined #asahi
21:11ydalton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.3)]
21:18ten1572377432 has quit [Remote host closed the connection]
21:18ten1572377432 has joined #asahi
21:34Guest1486 has quit [Ping timeout: 480 seconds]
21:34rhysmdnz has quit [Ping timeout: 480 seconds]
21:37ciggi has quit [Remote host closed the connection]
21:45atipls has quit [Killed (NickServ (Too many failed password attempts.))]
21:45atipls has joined #asahi
21:45dcow has joined #asahi
21:48ciggi has joined #asahi
21:49Dcow_ has joined #asahi
21:50stipa is now known as Guest1614
21:50stipa has joined #asahi
21:51dcow has quit [Read error: No route to host]
21:51dcow has joined #asahi
21:53Dcow_ has quit [Read error: Connection reset by peer]
21:56Guest1614 has quit [Ping timeout: 480 seconds]
22:21jjanzic has quit [Ping timeout: 480 seconds]
22:23dcow has quit [Remote host closed the connection]
22:23dcow has joined #asahi
22:30jjanzic has joined #asahi
22:36dcow has quit [Remote host closed the connection]
22:40dcow has joined #asahi
22:41tenkuu has joined #asahi
23:02tenkuu has quit [Quit: WeeChat 4.0.4]
23:10Dcow_ has joined #asahi
23:17dcow has quit [Ping timeout: 480 seconds]
23:20darkapex has quit [Remote host closed the connection]
23:21darkapex has joined #asahi
23:22rhysmdnz has joined #asahi
23:23Jamie has joined #asahi
23:24Jamie is now known as Guest1620
23:32Dcow_ has quit [Remote host closed the connection]
23:40yuyichao has quit [Remote host closed the connection]
23:40yuyichao has joined #asahi
23:45jeisom has quit [Ping timeout: 480 seconds]
23:46jeisom has joined #asahi