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>
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
<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]
<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
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.
<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' ;)