#
…

2022-01-28

00:17chadmed has joined #asahi
00:35yuyichao_ has joined #asahi
00:42tpw_ruleswhy did you install xcode?
00:44chadmedyou dont need all of xcode, just the command line tools
00:44chadmedwhich you can make macos prompt you to install by trying to run git or make from the terminal
00:44tpw_ruleswhy do you need those?
00:44tpw_rulesxcode-select --install is the official way
00:44tpw_rulesif you need the command line tools
00:45psykoseall the methods are the same, you get the same tools
00:45chadmedgit is three characters, xcode-select --install is more than that
00:45tpw_rulesyeah but it doesn't work if you've installed git some other way
00:46chadmedthats true, though if youre setting up a macos dev environment for the first time you probably havent done this
00:56linearcannon has quit [Read error: Connection reset by peer]
01:15chadmed has quit [Quit: Konversation terminated!]
01:17chadmed has joined #asahi
01:30Tramtris1 has joined #asahi
01:31pFalken has quit [Ping timeout: 480 seconds]
01:41ciggi has quit [Read error: Connection reset by peer]
01:42pFalken has joined #asahi
01:45dsrt^ has quit [Ping timeout: 480 seconds]
02:04tomtastic_ has joined #asahi
02:09tomtastic has quit [Ping timeout: 480 seconds]
03:06PhilippvK has joined #asahi
03:07linearcannon has joined #asahi
03:23nyx_o has joined #asahi
04:40BenPetterborg[m] has joined #asahi
06:47the_lanetly_052 has joined #asahi
06:55le0n has quit [Quit: see you later, alligator]
07:08jhns0n has quit []
07:09eroux has joined #asahi
07:19Glanzmannchadmed: You just run git or pythoin3 and get a pop-up in macos to install xcode.
07:19Glanzmannchadmed: Personally I always use macports.org
07:22Glanzmannamw: 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.
07:48amwGlanzmann: I'm pretty happy with my stable at the moment - so probably leave it until I'm forced to move :-)
07:48amwYou could add a note about your experience ?
07:49Glanzmannamw: The touchpad in xorg does not work on my macbook air.
07:49Glanzmannamw: Which m1 device do you have and what does your xorg config look like?
07:50amwi have an air - 2020 model
07:50GlanzmannSo same as me.
07:50Glanzmannamw: Could you pase me the output of your xorg and any configuration you have done regarding xorg?
07:50amwmy touch pad works - too well - a bit sensitive but I haven't found a way to tweak it yet
07:52Glanzmannamw: 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.
07:53Glanzmannamw: 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.
07:56amwI'm not sure what you want - here's my X11 log (chopped down of repeats) https://paste.debian.net/1228662/
07:57amwYou can probably see I plug in a USB mouse at the moment
08:01Glanzmannamw: 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.
08:01GlanzmannProbably I'll make a Debian livesystem for stable and try it.
08:02ChaosPrincessamw: u-boot?
08:03ChaosPrincessalso are you using kernel build from the asahi branch
08:06bpye has quit [Quit: The Lounge - https://thelounge.chat]
08:06amwChaosPrincess: 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
08:07amwI used the wifi/take5 Asahi Linux so I get the wlan0 appearing which runs very well with the firmware extracted from the MacOS
08:08ChaosPrincessok, so, 1. do not use wifi/take5, use asahi tip
08:08ChaosPrincess2. that branch does not mix all that well with u-boot, the spi is broken then, there is a patch floating around
08:09ChaosPrincessgrab the last two commits from there and apply them to asahi https://github.com/jannau/linux/commits/bits/090-spi-hid
08:10chadmedfwiw wayland works oob with simpledrm on my machine and the internal kb/touchpad via libinput. obv then xwayland also works fine
08:11bpye has joined #asahi
08:11amwChaosPrincess: 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)
08:13amwI assume you are talking about more recent versions of things. I think I will stay here until there is a significant functionality increment ... :-)
08:14ChaosPrincesssound now works, but idk where those patches are
08:19ChaosPrincess has quit [Quit: WeeChat 3.4]
08:19ChaosPrincess has joined #asahi
08:21MajorBiscuit has joined #asahi
08:27le0n has joined #asahi
09:07dsrt^ has joined #asahi
09:13littledust3403[m] is now known as MarxLandRover[m]
09:16MarxLandRover[m] is now known as NotHere[m]
09:23dsrt^ has quit [Ping timeout: 480 seconds]
09:29GlanzmannOn top of asahi.
09:29GlanzmannI maintain the desktopkernel from now on, you can bookmark it if you want.
09:42as400[m]Hey guys - wasn't here for some time. What are the breaking news ? :)
09:51mpsGlanzmann: 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
09:51mpsmaybe there is problem in userspace somewhere
09:52nsklausshouldn't the "sound > 3.5mm jack" entry be checked too on the asahi task list on the wiki ?
09:52povikfor one it's not upstreamed
09:53nsklaushi povik, thanks for telling
09:53povikdon't know what the metric for that list is
09:53povikhey nsklaus
09:54nsklausa 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 ?
09:55nsklausis it more difficult because macbook have more than one speaker ?
09:56povikthere's some work to do exactly because it's more than one speaker
09:56nsklauswhereas 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 ?)
09:57povikit'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
09:58the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:59poviki am working on it in parallel with general audio capture support
09:59povikcould be soon that the speakers work
09:59nsklausi see, that's great to hear
10:00as400[m]povik, are you also planning to work on MBP 14" audio ?
10:00nsklauswould you expect it to be difficult to redirect audio through bluetooth once support for bluetooth will land ?
10:01povik(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)
10:01poviknsklaus: bluetooth audio should work like it works anywhere else under linux
10:01poviknothing m1-specific there
10:02povikas400[m]: yes, among other reasons because i am typing this on a 14" mbp i would hope to run linux on one day
10:04the_lanetly_052 has joined #asahi
10:05Glanzmannmps: Did you rename the firmware files maybe during the troubleshooting?
10:06Glanzmannmps: 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.
10:12mpsGlanzmann: no, I didn't renamed firmware, and in my case loading firmware is fast
10:13the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:31as400[m]povik - thx for the info. I hope to run Linux properly on my mbp 14" too :)
10:31as400[m]Unfortunately sound card nowadays is a must
10:32as400[m]As much as I hate it - same with camera :(
10:32j`eyuse an external camera for now!
10:33as400[m]j`ey - yes, I did consider external camera and sound card
10:33as400[m]they are cheap in the end
10:34as400[m]For work I also need chromium :( I'm cursed with MS Teams :(
10:34as400[m]If chromium worked I would have already switched
10:35as400[m]I must say these machines are really pleasant to interact with
10:38DmitrySboychakov[m]is bluetooth working on m1?
10:43GlanzmannDmitrySboychakov[m]: Nope.
10:49nsklausnot yet is maybe better reply eventually ? :)
10:53nsklausit's planned on the task list and i certainly hope support will be implemented later on down the road
10:53j`eyof course
10:57kettenisdon't hold your breath; the BT controller has a PCI underface
10:58kettenisexisting broadcom BT controllers have a USB or UART interface so a new driver wil need to be written
10:58j`eyUSB BT dongle to the rescue!
10:59as400[m]Dongles all around :)
11:04ChaosPrincessinb4 its just uart over pci
11:14nsklaus"underface" that's the first time i hear this word
11:15kettenismy typical skills leave something to be desired...
11:15nsklaus'typing skills" you mean ?
11:16nsklausare you using some sort of automatic spell checker/correcter maybe ?
11:16kettenisI'm starting to wonder...
11:16povikmental one maybe
11:16nsklausit's either that, or your finger are rebeling against your will ;)
11:17nsklausthey try to oppose you
11:18nsklausbe careful.. when leaving them unchecked .. see what happened to bruce campbell in evil dead
11:19nsklausi always watch mine closely under strict "rules" based system
11:32eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:46chadmedthe 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
11:47chadmedthe 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
11:48kettenisChaosPrincess: is it a standard NS16550 compatible UART?
11:49chadmedinb4 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
11:49chadmedit probably is something that stupid though, its broadcom :-P
11:50ChaosPrincesskettenis: 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
11:53chadmedi do find it odd that broadcom would spin out a PCIe BT module specifically for these devices when seemingly none have existed so far
11:55sven"Hi, we're Apple. We want a PCIe BT module for all of our new macbooks please"
11:56chadmedyeah i was just about to say they would 100% just give apple whatever they ask for without question
11:58kettenis0x0010: BAR mem 64bit addr: 0x0000000000000000/0x00008000
11:58kettenis0x0018: BAR mem 64bit addr: 0x0000000000000000/0x00400000
11:59kettenisa bit wide for just a single UART
12:42ViniciusSantos[m] has joined #asahi
13:04os0 has quit [Quit: The Lounge - https://thelounge.chat]
13:05os has joined #asahi
14:01kov has joined #asahi
15:09jbowen has quit [Quit: Lost terminal]
15:48the_lanetly_052 has joined #asahi
15:55the_lanetly_052__ has joined #asahi
16:01the_lanetly_052 has quit [Ping timeout: 480 seconds]
16:19espo has joined #asahi
16:45jbowen has joined #asahi
16:57espo_ has joined #asahi
16:57newchima[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
16:58le0n has quit [Quit: see you later, alligator]
16:59le0n has joined #asahi
17:04espo has quit [Ping timeout: 480 seconds]
17:21rafaelmartins has quit [Quit: https://rgm.io/]
17:21rafaelmartins has joined #asahi
17:35mixiGlanzmann: you have both CONFIG_SND_SIMPLE_CARD=y and CONFIG_SND_SIMPLE_CARD=m in https://github.com/AsahiLinux/docs/wiki/DesktopKernel
18:03MajorBiscuit has quit [Quit: WeeChat 3.3]
18:05the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:23espo_ has quit [Quit: Leaving]
18:31tertu has quit [Read error: No route to host]
18:31tertu has joined #asahi
18:52tertu has quit [Read error: No route to host]
18:53tertu has joined #asahi
19:33Glanzmannnewchima[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.
19:34GlanzmannSo I have to do a recording of the livesystem install my favourite. :-)
19:37malvo has quit [Ping timeout: 480 seconds]
19:43GlanzmannDoes someone know why wavemon does not pick up the wifi interface? wavemon: no supported wireless interfaces found! Check manpage for help.
19:45mpsGlanzmann: I think wavemon only knows for wext
19:46mpsGlanzmann: oh, I'm wrong
19:46mpsjust installed it and it works
19:47GlanzmannProbably another kernel module I'm missing.
19:47mpsnlmon?
19:50GlanzmannI'm currently running wpa_supplicant, so no nlmon ...
19:50Glanzmannpovik: Just pastes a sound patch to -dev rebuild everything and uploaded it.
19:50mv_ has joined #asahi
19:51GlanzmannIf somone is using the 'k.deb'.
19:51mv_ has quit []
19:51mpsGlanzmann: nlmon is wifi monitoring driver
19:52Glanzmann# CONFIG_NLMON is not set
19:52mpsthat is issue probably
19:53mpsbut maybe not and something else
19:53mpsI know it is needed for iwmon bin in iwd pkg
19:55GlanzmannI see, thanks a lot.
20:54Glanzmannmps: 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.
20:56jx0 has joined #asahi
21:00mpsGlanzmann: rihgt, for test i did `rmmod nlmon` and started wavemon and it works, so something else is needed
21:04jannauCONFIG_CFG80211_WEXT
21:06mpsnot sure this is needed for brcmfmac
21:06mpsbut who knows
21:06mpsI enabled it for drivers which uses wext and not nl800211
21:09Glanzmannmps: I'll try right away and let you know.
21:11mpsGlanzmann: here is my config http://ix.io/3NpD
21:12Glanzmannmps: Thanks.
21:13Glanzmannpovik: I updated my macos stub to 12.1 on the macbook air, afterwards I have no sound.
21:13Glanzmannpovik: But I see the alsamixer, pavucontrol and the levels.
21:13povikmaybe i should update too
21:13GlanzmannSo everything looks good except that I have no sound.
21:14GlanzmannI also tried your new 1ms patch.
21:14GlanzmannAnd put it in the stable kernel ...
21:16Glanzmannpovik: I just rebooted to try the new kernel and the sound works.
21:16GlanzmannI don't understand it.
21:16Glanzmannmps: The second option you wrote me, was it. Now I have wavemon, thanks a lot.
21:18povikGlanzmann: so on second boot of the same kernel it was okay
21:18Tramtris1Been 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 🌅
21:19Glanzmannpovik: It was not the same kernel, I recompiled to include CONFIG_CFG80211_WEXT=y
21:20GlanzmannBut the same kernel tree and config except for that option.
21:20Glanzmannpovik: I'll reboot a few more times and let you know if I can see a pattern.
21:21GlanzmannOne 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.
21:21GlanzmannThis is on macbook air.
21:22jx0 has quit []
21:22povikweird there is no hint of something going wrong in the first dmesg you posted
21:22povikokay let me know what you find
21:23Glanzmannpovik: Will do so.
21:27GlanzmannIts not the jack putting in after boot. Now it works. I reboot a few more times.
21:28mpsGlanzmann: what is option to get wavemon to work
21:28Tramtris1 is now known as Tramtrist
21:28Glanzmannmps: CONFIG_CFG80211_WEXT=y
21:29mpsah interesting
21:29mpsI feel we a lot of 'Heisenbergs solutions' ;)
21:29mpss/we/we have/
22:16qeeg_ has joined #asahi
22:22qeeg has quit [Ping timeout: 480 seconds]
22:48jx0 has joined #asahi
23:08commandoline_ has quit [Quit: Bye!]
23:08commandoline has joined #asahi
23:31Techcable has quit [Ping timeout: 480 seconds]
23:36jmr2 has joined #asahi
23:36jmr2Anyone else seeing these one in a while in dmesg ? Related to https://github.com/AsahiLinux/m1n1/issues/101 ?
23:37jmr2dwc3 502280000.usb: failed to send remote wakeup
23:37jmr2dwc3 502280000.usb: wakeup failed --> -22
…