#
…

2022-11-16

01:22beeblebrox has joined #asahi-alt
02:38beeblebrox has quit [Quit: Konversation terminated!]
04:23cylm has joined #asahi-alt
04:40opticron_ is now known as opticron
05:42dcavalca has quit [Quit: Ping timeout (120 seconds)]
05:44ids1024 has joined #asahi-alt
06:34pthariensflame has joined #asahi-alt
06:34cylm has quit [Ping timeout: 480 seconds]
06:50pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
07:11pthariensflame has joined #asahi-alt
07:14pthariensflame has quit []
07:54Glanzmann has joined #asahi-alt
07:54Glanzmannjannau: For the latest m1n1 the keyboard no longer works for me in u-boot.
07:54GlanzmannI assume the usb-c mini ports are dead.
07:55GlanzmannI tried with your patch and the 1ms patch.
07:58Glanzmannjannau: This is my script that I used to build u-boot: https://pbot.rmdir.de/PlvWBZ7MT39BTsDIin_2aw
07:58GlanzmannI used the tags from the PKGBUILD repository.
07:59GlanzmannOnce I boot the kernel everything is fine.
07:59GlanzmannWith the edge config option the kernel hangs for me during boot in userland and tells something about deferred probing.
08:00GlanzmannBut I wait witht the edge until it is released.
08:06_jannau_that's a side effect of the usb-3 support in the devicetree. u-boot misses at least a dummy drivers atcphy driver
08:14mpsthat is on minis?
08:16mpson macbook keyboard works with latest m1n1
08:17_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
08:18_jannau_the usb-c parts are not working, nothing to do with keyboards specifically
08:18mpshmm, 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
08:19mpsI mean on macbook, don't have mini to test
08:20_jannau_this only affects u-boot
09:25Glanzmannjannau: I see, thanks for confirming.
09:32Glanzmannmps: Yes that is with the minis. The old macbooks have keyboard using spi. The new once using something else I forgot.
09:37mpsGlanzmann: yes, I understand
10:18Glanzmannjannau: With the lastest u-boot/m1n1 version the 'display=2560x1440 >> /boot/efi/m1n1/boot.bin' results in an unbootable 'boot.bin' is that expected?
10:19GlanzmannI think Ry Darcy also reported that a few weeks back.
10:20GlanzmannAnyway hopefully the dcp will be soon mature enough that this workaround is no longer needed.
10:28j`eyI think Ry's issue was that they didnt gzip uboot
10:31Glanzmannj`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.
10:31_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
10:33Glanzmannjannau: I see, thank you for the inishgt.
10:33Ry_Darcy has joined #asahi-alt
10:33Glanzmannj`ey: I checked the email so for ry darcy it was different. It still booted but no xorg started. For me it crashes.
10:34GlanzmannRy_Darcy: Hey.
10:38Ry_DarcySome 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.
10:41Ry_DarcyAlso, 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.
10:42Ry_DarcyNot sure what the situation is at this stage.
10:59GlanzmannRy_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).
10:59Glanzmanns/who/how/
10:59Ry_DarcyThomas who=how I presume? :)
11:00Ry_DarcyWill report back this evening. I use X11 and XFCE, so nothing special..
11:01GlanzmannSame for me, x11, lightdm and fvwm2, alacritty, firefox, mupdf, ...
11:20mpsGlanzmann: how fast is switching virtual screens with fvwm
11:20mpsand maximinzing mpv
11:20GlanzmannIt is instant.
11:20mpsfor me with awesome wm these are slow
11:20Glanzmannmps: For mpv, I also start in fullscreen.
11:21mpsyes, start in full screen is fine but maximizing for normal size is slow
11:22GlanzmannYou're using DCP?
11:22yukasway got really slow with dcp for me
11:22yukaalready noticed that the other day when I was testing the gpu drivers
11:23mpsalso, I didn't built gpu driver
11:23Glanzmannmps: I use DCP only on the mini. On the air I'm still using simpledrm.
11:24yukaI also mean with dcp but software rendering
11:24mpsGlanzmann: aha, I use on macbook
11:24yukabut getting dcp enabled was the first step towards testing the gpu driver
11:24Glanzmannmps: 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.
11:24mpsdoes mesa have apple drm driver
11:25Glanzmannmps: I still don't understand what I have to do to get a functioning mesa userland for apple gpu.
11:25mpsGlanzmann: thanks for info. good to remember, though I still don't need gpu
11:25_jannau_no, mesa has an asahi driver
11:25GlanzmannThere was in the irc backlog someone explaining how to to build it, maybe I wrote it down, but I never tried it.
11:26_jannau_apple drm is the display part, the 3D gpu is called asahi
11:26mps_jannau_: by 'asahi driver' what you mean
11:26Glanzmannmps: Neither do I, but I look forward to the day we can watch a movie in fullscreen on m1 with mpv without tiering.
11:26mpsah, ok
11:26_jannau_the driver is called aahi
11:26_jannau_asahi even
11:26mps_jannau_: this is for gpu?
11:27mpsthanks
11:28mpsso I don't need to build mesa from upstream because I don't plan to use gpu now
11:30_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
11:30mpsGlanzmann: m_arcan talked about changing refresh rate between 120 and 60 Hz, and I tried but don't see any difference
11:31yukagpu 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
11:32_jannau_I can't reproduce the mouse pointer choppiness with 120Hz on j314/j316 either
11:32mpsI will not yet waste time for gpu because I'm not sure how to build kernel with rust on alpine
11:32_jannau_window resize slowness seems to be an rendering issue on X11
11:32Glanzmannjannau: 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.
11:34mpsbut all in all dcp is now very usable. Thank you _jannau_
11:34Glanzmannjannau: 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'?
11:35mpsheh, new mpv is fast with drm but on console
11:35Glanzmannjannau: Yes, good job on the dcp, keyboard, trackpoint and god knows what else. :-)
11:36Glanzmannmps: I have not tried that on m1. But I also used mpv on simpledrm in xorg to watch a movies for multiple hours.
11:36mpsGlanzmann: yes, mpv with simpledrm is quite fine
11:37Glanzmannyuka: I see, any idea why that is?
11:37Glanzmannyuka: Because I always try the standard boot chain so m1n1, m1n1 stage2, u-boot, grub, kernel/initrd.
11:37mpsGlanzmann: I don't complain about mpv (or anything) just telling how things works for me
11:38mpsto repeat, everything is ok
11:40mpsGlanzmann: 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
11:41GlanzmannHrhr, 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.
11:42mpsalso I don't use much backlight on kbd, but sometime do. here it is https://tpaste.us/en1b
11:44Glanzmannmps: Thank you.
11:44yukaGlanzmann: no idea what is the issue when booting gpu drivers via the normal boot chain, since there is no way to debug it really
11:45mpsGlanzmann: np, you can tweak it by cli params brightness and timeout
13:38Ry_Darcy has quit [Quit: Page closed]
14:55Ry_Darcy has joined #asahi-alt
15:00Ry_Darcy@Glanzmann, running on linux-asahi-6.1-rc5-9 (Debian, XFCE, x11) with DRM_Apple enabled on an M1 Mini.
15:02Ry_DarcyOf course @jannau also
15:04GlanzmannRy_Darcy: Nice, thank you for the feedback.
15:04GlanzmannWill try the same later and report back.
15:05Ry_DarcyI notice a noticeable lag on drawing screens, as has been mentioned already.
15:44Ry_Darcy has quit [Remote host closed the connection]
16:46leafpaw has quit [Remote host closed the connection]
16:47leafpaw has joined #asahi-alt
16:52xcpy0 has quit [Remote host closed the connection]
17:11leafpaw has quit [Ping timeout: 480 seconds]
17:22leafpaw has joined #asahi-alt
17:23JTL has quit [Ping timeout: 480 seconds]
17:26JTL has joined #asahi-alt
17:29Glanzmann has quit [Quit: n8]
19:28Glanzmann has joined #asahi-alt
19:29Glanzmannjannau: 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.
19:30GlanzmannI used the asahi reference config from the pkgbuild.
19:31GlanzmannI only changed the config.edge options from =m to =y.
19:34Glanzmannjannau: That was on the mini with a 2k display (Eizo EV2780)
19:35jannauknown 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
19:36GlanzmannI see, thanks for letting me know.
20:36xcpy0 has joined #asahi-alt
21:41Glanzmann has quit [Quit: leaving]
22:26jamespmorgan has joined #asahi-alt
22:48jamespmorgan has quit []
22:48jamespmorgan has joined #asahi-alt
22:53cylm has joined #asahi-alt
22:56jamespmo_ has joined #asahi-alt
23:02jamespmorgan has quit [Ping timeout: 480 seconds]
…