marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | Not ready for end users / self contained install yet. Soon. | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
chadmed has joined #asahi
yuyichao_ has joined #asahi
<tpw_rules> why did you install xcode?
<chadmed> you dont need all of xcode, just the command line tools
<chadmed> which you can make macos prompt you to install by trying to run git or make from the terminal
<tpw_rules> why do you need those?
<tpw_rules> xcode-select --install is the official way
<tpw_rules> if you need the command line tools
<psykose> all the methods are the same, you get the same tools
<chadmed> git is three characters, xcode-select --install is more than that
<tpw_rules> yeah but it doesn't work if you've installed git some other way
<chadmed> thats true, though if youre setting up a macos dev environment for the first time you probably havent done this
linearcannon has quit [Read error: Connection reset by peer]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
Tramtris1 has joined #asahi
pFalken has quit [Ping timeout: 480 seconds]
ciggi has quit [Read error: Connection reset by peer]
pFalken has joined #asahi
dsrt^ has quit [Ping timeout: 480 seconds]
tomtastic_ has joined #asahi
tomtastic has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi
linearcannon has joined #asahi
nyx_o has joined #asahi
BenPetterborg[m] has joined #asahi
<BlitzWorks> /reco
the_lanetly_052 has joined #asahi
le0n has quit [Quit: see you later, alligator]
jhns0n has quit []
eroux has joined #asahi
<Glanzmann> chadmed: You just run git or pythoin3 and get a pop-up in macos to install xcode.
<Glanzmann> chadmed: Personally I always use macports.org
<Glanzmann> amw: I saw your wiki article about xorg. I find that the modesetting driver has better performance than the fbdev. So I always use that. Also from my experience, Debian stable is to old for mouse and keyboard on the laptops, so now I advise to use testing ... Just if you want to update the wiki articles you wrote.
<amw> Glanzmann: I'm pretty happy with my stable at the moment - so probably leave it until I'm forced to move :-)
<amw> You could add a note about your experience ?
<Glanzmann> amw: The touchpad in xorg does not work on my macbook air.
<Glanzmann> amw: Which m1 device do you have and what does your xorg config look like?
<amw> i have an air - 2020 model
<Glanzmann> So same as me.
<Glanzmann> amw: Could you pase me the output of your xorg and any configuration you have done regarding xorg?
<amw> my touch pad works - too well - a bit sensitive but I haven't found a way to tweak it yet
<Glanzmann> amw: Oh, have a look at: https://tg.st/u/libinput-20.conf This is how mps does it. AccelSpeed is what you're looking for.
<Glanzmann> amw: And I just checked my record, I think I have your complete xorg config already. Maybe I should just try to replicate your setup and see if that works for me, and if it does, I could go to stable. But I think I tried that already a few times, and testing works best for me.
<amw> I'm not sure what you want - here's my X11 log (chopped down of repeats) https://paste.debian.net/1228662/
<amw> You can probably see I plug in a USB mouse at the moment
<Glanzmann> amw: I think that when I tried the touchpad on stable was not working. Either the licking or moving the pointer, I don't recall, have to try it again.
<Glanzmann> Probably I'll make a Debian livesystem for stable and try it.
<ChaosPrincess> amw: u-boot?
<ChaosPrincess> also are you using kernel build from the asahi branch
bpye has quit [Quit: The Lounge - https://thelounge.chat]
<amw> ChaosPrincess: I am using kettenis' m1n1 + u-boot .macho which I have marked as the default so it boots into linux when I power my mba on
<amw> I used the wifi/take5 Asahi Linux so I get the wlan0 appearing which runs very well with the firmware extracted from the MacOS
<ChaosPrincess> ok, so, 1. do not use wifi/take5, use asahi tip
<ChaosPrincess> 2. that branch does not mix all that well with u-boot, the spi is broken then, there is a patch floating around
<ChaosPrincess> grab the last two commits from there and apply them to asahi https://github.com/jannau/linux/commits/bits/090-spi-hid
<chadmed> fwiw wayland works oob with simpledrm on my machine and the internal kb/touchpad via libinput. obv then xwayland also works fine
bpye has joined #asahi
<amw> ChaosPrincess: I did this around Jan 5th (using MacOS 11.x) and haven't budged as it works very well (no sound or power mgmt though)
<amw> I assume you are talking about more recent versions of things. I think I will stay here until there is a significant functionality increment ... :-)
<ChaosPrincess> sound now works, but idk where those patches are
ChaosPrincess has quit [Quit: WeeChat 3.4]
ChaosPrincess has joined #asahi
MajorBiscuit has joined #asahi
le0n has joined #asahi
dsrt^ has joined #asahi
littledust3403[m] is now known as MarxLandRover[m]
MarxLandRover[m] is now known as NotHere[m]
dsrt^ has quit [Ping timeout: 480 seconds]
<Glanzmann> ChaosPrincess: There are the sound patches: https://github.com/AsahiLinux/docs/wiki/DesktopKernel
<Glanzmann> curl -s https://tg.st/u/5nly | git am -
<Glanzmann> On top of asahi.
<Glanzmann> I maintain the desktopkernel from now on, you can bookmark it if you want.
<as400[m]> Hey guys - wasn't here for some time. What are the breaking news ? :)
<mps> Glanzmann: last part of your DesktopKernel guide are not true in my case, I have both CONFIG_FW_LOADER_USER_HELPER_FALLBACK and CONFIG_FW_LOADER_USER_HELPER and all works fine
<mps> maybe there is problem in userspace somewhere
<nsklaus> shouldn't the "sound > 3.5mm jack" entry be checked too on the asahi task list on the wiki ?
<povik> for one it's not upstreamed
<nsklaus> hi povik, thanks for telling
<povik> don't know what the metric for that list is
<povik> hey nsklaus
<nsklaus> a quick question if i may ask, iirc the speaker on the mac mini works as i heard, how much different or difficult it is to support macbooks speakers ?
<nsklaus> is it more difficult because macbook have more than one speaker ?
<povik> there's some work to do exactly because it's more than one speaker
<nsklaus> whereas the mini have just have a small speaker, mostly there for the bootup jingle and things like that ? (not really there as true audio output device ?)
<povik> it's just as an audio output device as the speakers on macbooks, just because there's more than one speaker on the same underlying bus it needs some more handling
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<povik> i am working on it in parallel with general audio capture support
<povik> could be soon that the speakers work
<nsklaus> i see, that's great to hear
<as400[m]> povik, are you also planning to work on MBP 14" audio ?
<nsklaus> would you expect it to be difficult to redirect audio through bluetooth once support for bluetooth will land ?
<povik> (i know what needs to be done, at this time i am fighting the linux subsystems to do what i want them to do, preferably in a way upstream will be happy about)
<povik> nsklaus: bluetooth audio should work like it works anywhere else under linux
<povik> nothing m1-specific there
<povik> as400[m]: yes, among other reasons because i am typing this on a 14" mbp i would hope to run linux on one day
the_lanetly_052 has joined #asahi
<Glanzmann> mps: Did you rename the firmware files maybe during the troubleshooting?
<Glanzmann> mps: THe problem with the fw helper is that brcmfmac tries multiple files and the timeout is 1 minute or so. So it takes 15 minutes until some drivers are loaded. I saw that for wifi and for ethernet dongles on my system.
<mps> Glanzmann: no, I didn't renamed firmware, and in my case loading firmware is fast
the_lanetly_052 has quit [Ping timeout: 480 seconds]
<as400[m]> povik - thx for the info. I hope to run Linux properly on my mbp 14" too :)
<as400[m]> Unfortunately sound card nowadays is a must
<as400[m]> As much as I hate it - same with camera :(
<j`ey> use an external camera for now!
<as400[m]> j`ey - yes, I did consider external camera and sound card
<as400[m]> they are cheap in the end
<as400[m]> For work I also need chromium :( I'm cursed with MS Teams :(
<as400[m]> If chromium worked I would have already switched
<as400[m]> I must say these machines are really pleasant to interact with
<DmitrySboychakov[m]> is bluetooth working on m1?
<Glanzmann> DmitrySboychakov[m]: Nope.
<nsklaus> not yet is maybe better reply eventually ? :)
<nsklaus> it's planned on the task list and i certainly hope support will be implemented later on down the road
<j`ey> of course
<kettenis> don't hold your breath; the BT controller has a PCI underface
<kettenis> existing broadcom BT controllers have a USB or UART interface so a new driver wil need to be written
<j`ey> USB BT dongle to the rescue!
<as400[m]> Dongles all around :)
<ChaosPrincess> inb4 its just uart over pci
<nsklaus> "underface" that's the first time i hear this word
<nsklaus> ?
<kettenis> my typical skills leave something to be desired...
<nsklaus> 'typing skills" you mean ?
<nsklaus> are you using some sort of automatic spell checker/correcter maybe ?
<kettenis> I'm starting to wonder...
<povik> mental one maybe
<nsklaus> it's either that, or your finger are rebeling against your will ;)
<nsklaus> they try to oppose you
<nsklaus> be careful.. when leaving them unchecked .. see what happened to bruce campbell in evil dead
<nsklaus> i always watch mine closely under strict "rules" based system
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chadmed> the audio system on the 14" mbp is ridiculously good for what it is. i fear that there is some sort of evil array of multiple drivers with software defined crossovers and EQing to make it sound that good though
<chadmed> the A1708 definitely had a lot of that going on, it sounded like crap under linux (when you could make it work at all) and was mono only
<kettenis> ChaosPrincess: is it a standard NS16550 compatible UART?
<chadmed> inb4 is akin to like "i predict x will happen" so i think ChaosPrincess is just saying it would be really funny if it were just a bog standard UART over PCIe rather than confirming that as truth
<chadmed> it probably is something that stupid though, its broadcom :-P
<ChaosPrincess> kettenis: i just remember finding out that some pci cards i bought turned out to be asmedia usb controllers with the actual device attached to it
<chadmed> i do find it odd that broadcom would spin out a PCIe BT module specifically for these devices when seemingly none have existed so far
<sven> "Hi, we're Apple. We want a PCIe BT module for all of our new macbooks please"
<chadmed> yeah i was just about to say they would 100% just give apple whatever they ask for without question
<kettenis> 0x0010: BAR mem 64bit addr: 0x0000000000000000/0x00008000
<kettenis> 0x0018: BAR mem 64bit addr: 0x0000000000000000/0x00400000
<kettenis> a bit wide for just a single UART
<Glanzmann> ~.
ViniciusSantos[m] has joined #asahi
os0 has quit [Quit: The Lounge - https://thelounge.chat]
os has joined #asahi
kov has joined #asahi
jbowen has quit [Quit: Lost terminal]
the_lanetly_052 has joined #asahi
the_lanetly_052__ has joined #asahi
the_lanetly_052 has quit [Ping timeout: 480 seconds]
espo has joined #asahi
jbowen has joined #asahi
espo_ has joined #asahi
<newchima[m]> Glanzmann: there is a typo on the Debian wiki -- you have it as k,deb instead of k.deb in the Debian Installer section
le0n has quit [Quit: see you later, alligator]
le0n has joined #asahi
espo has quit [Ping timeout: 480 seconds]
rafaelmartins has quit [Quit: https://rgm.io/]
rafaelmartins has joined #asahi
<mixi> Glanzmann: you have both CONFIG_SND_SIMPLE_CARD=y and CONFIG_SND_SIMPLE_CARD=m in https://github.com/AsahiLinux/docs/wiki/DesktopKernel
MajorBiscuit has quit [Quit: WeeChat 3.3]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
espo_ has quit [Quit: Leaving]
tertu has quit [Read error: No route to host]
tertu has joined #asahi
tertu has quit [Read error: No route to host]
tertu has joined #asahi
<Glanzmann> newchima[m] / mixi: Thank you, I corrected both errors. Btw. the wiki can be edited by anyone using a github account. Just login to github go there and click the edit button on the top right.
<Glanzmann> So I have to do a recording of the livesystem install my favourite. :-)
malvo has quit [Ping timeout: 480 seconds]
<Glanzmann> Does someone know why wavemon does not pick up the wifi interface? wavemon: no supported wireless interfaces found! Check manpage for help.
<mps> Glanzmann: I think wavemon only knows for wext
<mps> Glanzmann: oh, I'm wrong
<mps> just installed it and it works
<Glanzmann> Probably another kernel module I'm missing.
<mps> nlmon?
<Glanzmann> I'm currently running wpa_supplicant, so no nlmon ...
<Glanzmann> povik: Just pastes a sound patch to -dev rebuild everything and uploaded it.
<Glanzmann> pasted*
mv_ has joined #asahi
<Glanzmann> If somone is using the 'k.deb'.
mv_ has quit []
<mps> Glanzmann: nlmon is wifi monitoring driver
<Glanzmann> Oh i see.
<Glanzmann> # CONFIG_NLMON is not set
<mps> that is issue probably
<mps> but maybe not and something else
<mps> I know it is needed for iwmon bin in iwd pkg
<Glanzmann> I see, thanks a lot.
<mps> np
<Glanzmann> mps: Btw. CONFIG_NLMON was not enough. And I'm back on iwd due to wpa_supplicant picking always 2GHZ band and taking 3 seconds on boot.
jx0 has joined #asahi
<mps> Glanzmann: rihgt, for test i did `rmmod nlmon` and started wavemon and it works, so something else is needed
<jannau> CONFIG_CFG80211_WEXT
<mps> not sure this is needed for brcmfmac
<mps> but who knows
<mps> I enabled it for drivers which uses wext and not nl800211
<Glanzmann> mps: I'll try right away and let you know.
<mps> Glanzmann: here is my config http://ix.io/3NpD
<Glanzmann> mps: Thanks.
<Glanzmann> povik: I updated my macos stub to 12.1 on the macbook air, afterwards I have no sound.
<povik> ah
<Glanzmann> povik: But I see the alsamixer, pavucontrol and the levels.
<povik> maybe i should update too
<Glanzmann> So everything looks good except that I have no sound.
<Glanzmann> I also tried your new 1ms patch.
<Glanzmann> And put it in the stable kernel ...
<Glanzmann> povik: I just rebooted to try the new kernel and the sound works.
<Glanzmann> I don't understand it.
<Glanzmann> mps: The second option you wrote me, was it. Now I have wavemon, thanks a lot.
<povik> Glanzmann: so on second boot of the same kernel it was okay
<Tramtris1> Been lurking in here for a while.. just want to say thank you for what you're all doing. I've never owned a Mac but because of this project I'm really considering it 🌅
<Glanzmann> povik: It was not the same kernel, I recompiled to include CONFIG_CFG80211_WEXT=y
<Glanzmann> But the same kernel tree and config except for that option.
<Glanzmann> povik: I'll reboot a few more times and let you know if I can see a pattern.
<Glanzmann> One difference is, that on the second boot the audiojack was already in while on the first it wasn't. Maybe that's it. I'll try.
<Glanzmann> This is on macbook air.
jx0 has quit []
<povik> weird there is no hint of something going wrong in the first dmesg you posted
<povik> okay let me know what you find
<Glanzmann> povik: Will do so.
<Glanzmann> Its not the jack putting in after boot. Now it works. I reboot a few more times.
<mps> Glanzmann: what is option to get wavemon to work
Tramtris1 is now known as Tramtrist
<Glanzmann> mps: CONFIG_CFG80211_WEXT=y
<mps> ah interesting
<mps> I feel we a lot of 'Heisenbergs solutions' ;)
<mps> s/we/we have/
qeeg_ has joined #asahi
qeeg has quit [Ping timeout: 480 seconds]
jx0 has joined #asahi
commandoline_ has quit [Quit: Bye!]
commandoline has joined #asahi
Techcable has quit [Ping timeout: 480 seconds]
jmr2 has joined #asahi
<jmr2> Anyone else seeing these one in a while in dmesg ? Related to https://github.com/AsahiLinux/m1n1/issues/101 ?
<jmr2> dwc3 502280000.usb: failed to send remote wakeup
<jmr2> dwc3 502280000.usb: wakeup failed --> -22