<tpw_rules>
the executable can't even be loaded into memory
<tpw_rules>
because the sections aren't 16K aligned
<j`ey>
run it in qemu tcg :P
<tpw_rules>
or install nixos
<tpw_rules>
which i ship with a 4k kernel by default
kreechy has quit [Ping timeout: 480 seconds]
<j`ey>
tpw_rules: does kernelParams put it in the .config?
<sorear>
qemu tcg won't help you with mmap alignment requirements
<sorear>
(user, anyway)
<tpw_rules>
j`ey: put what?
<tpw_rules>
kernelParams is for kernel command line arguments
<clover[m]>
and asahi distro shipped with 16K pages as an act of defiance against 4K paged projects?
<tpw_rules>
so those get passed to the bootloader
kreechy has joined #asahi
<tpw_rules>
in fairness chromium being 4K limited is both deliberate and stupid
<j`ey>
sorear: I meant full system qemu!
<j`ey>
tpw_rules: what does nix do with kernelParams? I guess it depends on what is set in the .loader?
GavinPacini[m] has joined #asahi
phire has quit [Server closed connection]
<tpw_rules>
j`ey: like i said they get passed to the bootloader stuff which puts them on the kernel command line
phire has joined #asahi
<tpw_rules>
so they get written to your grub.conf or systemd-boot conf files or whatever
<j`ey>
tpw_rules: makes sense
amw has quit [Server closed connection]
amw has joined #asahi
_whitelogger has joined #asahi
rikkaa has joined #asahi
<sorear>
I suspect you can run a 4K kernel under KVM
ciggi has quit [Server closed connection]
ciggi has joined #asahi
<brentr123[m]>
16k page tables or whatever it’s called will let more apps run?
<AdwyzzOLEDEdition[m]>
no they are the native page tables, so they are the fastest
<tpw_rules>
technically 4k page tables are also native, assuming the kernel switches the cpu hardware to that mode
<tpw_rules>
they're slower because you, in some sense, have to do 4x the memory management because your pages are 1/4 the size
<tpw_rules>
i imagine that's mostly TLB activity and pagetable management overhead
<j`ey>
sorear: yeah, I realised what I said doesnt make sense. too tired to think properly
arekm has quit [Remote host closed the connection]
arekm has joined #asahi
littlejth has joined #asahi
Lucy[m] has joined #asahi
<Lucy[m]>
Question. How easy would it be to "port" another distro to Asahi?
chadmed has joined #asahi
<j`ey>
Lucy[m]: what distro are you interested in?
<tpw_rules>
if you're skilled with it, pretty easy. all you really have to do is compile a kernel that's compatible with the M1, then follow whatever process to install your distro into a UEFI environment
<Lucy[m]>
j`ey: Pop!_OS.
<j`ey>
you can probably reuse some of the debian work
<kode54>
weird
<kode54>
it doesn't want to play audio through the headphone jack
<kode54>
it does, however, want to play through the built in speaker
<chadmed>
just for the benefit of the people having the discussion earlier this morning re speakers: i will definitely not be adding instructions to the readme on how to enable the speakers for reasons already stated.
<kode54>
I didn't enable the speakers
<chadmed>
it's trivial to do yourself if youre at a level of ability where you should be testing stuff like that anyway
<kode54>
well, all I did was change PipeWire from Mono to Pro Audio
<nicolas17>
kode54: does it actually work, or does it offer to switch to speakers and then is silent?
<kode54>
it plays really quiet though
<nicolas17>
(plz lower volume when testing)
<chadmed>
plus im not capable of providing support to people who are having issues beyond making sure what i do installs correctly on all machines
<nicolas17>
what device?
<kode54>
Mac mini
<chadmed>
and i dont think it would be right for me to take donations from people for doing something as trivial and stupid as speaker EQ, so it will just be a "support will come as i am able to provide it" thing
<kode54>
sounds fine to me
<kode54>
I didn't want to use the speaker on my Mini really
<chadmed>
now that said, i do offer just the best speaker eq we're gonna have just the best speakers on linux and make macos pay for it believe me folks, yuge stuff
<nicolas17>
/o\
m6wiq has quit []
<chadmed>
yeah i cant imagine anyone actually wanting to use the builtin mini speaker long term, but for the sake of making sure our support for this platform is complete we should enable it properly
<chadmed>
one thing that always got my goat about running linux on my A1708 was how crap the sound experience is. you need out of tree patches to the cs42l42 codec driver, and even with them applied the sound quality is terrible
<chadmed>
i will make the experience on these machines as far removed from the intel mac experience as possible or i will die trying
levadopa[m] has joined #asahi
<littlejth>
Hi all, quick question, and hopefully I'm asking this in the right channel, but has anyone had any known issues with the second step of the installer when performing 'local policy update'? 'bputil failed' for me even making sure my password is 100% correct
<littlejth>
with code 401 'Failed to create local policy' which isn't incredibly descriptive
<littlejth>
and i *believe* I've done all the installer steps correctly although I do apologize if I may have missed something or if this is a known issue. Also, if this is not, is the best way to completely try again to run diskutil to delete the new partitions?
kreechy has quit [Ping timeout: 480 seconds]
sheepgoose has joined #asahi
kreechy has joined #asahi
aratuk has joined #asahi
aratuk has quit []
<tpw_rules>
i think someone else has had that problem. but yes, deleting the partitions with diskutil would be the best way to retry
kreechy has quit [Ping timeout: 480 seconds]
kreechy has joined #asahi
kreechy has quit []
sheepgoose has quit [Ping timeout: 480 seconds]
jmr2 has joined #asahi
<jmr2>
marcan: is it by design that if you go to http://cdn.asahilinux.org/installer/ with a browser, installer-v0.3.7.tar.gz isn't listed, even if it exists?
<tpw_rules>
it's listed for me
<jmr2>
Huh. Listed over https, but not http. No idea why the browser defaulted to http.
adamjm has joined #asahi
<tpw_rules>
it's listed for me on http too
<tpw_rules>
there must still be caching issues
<adamjm>
Hi, I am (like probably half of the rest of the M1-having world) trying out Asahi today, I'm wondering if there's a central location to look for bugs if I'm having issues ? In specific my laptop has crashed twice while resizing the disk trying to install. In both cases, it was a very hard crash where even the touchpad stopped responding. Any idea or where could I look to see if someone else is having this issue?
<tpw_rules>
that's expected
<tpw_rules>
it's not actually crashing, probably
<adamjm>
even if the touchpad stops responding (I'm talking about the haptic feedback no longer working)
<tpw_rules>
yes
<adamjm>
hrm, ok
<adamjm>
I thought that was really low level and indicated something crashed :)
<chadmed>
diskutil needs to unmount the root disk to resize it. shrinking apfs is pretty slow too, just let it do its thing
<adamjm>
so, just do it again, and wait a long time
<tpw_rules>
if you close all your apps and don't touch it after you hit 'y' to confirm the resize, it won't freeze. it has to lock out the disk while it processes and that freaks things out
<adamjm>
ok, i'm just too impatient
<adamjm>
i'll try again, thanks :)
robinp_ has joined #asahi
robinp_ is now known as robinp
sheepgoose has joined #asahi
<krbtgt>
i woonder if the second ANS is in use considering the fact there's a second SSD slot on the studio
<krbtgt>
well, at least the ultra
<krbtgt>
we'll see if the max has a second slot
<nicolas17>
TIL there's a second SSD slot on the studio
<kode54>
yes
<kode54>
probably found out from Max Tech's video
<kode54>
what a shoddy teardown, but FIRST
<kode54>
he was first to realize you could take off the rubber ring (and without a heat gun, so he left some of it behind in the glue)
<kode54>
bet chadmed loved cringing at that, assuming he watched it like a trainwreck
meowcat285[m] has joined #asahi
<chadmed>
"is that copper? yeah? wow!"
<chadmed>
turned it off after that, i just couldnt go on any longer
<meowcat285[m]>
Hey, quick question, is uninstalling as simple as deleteing the partition?
<kode54>
well, there's also a boot definition you need SIP off or recovery to delete
<kode54>
the docs said that so many successive installs will make a bunch of those accumulate
<chadmed>
im interested in how those socketed ssds are interfaced with the ssd though. the nvme controller is not behind pcie, so are those m.2 slots directly wired to nvme? if so, existing drives probably wont work, right?
<kode54>
no idea
<meowcat285[m]>
kode54: Ah, I was just wondering in case I wanted the space that asahi takes up back
<kode54>
we'll need someone like iFixit to do a proper teardown and ID
<kode54>
meowcat285[m]: the config files eat kilobytes
moka has joined #asahi
<meowcat285[m]>
Oh
<kode54>
so just deleting the partition and resizing will let you reclaim all your space
<kode54>
keyboard and mouse attached by USB-A port, downstream a couple of hubs
<tpw_rules>
possibly. some fancier keyboards or very old ones u-boot doesn't like
<tpw_rules>
some hubs too. its usb support is kind of bad
<kode54>
it's a Magic Keyboard with Numeric Keypad
<kode54>
permanently attached by USB
<tpw_rules>
i'm using a random dell one
<jmr2>
Easter egg in m1n1 or in the bin format? hexdump -C m1n1.bin and look for ascii art... literally! (Near the end.)
moka has quit [Remote host closed the connection]
<tpw_rules>
do you mean the font bitmaps?
<tpw_rules>
kode54: so try a different keyboard. iirc u-boot prints how many keyboards it detects?
lbredeso has joined #asahi
<jmr2>
yes
<tpw_rules>
no, it just prints how many usb devices
<tpw_rules>
it also won't work when plugged into the USB-A ports
<tpw_rules>
u-boot doesn't understand those yet
<robinp>
i have the 1TB 14" Pro. Whats a recommended size if I want to dabble with development (80% i.e. 200G for Asahi) way too much?
<tpw_rules>
probably, to be honst
<tpw_rules>
honest*
<tpw_rules>
but if you're willing to delete the linux stuff and lose your data there, it's super easy to adjust later
lbredeso has quit [Remote host closed the connection]
<robinp>
can you adjust the linux partition size like you can the apfs ones ?
littlejth has quit [Ping timeout: 480 seconds]
<tpw_rules>
you'd have to use something like gparted on a live disk to move it
<tpw_rules>
it's theoretically possible, but would be annoying
<M0x8FF[m]>
technically not an asahi question but uh
<M0x8FF[m]>
does stuff in the AUR work on arch arm
<nicolas17>
depends on the package
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
jmr2 has quit [Quit: Page closed]
arcampeny[m] has joined #asahi
<fortelling[m]>
<M0x8FF[m]> "technically not an asahi..." <- running protonvpn with no problems, installed via yay
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
<kode54>
What do I need to install to have the equivalent of the kde version from the base version?
<kode54>
SDDM also segfaults on boot here, I have to restart it manually from a tty
<kode54>
tpw_rules: and yeah, keyboard won't work here, because all my input devices are on a USB-A port
nicolas17 has quit [Ping timeout: 480 seconds]
<kode54>
and I don't have any USB-C hubs
THX1984 has joined #asahi
<kode54>
MArch Linux 5.17.0-rc7-asahi-next-20220310-5-1-ARCH (tty1)
<kode54>
alar login:
<kode54>
[ 1.7164501] tas2770 1-0031: ASoC: error at snd_soc_component_update_bits on tas2770.1-0031 for register: [0x0000000a] -61
<kode54>
[ 1.716502] tas2770 1-0031: ASoC: error at snd_soc_dai_set_fmt on tas2770 ASI1: -61
<kode54>
oops
<kode54>
thought it was 2 lines
<kode54>
didnt want to try gpming it if logging in would clear it
swampertx[m] has joined #asahi
kylealanhale has joined #asahi
marvin24 has joined #asahi
kylealanhale has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marvin24_ has quit [Ping timeout: 480 seconds]
liott[m] has joined #asahi
<liott[m]>
Speaking from a working install!
<tpw_rules>
congrats!
<liott[m]>
I noticed a funny thing with the script, if you password is all spaces it wouldn't authenticate correctly for me near the end (after the disk formatting step)
<liott[m]>
I just changed my password to not be all whitespace and it finished lol
<liott[m]>
tpw_rules: ty! Been having fun getting everything cozy
<M0x8FF[m]>
is nmtui not shipped with the minimal installation?
<M0x8FF[m]>
i’ve been trying to connect to the internet with no luck
<tpw_rules>
iirc you need to use wpa_supplicant or iwd?
<M0x8FF[m]>
iwd hasn’t worked for me either
<M0x8FF[m]>
i guess i’ll go try using wpa_supplicant
<doggkruse>
M0x8FF[m]: Did you make sure your wifi firmware loaded? Mine did not on the first boot after install
xeq has joined #asahi
xeq has quit []
<M0x8FF[m]>
0x8FF: Did you make sure your wifi firmware loaded? Mine did not on the first boot after install
<M0x8FF[m]>
Okg
<M0x8FF[m]>
* Omg
<M0x8FF[m]>
What is up with fluffychat
<M0x8FF[m]>
No I have not
<M0x8FF[m]>
wpa_supplicant is not found either btw
<liott[m]>
I got yay running, and as far as installing armcord, it segfaults, but this is running great for an alpha so far!
<doggkruse>
I didn't do the minimal install, but to get my wifi working I just rebooted several times
<M0x8FF[m]>
i see
<doggkruse>
I still have firmware loading errors in dmesg, but idk if that's expected or not and it works
<M0x8FF[m]>
wifi worked out of the box for me when i did the gui installation
<liott[m]>
^same
<M0x8FF[m]>
you know what i’ll just install the gui one + remove all of the packages
<liott[m]>
sometimes it's easier to play jenga than build a new house :)
<chadmed>
we dont use wpa_supplicant, we use iwd
<M0x8FF[m]>
which running iwctl just hangs
<liott[m]>
to get back to macos do i just do the "hold down power for a while" trick again?
<M0x8FF[m]>
yeah and then select macOS
<doggkruse>
liott[m]: shutdown then hold power. Pic macOS from options
<liott[m]>
ty ty :)
<M0x8FF[m]>
It has a name though, it is called Boot Picker
<liott[m]>
i'll make a github issue about my script bug. Thanks for the help everybody
<M0x8FF[m]>
Is it the hanging thing?
<liott[m]>
no uhh
<THX1984>
is there support for bluetooth yet?
<liott[m]>
if ur password is all spaces
<liott[m]>
the like third or so time it asked me to authenticate my password (after partitioning, pre-reboot) it wouldn't work
<chadmed>
no bluetooth doesnt work yet, its pretty far down the priority list and nobodys looked at it yet
<liott[m]>
so i changed the password to not be all whitespace and it finished
<M0x8FF[m]>
has marcan gone down the horrorsof Linux sound drivers yet?
<chadmed>
yeah sound is disabled in the DT right now though
<doggkruse>
basics for sound are working but there's a risk of blowing out speakers so disabled for the alpha
<chadmed>
we dont want people exploding the speakers until we can limit them properly
<chadmed>
ive been testing for a couple of weeks now and have them running beautifully but the way we do it isnt really ready for end users just yet
The_Walt[m] has joined #asahi
<Glanzmann>
Quixote Probably you did not have the most recent kernel package installed.
<Glanzmann>
Quixote[m]: You can do that with curl -sL tg.st/u/ksh and run the commands as root
<thewalt[m]>
Hello! I tried to erase the partition Asahi Linux from created from diskutility on macOS and when I rebooted I was met with a screen with an exclamation mark and a link to support.apple.com/restore. Any idea
<thewalt[m]>
any idea as to how I can fix this? Would be very much so appreciated
<Glanzmann>
thewalt[m]: I assume you deleted the wrong partitions.
<Glanzmann>
thewalt[m]: You need to a dfu restore or idevicerestore.
<Glanzmann>
thewalt[m]: The DFU restore needs to be done using a second mac. If you don't have a second mac than idevicerestore it is: tg.st/u/idevicerestore_quickstart.txt
<Glanzmann>
thewalt[m]: In the future please use marcans wipe script: curl -L https://alx.sh/wipe-linux | sudo sh
<Glanzmann>
thewalt[m]: And also for the future. Never delete the first, second and last partition.
<johey>
Trying the Alpha installer. It fails: Your system firmware is too old. Please upgrade to macOS 12.3 or newer."
<johey>
Thing is, 12.2 is the latest available as I can see.
<johey>
At least my system says: "Your Mac is up to date - macOS Monterey 12.2"
<Glanzmann>
johey: Click on buttons in the menu at some point it will offer you a newer one.
<Glanzmann>
I think for me it was clicking the settings, accepting them, than it scans for new versions.
<johey>
Glanzmann: Okay. Well, it scans for new versions as I open the Software update tool. But it doesn't get the 12.3 anyway.
<johey>
But alright. This has nothing to do with Asahi Linux, so I guess I'll google my way around this. :)
<Glanzmann>
johey: For me modifying the options and modifying them back did the trick on three systems. It also was not showing up at first.
<r0ni>
before i jump into this, and i'm reading so many conflicting things, once i install on a macmini i can use the usb-a ports on there to mount flash drives and such, correct?
<r0ni>
i keep seeing usb-c specifically mentioned everywhere
<Glanzmann>
r0ni: Correct.
<Glanzmann>
r0ni: On the mini the usb-a ports don't work in u-boot and grub. But they work in Linux.
<Glanzmann>
Also the usb-a ports on the mini are 3.0 speed, while the usb-c ports on the mini are currently usb 2.0 speed.
<r0ni>
ahh ok that is a bit of a problem then lol
<Glanzmann>
r0ni: It is not that much of the problem because most of the time, you don't need to touch u-boot and grub.
<r0ni>
well to install a completely diff OS it is
<Glanzmann>
r0ni: But if you do you probably need a usb-c to usb-a adapter for the keyboard. That is what I'm using currently.
<Glanzmann>
r0ni: yes, If you want to install complete different os, you also don't need it if you get everything right the first time.
<Glanzmann>
r0ni: You can run the asahi installer with the option to only put the uefi environment.
<Glanzmann>
Than you plug in the usb stick in the usb-c port with an adapter.
<Glanzmann>
Than it boots debian live.
<Glanzmann>
From debian live you can install whatever Linux distribution you like.
<Glanzmann>
And than you reboot into the booted version.
<r0ni>
ok as far as usb-c drives, can we mount a apfs drive?
<Glanzmann>
r0ni: In macos you can't under Linux the driver seems to be not sufficient.
<Glanzmann>
r0ni: Godspeed. If you run into trouble let me know. I can also package you a slackware if you don't succeed. It was my first distribution 19 years ago. :-)
<r0ni>
we do have a 32bit arm release out but the aarch64 is still private, i'm sure i can fall back to that if I need to and then re-build the system
<Glanzmann>
Fedora users: I updated the image so that it no longer contains the fedora upstream kernel and does not install fedora upstream kernel in the future.
<Glanzmann>
marcan: Good, btw. I now use the installer from the cdn and only overwrite the json.
<Glanzmann>
pugguu[m]1: So to update only the stub partition, you need to do the following: delete the old stub partition from Linux or macos (it is the 2.5 GB partition). Than use the installer to install m1n1 only.
<marcan>
Glanzmann: I will implement stub OS updates when there is a >12.3 stub that we need to support for some reason
<marcan>
which will happen when either there is a new feature we really want, or the next round of macs comes out
<marcan>
until then, you're on your own with your 12.1 users, that was never part of the official release installer
<Glanzmann>
pugguu[m]1: If I should do a video of the same, let me know.
<pugguu[m]1>
Glanzmann: The uboot is in the efi partition then?
<Glanzmann>
marcan: I hoped to sweettalk you into implementing it.
<Glanzmann>
pugguu[m]1: So we have now to m1n1 (stage 1) and (stage 2).
<Glanzmann>
pugguu[m]1: I was talking about the m1n1 (rust one for chainloading).
<Glanzmann>
pugguu[m]1: Which distribution do you run?
<pugguu[m]1>
Debian
* Glanzmann
prays for apple to come to Glanzmanns rescue with a soon macbook air m2 release.
<Glanzmann>
pugguu[m]1: Okay, so before you update the stub, you should run curl -sL tg.st/u/ksh
<Glanzmann>
One second, I have to add one line.
<Glanzmann>
pugguu[m]1: Done.
<pugguu[m]1>
And I’m guess I’m gonna want to update to Mac OS 12.3
<Glanzmann>
pugguu[m]1: Yes.
<pugguu[m]1>
Let’s hope it doesn’t brick lol
<Glanzmann>
pugguu[m]1: That is a requirement. If you run into trouble, let me know. Maybe I will even look at marcans python installer code and implement the update stub partition myself.
<Glanzmann>
pugguu[m]1: I don't think so.
<Glanzmann>
pugguu[m]1: Anyway, having backups can't hurt. I don't have any backups, but I also don't keep anything on my workstations that I don't have somewhere else.
<pugguu[m]1>
That might be a good idea actually I have a 64gb usb laying around somewhere my Mac OS partitions is 100 gigs so hopefully it will compress it enough
<Glanzmann>
;'/
<Glanzmann>
;'/[/']
<pugguu[m]1>
Huh 31gigs apparently lol
<pugguu[m]1>
Pretty good compression lol
kylealanhale has joined #asahi
<Glanzmann>
Glanzmann: Sorry this happens when my daughter is climbing on me while working on the laptop.
<pugguu[m]1>
And before you ask I don’t have any other external drives that are bigger I know it’s not really a good idea to use a usb flash drive for backups
<marcan>
Glanzmann: also, please stop telling people to curl wipe-linux | sudo sh, first because that could wipe other stuff if you're not sure about their setup, second because that doesn't work if sudo asks for a password
<pugguu[m]1>
A script to wipe Linux that sounds like an accident waiting to happen
<marcan>
nobody should run that without first checking that they have a vanilla macOS setup with just one or a few macOS APFS containers >3GB they want to keep, because it *will* wipe anything that looks like a 2.5GB APFS volume regardless of what it is, and anything that isn't APFS and mentions EFI or Linux or anything
<marcan>
it'll probably nuke Intel macs too
<marcan>
pugguu[m]1: I wrote it for us developers who do reinstalls all day
<marcan>
and I do send it to people running into installer issues I fixed so they can reinstall, but always with a disclaimer
<pugguu[m]1>
marcan: and please add stub updates to installer :)
<marcan>
sure, after the GPU is done
<pugguu[m]1>
Ok :)
<marcan>
you *do* realize how frustrating it is to have people tell me to drop everything else and implement a feature because Glanzmann decided to fork our installer and get users in a bad state, right?
<marcan>
I just released the first alpha and was very careful with how we set up everything to have this last for a long time and use the new bless support and everything, so we didn't have a large support burden, and so I can continue working on hardware support
<pugguu[m]1>
Feels bad man
<marcan>
I'll be supporting folks who used the official installer after it was released (i.e. not /dev); anything else, you're on your own, sorry, I have too many other things to prioritize first
<j`ey>
marcan: perfectly reasonable
<winter>
guess i was in the right to nuke my pre-release install (only by a few hours!) - just gotta set up a new one with the prod installer then
<pugguu[m]1>
That’s fair enough I’ll update to official installer just so I can get support but considering it’s arch Linux imma be asking a lot more questions just a pre warning
<chadmed>
the arch wiki has a page translating common commands from other distros to arch stuff
<j`ey>
pugguu[m]1: arch is easy ;)
<chadmed>
arch is fantastic because the documentation is just so thorough and easy to follow
<marcan>
winter: a few hours is fine, if you're on a 12.3 stub the only last-minute thing I did was add the meta packages
<pugguu[m]1>
Not if your me lol last time I used arch I managed to bork it 3 times in one day
<marcan>
just pacman -S asahi-meta asahi-desktop-meta
<marcan>
(and regular package updates)
<pugguu[m]1>
And it wasn’t even vanilla arch it was Mankato
<pugguu[m]1>
pugguu[m]1: Manjaro*
<marcan>
really I think everything on /dev is fine too, as long as you deal with package changes that happened in the last day or two: upgrade, uninstall m1n1-uboot, install m1n1 uboot-asahi asahi-meta asahi-desktop-meta
Ry_Darcy_ has joined #asahi
<marcan>
especially if you didn't use expert mode
<marcan>
people who used the old alxsh thing, yeah, that's all legacy and unsupported
<winter>
i should test this later but when i nuked my install, i deleted the volume group from disk utility and then erased the apfs containers and such with diskutil -- is the erasing volume group step really necessary? or would that happen anyways when using diskutil
<marcan>
you don't need to erase the volume group, that goes away with the container
<chadmed>
you dont need to erase the vols if youre already destroying the container
<marcan>
you do need to erase the linux/efi partitions though, which may not work very well from disk utility (the graphical version)
<marcan>
the graphical app is... pretty bad
<pugguu[m]1>
But sorry Marcan for being a pain i don’t mean to piss anyone off if I have I’m sorry
<marcan>
it's okay
Guest2621 has joined #asahi
* marcan
goes off to get a late lunch
<pugguu[m]1>
Anyways my backup is almost done then I can update to 12.3 and run the official installer
<chadmed>
lunch at 1800? time really just manages to slip away sometimes huh
rolandt1988[m] has joined #asahi
riker77 has quit [Quit: Quitting IRC - gone for good...]
<Guest2621>
If I wanted to build a kernel with 4K pages support, would I just need to clone+build the kernel from the asahi kernel github page?
<M1bn3mar[m]>
hey, i installed alarm minimal but the wifi is not present i only got "lo"?
<chadmed>
Guest2621: yep usual procedure applies for kernel building/installation for uefi machines
<RudraSaraswat|btwiusearchandub>
Hi, I keep getting this error while installing Asahi after entering the correct password
<mps>
jannau: yes, "use existing EFI system partition" is very good idea
<winter>
ah thanks marcan that makes sense (re: my apfs container question)
<winter>
Why would bputil ask for a username in addition to a password on a single user machine?
<winter>
noticed that when installing
<winter>
(i ask since my experience directly contradicts the above screenshot)
<RudraSaraswat|btwiusearchandub>
<winter> "Why would bputil ask for a..." <- Nope, it just asked for a password
<RudraSaraswat|btwiusearchandub>
The error doesn't seem to be related to the password, since it doesn't even try to update the policy after entering the wrong password
<j`ey>
RudraSaraswat|btwiusearchandub: a few people have had the issue, guess it needs a fix from marcan
<bakk[m]>
Sorry if someone asked this already, but what's the status on sleep mode (and going to sleep when the lid is closed)? From what I can understand, it does not currently work, correct? Are there any plans for it in the near future?
<j`ey>
bakk[m]: yes, there's some issues with PCIe, otherwise it's working
<bakk[m]>
Oh I see!
<Guest2621>
Is there a specific -p or --strip option I need to use with that 4K patch file in my PKGBUILD
<j`ey>
s2idle that is, where the CPU is still on, but idle
<j`ey>
full sleep will be later
<Guest2621>
I've got an error that says:can't find file to patch at input line 5
<Guest2621>
Perhaps you used the wrong -p or --strip option?
<bakk[m]>
What do the issues with PCIe mean in practice
<j`ey>
bakk[m]: it crashes :P
<bakk[m]>
Aha ahahah
Tobias[m]1234 has joined #asahi
ciggi has quit [Remote host closed the connection]
ciggi has joined #asahi
<RudraSaraswat|btwiusearchandub>
j`ey: Is it safe to reboot into macOS?
tomtastic has joined #asahi
<Tobias[m]1234>
RudraSaraswat|btwiusearchandub: It should be. At least for me I did it multiple times and nothing happened.
<Cy8aer[m]>
What would you do if you would have a brand new machine: resize the system partition first and then upgrade to 12.0.3 or upgrade first? I guess that with first partitioning you do not have the time machine thingie?
<j`ey>
I would just upgrade to 12.3 straight away
Tobias[m]1234 is now known as Fl1tzi[m]
<Fl1tzi[m]>
j`ey: The docs say you have to.
<j`ey>
Cy8aer[m]: also the installer can resize the partition for you
<johey>
Glanzmann: I sorted out the update issue by doing a full installation of 12.3. I simply couldn’t get it to find the update.
<Cy8aer[m]>
j`ey: yes but - as I understand - an upgrade will create time machine backups and fills the partition. That's why I ask.
<j`ey>
maybe? I guess you can delete them after anyway *shrug*
Chainfire has quit [Remote host closed the connection]
Naz_Mir has joined #asahi
<Fl1tzi[m]>
I’ve heard some people have problems with the video playback in YouTube?
<Cy8aer[m]>
s/avahi/asahi/g
<Naz_Mir>
Hi everyone, I'm problems with the Asahi installer. Is this the right place to ask questions about installation?
<trevyn4>
Naz_Mir: yes
Guest2621 has left #asahi [#asahi]
<Naz_Mir>
Thanks. I ran the script `curl https://alx.sh | sh` The script resized my disk, created partitions, downloaded files etc. Later it asked me for my admin password and failed multiple times with the message "Couldn't bless /Volumes/...... "
<j`ey>
Naz_Mir: how long ago?
<mps>
povik: about audio last night talk, yes it works as you described
<Naz_Mir>
Just a while back.
<j`ey>
Naz_Mir: 5mins? hours?
<j`ey>
because there was a fix, that might be relevant
Tano70 has joined #asahi
<Naz_Mir>
oh ok, I ran the script an hour and half ago
<Naz_Mir>
j`ey I later aborted the installer and trying to run under arm64. But don't know if I should delete the existing partitions or is there a way I can tell the installer to use the existing partitions.
<dottedmag>
j`ey: My error seems to originate from self.ins.prepare_volume, and that does not take total_size, so this commit shouldn't affect it
<j`ey>
dottedmag: ok, I must have been getting confused. someone else was talking to marcan about it, so good to have the GH issue
<j`ey>
Naz_Mir: no way to reuse the partitions cufrrently
<Naz_Mir>
j`ey: thanks for the info. I will delete the existing partitions and attempt the installation again in arm64 mode. I will report if I face any issues.
<M1bn3mar[m]>
hey, after installation of alarm minimal and trying to connect to wifi with iwctl command i connected within iwd successfully but when i exit it no network to be found plus whenever i run iwctl it print's out "NetworkConfigurationEnabled: disabled"; anyone?
kameks has joined #asahi
<chadmed>
what do you mean no network to be found
Ry_Darcy_ has quit [Remote host closed the connection]
<M1bn3mar[m]>
chadmed: like pinging 1.1.1.1 or using pacman or anything require's internet for that matter
<benmkw[m]>
diskutil would not merge the free space into my main volume though so going back to stock likely seems to involve a whole reinstall anyway
<M1bn3mar[m]>
chadmed: ping: connect: Network is unreachable
<j`ey>
benmkw[m]: yeah you have to resize the volume if you want that free space, otherwise it just stays free space
<j`ey>
M1bn3mar[m]: 'ip addr' try that command
<pugguu[m]1>
I’m currently running the updated alpha asahi installer :)
<M1bn3mar[m]>
ip addr display's l0 and wlan0 same for ip link and ifconfig
<pugguu[m]1>
Should it be taking more than 5 mins to add the root partition
<j`ey>
pugguu[m]1: probably it's 3gb
<pugguu[m]1>
Ok thanks
<M1bn3mar[m]>
trying to connect to wifi with iwctl command i connected within iwd successfully but when i exit it no network to be found plus whenever i run iwctl it print's out "NetworkConfigurationEnabled: disabled"
Ry_Darcy_ has quit [Remote host closed the connection]
Naz_Mir has quit [Remote host closed the connection]
rikkaa has joined #asahi
Ry_Darcy_ has joined #asahi
<Ry_Darcy_>
@Glanzmann losing connection here constantly. Did you respond Thomas?
PaterTemporalis has joined #asahi
<chadmed>
he did not
<pugguu[m]1>
My wifi in a loop Damit
m6wiq has joined #asahi
<RudraSaraswat|btwiusearchandub>
> <@rs2009:matrix.org> The error doesn't seem to be related to the password, since it doesn't even try to update the policy after entering the wrong password
<RudraSaraswat|btwiusearchandub>
* ^ winter
Ry_Darcy_ has quit [Remote host closed the connection]
<pugguu[m]1>
Tip don’t leave caps lock on then figure out you left caps lock on log in fix the cap lock by changing it to what it supposed to be then log out because u notice it’s x11 so log out to see if there’s wayland then resize u entered the new password wrong and ur now locked out of Linux
<pugguu[m]1>
Yay can this week get any better
<ExeciN[m]>
Hi people. I somehow managed to break recovery. This isn't strictly asahi related but this community might be the best knowledge repository to get it fixed without the need of a full recovery and therefore a total data wipe.
<mps>
pugguu[m]1: Caps Lock key shouldn't exists on computer keyboards, it is just problem
<M1bn3mar[m]>
hey, my wifi network is configured but i just couldn't connect to wifi properly
<chadmed>
if you broke the system recovery volume theres nothing you can do, you will need to restore the machine from AC2 or libidevicerestore
<chadmed>
M1bn3mar[m]: you need to give us more information that what you have. repeating the same question with no extra information is going to get better answers
<chadmed>
s/that/than
<M1bn3mar[m]>
chadmed: ip addr output's l0 and wlan0 properly so does ip link and ifconfig
<chadmed>
what's inside /etc/resolv.conof
<chadmed>
conf*
<j`ey>
M1bn3mar[m]: is there an ip address with 'ip addr'?
<j`ey>
in the output
<M1bn3mar[m]>
chadmed: i have to reboot
<ashi01c[m]>
lol i just checked asahis twitter abt the volume resize error, wish me luck on formatting my mac
Chainfire has joined #asahi
<Chainfire>
It seems patching Chromium to support 16kB pagesize is relatively easy (disclaimer: building but not tested yet), but supporting 64kB pagesize would require a fairly large overhaul of their memory allocator.
Axenntio_ has joined #asahi
Axe has joined #asahi
PaterTemporalis has quit [Ping timeout: 480 seconds]
kloenk has quit [Remote host closed the connection]
Axenntio_ has quit [Remote host closed the connection]
Axe has quit [Remote host closed the connection]
<sorear>
why does the allocator page size have to be the same as the kernel/hardware page size anyway? is chromium doing fun things with mprotect and SEGV handlers?
<Quixote[m]>
<j`ey> "1bn3mar: is there an ip address..." <- j`ey: sorry, I'm still trying to compile wireguard but it seems the problem are the linux-header. Do you have some repository to download the different headers version of asahi?
<j`ey>
I dont
<Quixote[m]>
Glanzmann: do you have some repository to download the different headers version of asahi?
<Quixote[m]>
I'm stuck bc I can't compile any software I need and I dont know how solve
<Quixote[m]>
* how solve it
<Chainfire>
I have no idea. They do use mprotect and SEGV handlers but I'm not sure to what purpose. What I do know is they use a construct they call partitions, which requires to be 4 times the page size, but partitions larger than 64kb aren't supported. I don't see a reason why they couldn't be, but it would require a quite a number of changes to logic I don't understand and don't want to invest the time to figure it out.
<j`ey>
Chainfire: but ppc uses 64K page sizes I think
<Chainfire>
Seeing as every build takes about an hour, has to be done on an x86_64, debugging this is hell, etc, I don't want to go too deep down the rabbithole.
<Chainfire>
j`ey> yes, the code says so, but either I'm completely missing something, or the PPC build would actually fail if run on trunk right now
<Glanzmann>
Quixote[m]: I send you yestday all debs for the kernel (the kernel package, debug symbols, libc and header files).
<Glanzmann>
If you install all of them you should be good to go.
<Glanzmann>
marcan: I'll support the users who need an upgrade before the official version of the installer. I'll write a wiki entry and do a video. Focus on your priorities.
<Glanzmann>
marcan: I'll also not send the wipe script to any users anymore before checking their diskutil list output.
<Glanzmann>
marcan: I also corrected the way to call the script in my notes.
<Glanzmann>
Ry_Darcy_: Let me fix the installer.
Ry_Darcy_ has quit [Remote host closed the connection]
<LuEvers[m]>
after having installed alarm with the dev install_script, m1n1 and u-boot get updated by the corresponding packages on marcan's repo do they? there is no need to do anything on macos / recovery side to update the components?
<Glanzmann>
ExeciN[m]: It happened to me once, too. I deleted 1tr. As a result macos refused to apply updates. I did a full system wipe and used a second mac to get my system back working. At the time I was also asking in here for help, but marcan was advising me to wipe it clean and resetup.
axenntio has joined #asahi
<axenntio>
Hi there
<Glanzmann>
Ry_Darcy: The installer works for me (I did not change anything) where did you get the 404 from?
<LuEvers[m]>
ls
<axenntio>
I read about the Notch thing. Does it means that the height of the screen is shrink for now?
<j`ey>
yep
<Ry_Darcy_>
Thomas, on your installer, you have now the choice of two OS´s i)Debian orf ii) Fedora. After choosing Debian, after some error messages, the 404 error appears.
<Glanzmann>
I see, let me try it.
<Glanzmann>
Ry_Darcy: I found the error and corrected it, but I have to test it now.
mdl has left #asahi [#asahi]
<Ry_Darcy_>
OK.
<Jamie[m]1>
do we have keyboard backlight support (on pro/max MBP)?
<j`ey>
Jamie[m]1: on a branch, not in asahi
<Jamie[m]1>
👍
<j`ey>
however not sure if we can submit that code, so it's better to not look at it I think
<Tano70>
hello, i have macbookPro M1 Max, i hope I hope will come out, a good supported beta asahi linux with chromium, and working speakers, that would be a start
<Glanzmann>
Ry_Darcy: So, I'm just installing debian on my wifes macbook air. It appears to be working. step1 is done.
<M1bn3mar[m]>
j`ey: ip addr display's l0 and wlan0 info
<j`ey>
M1bn3mar[m]: just paste the full output
<Ry_Darcy_>
@Glanzmann mail on the way..
<chadmed>
yeah so resolv.conf should not have that stuff in it
<chadmed>
if youve edited it manually youre going to screw up resolved
<LuEvers[m]>
i think resolvd overwrites it at next boot
<LuEvers[m]>
it's jsut a softlink
<LuEvers[m]>
s/jsut/just/
Ry_Darcy_ has quit [Quit: Page closed]
<Glanzmann>
Ry_Darcy: The Debian installation on my wifes laptop finished successfully thank you for letting me know about the 404.
<Glanzmann>
Fedora / Debian users: If you tried to install this morning Debian or Fedora and you got a 404. I fixed that error now. Ry_Darcy Thank you for letting me know.
kameks has quit [Ping timeout: 480 seconds]
kylealanhale has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Rakshit[m]>
Is there a specific wiki where I can contribute a small guide to fixing Firefox scaling on MacBook Screens, because out of the box the density and ratio is messy. Fixing that requires overwriting of Firefox UI css using a userChrome.css config file
<Glanzmann>
Of course that is not the proper way to do it, but that worked for me.
<j`ey>
M1bn3mar[m]: ok, so no IP for wlan0
<j`ey>
Glanzmann: send Ry_Darcy the url, see if they can curl it manually
<M1bn3mar[m]>
so i need to run dhcpcd wlan0
<Glanzmann>
j`ey: I have my http log and I can see that he can access the file.
<RudraSaraswat|btwiusearchandub>
btw, did anyone else get an error related to bputil not being able to update a policy in the second stage? (I think it could be specific to the Mac Mini)
<j`ey>
Glanzmann: heh
<RudraSaraswat|btwiusearchandub>
* btw, did anyone else get an error related to bputil not being able to update a policy in the second stage? (I think this error could be specific to the Mac Mini)
<Glanzmann>
j`ey: But ... he is not downloading the whole package but only beginning.
<Glanzmann>
He also mentioned that he has a flaky internet connection. And I can see the access from three different internet providers in switzerland. And I assume all three are from Ray.
<Glanzmann>
Ry_Darcy: Any luck or still getting the error?
chadmed has quit [Ping timeout: 480 seconds]
<Glanzmann>
Ry_Darcy: If you still have no luck, the next step would that you set up a webserver on your lan and mirror all artefacts locally and use that mirror.
Ry_Darcy_ has quit [Quit: Page closed]
<mps>
Rakshit[m]: do you have more info about FF fixing? and is it for xorg or wayland?
darkapex2 has joined #asahi
BitcoinCandyWarrior has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkapex1 has quit [Ping timeout: 480 seconds]
BitcoinCandyWarrior has joined #asahi
darkapex2 is now known as darkapex
BitcoinCandyWarrior has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BitcoinCandyWarrior has joined #asahi
axenntio has quit [Quit: leaving]
qiuren[m] has joined #asahi
spookyzeb[m] has joined #asahi
BitcoinCandyWarrior has quit [Ping timeout: 480 seconds]
<vadeaway[m]>
I just installed asahi with the minimal arch distro, i however noticed that it’s missing wpa_supplicant, for netctl or iw, so i’m unable to connect to internet.
<Ry_Darcy_>
Again a black screen (I waited five minutes). At this stage, I was prepared to call it a day and forget about things. I powered off the machine completely, waited 30 seconds, powered on again. Then came the Asahi stuff and Linux.
<Chainfire>
(just extract the .tar.gz and run the chrome binary from a (local) terminal)
<Ry_Darcy_>
Time for cigars, cognac and dancing girls!
<vadeaway[m]>
vadeaway[m]: Does anyone know a way around? MBA doesn’t have an ethernet port.
Ry_Darcy_ has quit [Remote host closed the connection]
Ry_Darcy_ has joined #asahi
<Ry_Darcy_>
or dancing boys. Whatever your poison is.
<j`ey>
vadeaway[m]: iwd should be in the minimal system
<AdwyzzOLEDEdition[m]>
iwd is the daemon, iwctl the cli configuration utility
m6wiq1 has joined #asahi
m6wiq has quit [Read error: Connection reset by peer]
<johey>
I have followed the installation script until until the installation is complete and "press enter to reboot". I press enter. It reboots. Then everything is black. The screen is put to sleep.
<johey>
I went with the desktop installation.
<johey>
I can still boot in to macOS by turning off and long-hold power button.
<johey>
Mac Mini M1.
<tpw_rules>
johey: mac mini?
<johey>
tpw_rules: Yes.
<tpw_rules>
there's a lot of monitor compatibility issues with that right now. you'll have to try a different one
<tpw_rules>
if you can disable auto source switching on your current one, that might help. or fiddle with turning the monitor on at the same time as the mini
<johey>
Aha! So the system might actually be up.
<tpw_rules>
yeah, you just can't see it. the monitor gets one short chance to sync at boot
m6wiq1 has quit [Remote host closed the connection]
<johey>
tpw_rules: Ok, thanks for the pointer! Now I know where to start.
<tpw_rules>
that patch fixed the issues for me, but it increases boot time a lot
justeinkemp[m] has joined #asahi
skipwich has quit [Quit: DISCONNECT]
<axboe>
Chainfire: nice, can you share the diff?
skipwich has joined #asahi
<johey>
twp_rules: But turning off and on the monitor should make it sync anyway, no?
<Glanzmann>
johey: Nope, we don't have a dcp driver in the kernel that is distributed.
<Quixote[m]>
<Glanzmann> "If you install all of them you..." <- ok, thank a lot, yeah, I have to use all you send me. I was trying just to install the linux-headers but anyways thanks a lot for your help
<Glanzmann>
johey: As a result the display will only work when it is powered on, detected at boot and stays on.
<Glanzmann>
johey: When you disconnect/connect or turn the display off/on it will no longer be possible to see something.
<Glanzmann>
alyssa first an later jannau working on the dcp driver. I saw a lot of commits in the past days, so maybe there is something to try.
<Glanzmann>
jannau: Is the dcp driver in a state were we can try it or should we wait? Were you able to fix the frequency change performance regression?
<Glanzmann>
Quixote[m]: The issue, I build the kernel and debian installer artefacts at least once a day, so I never know which exact kernel you have.
<Chainfire>
axboe> I'm heading out right now, but it's just a few lines, I actually hardcoded to use 16kb instead of 4kb, as that *should* work on 4kb (still looking for that tester!), and that's what Chromium already did for PPC (4kb vs 64kb) as well. 64kb will not work due to max sizes in the allocator beyond my will and time to understand/fix. Built and works on Asahi 16kb for me.
<Chainfire>
I'll link you up later if you want. And submit to Chromium if it still works for 4kb users.
<Quixote[m]>
Glanzmann: I have exactly this: 5.17.0-rc7-asahi-next-20220310-12131-gbb583ca91538
<Glanzmann>
Chainfire: Send me the patch as well, than I'll test it on 4k and 16k.
<Quixote[m]>
Glanzmann: wow!! you are the best!! thanks a lot!!! I owe you
<Quixote[m]>
I'm going to try right now!!!!!!!
<johey>
My monitor isn’t native hdmi. It has displayport and dvi. I’m using a dp-hdmi cable. I might be better off with a dvi-hdmi cable?
<Glanzmann>
Chainfire: Binary works for me on 4k kernel.
<axboe>
Chainfire: ran it, doesn't work for me. but hardcoded 16k was already a known solution, there's been patches for that for a while
<Glanzmann>
johey: Yes, probably.
<johey>
Cool. Will see if I can find one.
<axboe>
(on 16k kernel here)
<axboe>
needs to be dynamic for a real fix imho, or it'll break on 64k pages. might as well get it fixed properly once and for all
MajorBiscuit has quit [Ping timeout: 480 seconds]
rikkaa has quit [Quit: Connection closed for inactivity]
eagles13[m] has joined #asahi
<eagles13[m]>
Can I donate Ethereum to the Asahi project?
_inside has joined #asahi
<eagles13[m]>
Love what you're doing and would like to send over a couple of eth.
<j`ey>
can you not donate normal currency?
_inside has quit [Remote host closed the connection]
<eagles13[m]>
It's sadly a lot of effort to liquidate 3-4 ether which is what I'd like to donate, and then send it over using traditional channels. I have plenty of liquid crypto but not much liquid fiat.
<eagles13[m]>
I did do some digging and apparently opencollective has support for crypto donations, so hopefully it wouldn't be too much effort for the project to accept them.
<eagles13[m]>
* accept them. If you have objections to PoW I can gladly donate a PoS token.
<j`ey>
you'll have to wait for markan to reply, I got the feeling he wasn't interested in crypto
<ChaosPrincess>
you yourself mentioned the reason why people might not want your crypto :P
<ChaosPrincess>
"It's sadly a lot of effort to liquidate 3-4 ether"
<eagles13[m]>
It does depend somewhat on where you are in the world. In Europe & the US it's pretty easy. Where I find myself now, not so much.
kjm99 has joined #asahi
<eagles13[m]>
* so much. In any case, afaict marcan's objections lie mainly around the perceived wastefulness of proof of work, which is why I offered to donate a proof of stake token.
<tpw_rules>
Glanzmann: there is already an issue filed i think
<Fl1tzi[m]>
Is it possible to hibernate the system?
<j`ey>
not currently
<Fl1tzi[m]>
So I can’t really use the lid switch?
<j`ey>
You can turn the display off
<Fl1tzi[m]>
Yeah but does that save much power?
<brstream[m]>
@Fl1tzi Excuse me, I was having trouble joining the room.
<j`ey>
a little
<Fl1tzi[m]>
But it is a alpha so I understand that at this point it’s not really possible. Anyways, how do I turn the display off?
Ry_Darcy_ has quit [Remote host closed the connection]
<brstream[m]>
On a M1 Macbook I tried clicking on the sideways (180 degree) display (without a connected external display). Now my installed Ahahi Linux is unusable! I can’t even move the mouse around on the sideways display, or login on boot. What to do…?
<j`ey>
brightness in KDE should just turn it off
<brstream[m]>
Is there a way to revert to initial install settings via boot loader?
<brstream[m]>
Even with the install script it’s not evident how to overwrite the existing installation.
<opticron>
you basically have to blow away the partitions, let me find the link
<marcan>
you can just ctrl-alt-F2 (that's ctrl-option-Fn-F2 on macbooks) and log into the text terminal and fix it there
<brstream[m]>
Ah! How would I access the display settings in the text terminal marcan?
<marcan>
good question :)
<marcan>
does the problem affect the login screen too? (sddm)
<brstream[m]>
Yes. Initially the login screen comes up (I have auto login) and then it turns sideways and no keyboard or mouse response.
<Fl1tzi[m]>
j`ey: I‘m not using KDE (I installed it using the minimal version) and xrandr shows display „None-1“ but I was unable to turn the display off
<marcan>
if you have auto login then you don't really have a login screen
<marcan>
I guess you mean the startup indicator thing?
<brstream[m]>
Weird thing: when I closed the lid in that state, and then opened it again, I do see the desktop. But no mouse response.
<marcan>
you can try rm -rf /home/<yourusername>/.local/share/kscreen
<marcan>
RudraSaraswat|btwiusearchandub: the key is the "pairing" in that error
<marcan>
that means the wrong boot option is set as default
<RudraSaraswat|btwiusearchandub>
marcan: ah, thanks for the info :)
<marcan>
you probably booted into macOS again at some point between the installer and the second step?
<RudraSaraswat|btwiusearchandub>
marcan: nope, i don't think so (but i did boot into macOS after it gave that error)
<marcan>
did the installer finish successfully?
<marcan>
the macos part
<brstream[m]>
marcan: Marcan, excellent! I’m able to see the hash-name json file in the kscreen directory. I’m guessing that the variable “rotation”: 2, needs to be set back to 1,
<RudraSaraswat|btwiusearchandub>
also, i was interested in building https://twitter.com/ubuntu_unity for m1 macs (I'm the dev of Ubuntu Unity)
<marcan>
brstream[m]: I'd just wipe the entire kscreen folder
<marcan>
that's your monitor settings in general
<brstream[m]>
Ah! ok.
<RudraSaraswat|btwiusearchandub>
marcan: nope, it gave the pairing error
<marcan>
that's weird...
<brstream[m]>
marcan: That did it! Brilliant!
<marcan>
RudraSaraswat|btwiusearchandub: try using the boot picker to set asahi as the default; it'll bootloop when the machine restarts, so force a shutdown with the power button, make sure it's really off, then power off holding again and try selecting it as usual
<brstream[m]>
Very helpful to know the key combo for getting into text terminal. Thanks
<RudraSaraswat|btwiusearchandub>
marcan: sure, i'll try that
<RudraSaraswat|btwiusearchandub>
ty :)
<marcan>
*power on holding
Ry_Darcy_ has joined #asahi
<RudraSaraswat|btwiusearchandub>
also, is it possible to boot regular ARM ISOs with the latest kernel
<marcan>
and I meant did the macos part of the installer, before the reboot, finish successfully
<marcan>
i.e. telling you it's going to shut down
<Ry_Darcy_>
A simple run of hdparm on a freshly installed (Thomas Glanzmann) Linux returns the following results:
<Ry_Darcy_>
hdparm -tT /dev/nvme0n1p6 /dev/nvme0n1p6: Timing cached reads: 42832 MB in 1.99 seconds = 21479.81 MB/sec Timing buffered disk reads: 12024 MB in 3.00 seconds = 4007.68 MB/sec
<marcan>
latest upstream kernel? that will boot on t8103 but if it's a 4K build only USB will work, and chances are there's missing config options for apple support
<RudraSaraswat|btwiusearchandub>
marcan: I've built an Ubuntu Unity ARM ISO with the latest kernel and was wondering if it's possible to boot it on the M1 Mac Mini
<marcan>
e.g. arch linux kernels don't boot at all and I haven't gotten around to figuring out why
<Ry_Darcy_>
Any comments on the results here. I am quite happy with them.
<marcan>
basically unless you're a kernel dev building your own kernels anyway and running on a Mac Mini, I wouldn't really recommend upstream kernels at this point
<brstream[m]>
I’ve also been unable to connect to a WPA2 wifi network. The password is correct. Is this not yet working?
<marcan>
I can't vouch for any distro shipping builds that would work at this stage
<marcan>
brstream[m]: WPA2/3 works in principle
<marcan>
try turning wifi off and on though
<marcan>
I've seen it be weird sometimes
<j`ey>
Ry_Darcy_: results better than the older code you were using?
<Ry_Darcy_>
Yes. But be fair to Pipcet, the NVME code he was using was rather old...
<Ry_Darcy_>
Or not ripe if you would.
<Ry_Darcy_>
to be fair - all thumbs.-
<brstream[m]>
tried turning wifi off and back on. then it tries to connect to the wifi network and says “Connection ‘[SSID]’ is deactivated”
<brstream[m]>
another box says “No secrets provided” or something. Now it’s disappeared.
<j`ey>
Ry_Darcy_: it's likely to get worse again though, right now flushes are being batched together, that may be removed
<marcan>
won't affect reads though
<marcan>
just synced writes
<brstream[m]>
Nevermind. My bad wifi works now.
<j`ey>
ah yes, didnt see that was reads only
<brstream[m]>
wifi is now working. Thanks so much marcan!
<marcan>
sorry if wifi is a bit flaky, though it's hard to tell what's "us" and what's general brcmfmac nonsense :)d
<marcan>
definitely needs a bit of polish
<RudraSaraswat|btwiusearchandub>
marcan: i would suggest documenting errors, since there's hardly any public info on the bputil command
<marcan>
one thing that is very helpful is if you can find reproducible steps for any specific issue
<brstream[m]>
no. i’m embarrased to say i typed in the password incorrectly
<marcan>
ha
<Ry_Darcy_>
This is just a POC for me at the mo. I am happy with what I have. Considering yesterday´s shenanigans.
<brstream[m]>
what beautiful work this is! what a joy to use linux on an m1 macbook!
<Fl1tzi[m]>
j`ey: thanks for the help. I used `xset dpms force standby`
<RudraSaraswat|btwiusearchandub>
marcan: also, is there a kernel package for Debian/Ubuntu which works with the M1?
<marcan>
I assume Glanzmann has something
kjm99 has joined #asahi
<marcan>
but really, for other distros, you're kind of on your own at this point; I'm happy to work with distro developers to help them add official support, but it's very hard to support every custom unofficial setup people might come up with right now
<j`ey>
and it's much better to spread the work anyway
<marcan>
yeah
<marcan>
that's why we have a reference distro, so people can look at it and see how we do things and how they might translate to others, and so we can work on one platform/subset of the ecosystem
<Fl1tzi[m]>
marcan: I mean it’s already great to provide something like arch and I think the first thing to do is getting stuff ready and after that it’s possible to provide proper support for other distros.
<marcan>
linux is too broad for our small team to support everything, we'd never get anything done; we've been making good progress because we were able to focus on the kernel, but we can't stop doing that now and switch to helping people come up with bespoke setups
<RudraSaraswat|btwiusearchandub>
marcan: ah, I understand :)
<RudraSaraswat|btwiusearchandub>
np :)
<marcan>
the assumption right now is basically that if you install our alpha you're at least competent enough with linux to drive around an Arch install and work with official documentation, and that if you want to roll your own something else, you get to work it out yourself :)
<jannau>
RudraSaraswat|btwiusearchandub: 'make -jN bindeb-pkg' in the asahi kernel should work
<ograff>
Does the alpha installation run inside m1n1/the hypervisor or on bare metal (or does it matter). Alternatively, do I completely misunderstand how this works?
<marcan>
bare metal; the hypervisor is only for development
<marcan>
m1n1 is just a bootloader in this context
<marcan>
m1n1's hypervisor features are only a developer feature and only work with USB tethering to another host
<ograff>
Theoretically when I have time I’d love to help with development but perhaps I should focus on making useful bug reports / testing :)
<marcan>
but of course for development you can (and probably should) use the hypervisor; everything that runs on bare metal also runs on the hypervisor (almost)
<marcan>
ograff: detailed bug reports are great :)
<marcan>
and also writing docs would be very helpful too
<marcan>
I tried to write some useful ones like the m1n1 user guide, but there's a lot more to cover
<j`ey>
m1n1 is magic
<Fl1tzi[m]>
marcan: BTW, Great work on the installer. Worked flawlessly.
kjm99 has quit [Ping timeout: 480 seconds]
<marcan>
including stuff around common pitfalls and such
<marcan>
our wiki also currently has a lot of old content that should probably just be removed
<AdwyzzOLEDEdition[m]>
tasks
<marcan>
Fl1tzi[m]: thanks :)
<ograff>
I’ll read through existing docs, get asahi installed and see what improvements I can make
<ograff>
:)
alyssa has joined #asahi
<alyssa>
Shrinking APFS data structures
<alyssa>
Time left: rand() * 14
<marcan>
also, I tweeted this earlier, but something almost everyone here can do if they have a non-US/JP keyboard is figure out what, if any, of the available keyboard layouts works well, and if anything is wrong, and explain it in detail in a bug on our xkeyboard-config package
<marcan>
having a bad keyboard layout sucks and fixing it is night impossible for end users, so I really want to get that right
<marcan>
and fix all the brokenness in xkb
<marcan>
but I absolutely rely on people to tell me what to do there, for localized layouts
<marcan>
and it has to be a very detailed explanation to do the right thing and understand how it should work, and what makes sense for linux
<alyssa>
marcan: Will let you know on my Canadian English keyboard which is totally not identical to a US keyboard
<marcan>
:p
<marcan>
is it actually sold as canadian?
<alyssa>
(xkb *does* have a "Canadian" layout but it's for French)
<Sobek[m]>
@marcan, once I have sorted my macos backup mess, I plan on testing a french kayboard MBP M1Max with 4TB, will let you know the best keyboard stuff when I get around to that. Thanks a lot for all the work !
<marcan>
I mean I'm specifically interested in all the apple-weirdness, which there's quite a bit of
<alyssa>
Q:
<alyssa>
What is the difference between an US and a Canadian English keyboard layout?
<alyssa>
R: There's no difference except for the flag icon. It is presumably there so that Canadians don't have to be looking at the US flag all the time to type their language
<marcan>
Sobek[m]: and also explain everything that's wrong with the best layout so we can fix it :)
<marcan>
I already fixed some bork in the japanese layout and added two tweaks to make the backslash exist somewhere... (which one you pick depends on preference)
<marcan>
and I still haven't even gotten around to seeding japanese IME configs, someone on twitter was already confused by that...
<j`ey>
Sobek[m]: luckily 4TB nvme is fixed now :)
<marcan>
keyboards are complicated
<marcan>
but also if we don't care about this nobody else will, I guarantee upstream distros aren't going to be picking up random macs and testing layouts
<marcan>
so it's good to have this all prototyped and tested and upstream it
* alyssa
debates between UEFI environment and tethered boot
<marcan>
alyssa: you can have both
<marcan>
there's that 5 second backdoor mode I mentioned
<alyssa>
yeah, I mean for the installer asking me
<tpw_rules>
how do you trigger that?
<j`ey>
run shell.py or something
<alyssa>
I guess UEFI environment gets the firmware copied over and allows a less nonsense boot
<marcan>
right, I mean if you pick tethered boot you're stuck with a m1n1 that can't chainload; if you pick UEFI you can always turn it into tethered forcefully by removing/renaming the m1n1.bin from the ESP
<alyssa>
Realistically I'll end up fscking with my boot flow so defaulting to the UEFI environment is the sane option
<marcan>
also for the HV you still need to clobber xnu with m1n1 separately
<marcan>
and that would always be tethered of course, at least normally
<alyssa>
right..
<marcan>
but I usually always have both
<marcan>
clobbered macos for shenanigans/tethered boot, and a standalone uefi chain
<marcan>
you can always have the macos side boot the linux filesystem anyway
<marcan>
at least until we start using SEP maybe possibly, we'll see
<marcan>
but I assume people doing this know what we're doing :p
<alyssa>
I had HV capabilities before, think I'm relinquishing that for today because let's be real I don't want to deal with kernel side
<marcan>
heh, kk
<alyssa>
(I mean. If there's a HV trace I can look at I'm not opposed to kernel dev. But I don't need that capability on my one and only machine.)
<marcan>
yeah
<alyssa>
(And in a pinch I could stick m1n1+hv on top of my regular macOS and just not tell marcan because they'll hate that)
<marcan>
it sure helps I have a pile of them... right now my Mini is my main victim for dev, my M1 Pro formerly was but has now become the main Asahi build box, and then the Air/MBP alternate duties of testing the installer/macOS stuff/clean Asahi reinstalls
<marcan>
the nice thing about the Mini is it has HDMI so it's the only one I can nicely show on stream :p
<marcan>
(and now it's back, after the 12.0 nonsense)
<alyssa>
ahahaha
<Sobek[m]>
<marcan> "Sobek: and also explain everythi..." <- That's the plan. I'm probably going to make a big ugly text file with what macOS does, what the linux layout does and any really stupidly wrong thing that must be fixed (in addition to difference where people may argue Linux is doing better), checking Shift, Alt, Alt+Shift, etc.
<alyssa>
marcan: OK silly question but how did you make the Linux partition boot to 1TR and open asahi script magically
<j`ey>
that was VinDuv's work :D
<marcan>
yup
<marcan>
it's the USB installer feature
<alyssa>
I am so confused
<marcan>
runs a macOS .app from a boot volume
<alyssa>
wtf
<alyssa>
magical
<j`ey>
he found this IAPhysicalMedia.plist magic
<marcan>
it's magic™!
<marcan>
and amazing
<alyssa>
is Apple, like, OK with this?
<marcan>
I mean, we aren't actually booting *to* 1TR, you do that by holding the button
<marcan>
and I'm pretty sure you still get a password prompt if you have FileVault
kjm99 has joined #asahi
<alyssa>
nod
<alyssa>
ok, got myself to broken U-boot
<marcan>
the hack is we set it as default, *then* drop that file so it becomes a weird quantum superposition of bootable volume and USB installer volume
<alyssa>
I guess I can take it from here
<marcan>
so if you boot normally it tries to boot normally (and fails since it's not kmutil'd yet)
<jannau>
macbook pro 14/16 has hdmi as well und looks identical to dcp/disp0 except that iboot doesn't powers it on
<marcan>
but if you open the picker, it sees it as a USB volume, since we also de-legitimize it as a boot volume for its purposes by moving another file
<alyssa>
jannau: ...and you need atcphy stuff, no?
<alyssa>
or is it physical hdmi?
<marcan>
and then the second stage script swaparoos those things around to nuke the USB installer mode and switch it into a legit boot volume
<sven>
atcphy stuff is 90% done
<marcan>
then you reboot and voila
<alyssa>
sven: :O
<sven>
just needs a few more DisplayPort pokes to bring up some “dpphy”
<jannau>
it's physical hdmi, looking exactly like the mini hdmi
<j`ey>
I didnt realise the 14/16 had a physical hdmi port
<sven>
but I can already configure the lanes and everything to displayport
<alyssa>
:-D
<alyssa>
jannau: Nice
<marcan>
jannau: it isn't
<marcan>
it's just atcphy plugged into dp2hdmi
<alyssa>
Womp
<alyssa>
...Why would they do that?
<marcan>
good question"
<marcan>
I guess they really wanted an HDMI port instead of another thunderbolt port?
<AdwyzzOLEDEdition[m]>
quite a few devices do that
<alyssa>
(If the Mini is real HDMI? ...or is the Mini also fake HDMI?)
<marcan>
it's different
<alyssa>
I know the Mini's HDMI is internally dp
<marcan>
the mini is LPDP plugged into the same converter
<alyssa>
but no fake type-c in there I don't think
<marcan>
but it's not atcphy
<marcan>
it's a dedicated DP PHY
<marcan>
(and much smaller)
<marcan>
there's also a *second* DP PHY apparently, unused?
<marcan>
but I don't think there's a disp1? so I'm not sure how that's supposed to work
<marcan>
there's also, like, unused USB3 ports
<marcan>
these chips have a lot of unused things
<marcan>
and it's kind of hard to discover stuff that's not in the ADT and unused by xnu
<marcan>
I should do a brute force mmio scan one day...
<marcan>
did that for the wii once but that platform was... simpler
buntudu[m] has joined #asahi
<marcan>
(and full of mirrors, at least I think these things don't really mirror regs in weird places)
<sven>
the only mirrors I’ve seen is just next to each other
* povik
has been poking at undocumented ADMAC and MCA instances recently
<marcan>
povik: yes :D
<marcan>
nice
<sven>
iirc I also saw it for maybe dwc3
<povik>
thanks to the power domains there's some order to it
<sven>
something bigger than a few pages
<sven>
and it was then just mirrored at start + 0x10000 (offset made up, but you get the idea)
<marcan>
right
<j`ey>
and darts?
<sven>
might’ve been darts and not dwc3 actually
<j`ey>
I thought there was some mirroring there
<alyssa>
sven: we should backport the piece of the kernel to old debian
<alyssa>
so we can have DARTs in bullseye
<marcan>
povik: nice trick with the power domains
<sven>
alyssa: I’m not gonna stop you!
<marcan>
:D
<marcan>
have I mentioned that my keyboard, as in the piano kind, is running an ancient kernel with a modern xHCI driver backported to it?
<Fl1tzi[m]>
marcan: I think I actually have a broken keyboard layout. Two buttons are switched
<marcan>
because I upgraded the motherboard but nothign has EHCI any more :p
<Fl1tzi[m]>
I‘m using the german layout
<marcan>
Fl1tzi[m]: cool! can you check the different xkb variants and see if anything fixes it, and what exactly is switched and how it should work? and file it at https://github.com/AsahiLinux/xkeyboard-config
<jannau>
argh, yes. it's on atc3-phy. how did I convince myself it isn't? Did I forgot to check and remembered the results from the mac studio?
<marcan>
would love to have a detailed report for each regional layout :)
<Fl1tzi[m]>
marcan: Im going to try (:
cadawerum1[m] has joined #asahi
<alyssa>
sven: I just want the pun ok
<sven>
if someone gets dcpext up in Linux I’ll see if I can manage to convince atcphy to talk to it and bring up whatever the next calls dpphy as well
<sven>
otherwise thunderbolt is up next
<RudraSaraswat|btwiusearchandub>
<marcan> "Rudra Saraswat | btw i use..." <- the startup disk selector (after booting into the recovery) only shows macOS
<marcan>
wait did it show the asahi stuff the first time?
<marcan>
otherwise how did you end up running the script?
<sven>
jannau: or if you want to try it yourself: the code to configure the lanes for DP is already in my branch
<marcan>
ahh wait, hold on
<marcan>
the USB boot stuff might not work with that
<marcan>
right
<sven>
just make sure it happens in the usb mode switch because dwc3 will hate you otherwise
<RudraSaraswat|btwiusearchandub>
it did show asahi when booting, but the startup disk selector (from the recovery utilities) only shows macOS
<alyssa>
the release m1n1 (bputil'd in), it chainloads automatically ESP/m1n1/boot.bin? and that boot.bin is a m1n1.bin that I can replace with my own (debug) m1n1?
<marcan>
alyssa: yes, if you installed in UEFI mode/etc (since it has to configure the ESP PARTUUID to look for)
<marcan>
and that is correct
<marcan>
but also if you just move it away, it'll fail to load it then fall back to proxy mode and turn on the console at that point
<j`ey>
alyssa: the installer installls boot.bin is a combined m1n1+uboot
<marcan>
right, with the DTBs
<marcan>
but it can be any m1n1
<marcan>
you could concatenate a kernel too if you really wanted
<jannau>
sven: I think dcpext bringup is just replacing dcp/disp0 with dcpext0/dispext0. the powerup issue is then hopefully just the atc phy config
<sven>
oh, interesting
<jannau>
I can try that
<RudraSaraswat|btwiusearchandub>
marcan: just realized macOS doesn't have a `poweroff` symlink to `shutdown` lol
<marcan>
yup
<marcan>
jannau: good chance it'll hit some unimplemented callbacks though, since it's a bit different
<marcan>
but yeah
<alyssa>
marcan: j`ey: k, thanks :)
<alyssa>
I admit I'm tempted to install a combined m1n1+kernel there but whatever, tethered boot first
<marcan>
and now that we have chainloading that's actually a valid, if a bit weird, approach
<marcan>
if a distro wants to not have any "normal" bootloaders
<marcan>
though given the PSCI stuff that we're probably doing via u-boot, I think u-boot will be required for sanity in the future
<Glanzmann>
Ry_Darcy_: I'm also happy with the NVMe performnace on the macbook. In the old days we had an issue with slow random writes but axboe fixed that for us.
<marcan>
I always hated people concatenating kernels for *kmutil* stuff, that's just wrong...
<marcan>
but with chainloading it's a lot less crazy
<alyssa>
why does new m1n1 look so weird
<marcan>
?
<marcan>
look?
<alyssa>
Idk it looks different
<alyssa>
i guess too many lines of logs from the DCP init
<marcan>
er, I don't think we changed anything?
<j`ey>
are you sure thats not uboot? :P
<marcan>
well that yes
<marcan>
we do have more things in there
<alyssa>
it's the dcp init vs real fb lol
<marcan>
yeah the dcp init on the mini is extra
<marcan>
also nvme which is another instance of rtkit
<alyssa>
woof
<alyssa>
Umm I guess this gives me tethered boot so Linux "should" work now once I revert out my 11.x crap
<alyssa>
Uprev today, woo.
<alyssa>
aka the "deal with marcan's nags day"
<marcan>
... she said, half a year later
<RudraSaraswat|btwiusearchandub>
marcan: is it possible to use a 1440p 144hz monitor (systemsettings5 only lists 1080p as an option)?
<marcan>
RudraSaraswat|btwiusearchandub: not until DCP is in
<marcan>
there is no modesetting at all
<alyssa>
marcan: It's only been half a year?
<marcan>
:p
<alyssa>
Speaking of, DCP time..
<alyssa>
(Debian booted off a random USB disk I had with an arm64 debian rootfs lying around)
<alyssa>
that's a normal thing to have right
<alyssa>
v useful
* marcan
looks at his random arm64 arch rootfs on a stick
<marcan>
pretty sure that's normal
<alyssa>
it even has 3D acceleration!!
<marcan>
mine has a full KDE desktop!
<alyssa>
^for nextgen malis, not apple
AdwyzzOLEDEdition[m] is now known as AdryzzOLEDEdition[m]
<alyssa>
ok i guess there's current gen now but that's depressing
* alyssa
rebuilds jannau's tree
<alyssa>
I guess I should really be uprevving the kernel too while I'm at it
<alyssa>
dreadfully boring
<alyssa>
jannau: "Reference only swapped out framebuffers" thank you for fixing that lol
<marcan>
Rakshit[m]: you need to go to system settings and set the UI scale to 150%
<jannau>
alyssa: dcp has become a little complicated due the reserved memory handling. It needs a modified m1n1 (chainloading is sufficient) and is incompatible with u-boot
<marcan>
it already *is* at 150% at the xorg side, but for some reason neither that slider nor firefox pick it up
<alyssa>
jannau: OK
<marcan>
need to figure out where they're getting that from
<marcan>
if you do that you don't need to do anything else
<alyssa>
jannau: It's working on the m1n1 I chainloaded, and I don't use u-boot, sooo :-p
<johey>
Is dcp the monitor sync thing?
<marcan>
dcp is the display controller
<johey>
Ah.
<marcan>
right now linux is using a dumb framebuffer
<j`ey>
I ocassionally get weird glitches on the framebuffer console, if I run dmesg or somethng that does a lot of output
<johey>
marcan: At this very moment mine is even less. Just a monitor claiming to have no signal. But I got it all explained.
<alyssa>
jannau: .....Why does regular m1n1 without those commits work then? :-p
<alyssa>
oh because it's an older DCP branch right
<jannau>
with dcp? do you still have a dcp branch with walk_pages?
<alyssa>
yeah, I'm rebuilding the kernel now
doggkruse has joined #asahi
<marcan>
jannau: that region-id stuff worries me
<marcan>
I'm not sure those IDs are stable
<marcan>
does xnu really use those?
<marcan>
I stayed away from doing that because it doesn't seem right
<jannau>
they seem to be stable over macos 11 and 12 and for t8103 and t600x
<marcan>
still...
<jannau>
it seemed slightly less bad than scanning the darts for mapped regions
<jannau>
not sure what xnu does, it could simply not touch the disp/dcp DARTS
<sven>
it doesn’t
<Rakshit[m]>
<marcan> "ジャイナ教Rakshit: you need to go..." <- I tried that, but Firefox doesn't consistently scale entire UI and apparently it's scaling does not work for frictional values like 158dpi/96dpi = 1.64
<Rakshit[m]>
So for now the only solution is custom config
<sven>
it gets the level 1 page tables address somewhere
<sven>
and then the second level address as well
<marcan>
it looks fine for me at 150% (144dpi)
<jannau>
it is in the ADT
<sven>
and that’s the only region it doesn’t touch
<Glanzmann>
alyssa: I also put a Debian live system that you can use to boot from usb stick: https://alx.sh/w/Debian basically it is what you told me year ago evolved you can also install packages in ram.
<Rakshit[m]>
marcan: Oh 🤔
<jannau>
sven: pt-region-0 / l2-tt-0
<sven>
yeah, that
<jannau>
I guess I should try to crash xnu/dcp by modifying the regions in the ADT
<Ry_Darcy_>
@Glanzmann Chapeau for your efforts and help. With my present setup, am I stuck at 5.16-rc7 or will ftp.fau.de pick up the latest kernel versions/minor releases also?
<Ry_Darcy_>
should have read 5.17-rc7
<Ry_Darcy_>
A further qualification Asahi kernel versions/minor releases.
<bluetail[m]>
<Glanzmann> "alyssa: I also put a Debian live..." <- Wait. I will try that to verify my claim macOS is "breaking" video signal for me, not the actual hardware.
<bluetail[m]>
I will report back ASAP
<bluetail[m]>
I can boot it just like other media right?
<j`ey>
no
<bluetail[m]>
:\
<bluetail[m]>
I did hope I could hold option and boot it from USB
<Glanzmann>
Ry_Darcy_: The kernel in Debian is to old to run m1n1. Once the stuff we have in the asahi branch is upstream debian will pick it up after a few months.
<Glanzmann>
Ry_Darcy_: So I build the kernel at least once a day using the lastest asahi branch.
<Glanzmann>
Ry_Darcy_: So you can run as root the following script to boot m1n1 (stage2) and the kernel: curl -sL tg.st/u/ksh | bash
<Glanzmann>
bluetail[m]: So you need an asahi install. Than i u-boot interrupt the boot process by pressing a key and than you can say 'run bootcmd_usb0' and it will boot from usb
<Glanzmann>
bluetail[m]: Also note that Debian has a serial console for grub and serial log in.
<Glanzmann>
bluetail[m]: Option key press does not work.
<Glanzmann>
bluetail[m]: the m1 macs can not boot from external media unless it is chainloaded from something that is on the nvme ...
<bluetail[m]>
What do you mean with serial login? Console? All I want to test is Firefox (just a image)
<Glanzmann>
bluetail[m]: So you have already asahi installer installed?
<Ry_Darcy_>
@Glanzmann that means I wipe out my existing installation oder? :)
<bluetail[m]>
No. But I got it. It's a hook, so I have to follow the guide. I didnt do anything yet.
<Glanzmann>
Ry_Darcy_: You deinstall your current kernel and replace with the most recent one.
<Ry_Darcy_>
via apt oder :)
<Glanzmann>
Ry_Darcy_: The problem is we currently don't have a stable dtb because we're moving fast. So as a result the dtb (which is in m1n1 stage 2) needs to be in sync with the kernel. So as a result you need to sync the dtb (device tree) with the kernel install.
<Glanzmann>
Later when things have calmed down in a year or two than the dtb will be stable.
<bluetail[m]>
By the way, if you instruct somebody... Do A, **then** do X.. "Than" is a comparision. Smaller "than". Bigger "than".
<bluetail[m]>
But who cares. I'm a big fan of you Glanzmann.
<Ry_Darcy_>
Fear enuff = fair enough. Thx.
<Glanzmann>
bluetail[m]: Hrhr. SOmeone already wrote me an email about this. If I write a text I
<Glanzmann>
'll spot it but when my son is on my shoulders, I'll not spot it. :-)
<bluetail[m]>
I wasn't it
<Ry_Darcy_>
@Glanzmann zerfleddert is a good name. Just as good as Dachschaden..
<Glanzmann>
Ry_Darcy_: At the moment I have no repository for Debian. So unless you initiate the kernel update manually you will stick with it. I'm at the moment not comfortable doing that because I'm afraid that someone updates the dtb without the kernel or vice versa and renders his/her system unbootable.
<Ry_Darcy_>
Vrestanden.
<Ry_Darcy_>
Verstanden.
<Ry_Darcy_>
All thumbs.
<alyssa>
OA
<alyssa>
OA
<alyssa>
OA
<Glanzmann>
Ry_Darcy_: hrhr. It is not my domain, a domain of a friend. I was to lazy to setup gitweb and did not want to put it on github so I ended up putting it on his server.
<Ry_Darcy_>
OK.
<bluetail[m]>
alyssa=alyssa rosenzweig?
<alyssa>
She is not known for her ability to use IRC
<bluetail[m]>
(confused). I assumed you are the person who does mainly work on gpu drivers for the m1. I just wanted to confirm you are that person.
<LuEvers[m]>
marcan: would it be a good idea to add a kernel with 4k patch applied to the repo?(linux-asahi-4k / -headers) i've written a pkgbuild for it, that sources the normal linux-asahi pkgbuild
<Glanzmann>
LuEvers[m]: marcan deliberately put a 16k page kernel in the reference distribution so that things break and people complain.
<Glanzmann>
I followed jannaus advice and put a 4k kernel in Debian because to many people were complaining that chrome and other webkit stuff does not work.
<Glanzmann>
But probably it would be best to let the user choose the pagesize they want. 4k doesn't break that much 16k has ~20% better compile performance.
<LuEvers[m]>
yeah the 16k can stay default (and come with the ashai img), but having an entry in troubleshooting to fix crhomium/electron related things wouldn*t be that bad
<AdryzzOLEDEdition[m]>
i think that keeping 16k as the default has a few benefits:
<AdryzzOLEDEdition[m]>
it is faster
<AdryzzOLEDEdition[m]>
it makes other software want to fix their issues with 16k pages as M1 isn't the only end user to those fixes
<AdryzzOLEDEdition[m]>
because ultimately the problem comes down to "it being too much of a hassle to fix unless enough users benefit from it" as far as what i have seen
<Glanzmann>
AdryzzOLEDEdition[m]: I understand the reasoning, but when I shipped Debian with a 16k kernel people complained to me that stuff does not work, so I decided to go 4k again.
<LuEvers[m]>
sure :) that's why it just could be packaged and come not as default for the normal user (that isn't able to compile with patches) not to scare away by basic non-working everyday apps
ore has joined #asahi
meenmachine has joined #asahi
<AdryzzOLEDEdition[m]>
i mean just chromium being fixed would inherently fix most issues
<nico_32>
i seem to remember that the 16k pagesize was because a hw limitation on thunderbold
<Fl1tzi[m]>
marcan: I created a pr for the lay-out fix.
<nico_32>
something like the iommu doesn't have 4k granularity
<clover[m]>
i was hopeing your pkgbuild was published somewhere
<Glanzmann>
j`ey: Did sven send the nvme/rtkit stuff?
<j`ey>
not yet
<MikaB[m]>
sorry to interrupt, but I was wondering why hdmi is working on the mac mini but not on the macbooks. Has it to do with primary/secondary outputs or are the hdmi ports on the macbook on an entirely different subsystem?
<LuEvers[m]>
clover[m]: gimme a minute, struggling to get a different-named package out of the build
<LuEvers[m]>
i'll open a pr
<Glanzmann>
j`ey: I see, thank you.
m6wiq has joined #asahi
<sven>
that lock issue still annoys me and kinda prevents me from sending it *sigh*
<j`ey>
sven: send it anyway.. can think about it over the next few revisions.. :)
<Glanzmann>
sven: Yes, please send it anyway, we will figure it out eventually and fix it.
<Glanzmann>
sven: If there is anything I can do to help with giving you access remotely or testing more stuff, let me know.
<sven>
sure, i first need more ideas what might cause it though :D
george has joined #asahi
george is now known as Guest2647
<gsora[m]>
Anybody here running FDE on root?
<gsora[m]>
I might start running asahi regularly and I’d like to have root encrypted
<buntudu[m]>
Does rotating the screen on Asahi work for anybody else? For me it just rotates, freezes, and then defaults back to normal.
<j`ey>
someone else had issues too, unless that was you earlier
yuyichao has quit [Read error: Connection reset by peer]
meenmachine has joined #asahi
<nicolas17>
huh, I edited the wiki and it Just Worked, I thought it would say I have no access and send some kind of pull request... (I'm not too experienced with github >.>)
<LuEvers[m]>
sven: is there anything i should pay attention to while applying the 4k-pages patch you*ve written? I added it with "patch -Np1 " to the kernel source, but after installing the package / kernel it still shows me pagesize 16384
<sven>
you also need to change the page size in the kernel configuration
<LuEvers[m]>
(I'm doing it with makepkg to package it, so no git allowed here)
<LuEvers[m]>
thanks
<alyssa>
"A start job is running for /dev/nvme0n1p4" alyssa what did you botch this time
<nico_32>
kernel module missing? :)
meenmachine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alyssa>
probably
<alyssa>
or my frankendebian is catching up to me
pj1 has joined #asahi
<alyssa>
still trying to do "start job is running for /dev/nvme0n1p4" that doesn't exist anymore, grumble
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doggkruse has joined #asahi
m6wiq has quit []
THX1984 has quit [Remote host closed the connection]
doggkruse has quit [Ping timeout: 480 seconds]
m6wiq has joined #asahi
<marcan>
MikaB[m]: HDMI on the macbook is internally connected to a thunderbolt port. HDMI on the mac mini is internally connected to a DisplayPort port.
<marcan>
pushed an installer update with better network robustness, a somewhat crude progress display, and possibly a bit faster with the downloads
<MikaB[m]>
Oh I see. And as thunderbolt is not supported yet, so is HDMI. Makes sense. Thanks!
<marcan>
specifically DisplayPort over the Type C ports is not supported
<marcan>
which is what that uses
<marcan>
while the native DisplayPort controller is (mostly because we don't have to do anything for it at all)
<vadeaway[m]>
installer updates, are also included with system updates?
<marcan>
no, because the installer is for when your system isn't installed yet
<MikaB[m]>
I see. My next question would have been why HDMI output on the mac mini works while the last blog post states that DP does not yet work. But that has now been answered. Thanks!
<vadeaway[m]>
aah, so so imma have to re-install every now and than? thats what you're saying right?
<marcan>
no, the installer update doesn't matter for people who have already installed
<mps>
vadeaway[m]: asahi installer is for setup macos and install basic thing to run linux, and possibly install Arch linux
<marcan>
it's literally the installer
<vadeaway[m]>
ah alright lmao, thought perhaps a lower layer of importancy.
<sven>
mood of the week or maybe even month at this point ;)
<mps>
j`ey: :D
chengsun has quit [Quit: Quit]
chengsun has joined #asahi
m6wiq has quit []
<trouter>
I've taken the liberty of creating an FAQ page and sprucing up the wiki home page a little. I added a couple things from above to the FAQ as a starting point...
<trouter>
Interestingly, I cloned the wiki locally (git@github.com:AsahiLinux/docs.wiki.git) and it gave me a permission denied message, but editing through the GitHub UI works fine
<trouter>
(permission denied was on push, fetch is fine)
<AdryzzOLEDEdition[m]>
<trouter> "Interestingly, I cloned the wiki..." <- github's wiki system is kinda of a mess imo. it uses git but then there are no pull requests on the interface and stuff
<LuEvers[m]>
mps: kk, would it be better pushing it to AUR
<LuEvers[m]>
or are 4k pages so bad xD
<clover[m]>
I'd like to see it on AUR
<mps>
LuEvers[m]: marcan want software author to fix this to not depend on kernel, and I agree with this
<clover[m]>
idc that much about faster compile times, i just want to use VS Code
<LuEvers[m]>
mps: i understand and agree too
<mps>
LuEvers[m]: though I build kernels with this patch because f2fs doesn't work with 16K page size
<mps>
and for now I build kernel for alpine with this patch but would like to get rid of it
<sven>
maybe I should just get this upstream and then it’ll trickle down to asahi anyway ;p
<LuEvers[m]>
mps: my thought was at least make it user-friendly, to patch the kernel, if needed. having chromium-apps (which there is a lot of) makes asahis publicity bad. this would be an easy quick-fix for those just looking to install, fiddle 2 hours around, and re-boot to macos, and leave an "asahi is great!" instead of an " asahi is buggy, my fav browser didn't work".
<LuEvers[m]>
but yeah, I'll try to get it to aur, until we won't have the asahi kernel anymore.
<pj1>
Hi! I've tried the alpha on mb air. Got stuck in "Extracting root.img into disk0s7 partition..." (probably because of sleep when screen went blank?). Is there a way to tell the installer to use previously created partitions instead of shrinking the macos one again?
<M0x8FF[m]>
hm for some reason internet still isn’t working on minimal isntall
<M0x8FF[m]>
i connected to my internet with iwd/iwctl
<M0x8FF[m]>
however the asahi mirrors are broken? almost
<mps>
I even don't notice much diff working with 4K or 16K kernels in daily work
<mps>
gsora[m]: yes :)
<gsora[m]>
I wonder what workloads are affected up to 20%
<tpw_rules>
compiling is like 25% slower on 4k
<mps>
gsora[m]: building kernels for now in my case
<LuEvers[m]>
ive compiled the 4k kernel with the 16k and 4k kernels booted, and didn't notice such a big slowdown... maybe because the m1 is already fast
<gsora[m]>
Huh
alyssa has left #asahi [#asahi]
trouter has joined #asahi
<tpw_rules>
i mean i doubt you can really notice it per se without using `time` but it's trivial to measure
<mps>
for example compiling crystal programs in my tests slowdown is around 10%
<gsora[m]>
And x86 stuck with 4K pages just for convenience more than anything else I guess
<mps>
but kernel builds are 20-25%
<mps>
gsora[m]: some arm64 cpus can't work with 16K pages
<tpw_rules>
i think m1 is the only one that can?
<tpw_rules>
and possibly its predecessors
<mps>
some = most
m6wiq has joined #asahi
<mps>
tpw_rules: maybe some newer cpus can, but I don't own any of them
<gsora[m]>
mps: I see
<mps>
someone told that ubuntu build some kernels with 64K page size
<mps>
iirc I had access to thunderX year or two ago, and now have access to neoverse-n1 but didn't looked how page size can improve performance
<mps>
hmm, running alpine from usb flash gives me a lot of problems while it works fine from usb ssd disk
sheepgoose has joined #asahi
<gsora[m]>
The neoverse n1 always seemed cool, wanted to run it as desktop but didn’t have enough $$$ to get one
<mps>
gsora[m]: building kernel on m1 mbp is faster than on neoverse-n1
<mps>
though I use it in lxc container on neoverse-n1
<gsora[m]>
mps: oh well. I have a 14” mbp now, much better machine overall
oz81dog[m] has joined #asahi
<mps>
gsora[m]: could be because neoverse-n1 I use have not so fast disk
<gsora[m]>
Im curious about a specific rust compiling task, I’ll source a 4K kernel and compile on OS X and arch… if it’s fast enough I could work off asahi
<j`ey>
gsora[m]: macOS is using 16K pages. I think it'll be reasonably similar speeds
<gsora[m]>
Yeah you might be right
<gsora[m]>
If it’s still faster than my desktop amd 1700x I’ll be happy haha
meenmachine has quit [Read error: Connection reset by peer]
Tano70 has quit [Quit: Leaving]
pphilipss has joined #asahi
sheepgoose_ has joined #asahi
sheepgoose has quit [Ping timeout: 480 seconds]
m6wiq has quit []
<pj1>
alpha v0.3.12 fail: idyld[4008]: Library not loaded: /Library/Frameworks/Python.framework/Versions/3.9/Python Reason: tried: '/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file) zsh: done curl https://alx.sh | zsh: abort sh
sirn has quit [Server closed connection]
BlitzWorks has quit [Server closed connection]
sirn has joined #asahi
chir4gm has quit [Server closed connection]
chir4gm has joined #asahi
<kov>
gsora[m], j`ey I have been running rust (the compiler) builds as a benchmark, in my testing the 16k kernel was getting the same time as a 4k kernel on a VM under MacOS, around 20 minutes
<kov>
and macos native was doing it in 16 minutes, those were run on a mac mini, I just reinstalled my Air, I'll run the tests on it
hendry has quit [Server closed connection]
hendry has joined #asahi
<kov>
I have Glanzmann's 4k kernel right now, I'll do 16k and macos after that
<nicolas17>
is there any public 'trace file', for example from the m1n1 DCP tracer? (I don't have M1 hardware myself >.>)
yrlf has joined #asahi
<Namidairo>
in some alternate universe, there might have been a nice enough apple to implement fwupd and/or at least license firmware blobs for redistribution
<danny055[m]>
How can I go back to Mac in recovery mode I try bputil -n and I pick 1 macintosh hd but I get an error
<dottedmag>
marcan: second step says "enter your password twice". I had to enter password once, then say "y" to confirm, then enter my username and password. Maybe needs a bit of clarification?
<dottedmag>
danny055[m]: I pushed the power key until I got a boot picker, and picked mac.
<dottedmag>
Also, is there a way to disable this damn chime?
axenntio has quit [Ping timeout: 480 seconds]
<marcan>
Namidairo: that's not the problem, this is about system firmware which is updated via a ramdisk boot
<marcan>
we'll probably figure out a way to implement it at some point
<marcan>
dottedmag: macos settings
zyry has quit [Remote host closed the connection]
<dottedmag>
marcan: thanks
<danny055[m]>
Oh ok that works thanks but like the default boot drive is asahi Linux
<danny055[m]>
I was wondering how I can change that
<mps>
dottedmag: in macos audio settings
<dottedmag>
One thing that becomes obvious when Linux is booted: this machine is DAMN FREAKING FAST.
<mps>
danny055[m]: in macos there is option in settings to set default OS
<clover[m]>
@[Lu Evers] done compiling. after doing a pacman -U do i need to change grub config since the name is different?
<marcan>
or you can just hold option while using the boot picker from the power button
* mps
learned something about macos in past few months ;)
<Namidairo>
yeah I imagine there are quite a few that are just happy to erase macos for the free space or macos hate boner
<mps>
Namidairo: I need sometimes to boot macos and set backlight
<danny055[m]>
I will go into recovery mode and try to change the boot drive from there
<marcan>
dottedmag: I stuck caffeinate into the bootstrap, hopefully it didn't break?
<dottedmag>
marcan: tried, works.
<marcan>
yay
axenntio has joined #asahi
<clover[m]>
nvm got it working. now i can load my favorite code editor 😎 ty Lu Evers
<clover[m]>
nice
<danny055[m]>
Instead of pressing down the power button every time to boot into Mac os is there a way that it just automatically boots into Mac os
<marcan>
there's three ways, this is standard macos stuff
<marcan>
press option while selecting it
<marcan>
or change it in recovery mode with the boot picker
<clover[m]>
yes i would also like macOS to have boot priority for now
<marcan>
or change it in macos settings
<marcan>
this is how it has worked in macos for like at least a decade ;)
<nicolas17>
what does the macos settings do? write to nvram?
<marcan>
yes
<nicolas17>
I guess a Linux tool to do the same is doable eventually?
<marcan>
yes
<marcan>
but there's an implied dependency on APFS support because without that you can't actually know the right value for that nvram var
<Namidairo>
I was about to ask if that was an EFI var
<marcan>
I'm not going to ship it until I run some torture tests on it though
<marcan>
last thing I need is for people to start corrupting their APFS worse than macos already does all on its own
<mps>
sure, I just wanted to test will it work
<marcan>
we're going to need it to implement xARTs, but that's a very very simple use case, so hopefully we can prove it's stable enough for that
<nicolas17>
the write support is *documented* to be "this will likely cause corruption" level
<marcan>
exactly
<marcan>
xARTs only involved writing blocks in one file that's the only file in a subvolume of the iBoot System Container, so *hopefully* I can convince myself it's stable enough for that at some point
<marcan>
but I definitely don't want people trying to mount random volumes at this point
<Namidairo>
it's recoverable, but you'd rather not soft-brick people given the chance
<mps>
hmm, `cat /dev/urandom > $rootFS` is feature in unix, not a bug
axenntio has joined #asahi
axenntio has quit [Ping timeout: 480 seconds]
<Namidairo>
dare someone to run btrfs with transparent compression?
<Fl1tzi[m]>
It’s really a pain to renew the German key mapping but I hope some people will use it.
<marcan>
pushed new images / refs to prod (github cache might take 5 min to update)
<marcan>
those fix the bad mirrorlist and also the firefox initial dpi thing
<marcan>
I'm going to sleep :p
<Fl1tzi[m]>
What time is it for you lol?
<marcan>
9AM...
<marcan>
my sleep schedule has kind of been a mess the past few days
<Fl1tzi[m]>
Oh it’s 1am for me and I have school tomorrow… D:
<j`ey>
marcan: did your jam go ok?
<nicolas17>
there's always people online to make me feel better about my own sleep schedule
<Fl1tzi[m]>
nicolas17: lmao
<Tramtrist>
ha
<matthewayers[m]>
It’s 20:00 here in the US and I always enjoy waking up to hundreds of messages (it’s been 1000+ recently)