ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
beeblebrox has joined #asahi-alt
beeblebrox has quit [Quit: Konversation terminated!]
cylm has joined #asahi-alt
opticron_ is now known as opticron
dcavalca has quit [Quit: Ping timeout (120 seconds)]
ids1024 has joined #asahi-alt
pthariensflame has joined #asahi-alt
cylm has quit [Ping timeout: 480 seconds]
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
pthariensflame has joined #asahi-alt
pthariensflame has quit []
Glanzmann has joined #asahi-alt
<Glanzmann> jannau: For the latest m1n1 the keyboard no longer works for me in u-boot.
<Glanzmann> I assume the usb-c mini ports are dead.
<Glanzmann> I tried with your patch and the 1ms patch.
<Glanzmann> jannau: This is my script that I used to build u-boot: https://pbot.rmdir.de/PlvWBZ7MT39BTsDIin_2aw
<Glanzmann> I used the tags from the PKGBUILD repository.
<Glanzmann> Once I boot the kernel everything is fine.
<Glanzmann> With the edge config option the kernel hangs for me during boot in userland and tells something about deferred probing.
<Glanzmann> But I wait witht the edge until it is released.
<_jannau_> that's a side effect of the usb-3 support in the devicetree. u-boot misses at least a dummy drivers atcphy driver
<mps> that is on minis?
<mps> on macbook keyboard works with latest m1n1
<_jannau_> that is a problem for all devices with usb-3 support, in asahi-wip all except m2 but I have the patches for usb-3 on m2
<_jannau_> the usb-c parts are not working, nothing to do with keyboards specifically
<mps> hmm, I built latest asahi-wip, latest m1n1 1.1.8 and latest u-boot, lsusb shows usb 3.2 and keyboard works in u-boot
<mps> I mean on macbook, don't have mini to test
<_jannau_> this only affects u-boot
<Glanzmann> jannau: I see, thanks for confirming.
<Glanzmann> mps: Yes that is with the minis. The old macbooks have keyboard using spi. The new once using something else I forgot.
<mps> Glanzmann: yes, I understand
<Glanzmann> jannau: With the lastest u-boot/m1n1 version the 'display=2560x1440 >> /boot/efi/m1n1/boot.bin' results in an unbootable 'boot.bin' is that expected?
<Glanzmann> I think Ry Darcy also reported that a few weeks back.
<Glanzmann> Anyway hopefully the dcp will be soon mature enough that this workaround is no longer needed.
<j`ey> I think Ry's issue was that they didnt gzip uboot
<Glanzmann> j`ey: At least I gzip u-boot. I wrote a script for ry darcy and send it to him via email. IIRC he replied via email to me and jannau about the 'echo' issue.
<_jannau_> no, the problem is that the reallocated framebuffer is not reserved. So when the dart-disp0 is initialized the display processor can not access it anymore and crashes
<Glanzmann> jannau: I see, thank you for the inishgt.
Ry_Darcy has joined #asahi-alt
<Glanzmann> j`ey: I checked the email so for ry darcy it was different. It still booted but no xorg started. For me it crashes.
<Glanzmann> Ry_Darcy: Hey.
<Ry_Darcy> Some info: Hallo Thomas. I compiled the asahi-6.1-rc5-7 kernel yesterday on my M1 Mini. Compiles and starts clean. I am using Glanzmann's script. Compiles and restarts (boots) clean. However, I am not using CONFIG_DRM_APPLE in my .config. So, I cannot contribute much here. I will try this evening to incluse CONFIG_DRM_APPLE in the compile and see what happens.
<Ry_Darcy> include
<Ry_Darcy> Also, I am not passing "echo display=xxxx" parameter string to boot.bin as the last time I tried to inject 4K resolution using this command resulted in me having to ssh in and copying a virginal boot.bin to get my display back to normal.
<Ry_Darcy> Not sure what the situation is at this stage.
<Glanzmann> Ry_Darcy: I see. Let me know who dcp works for you. I'll also try dcp again without the gpu (I have this running currently and everything is fine expect the window resize issue, however most of the time I work in full screen windows and use shortcuts for tiling that I don't notice).
<Glanzmann> s/who/how/
<Ry_Darcy> Thomas who=how I presume? :)
<Glanzmann> Yep.
<Ry_Darcy> Will report back this evening. I use X11 and XFCE, so nothing special..
<Glanzmann> Same for me, x11, lightdm and fvwm2, alacritty, firefox, mupdf, ...
<mps> Glanzmann: how fast is switching virtual screens with fvwm
<mps> and maximinzing mpv
<Glanzmann> It is instant.
<mps> for me with awesome wm these are slow
<Glanzmann> mps: For mpv, I also start in fullscreen.
<mps> yes, start in full screen is fine but maximizing for normal size is slow
<Glanzmann> You're using DCP?
<mps> yes
<yuka> sway got really slow with dcp for me
<yuka> already noticed that the other day when I was testing the gpu drivers
<mps> also, I didn't built gpu driver
<Glanzmann> mps: I use DCP only on the mini. On the air I'm still using simpledrm.
<yuka> I also mean with dcp but software rendering
<mps> Glanzmann: aha, I use on macbook
<yuka> but getting dcp enabled was the first step towards testing the gpu driver
<Glanzmann> mps: I tried building the gpu driver several times. Sometimes the kernel booted but failed to probe the gpu, others it gives me a black screen and no network, sometimes I reach userland but it hangs in initrd telling me about probing stuff and never finishes. However I'll wait until it is released and try again.
<mps> does mesa have apple drm driver
<Glanzmann> mps: I still don't understand what I have to do to get a functioning mesa userland for apple gpu.
<mps> Glanzmann: thanks for info. good to remember, though I still don't need gpu
<_jannau_> no, mesa has an asahi driver
<Glanzmann> There was in the irc backlog someone explaining how to to build it, maybe I wrote it down, but I never tried it.
<_jannau_> apple drm is the display part, the 3D gpu is called asahi
<mps> _jannau_: by 'asahi driver' what you mean
<Glanzmann> mps: Neither do I, but I look forward to the day we can watch a movie in fullscreen on m1 with mpv without tiering.
<mps> ah, ok
<_jannau_> the driver is called aahi
<_jannau_> asahi even
<mps> _jannau_: this is for gpu?
<_jannau_> yes
<mps> thanks
<mps> so I don't need to build mesa from upstream because I don't plan to use gpu now
<_jannau_> you would need to build mesa from lina's repo (or alyssa's), the uapi parts to speak with lina's gpu kernel driver are not upstream
<mps> Glanzmann: m_arcan talked about changing refresh rate between 120 and 60 Hz, and I tried but don't see any difference
<yuka> gpu driver (DRM_ASAHI) worked fine for me from the appropriate kernel/m1n1 branches, _but_ could only get it to work when booting as m1n1 guest
<_jannau_> I can't reproduce the mouse pointer choppiness with 120Hz on j314/j316 either
<mps> I will not yet waste time for gpu because I'm not sure how to build kernel with rust on alpine
<_jannau_> window resize slowness seems to be an rendering issue on X11
<Glanzmann> jannau: I saw the mouse pointer choppiness on my mini but this was ages ago and some point you fixed it. I have not seen it for ages.
<mps> but all in all dcp is now very usable. Thank you _jannau_
<Glanzmann> jannau: So at some point when the gpu is ready, in order to have fast mpv video playback, I need to build the asahi mesa drivers and than tell mpv to use 'gl' as 'vo'?
<mps> heh, new mpv is fast with drm but on console
<Glanzmann> jannau: Yes, good job on the dcp, keyboard, trackpoint and god knows what else. :-)
<Glanzmann> mps: I have not tried that on m1. But I also used mpv on simpledrm in xorg to watch a movies for multiple hours.
<mps> Glanzmann: yes, mpv with simpledrm is quite fine
<Glanzmann> yuka: I see, any idea why that is?
<Glanzmann> yuka: Because I always try the standard boot chain so m1n1, m1n1 stage2, u-boot, grub, kernel/initrd.
<mps> Glanzmann: I don't complain about mpv (or anything) just telling how things works for me
<mps> to repeat, everything is ok
<mps> Glanzmann: btw, because you don't use KDE I have hacky keyboard backlight daemon which dim leds after timeout of activity of input devices, works only with xorg. I you need it
<Glanzmann> Hrhr, I always turn off my keyboard backlight unless I'm in a complete dark room. But let me see it, maybe I can use it at some point.
<mps> also I don't use much backlight on kbd, but sometime do. here it is https://tpaste.us/en1b
<Glanzmann> mps: Thank you.
<yuka> Glanzmann: no idea what is the issue when booting gpu drivers via the normal boot chain, since there is no way to debug it really
<Glanzmann> I see.
<mps> Glanzmann: np, you can tweak it by cli params brightness and timeout
<Glanzmann> c
Ry_Darcy has quit [Quit: Page closed]
Ry_Darcy has joined #asahi-alt
<Ry_Darcy> @Glanzmann, running on linux-asahi-6.1-rc5-9 (Debian, XFCE, x11) with DRM_Apple enabled on an M1 Mini.
<Ry_Darcy> Of course @jannau also
<Glanzmann> Ry_Darcy: Nice, thank you for the feedback.
<Glanzmann> Will try the same later and report back.
<Ry_Darcy> I notice a noticeable lag on drawing screens, as has been mentioned already.
<Glanzmann> I see.
Ry_Darcy has quit [Remote host closed the connection]
leafpaw has quit [Remote host closed the connection]
leafpaw has joined #asahi-alt
xcpy0 has quit [Remote host closed the connection]
leafpaw has quit [Ping timeout: 480 seconds]
leafpaw has joined #asahi-alt
JTL has quit [Ping timeout: 480 seconds]
JTL has joined #asahi-alt
Glanzmann has quit [Quit: n8]
Glanzmann has joined #asahi-alt
<Glanzmann> jannau: So, after updating to Ventura, I tried the 'edge' config again. It could not find my nvme device. But when I set every config option which is '=m' to '=y' than it boots but crashes or kills usb shortly after boot. Also it does not detect the 2k resolution.
<Glanzmann> jannau: here is the dmesg: https://pbot.rmdir.de/c-rLnDZFIIgizj068Vz8hA
<Glanzmann> I used the asahi reference config from the pkgbuild.
<Glanzmann> I only changed the config.edge options from =m to =y.
<Glanzmann> s/H//
<Glanzmann> jannau: That was on the mini with a 2k display (Eizo EV2780)
<jannau> known issue for devices with more than one iommu. not sure if it's a bug in our dart code or in the kernel device probing
<Glanzmann> I see, thanks for letting me know.
xcpy0 has joined #asahi-alt
Glanzmann has quit [Quit: leaving]
jamespmorgan has joined #asahi-alt
jamespmorgan has quit []
jamespmorgan has joined #asahi-alt
cylm has joined #asahi-alt
jamespmo_ has joined #asahi-alt
jamespmorgan has quit [Ping timeout: 480 seconds]