marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | "Does XXX work yet?": https://alx.sh/fs | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
psykose has quit [Remote host closed the connection]
psykose has joined #asahi
ten15723774320 has joined #asahi
dcow has quit [Remote host closed the connection]
dcow has joined #asahi
ten1572377432 has quit [Ping timeout: 480 seconds]
ten15723774320 is now known as ten1572377432
dcow has quit [Ping timeout: 480 seconds]
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi
jeisom has quit [Remote host closed the connection]
jn has joined #asahi
jnn has quit [Ping timeout: 480 seconds]
leah2 has quit [Ping timeout: 480 seconds]
ten15723774327 has joined #asahi
leah2 has joined #asahi
ten1572377432 has quit [Ping timeout: 480 seconds]
ten15723774327 is now known as ten1572377432
ChaiTRex has quit [Remote host closed the connection]
ChaiTRex has joined #asahi
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi
gabuscus has quit []
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi
gabuscus has joined #asahi
crabbedhaloablut has joined #asahi
leah2 has quit [Ping timeout: 480 seconds]
ten15723774328 has joined #asahi
leah2 has joined #asahi
ten1572377432 has quit [Ping timeout: 480 seconds]
ten15723774328 is now known as ten1572377432
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi
Guest1515 has quit []
vx has joined #asahi
vx is now known as Guest1546
ten15723774325 has joined #asahi
ten1572377432 has quit [Ping timeout: 480 seconds]
ten15723774325 is now known as ten1572377432
Fischmiep has quit [Ping timeout: 480 seconds]
ten15723774320 has joined #asahi
ten1572377432 has quit [Ping timeout: 480 seconds]
ten15723774320 is now known as ten1572377432
grogu_ has joined #asahi
grogu has quit [Ping timeout: 480 seconds]
Fischmiep has joined #asahi
Fischmiep has quit [Ping timeout: 480 seconds]
dza has quit []
dza has joined #asahi
Fischmiep has joined #asahi
dza has quit []
Mrmaxmeier has quit [Ping timeout: 480 seconds]
dza has joined #asahi
dza has quit []
dza has joined #asahi
dza has quit []
dza has joined #asahi
ten15723774321 has joined #asahi
jjanzic1 has quit [Ping timeout: 480 seconds]
ten1572377432 has quit [Ping timeout: 480 seconds]
ten15723774321 is now known as ten1572377432
nst has quit [Quit: WeeChat 3.8]
Mrmaxmeier has joined #asahi
Fischmiep has quit [Ping timeout: 480 seconds]
Fischmiep has joined #asahi
dylanchapell has quit [Remote host closed the connection]
slp has joined #asahi
oi_wtf has quit [Quit: WeeChat 4.0.5]
oi_wtf has joined #asahi
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
dylanchapell has joined #asahi
jjanzic has joined #asahi
nst has joined #asahi
ChaosPrincess has quit [Quit: ChaosPrincess]
ChaosPrincess has joined #asahi
grace has joined #asahi
grace has quit []
dcow has joined #asahi
dcow has quit [Remote host closed the connection]
grce has joined #asahi
grce has quit []
hightower3 has quit [Ping timeout: 480 seconds]
pg12 has quit [Ping timeout: 480 seconds]
pg12 has joined #asahi
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
c10l has quit [Quit: Ping timeout (120 seconds)]
c10l has joined #asahi
ptudor_ has quit [Ping timeout: 480 seconds]
jeisom has joined #asahi
i509vcb has quit [Quit: Connection closed for inactivity]
Moprius has joined #asahi
Moprius has quit []
minecrell has quit [Quit: :( ]
minecrell has joined #asahi
chadmed has quit [Remote host closed the connection]
kdb424 has quit [Quit: Ping timeout (120 seconds)]
dcow has joined #asahi
compassion1785 has quit [Quit: Ping timeout (120 seconds)]
grogu_ has quit []
NateWeav has quit [Quit: Ping timeout (120 seconds)]
kdb424 has joined #asahi
compassion1785 has joined #asahi
NateWeav has joined #asahi
grogu has joined #asahi
jonmasters has quit [Read error: Network is unreachable]
nightstrike has quit [Read error: Network is unreachable]
jonmasters has joined #asahi
nightstrike has joined #asahi
psanford has quit [Remote host closed the connection]
psanford has joined #asahi
alyssa has quit [Remote host closed the connection]
Xe_ has quit [Remote host closed the connection]
Xe has joined #asahi
alyssa has joined #asahi
ptudor has joined #asahi
chadmed has joined #asahi
amarioguy has joined #asahi
ptudor_ has joined #asahi
ChaiTRex has quit [Remote host closed the connection]
ChaiTRex has joined #asahi
<leio>
can I somehow grab the Image.gz equivalent (to feed into linux.py or run_guest_kernel) out of a EFI UKI kernel image?
dcow has quit [Remote host closed the connection]
ptudor has quit [Ping timeout: 480 seconds]
<j`ey>
leio: possibly with `binwalk`
<leio>
is u-boot supposed to show any output on monitors? I don't really have a comparison to know from other hardware
<j`ey>
yes, it shows the uboot logo and command prompt
<leio>
and doesn't have any output support over a ttyACM thing like m1n1?
<leio>
so 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
<leio>
for 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
<leio>
I 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)
<leio>
(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)
<leio>
I need to drop in some vars to get u-boot serial console?
<j`ey>
I'm not sure how you can do that though
<leio>
I 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
amarioguy has quit [Remote host closed the connection]
<j`ey>
trying to figure out what the stages of m1n1 are doing would be good, by connecting via USB
<leio>
hmm, looking into it I clone the u-boot repo and looked at history
<leio>
and it has M2 ultra support as last commit to board.c, which I'm not sure whether is included in my binary or not
<leio>
so I need to check into that
<leio>
the nvram boot-args=-v stuff didn't work for me either - if boot.bin (stage2) is found, I never get any ttyACM* anymore
<j`ey>
if you're using the u-boot from fedora, it doesnt have that
<leio>
right, so that explains why it doesn't boot, but not why I have no boot-args=-v honoring
* leio
goes looking how u-boot is built for fedora
<j`ey>
if boot.bin starts it will try to load u-boot, and before it does that, it will disable usb
<janneg>
if you just boot the m1n1/boot.bin from the device via run_guest.py you will have the virtual serial through the whole stack
<leio>
I understood nvram option should give me the opportunity to connect to ttyACM and not have to do the "delete boot.bin" dances
<j`ey>
have you disabled SIP too?
<leio>
ok, I'll keep that in mind after I've got a patched u-boot binary
<j`ey>
with csrutil
<leio>
I ran csrutil disable and chose the fedora APFS out of the choices
<janneg>
if 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
<j`ey>
stage2 (afaik) doesn't have the ability to get into proxy
dcow has joined #asahi
<leio>
I was hoping to get a proxy from stage1 with the boot-args, but yeah, something's up with that
<j`ey>
leio: did you build a RELEASE and CHAINLOADING m1n1 for stage1?
<leio>
I built a non-RELEASE CHAINLOADING
<j`ey>
ah, that might be the issue?
<j`ey>
maybe, lemme see
<leio>
I figured if anything then non-RELEASE would give me a ttyACM without any boot-args :(
<j`ey>
leio: RELEASE sets EARLY_PROXY_TIMEOUT
<j`ey>
without that the early proxy isn't enabled
<j`ey>
(see main.c run_actions)
<leio>
ok, another mystery solved
<leio>
who edits the wiki for clarification? :)
<j`ey>
you!
<leio>
it 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
<leio>
or rather, read into it as "if it isn't RELEASE=1, then the console isn't hidden"
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
AnuthaDev has joined #asahi
<leio>
and now my m1n1-stage1 doesn't even do anything with no boot.bin there, huh
<leio>
maybe I should re-insert the USB cable on host :)
alyssa has quit [Quit: alyssa]
jjanzic has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi
kez has left #asahi [Leaving]
dcow has quit [Ping timeout: 480 seconds]
jjanzic has joined #asahi
<leio>
got 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
<j`ey>
it got a data abort for some reason
<j`ey>
0x2404e80100 not sure what that address is, is that something in the DT that you can match it up to?
ten1572377432 has quit [Remote host closed the connection]
<leio>
no clue how to do so, would need guidance
ten1572377432 has joined #asahi
<j`ey>
look for a similar address in the DT
dcow has joined #asahi
<leio>
not quite sure how to do that either - some reg statements or?
delsol has joined #asahi
<leio>
otherwise there's stuff like power-controller@240
<pitust>
ChaosPrincess: half of the issue was the lack of /dev/dri/renderD* though, and that's not going to reappear i don't think?/
<ChaosPrincess>
is there no render nodes at all?
<pitust>
i think that was the case with ADP
<pitust>
though, maybe my kernel was old
<pitust>
ill reboot, try the new kernel
<pitust>
cool! works now
<janneg>
only the gpu driver (asahi) creates a single render node
<pitust>
and 228200000.display-pipe.0 shows up
<pitust>
dunno, maybe it wasn't modprobed or something
<pitust>
either way
<pitust>
sway works
<pitust>
add sway to the list in adp_drv.c i guess
<pitust>
i made it return -EBUSY unless comm[0] == 'p'
<pitust>
p for python :^)
<ChaosPrincess>
yea, the lack of a render node is imo more a gpu driver issue
<ChaosPrincess>
or more likely lack thereof
<pitust>
probably didn't get modules or something
<pitust>
works now
<pitust>
so
<pitust>
and zero flicker
<pitust>
+ i can still use tiny-dfr if i want
mohit815 has quit [Quit: mohit815]
<pitust>
(if i rename it to ptiny-dfr at least)
mohit815 has joined #asahi
<ChaosPrincess>
it is kinda annoying that there isnt a universal "please don't touch this display unless you specifically know how to do it" flag
<pitust>
if only this was something you could configure through a configuration file
<pitust>
like idk lets imagine a hypothetical display server, let's give it a placeholder letter "X"
<pitust>
where your *configuration* decides what it does
<pitust>
instead of autoconfig done by systemd (sometimes broken) or seatd (sometimes broken)
<pitust>
that would be nice
<pitust>
alas 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
<dottedmag>
ChaosPrincess: When I asked in #wayland, I was pointed to something (I don't remember what exactly), but I'm not sure all compositors obey.
<dottedmag>
Let me look it up
<dottedmag>
There is DRM connector property "non-desktop", wlroots handles it.
<ChaosPrincess>
non-desktop? i set it, everything ignores it
<pitust>
incredible
<pitust>
lol
<dottedmag>
I see, wlroots puts it in the struct, but the compositors are probably free to ignore it?
<ChaosPrincess>
and 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
<dottedmag>
Okay, and that fails because no render node?
<ChaosPrincess>
in case of sway - idk, maybe, seems like yes
<ChaosPrincess>
i run kwin, it works there
<pitust>
dottedmag: 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
<ChaosPrincess>
before i was setting non-desktop, kwin just saw it as a second monitor, and allowed to drag windows there.
pino has joined #asahi
<pitust>
cursed
<dottedmag>
Unless you like your desktops thin and tall :-)
<ChaosPrincess>
there is a jannau's post on fedi where he put the task bar there
pino is now known as ydalton
<pitust>
60 pixels is not quite enough
<pitust>
putting the taskbar there sounds reasonable tho
<pitust>
would be cool to put swaybar there
<pitust>
but also that would require figuring out drm and man fuck tht
pino has joined #asahi
<pitust>
is it possible to get an fbdev for it?
<ChaosPrincess>
uhh, maybe? idk how that subsystem works, does it wrap a drm device?
<pino>
hi, is there way to definitively tell whether a program is running through software rendering?
<pino>
woops
<pitust>
pino: ltrace and strace might help
<ChaosPrincess>
pino: in generic case or is it a browser
<pino>
it's firefox
<pino>
what's up with my nick
<ChaosPrincess>
about:support
delsol has quit [Remote host closed the connection]
<ChaosPrincess>
scroll to "Graphics" section, if llvmpipe is mentioned anywhere - its sw
<pino>
well firefox seems to have it
<pino>
dude, screw polari, this ain't working for me
<pino>
i tried it because emacs decided to shit itself
pino has quit []
ydalton has quit [Remote host closed the connection]
<ChaosPrincess>
for some stupid reason, tee fails with an error but changes the backlight anyway
<ChaosPrincess>
echo 0 >/.../brightness as root also works
<pitust>
great drivers you got there
<pitust>
is 12 the minimum?
<j`ey>
ChaosPrincess: random q: why didnt you use mipi_dsi_dcs_set_display_brightness? I guess
<j`ey>
I guess it's because it only uses u8, not u16?
<pitust>
there is mipi_dsi_dcs_set_display_brightness_large
<pitust>
which sets the 16 bit value
<j`ey>
ChaosPrincess: hm mipi_dsi_dcs_write is returning the number of bytes.. or negative
<j`ey>
so maybe you want: int ret = _write(); if ret < 0 return ret else return 0
<j`ey>
update_status says it returns 0 on success
<ChaosPrincess>
pitust: ok, listen here, everyone makes mistakes, dont be an ass about it cause i got claws too.
<ChaosPrincess>
the minimum is 1 for anything to display, 0 is display off
<ChaosPrincess>
j`ey: the reason i didnt use it is cause i failed to realize it exists
<j`ey>
a good reason!
<ChaosPrincess>
and yea, i guess the return value should be 0, i tested via echo > or tiny-dfr and neither seemed to care
<pitust>
ChaosPrincess: sorry, didn't want to be rude. i know making these drivers is hard, and i appreciate it.
<pitust>
and thanks for all the help as well
alarumbe has joined #asahi
larunbe has quit [Ping timeout: 480 seconds]
flom84 has quit [Quit: Leaving]
Guest1546 has quit []
vx has joined #asahi
vx is now known as Guest1608
AnuthaDev has quit []
marvin24 has joined #asahi
ydalton has joined #asahi
<ydalton>
ChaosPrincess: wait, 1 = minimum and 0 = off? i thought jannau said that's not supposed to happen
<j`ey>
ydalton: thats for DCP
<ChaosPrincess>
that 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
ChaiTRex has quit [Quit: ChaiTRex]
<ydalton>
hold on, doesn't brightnessctl have the same effect as echoing to sysfs?
ChaiTRex has joined #asahi
<ydalton>
like catting /sys/class/backlight/apple-panel-bl/brightness yields 0 but i can still see
<ChaosPrincess>
It depends on specific device, the reason kde only goes to 1 is that for some devices 0=dimmest and for some 0=off
<ChaosPrincess>
and there is no way for userspace to find out
<ydalton>
ah, interesting
<janneg>
the backlight api/sysfs leaves it undefined what 0 means and that's unfixable. for the new API 0 == minimal brightness is documneted
<ydalton>
cuz on my old laptop i could set the brightness to 0 and that would set the backlight off
<ChaosPrincess>
As said above, 0 means "idk what, try and see what happens"
<ydalton>
i assume it's still a proposal, otherwise we'd be done by now
<ydalton>
so if i read it correctly, integrate it with the drm_connector object (add some new fields) and explicitly define what 0 means for brightness
Guest1608 has quit []
vx^ has joined #asahi
<ydalton>
i'm still a drm noob btw
ydalton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.3)]
<leio>
uh, for some reason asahi-installer "Setting up Recovery volume" is going at only 321KB/s
ten1572377432 has quit [Remote host closed the connection]
ten1572377432 has joined #asahi
Guest1486 has quit [Ping timeout: 480 seconds]
rhysmdnz has quit [Ping timeout: 480 seconds]
ciggi has quit [Remote host closed the connection]
atipls has quit [Killed (NickServ (Too many failed password attempts.))]
atipls has joined #asahi
dcow has joined #asahi
ciggi has joined #asahi
Dcow_ has joined #asahi
stipa is now known as Guest1614
stipa has joined #asahi
dcow has quit [Read error: No route to host]
dcow has joined #asahi
Dcow_ has quit [Read error: Connection reset by peer]
Guest1614 has quit [Ping timeout: 480 seconds]
jjanzic has quit [Ping timeout: 480 seconds]
dcow has quit [Remote host closed the connection]
dcow has joined #asahi
jjanzic has joined #asahi
<pitust>
weird, i set /sys/class/backlight/228200000.display-pipe.0/brightness to 0
<pitust>
but the brightness is still 12
<bluetail>
is it a bool maybe?
<bluetail>
you sure it is implemented and brightness is set there?
dcow has quit [Remote host closed the connection]
<bluetail>
also like, do you use tee or echo?
<pitust>
tee
<pitust>
but also, i can raise it above 12
<pitust>
ohh
<pitust>
uhh
<pitust>
huh
<pitust>
this is *weird*
<pitust>
setting brightness=12 makes the touchbar flicker, more on the right than left
<pitust>
40 is a slower flicker
<pitust>
100 is no flicker
dcow has joined #asahi
<pitust>
60 is ~minimum with no flicker
tenkuu has joined #asahi
<pitust>
zero flicker at 100 brightness
tenkuu has quit [Quit: WeeChat 4.0.4]
Dcow_ has joined #asahi
dcow has quit [Ping timeout: 480 seconds]
darkapex has quit [Remote host closed the connection]
darkapex has joined #asahi
rhysmdnz has joined #asahi
Jamie has joined #asahi
Jamie is now known as Guest1620
Dcow_ has quit [Remote host closed the connection]
yuyichao has quit [Remote host closed the connection]