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
swaggie has joined #asahi-alt
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
jamespmorgan has joined #asahi-alt
jamespmo_ has quit [Ping timeout: 480 seconds]
pthariensflame has joined #asahi-alt
pthariensflame has quit []
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
zzywysm has quit [Quit: Textual IRC Client: www.textualapp.com]
zzywysm has joined #asahi-alt
zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzywysm has joined #asahi-alt
zzywysm has quit []
zzywysm has joined #asahi-alt
kode54 has quit [Quit: Ping timeout (120 seconds)]
kode54 has joined #asahi-alt
ashi has joined #asahi-alt
<ashi> Running latest debian with Glanzmann kernel and mesa, a good new ist case for "** GPU timeout nya~!!!!! **" https://hubs.mozilla.com/demo
<ashi> test case
<ashi> Fault info: FaultInfo { [...] reason: Unmapped }
<ashi> This is WebGL1
Dcow has joined #asahi-alt
<ashi> Interestingly 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 ;)
Dcow has quit [Ping timeout: 480 seconds]
ashi has quit [Read error: No route to host]
ashi has joined #asahi-alt
ashi has quit [Quit: Leaving]
Dcow has joined #asahi-alt
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
swaggie has quit [Remote host closed the connection]
swaggie has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
jamespmo_ has joined #asahi-alt
jamespmorgan has quit [Ping timeout: 480 seconds]
swaggie has quit [Ping timeout: 480 seconds]
jacksonchen666_ has joined #asahi-alt
jacksonchen666 has quit [Ping timeout: 480 seconds]
jacksonchen666_ is now known as jacksonchen666
swaggie has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
cylm_ has joined #asahi-alt
iaguis has joined #asahi-alt
swaggie has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
cylm_ has quit [Quit: WeeChat 3.6]
cylm has joined #asahi-alt
<ncopa> I was able to boot a more or less standard alpine boot image but with asahi kernel. https://fosstodon.org/@ncopa/109551339851380406
<j`ey> nice
<mps> ncopa: yes, I do this for more than a year now ;-)
<mps> I'm kidding a little, I build custom alpine image but it doesn't differs much from official ones
Dcow has joined #asahi-alt
<mps> ncopa: did you make some additions to this image
<ncopa> not really, the only thing needed was enable squashfs decompression, since we have the kernel modules on compressed squashfs
<ncopa> manually copying around firmware and reload kernel modules was needed for network
<mps> and I created usb image which do these things automatically on first boot but never dared to publish this publicly
<mps> but I is not complicated at the end
<ncopa> i saw it, but I wanted a boot usb with tmpfs root
<mps> just didn't wanted to make problem for end users
<mps> sure
<mps> I expected that someone with with more knowledge of alpine install than me will take this but didn't expected that someone will be you
<mps> and I'm happy you are taking it
<mps> (except your quietness but I understand that you are busy)
<mps> ncopa: to remind you, we have all tools needed already in alpine, m1n1, u-boot-asahi, lzfse, alsa-ucm-asahi-conf
Dcow has quit [Ping timeout: 480 seconds]
<ncopa> i saw
<ncopa> i noticed that the UEFI partition created by asahi installer does nto show up with blkid?
<mps> h, it shows for me
<ncopa> oh, it does. it was just that /dev/nvme0n1p* nodes was not created during boot for some reason
<ncopa> or it was after running fdisk
<mps> s/h/hm/
<mps> did you build nvme driver as module
<ncopa> dont know
<mps> if it is in-kernel it should work fine, I use root=/dev/nvme0n1p6 in kernel cmdline
<ncopa> should I create a second UEFI partition or can I re-use the asahi uefi?
<mps> for full never had this problem with alpine (and I didn't tried any other distro)
<mps> I think for now second ESP/uEFI just will lead to problems
<mps> when new u-boot is released then it could be ok (maybe, I didn't tested)
<mps> u-boot with menu to select ESP
Dcow has joined #asahi-alt
<mps> ncopa: btw, you can use extlinux.conf without grub
<mps> I think j`ey still boots with extlinux.conf only
<jannau> ncopa: I think the idea is that os installation that uses the uefi install option in the asahi-installer can claim the ESP
<sven> yup
<ncopa> ok
<j`ey> mps: nah I never got round to trying that out properly
<mps> j`ey: ah, sorry.
<mps> I used extlinux.conf for first few months
<mps> without grub, but later I relearned grub setup
<jannau> a 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
swaggie has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
swaggie has quit [Ping timeout: 480 seconds]
jamespmorgan has joined #asahi-alt
jamespmo_ has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
<ncopa> i found a bug (or feature) in alpine's setup-disk, which does some assumptions of /boot - other than that it did install nice
<ncopa> will need to do something about the firmware though
<jannau> firmware 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)
<ncopa> which means that the kernel modules needs to be included in the initramfs image
<ncopa> does the disk driver need firmware?
Dcow has quit [Ping timeout: 480 seconds]
<sven> no
<sven> or, well, the firmware is pre-loaded by iboot and we can’t touch it anyway
<jannau> ncopa: how are you booting the kernel? the ideal setup is that the boot loader appends firmware.cpio to the initramfs
<jannau> then the firmware is available in /vendorfw and you don't need the nvme for loading modules which need firmware
<ncopa> currently via grub, but the idea was to skip the grub step and boot kernel as efi directly
<ncopa> so, if I understand correctly, the idea is to copy the firwmare to the rootfs every boot?
<j`ey> a tmpfs
<ncopa> and the reasoning is so it get firmware updates?
<jannau> that's one reason, the other reasons are supporting immutable root fs like fedora silverblue and preventing unintended distribution of the non-distributable apple firmware
Dcow has joined #asahi-alt
<ncopa> so i shoudn't copy the firmware to the linux partition's /lib/firmware/vendor
swaggie has joined #asahi-alt
<jannau> I 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
swaggie has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
<mps> I think for end users copying firmware to /lib/firmware is quite fine
<mps> at the end is is already on ESP
<mps> it is*
<mps> for example I copy it to 'my' rescue usb and I care to not 'distribute' it
<mps> with apple we have to be careful anyway
swaggie has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
swaggie has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
swaggie has quit [Ping timeout: 480 seconds]
swaggie has joined #asahi-alt
<ncopa> xorg+xfce didnt work very well. seems like keyboard or touchpad is not working
Dcow has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
<ncopa> does libinput need any patches?
<ncopa> or xf86-input-libinput
Dcow has quit [Ping timeout: 480 seconds]
<mps> ncopa: I tested xfce a week ago, it works fine
<ncopa> so im missing something
<mps> but maybe you should create /etc/X11/xorg.conf.d/ libinput.conf file
<mps> here is my https://tpaste.us/nVm6 /etc/X11/xorg.conf.d/50-libinput.conf
<mps> ncopa: alpine works from the beginning without any patches in userspace
<mps> ncopa: a shameless self promotion (again), alpine was first distro used as daily driver on apple silicon, you have to be proud
<mps> yes, sometimes I patched some userspace programs but just for playing with some features or options
<mps> ncopa: did you installed eudev or libudev-zero, good to have with xorg
<ncopa> eudev
<mps> then it should work out-of-the-box. I insalled eudev with xfce intentionaly to test it for axboe
<ncopa> it doesnt work for me. didnt help with the 50-libinput.conf
<ncopa> i guess i need ssh connection to debug this
<mps> could you something about libinput in /var/log/Xorg.0.log
<mps> wait, does keyboard works on console
<mps> see something*
<ncopa> keyboard works in console
<ncopa> i need to reboot and connect via ssh
<mps> strange, of all xf86 pkgs only xf86-input-libinput is needed
<mps> xf86 drivers I mean
Ry_Darcy has joined #asahi-alt
<ncopa> ok, i think i figured out what was wrong
<ncopa> udev-trigger didnt run
<mps> ah, good you find it
<mps> (libudev-zero is the rescue ;-) )
<Ry_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?
<ncopa> typing from the macbook now
Ry_Darcy has left #asahi-alt [#asahi-alt]
<mps> \o/
<mps> ncopa: here is my video from Jan 24 2022 of booting alpine on m1 mbp (j293 model)
Ry_Darcy has joined #asahi-alt
<ncopa> xdpyinfo says screen is 96x96 dots per inch, which makes the text very very small
<mps> yes, this is default for xorg
Ry_Darcy has quit []
<mps> i have this in .xinitrc `echo 'Xft.dpi: 235' | xrdb -merge`
<ncopa> isnt there a way to detect the real resolution?
<mps> not sure where to put it for xfce
<mps> ncopa: 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
<mps> so, official xorg advice is 'set it manually'
<mps> what other distro does?
<mps> distros*
<ncopa> no idea
<mps> ncopa: sorry, I didn't mean to ask you but other distro maintainers here
<mps> nixos, fedora, debian ...
<mps> arch alarm also
<mps> gentoo by default use wayland iirc
<mps> but even on wayland I had to set scalling if sway config
<mps> s/if/in/
<ncopa> i can change a setting in xfce. Settings -> Appearance -> Settings -> Window Scaling: set to 2x and it all looks nice
<jannau> ncopa: 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
<jannau> with dcp there should be actual dpi information available and some software uses sensible defaults
<ncopa> nice! thats useful
<ncopa> i think real dpi is around 250 on macbook 14
<jannau> 254, 10 dots per mm
<ncopa> yeah, i think that might be correct
<ncopa> it gives the error "/boot/efi/m1n1 does not exist, is /boot/efi mounted?"
<ncopa> because I mounted the ESP as /boot
<j`ey> it's needed to keep the device trees in sync
<mps> ncopa: yes, it is needed, and you should have ESP mounted under /boot/efi
<ncopa> i cannot have my ESP mounted as /boot? and skip grub?
<ncopa> it booted just fine for me so far
<mps> as j`ey told it updated dtbs, but also m1n1 version defined in 'depends' field in APKBUILD
<mps> it could be added to /etc/fstab
<mps> '/dev/nvme0n1p4 /boot/efi auto auto' as example
<mps> ofc, LABEL or PARTUUID could be used instead of /dev/nvme0n1pX
<mps> but LABEL will not work with busybox mount applet
<ncopa> i dont think there are any techincal limitations that prevents us to mount /boot on ESP
<mps> it is VFAT, that is stopper for me
<mps> so, I mount it under /boot/efi on the rootfs
<ncopa> and 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
<ncopa> not only on kernel updates
iaguis has quit [Quit: leaving]
<ncopa> and i think m1n1 package should own the trigger script
<mps> post-install is there to update proper dtbs because I have few kernel flavors and every one have its dtbs
<mps> I'm not sure will we have more kernel flavors for alpine
<mps> if not then it could be simplified ofc
<mps> ncopa: I'm not against change to make it trigger for m1n1, u-boot and kernel
<ncopa> what uses m1n1/boot.bin?
<mps> but not sure is it good idea to have kernel, initramfs, dtbs and grub on vfat
<mps> ncopa: this is second stage bootloader
<mps> first stage m1n1 on stub partition loads this second stage
<mps> m1n1/boot.bin is the m1n1+dtbs+u-boot
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Glanzmann has joined #asahi-alt
Dcow has joined #asahi-alt
<Glanzmann> Ry_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.
Glanzmann has quit [Quit: back to sleep]
Dcow has quit [Ping timeout: 480 seconds]
<steev> dang, i keep missing glanzmann :(
<j`ey> steev: he checks the logs, so just leave a message
<steev> oh good
<steev> gonna check what his fixes were today first to see if that fixes my issue as well
<steev> ah, it does
<steev> will keep that in mind when i noticed something broken like that
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
<mps> some 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
<mps> \o/
<mps> not sure how long it will work but I hope for the best
<mps> s/mpb/mbp/
<steev> oh nice
<mps> so I hope i will have spare machine to experiment with and not always ask daughter to take her
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
swaggie has joined #asahi-alt
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
cylm_ has joined #asahi-alt
cylm has quit [Ping timeout: 480 seconds]
jamespmo_ has joined #asahi-alt
jamespmorgan has quit [Ping timeout: 480 seconds]
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-alt
Dcow has quit [Ping timeout: 480 seconds]