#
…

2022-12-21

00:41swaggie has joined #asahi-alt
00:41ChanServ 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
01:07jamespmorgan has joined #asahi-alt
01:13jamespmo_ has quit [Ping timeout: 480 seconds]
02:16pthariensflame has joined #asahi-alt
02:16pthariensflame has quit []
02:49Dcow has joined #asahi-alt
02:57Dcow has quit [Ping timeout: 480 seconds]
03:11zzywysm has quit [Quit: Textual IRC Client: www.textualapp.com]
03:15zzywysm has joined #asahi-alt
03:26zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:27zzywysm has joined #asahi-alt
03:32zzywysm has quit []
03:32zzywysm has joined #asahi-alt
05:53kode54 has quit [Quit: Ping timeout (120 seconds)]
05:53kode54 has joined #asahi-alt
07:22ashi has joined #asahi-alt
07:28ashiRunning latest debian with Glanzmann kernel and mesa, a good new ist case for "** GPU timeout nya~!!!!! **" https://hubs.mozilla.com/demo
07:29ashitest case
07:30ashiFault info: FaultInfo { [...] reason: Unmapped }
07:30ashiThis is WebGL1
07:31Dcow has joined #asahi-alt
07:31ashiInterestingly running MESA_GLES_VERSION_OVERRIDE=3.0 firefox to force WebGL2 (I know it is not ready) thirdroom.io which is much more complex does run now ;)
07:40Dcow has quit [Ping timeout: 480 seconds]
07:41ashi has quit [Read error: No route to host]
07:41ashi has joined #asahi-alt
07:47ashi has quit [Quit: Leaving]
08:19Dcow has joined #asahi-alt
08:27Dcow has quit [Remote host closed the connection]
08:28Dcow has joined #asahi-alt
08:58Dcow has quit [Remote host closed the connection]
09:12Dcow has joined #asahi-alt
09:19Dcow has quit [Remote host closed the connection]
09:24Dcow has joined #asahi-alt
09:33Dcow has quit [Ping timeout: 480 seconds]
09:48Dcow has joined #asahi-alt
09:48swaggie has quit [Remote host closed the connection]
09:50swaggie has joined #asahi-alt
09:56Dcow has quit [Ping timeout: 480 seconds]
09:58jamespmo_ has joined #asahi-alt
10:04jamespmorgan has quit [Ping timeout: 480 seconds]
10:05swaggie has quit [Ping timeout: 480 seconds]
10:12jacksonchen666_ has joined #asahi-alt
10:13jacksonchen666 has quit [Ping timeout: 480 seconds]
10:17jacksonchen666_ is now known as jacksonchen666
10:38swaggie has joined #asahi-alt
10:52swaggie has quit [Ping timeout: 480 seconds]
10:56cylm_ has joined #asahi-alt
10:58iaguis has joined #asahi-alt
11:04swaggie has joined #asahi-alt
11:20swaggie has quit [Ping timeout: 480 seconds]
11:34cylm_ has quit [Quit: WeeChat 3.6]
11:35cylm has joined #asahi-alt
11:41ncopaI was able to boot a more or less standard alpine boot image but with asahi kernel. https://fosstodon.org/@ncopa/109551339851380406
11:45mpsncopa: yes, I do this for more than a year now ;-)
11:47mpsI'm kidding a little, I build custom alpine image but it doesn't differs much from official ones
11:47Dcow has joined #asahi-alt
11:48mpsncopa: did you make some additions to this image
11:49ncopanot really, the only thing needed was enable squashfs decompression, since we have the kernel modules on compressed squashfs
11:49ncopamanually copying around firmware and reload kernel modules was needed for network
11:52mpsand I created usb image which do these things automatically on first boot but never dared to publish this publicly
11:52mpsbut I is not complicated at the end
11:52ncopai saw it, but I wanted a boot usb with tmpfs root
11:53mpsjust didn't wanted to make problem for end users
11:54mpsI expected that someone with with more knowledge of alpine install than me will take this but didn't expected that someone will be you
11:54mpsand I'm happy you are taking it
11:55mps(except your quietness but I understand that you are busy)
11:57mpsncopa: to remind you, we have all tools needed already in alpine, m1n1, u-boot-asahi, lzfse, alsa-ucm-asahi-conf
11:58Dcow has quit [Ping timeout: 480 seconds]
12:11ncopai noticed that the UEFI partition created by asahi installer does nto show up with blkid?
12:13mpsh, it shows for me
12:13ncopaoh, it does. it was just that /dev/nvme0n1p* nodes was not created during boot for some reason
12:14ncopaor it was after running fdisk
12:14mpss/h/hm/
12:15mpsdid you build nvme driver as module
12:15ncopadont know
12:16mpsif it is in-kernel it should work fine, I use root=/dev/nvme0n1p6 in kernel cmdline
12:18ncopashould I create a second UEFI partition or can I re-use the asahi uefi?
12:18mpsfor full never had this problem with alpine (and I didn't tried any other distro)
12:18mpsI think for now second ESP/uEFI just will lead to problems
12:19mpswhen new u-boot is released then it could be ok (maybe, I didn't tested)
12:19mpsu-boot with menu to select ESP
12:20Dcow has joined #asahi-alt
12:21mpsncopa: btw, you can use extlinux.conf without grub
12:21mpsI think j`ey still boots with extlinux.conf only
12:21jannauncopa: I think the idea is that os installation that uses the uefi install option in the asahi-installer can claim the ESP
12:22j`eymps: nah I never got round to trying that out properly
12:23mpsj`ey: ah, sorry.
12:23mpsI used extlinux.conf for first few months
12:24mpswithout grub, but later I relearned grub setup
12:24jannaua second ESP will not work out of the box and will even create more problems if someone tries to install a second other OS system
12:25swaggie has joined #asahi-alt
12:28Dcow has quit [Ping timeout: 480 seconds]
12:34swaggie has quit [Ping timeout: 480 seconds]
12:35jamespmorgan has joined #asahi-alt
12:41jamespmo_ has quit [Ping timeout: 480 seconds]
12:42Dcow has joined #asahi-alt
12:44ncopai found a bug (or feature) in alpine's setup-disk, which does some assumptions of /boot - other than that it did install nice
12:45ncopawill need to do something about the firmware though
12:49jannaufirmware needs to be handled by the initrd. see https://github.com/AsahiLinux/asahi-scripts/blob/main/initcpio/hooks/asahi (archlinux' mkinitcpio) or https://github.com/AsahiLinux/asahi-scripts/tree/main/dracut/modules.d/99asahi-firmware (dracut, used by fedora and some of us here for gentoo)
12:49ncopawhich means that the kernel modules needs to be included in the initramfs image
12:50ncopadoes the disk driver need firmware?
12:50Dcow has quit [Ping timeout: 480 seconds]
12:51svenor, well, the firmware is pre-loaded by iboot and we can’t touch it anyway
12:52jannauncopa: how are you booting the kernel? the ideal setup is that the boot loader appends firmware.cpio to the initramfs
12:53jannauthen the firmware is available in /vendorfw and you don't need the nvme for loading modules which need firmware
12:54ncopacurrently via grub, but the idea was to skip the grub step and boot kernel as efi directly
12:54ncopaso, if I understand correctly, the idea is to copy the firwmare to the rootfs every boot?
12:55j`eya tmpfs
12:56ncopaand the reasoning is so it get firmware updates?
12:59jannauthat's one reason, the other reasons are supporting immutable root fs like fedora silverblue and preventing unintended distribution of the non-distributable apple firmware
13:01Dcow has joined #asahi-alt
13:02ncopaso i shoudn't copy the firmware to the linux partition's /lib/firmware/vendor
13:03swaggie has joined #asahi-alt
13:05jannauI think the tmpfs solution is preferred but copying is ok as long as you don't intend to image the rootfs and distribute those images
13:11swaggie has quit [Ping timeout: 480 seconds]
13:13Dcow has quit [Ping timeout: 480 seconds]
13:14mpsI think for end users copying firmware to /lib/firmware is quite fine
13:15mpsat the end is is already on ESP
13:16mpsit is*
13:17mpsfor example I copy it to 'my' rescue usb and I care to not 'distribute' it
13:18mpswith apple we have to be careful anyway
13:37swaggie has joined #asahi-alt
13:46swaggie has quit [Ping timeout: 480 seconds]
13:48Dcow has joined #asahi-alt
13:57Dcow has quit [Ping timeout: 480 seconds]
14:23Dcow has joined #asahi-alt
14:25swaggie has joined #asahi-alt
14:31Dcow has quit [Ping timeout: 480 seconds]
14:33swaggie has quit [Ping timeout: 480 seconds]
14:57swaggie has joined #asahi-alt
15:00ncopaxorg+xfce didnt work very well. seems like keyboard or touchpad is not working
15:02Dcow has joined #asahi-alt
15:06swaggie has quit [Ping timeout: 480 seconds]
15:08ncopadoes libinput need any patches?
15:09ncopaor xf86-input-libinput
15:10Dcow has quit [Ping timeout: 480 seconds]
15:10mpsncopa: I tested xfce a week ago, it works fine
15:11ncopaso im missing something
15:11mpsbut maybe you should create /etc/X11/xorg.conf.d/ libinput.conf file
15:13mpshere is my https://tpaste.us/nVm6 /etc/X11/xorg.conf.d/50-libinput.conf
15:13mpsncopa: alpine works from the beginning without any patches in userspace
15:14mpsncopa: a shameless self promotion (again), alpine was first distro used as daily driver on apple silicon, you have to be proud
15:15mpsyes, sometimes I patched some userspace programs but just for playing with some features or options
15:16mpsncopa: did you installed eudev or libudev-zero, good to have with xorg
15:19mpsthen it should work out-of-the-box. I insalled eudev with xfce intentionaly to test it for axboe
15:20ncopait doesnt work for me. didnt help with the 50-libinput.conf
15:20ncopai guess i need ssh connection to debug this
15:20mpscould you something about libinput in /var/log/Xorg.0.log
15:21mpswait, does keyboard works on console
15:21mpssee something*
15:26ncopakeyboard works in console
15:26ncopai need to reboot and connect via ssh
15:27mpsstrange, of all xf86 pkgs only xf86-input-libinput is needed
15:27mpsxf86 drivers I mean
15:32Ry_Darcy has joined #asahi-alt
15:33ncopaok, i think i figured out what was wrong
15:33ncopaudev-trigger didnt run
15:34mpsah, good you find it
15:35mps(libudev-zero is the rescue ;-) )
15:35Ry_Darcy§Glanzmann just tried a new install of your Debian. After the install (successful), power recycle and reboot, I am being dropped to a GRUB prompt. Anything changed recently?
15:38ncopatyping from the macbook now
15:39Ry_Darcy has left #asahi-alt [#asahi-alt]
15:40mpsncopa: here is my video from Jan 24 2022 of booting alpine on m1 mbp (j293 model)
15:42Ry_Darcy has joined #asahi-alt
15:44ncopaxdpyinfo says screen is 96x96 dots per inch, which makes the text very very small
15:46mpsyes, this is default for xorg
15:46Ry_Darcy has quit []
15:46mpsi have this in .xinitrc `echo 'Xft.dpi: 235' | xrdb -merge`
15:46ncopaisnt there a way to detect the real resolution?
15:47mpsnot sure where to put it for xfce
15:48mpsncopa: it was added to the one of previous xorg releases but it is reverted back because users where stumbled, and imo it is pity it is reverted
15:48mpsso, official xorg advice is 'set it manually'
15:49mpswhat other distro does?
15:50mpsdistros*
15:50ncopano idea
15:50mpsncopa: sorry, I didn't mean to ask you but other distro maintainers here
15:51mpsnixos, fedora, debian ...
15:52mpsarch alarm also
15:53mpsgentoo by default use wayland iirc
15:53mpsbut even on wayland I had to set scalling if sway config
15:54mpss/if/in/
15:58ncopai can change a setting in xfce. Settings -> Appearance -> Settings -> Window Scaling: set to 2x and it all looks nice
16:01jannauncopa: asahi uses 144 dpi and 1.5 scaling (kde) if the screen width is greater than 2048 https://github.com/AsahiLinux/asahi-calamares-configs/blob/main/bin/first-time-setup.sh
16:01jannauwith dcp there should be actual dpi information available and some software uses sensible defaults
16:19ncopanice! thats useful
16:46ncopai think real dpi is around 250 on macbook 14
16:50jannau254, 10 dots per mm
16:51ncopayeah, i think that might be correct
16:59ncopait gives the error "/boot/efi/m1n1 does not exist, is /boot/efi mounted?"
16:59ncopabecause I mounted the ESP as /boot
17:04j`eyit's needed to keep the device trees in sync
17:12mpsncopa: yes, it is needed, and you should have ESP mounted under /boot/efi
17:14ncopai cannot have my ESP mounted as /boot? and skip grub?
17:14ncopait booted just fine for me so far
17:14mpsas j`ey told it updated dtbs, but also m1n1 version defined in 'depends' field in APKBUILD
17:15mpsit could be added to /etc/fstab
17:15mps'/dev/nvme0n1p4 /boot/efi auto auto' as example
17:16mpsofc, LABEL or PARTUUID could be used instead of /dev/nvme0n1pX
17:17mpsbut LABEL will not work with busybox mount applet
17:20ncopai dont think there are any techincal limitations that prevents us to mount /boot on ESP
17:21mpsit is VFAT, that is stopper for me
17:21mpsso, I mount it under /boot/efi on the rootfs
17:22ncopaand we should not update it via post-install. we should update it via trigger, so that it gets updated if either m1n1, kernel or u-boot-asahi is updated
17:22ncopanot only on kernel updates
17:23iaguis has quit [Quit: leaving]
17:23ncopaand i think m1n1 package should own the trigger script
17:23mpspost-install is there to update proper dtbs because I have few kernel flavors and every one have its dtbs
17:24mpsI'm not sure will we have more kernel flavors for alpine
17:24mpsif not then it could be simplified ofc
17:25mpsncopa: I'm not against change to make it trigger for m1n1, u-boot and kernel
17:26ncopawhat uses m1n1/boot.bin?
17:26mpsbut not sure is it good idea to have kernel, initramfs, dtbs and grub on vfat
17:27mpsncopa: this is second stage bootloader
17:27mpsfirst stage m1n1 on stub partition loads this second stage
17:28mpsm1n1/boot.bin is the m1n1+dtbs+u-boot
17:36Dcow has joined #asahi-alt
17:44Dcow has quit [Ping timeout: 480 seconds]
19:04Glanzmann has joined #asahi-alt
19:05Dcow has joined #asahi-alt
19:08GlanzmannRy_Darcy: Thank you for letting me know. New installs since 12th December are broken. You're the first one to complain. Anyway, I fixed it. The issue that I was deleting a function that I thought was obsolete, but wasn't. Anyway fixed, pushed, uploaded and tested.
19:12Glanzmann has quit [Quit: back to sleep]
19:14Dcow has quit [Ping timeout: 480 seconds]
19:25steevdang, i keep missing glanzmann :(
19:25j`eysteev: he checks the logs, so just leave a message
19:25steevoh good
19:26steevgonna check what his fixes were today first to see if that fixes my issue as well
19:26steevah, it does
19:28steevwill keep that in mind when i noticed something broken like that
19:32Dcow has joined #asahi-alt
19:40Dcow has quit [Ping timeout: 480 seconds]
19:45mpssome of you maybe remember that I destroyed display on my old m1 mpb about half year ago. guess what, I took it from garage and tried to power on, on my surprise display now works
19:46mpsnot sure how long it will work but I hope for the best
19:46mpss/mpb/mbp/
19:47steevoh nice
19:48mpsso I hope i will have spare machine to experiment with and not always ask daughter to take her
20:06Dcow has joined #asahi-alt
20:14Dcow has quit [Ping timeout: 480 seconds]
20:36swaggie has joined #asahi-alt
20:41Dcow has joined #asahi-alt
20:50Dcow has quit [Ping timeout: 480 seconds]
20:55Dcow has joined #asahi-alt
21:08Dcow has quit [Remote host closed the connection]
21:09Dcow has joined #asahi-alt
21:15Dcow has quit [Remote host closed the connection]
21:15Dcow has joined #asahi-alt
21:24cylm_ has joined #asahi-alt
21:25cylm has quit [Ping timeout: 480 seconds]
21:51jamespmo_ has joined #asahi-alt
21:57jamespmorgan has quit [Ping timeout: 480 seconds]
22:32Dcow has quit [Remote host closed the connection]
22:48Dcow has joined #asahi-alt
22:56Dcow has quit [Ping timeout: 480 seconds]
23:16Dcow has joined #asahi-alt
23:25Dcow has quit [Ping timeout: 480 seconds]
23:51Dcow has joined #asahi-alt
23:59Dcow has quit [Ping timeout: 480 seconds]
…