#
…

2021-12-25

00:08DarkShadow44 has quit [Ping timeout: 480 seconds]
00:26jevinskie[m]Merry Christmas! I made a thing with m1n1: standalone xnu kernel loading with builtin DT patching. Working on adding APFS support to kettenis’s u-boot so you don’t have to concatenate the XNU kernel to m1n1. :) https://mobile.twitter.com/jevinskie/status/1474533162608996352
00:30DarkShadow44 has joined #asahi
00:45tpw_rules has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:57nobodynada has joined #asahi
01:04aleasto has quit [Quit: Konversation terminated!]
01:12nobodynada has quit [Ping timeout: 480 seconds]
01:28Techcable has quit [Quit: ZNC - https://znc.in]
01:29Techcable has joined #asahi
02:11cth451_desktop has quit [Quit: Quitting]
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi
02:28DreamOtter has joined #asahi
02:48tpw_rules has joined #asahi
03:33yuyichao has joined #asahi
03:57phiologe has quit [Ping timeout: 480 seconds]
04:03DreamOtter has quit [Ping timeout: 480 seconds]
04:21marvin24 has joined #asahi
04:25marvin24_ has quit [Ping timeout: 480 seconds]
04:28DreamOtter has joined #asahi
04:36DreamOtter has quit [Ping timeout: 480 seconds]
05:05nobodynada has joined #asahi
05:19DreamOtter has joined #asahi
05:20GlanzmannNightRaven[m]: I updated the guide to include the right config. Also there is now a faster way to bootstrap. I incorporate that.
05:20GlanzmannSaves you the usb stick roundtrip.
05:27DreamOtter has quit [Ping timeout: 480 seconds]
05:37nobodynada has quit [Ping timeout: 480 seconds]
06:15Glanzmannmarcan: wifi take3 still does not work on air. Same behaviour. See the device, can assoicate, no traffic. If I find out the reason, I let you know.
06:16Glanzmannamw: I tried your kernel config. What software do you use for wifi? wpa_supplicant? Do you have a personal wpa3 hotspot?
07:29nobodynada has joined #asahi
07:46DreamOtter has joined #asahi
07:54DreamOtter has quit [Ping timeout: 480 seconds]
07:55DreamOtter has joined #asahi
08:03darkapex1 is now known as darkapex
08:20nobodynada has quit [Ping timeout: 480 seconds]
08:28yuyichao has quit [Ping timeout: 480 seconds]
08:29joske has joined #asahi
08:30joskeGlanzmann: wifi is working perfectly on my air
08:42Glanzmannjoske / amw / marcan: The issue with my wifi is that I lack the kernel support see: https://pbot.rmdir.de/e5Af1EW6W1ZguU4biXct4A
08:42GlanzmannSo this was pebkac all long. I'll use the debian default config and add the m1 specific options and hope that than I have finnaly all necessary kernel modules.
08:43Glanzmannjoske: Btw. I also still have a problem with the touchpad. It is detecting it as mouse. As a result I don't have the middle and right buttons and the scrolling: ttps://pbot.rmdir.de/oMpVkDPLl5qva8jHANfE3A
08:44Glanzmannmps: Thank you for pointing me to iwd, that way it was easy to debug. :-)
08:47joskeGlanzmann: it does not work with your config. I diffed many times with mps' config bit could not find what is the problem. I just used mps' config
08:52mpsjoske: and you changed PAGE_SIZE to 16K I presume
08:53mpsmy current config is here https://tpaste.us/0weE
08:54joskemps: his config has 4k pages, maybe that is the problem, I never changed that in his config
08:55mpsif it is 4K it will not work as jannau pointed yesterday
08:55mpsI mean, internal wifi will not work
08:58gabuscus has quit [Ping timeout: 480 seconds]
09:00caef^ has quit [Remote host closed the connection]
09:01martinstewart has joined #asahi
09:02gabuscus has joined #asahi
09:07DreamOtter has quit [Ping timeout: 480 seconds]
09:09DreamOtter has joined #asahi
09:09MajorBiscuit has joined #asahi
09:09martinstewart has quit [Ping timeout: 480 seconds]
09:13mpsdo M1 machines have DesignWare SPI controler/device, anyone knows
09:14j`eyit seems custom, but samsung derived
09:16mpshm, custom will not be easy to reverse engineered
09:16j`eySPI is already done
09:17j`eySPI is used by the keyboard/trackpad
09:17DreamOtter has quit [Ping timeout: 480 seconds]
09:18mpsj`ey: yes I know this but thought maybe there are some other devices on SPI bus
09:18DreamOtter has joined #asahi
09:19j`eythere's a (8MB?) flash with some of the firmware on spi too
09:19marcanand Touch ID, and the display TCON
09:19marcanthe SPI controller is done, there isn't really anything left to do there
09:20j`eyoh right 'mesa'
09:20j`eywhats TCON?
09:20marcanthe display panel controller
09:20marcan(on laptops)
09:20marcan(and imacs)
09:21j`ey(the only thing let to do with SPI is get it upstream :P)
09:24Dcow has joined #asahi
09:26DreamOtter has quit [Ping timeout: 480 seconds]
09:27DreamOtter has joined #asahi
09:31Glanzmannmps: Thank you.
09:35Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:35DreamOtter has quit [Ping timeout: 480 seconds]
09:36mpsGlanzmann: you are welcome
09:36DreamOtter has joined #asahi
09:38the_lanetly_052 has quit [Remote host closed the connection]
09:56n1c[m] has joined #asahi
10:10aleasto has joined #asahi
10:10off^ has joined #asahi
10:17Dcow has joined #asahi
10:17MajorBiscuit has quit [Ping timeout: 480 seconds]
10:24Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:30MajorBiscuit has joined #asahi
10:33MajorBiscuit has quit []
10:33MajorBiscuit has joined #asahi
10:33aleasto has quit [Quit: Konversation terminated!]
10:35aleasto has joined #asahi
10:40Arahael has joined #asahi
10:43DreamOtter has quit [Ping timeout: 480 seconds]
10:45DreamOtter has joined #asahi
10:51svenyeah, with 4K any pcie dma allocations will just fail
10:52sventhe patch set actually already works fine, it just needs a bit more work because the upstream IOMMU API has a slightly odd level of abstraction
10:53svenand it doesn’t have support for swiotlb for untrusted devices because that api unsurprisingly can’t align buffers to more than PAGE_SIZE
10:53DreamOtter has quit [Ping timeout: 480 seconds]
10:54svenbut that’s all doable. Just needs some more work :)
10:54DreamOtter has joined #asahi
10:56hckr has joined #asahi
10:58joske has quit [Read error: Connection reset by peer]
10:59joske has joined #asahi
11:02Major_Biscuit has joined #asahi
11:02DreamOtter has quit [Ping timeout: 480 seconds]
11:03DreamOtter has joined #asahi
11:04MajorBiscuit has quit [Ping timeout: 480 seconds]
11:07joske has quit [Ping timeout: 480 seconds]
11:08joske has joined #asahi
11:13marcansven: remind me again why pcie fails but platform works?
11:14svenbecause the pcie darts have no hardware bypass mode
11:15svenif you boot with 4K the usb darts are just forced to bypass mode
11:28hckr has quit [Quit: hckr]
11:32marcanah, it was just bypass, right
11:42svenyeah. and I don’t think I’d feel comfortable with the WiFi being in bypass mode anyway
11:43svenright now it’ll even see the entire pages of its buffers
11:44sveni’d prefer if it just goes through swiotlb or that subpage protection
11:44n1c has joined #asahi
12:28n1c_ has joined #asahi
12:29n1c_ has quit [Remote host closed the connection]
12:29n1c_ has joined #asahi
12:30n1c has left #asahi [WeeChat 3.4]
12:31n1c_ has quit [Remote host closed the connection]
12:31n1c has joined #asahi
12:35rando97 has joined #asahi
12:36rando97 has quit []
12:59joske has quit [Ping timeout: 480 seconds]
13:00joske has joined #asahi
13:09___nick___ has joined #asahi
13:10___nick___ has quit []
13:11___nick___ has joined #asahi
13:49yuyichao has joined #asahi
13:59Dcow_ has quit [Read error: Connection reset by peer]
13:59Dcow has joined #asahi
14:12n1c has quit [Quit: WeeChat 3.4]
14:14Dcow_ has joined #asahi
14:14martinstewart has joined #asahi
14:15martinstewart has quit [Remote host closed the connection]
14:18c10l2 is now known as c10l
14:45NicolasOury[m] has joined #asahi
15:05Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:09Dcow_ has joined #asahi
15:10joske has quit [Remote host closed the connection]
15:10aleasto has quit [Ping timeout: 480 seconds]
15:16DreamOtter has quit [Ping timeout: 480 seconds]
15:25c10l has quit [Quit: The Lounge - https://thelounge.chat]
15:26c10l has joined #asahi
15:53darkapex1 has joined #asahi
15:53c10l has quit [Quit: The Lounge - https://thelounge.chat]
15:59darkapex has quit [Ping timeout: 480 seconds]
16:02Glanzmannmps: With your kernel config I got the wireless running. Thank you again. Strange thing is I don't get it running using wpa-supplicant but iwd works a lot and I get why you prefer it. ;-)
16:08mpsGlanzmann: I think you should have '-Dnl80211' parameter for wpa_supplicant if you want to use it with brcmfmac
16:09c10l has joined #asahi
16:10Glanzmannmps: Normally I have but for this notebook I revereted back to a simple config. Maybe that's it. Let me try.
16:10mpsbut using wpa_s if you can use iwd is 'painful' imo
16:11Glanzmannmps: I agree. Also iwd told me that I'm too stupid compile a kernel and set what the problem is and it is indeed fast. I like it. I consider switching.
16:11mpsGlanzmann: you can use iwd with conman or NetworkManager if you need these gui front-ends
16:11Glanzmannmps: Btw. about the tocuhpad, which is finally working. I forgot to install the mtrack module.
16:11Glanzmannmps: I don't like NetworkManager and avoid wherever I can because it got to many times in my way.
16:12mpshmm, I don't have mtrack installed. is it better than libinput
16:12Glanzmannmps: Probably not, but I'm not sure. it is working for now but very sensitive and palm detection does not work that well.
16:12mpsah same as libinput then
16:13mpsI disabled touch to click
16:13mpsxinput -set-prop 'MacBook Force Touch trackpad' 'libinput Tapping Enabled' 0
16:14Glanzmannmps: The strange thing about libinput at least on debian bullseye it was detecting the trackpad as mouse and don't give me right and middle click.
16:15mpsGlanzmann: cat /etc/X11/xorg.conf.d/30-libinput.conf => https://tpaste.us/5n8M
16:15mpsthis is my libinput driver config for xorg
16:16mpsgoing to lunch, cul
16:18joske has joined #asahi
16:19Glanzmannmps: Thank you.
16:23DreamOtter has joined #asahi
16:39c10l has quit [Quit: The Lounge - https://thelounge.chat]
16:42c10l has joined #asahi
16:50DreamOtter has quit [Ping timeout: 480 seconds]
16:51c10l has quit [Quit: The Lounge - https://thelounge.chat]
16:51c10l has joined #asahi
16:52DreamOtter has joined #asahi
17:04Glanzmannmps: Thank you again for input
17:04Glanzmann.conf. That is much be
17:05Glanzmanntter. In the beginning it was not working. But that was because the xorg in 'Debain stable bullseye does not have an up2date libinput xorg driver'. Now with testing it is working.
17:06GlanzmannThe returns above were the enabled Tapping. :-)
17:10joske has quit [Quit: Quit]
17:14DreamOtter has quit [Ping timeout: 480 seconds]
17:40marcanpushed wifi/take5 with support for uploading TxCap blobs and WiFi calibration blobs. you need to update m1n1 (for the cal blob passthrough) and re-extract the firmware with the installer script (for the TxCap blobs)
17:40marcanI wonder if this will change WiFi performance for anyone
17:53c10l has quit [Quit: The Lounge - https://thelounge.chat]
17:53c10l has joined #asahi
17:54c10l has quit []
17:54c10l has joined #asahi
18:08mpsmarcan: how to measure performance? with iperf?
18:09mpsGlanzmann: you are welcome, and nice to hear that you fixed it
18:09marcanmps: no idea, no idea what changes you might expect :-)
18:09marcancould be range related, could only affect some bands/modes, etc
18:10marcan"just try stuff"
18:10mpsmarcan: ok
18:10GlanzmannI'll try it and report.
18:10j`eymarcan: must be 30 patches now..
18:11marcan33, apparently
18:11marcanit's going to be fun firing that off
18:11mpsok, will build it and test to see if there are differences, though it is quite good now
18:11marcanwhich I will soon, can I still say merry xmas in the cover letter if it's on the 26th? :p
18:12Glanzmannmps: Do you have any config that speeds up pointer speed? With 'mtrack' it was really sensitive. With libinput it is very slow. Something in the middle would be nice.
18:12j`ey26th is 'Boxing Day' in the UK
18:13mpsGlanzmann: I do with this in .xinitrc `xinput -set-prop 'MacBook Force Touch trackpad' 'libinput Accel Speed' 0.7`
18:14Glanzmannmps: Thank you. That is much better.
18:14armps: why not put that in xorg.conf.d?
18:17mpsar: laziness, I guess :)
18:19mpsar: jk, I have home dir which I run on different machines and set difference between machines in .xinitrc and this is one which differs on them
18:20c10l has quit [Quit: The Lounge - https://thelounge.chat]
18:23mpsso I simply rsync home from one machine to another and I switch to another and have same settings, touchpad/keyboard tweaks and other things
18:26Glanzmannmps: I also have an environmnt that I copy to all machines.
18:26Glanzmannmps: Btw. Do you have something for firefox settings, because that ones I always do manually.
18:28mpsGlanzmann: `sed -i 's/gtk-font-name = Cousine ./gtk-font-name Cousine = 8/' .config/gtk-3.0/settings.ini` is mostly enough for firefox
18:30mpsand this `echo 'Xft.dpi: 140' | xrdb -merge` for DPI change
18:31Glanzmannmps: I see. For the resolution I was happy I was thinking about all the other settings (basically I turn all crap off, blank start page, ublock origin, I don't care about cookies and delete entire history on startup)
18:31GlanzmannBtw. I also have the xft.dpi setting. :-)
18:32mpsmy $HOME/.mozilla is rsynced
18:33Glanzmannmps: I see. and that is enough, good to know.
18:34mpsyes, if you set DPI, icon size, cursor size and font size for gtk that is fine (for me) though not super perfect
18:35c10l has joined #asahi
18:35GlanzmannHave you tried, how long you can stay on battery with your macbook pro on Linux?
18:36mpsdidn't tested this yet
18:38mpsok, ready to install new m1n1 and test wifi5 branch
18:38mpstake5*
18:39GlanzmannOh I forgot to rebuild m1n1.
18:39GlanzmannBut it also works well with the old m1n1
18:41GlanzmannWhat is strange about the wifi is, I have a 5ghz access point on my desk right next to the macbook air, but it goes with 2ghz. Both are on the same SSID though.
18:51Glanzmannmarcan: About wifi and 5ghz. Any idea what this is about? https://pbot.rmdir.de/Nxc_s27mdeCnifUlobPEbw
18:51mpsmarcan: it looks somewhat faster with take5
18:52marcanGlanzmann: well 5000 is not a valid wifi channel, so of course that won't work?
18:52marcan5GHz starts at 5035 for the weird channels nobody uses, 5160 more commonly
18:52mpsmarcan: I can paste iperf result if you want to see
18:53marcanmps: probably won't be scientific anyway, but good to know it seems to be at least the same or better with this
18:53mpsthough 'iw wlan0 link' shows no change
18:54Glanzmannmps: I want to see it, please paste.
18:55Glanzmannmarcan: I see, 5035 and 5160 also do not work for me.
18:55mpsactually iperf shows nearly doubled speed
18:56mpsGlanzmann: https://tpaste.us/vgm5 ,first two are from take4 and last two are from take5
18:56mpsbut as marcan said this is not scientific test
18:57Glanzmannmps: I see, I get better numbers than that: https://pbot.rmdir.de/0P5qtG4Le0l6qxh5Umxv2Q First is upload, second download.
18:57Glanzmannmps: I see you also have only 2ghz. Any luck with 5ghz?
18:58Glanzmannmps: When I boot macos and hold down the option key while klicken on the wifi symbol top right, I see 1200 Mbps rate. When I measure on macos I get over 100 MB/s.
18:58mpsGlanzmann: no, didn't ever tried 5GHz, quite satisfied with 2
18:58marcan5G works perfectly fine for me on the m1 pro
18:59joske has joined #asahi
18:59Glanzmannmarcan: I see, strange.
19:00mpsGlanzmann: look at RoamThreshold5G param in 'man iwd.config'
19:04Glanzmannmps: I set the follwoing: /etc/iwd/main.conf Now I'm getting half a gbit/s.
19:04joske5GHz wifi saturates my broadband at 285 Mbps
19:06Glanzmannjoske: Currently only one device can utilize my external network bandwidth fully. Wifi 5 Ghz: https://pbot.rmdir.de/A-6ZXamkmHhBUhzkEXbPXg macos is 30 MB/s faster.
19:06joskeGlanzmann: well, it saturates my WAN connection so macOS can not be faster ;-)
19:06joskewill test LAN speed
19:08Glanzmannjoske: I got a dark fibre from German Telekom recently. They sell 1000 Mbit/s. At some point they noticed that this is more than 1 Gbit/s which is around 930 Mbit/s. So they now ship optical termination points with a 2.5 Gbit/s RJ45 interface. By using that I get slightly 110% of Gbit. So approx 128 MB/s IPv4 and 125 MB/s IPv6.
19:08GlanzmannThis is downspeed only. Uplink I get around 30 MB/s IPv4 which is more than the 200 Mbit/s they promise.
19:10c10l has quit [Quit: The Lounge - https://thelounge.chat]
19:11marcanspeedtest.net says about 170/200, which isn't bad for 5G with the AP one floor up
19:11Glanzmannmarcan: https://pbot.rmdir.de/jWw3BO--fqLptwFtS0JGAQ So I'm full speed. But something is slowing down. Because I know on macos I get 25MB/s more. But it is of course still more than I need.
19:12marcanit's a different IP stack and driver and it's very hard to do scientific tests of wifi
19:13joskeanyone know what's the status of sound on the m1 air?
19:14marcan> At some point they noticed that this is more than 1 Gbit/s which is around 930 Mbit/s. ????
19:14marcan1Gbit/s is 1000Mbit/s
19:14marcanthat's... how SI prefixes work
19:14marcanI'm confused
19:14Glanzmannmarcan: Yes, but there is overhead.
19:14c10l has joined #asahi
19:14Glanzmannmac, ip, tcp, preamble ...
19:14marcanoh, you mean TCP throughput vs wire speed
19:15marcananyway, I'm off to sleep
19:16Glanzmannmarcan: Have a good night sleep.
19:17GlanzmannThis is what I get on a 1 Gbit/s network: https://pbot.rmdir.de/dngslb7QzpvHF5wDz7K_DQ. This is what I get over my internet connection: https://pbot.rmdir.de/RAnZkoQccd-1RQ9rnwhYIQ
19:30aleasto has joined #asahi
19:30mpsdoes audio works on air
19:51Glanzmannmps: Not to my knowledge. But I think it is very close that the audio jack works. For the speakers is more work to do.
19:51Glanzmannmps: povik knows more. :-)
19:53joskewhen I add a new resolution and try to switch to it, macbook air locks up hard
19:53Glanzmannjoske: It is not yet supported.
19:54joskeclearly ;-)
19:54Glanzmannjoske: The dcp driver could do that. But it is currently not working.
19:54Glanzmannjoske: I assume that marcan will at some point write a new driver for m1n1.
19:54Glanzmannand the kernel.
19:54GlanzmannSo probably a modesetting driving.
19:55Glanzmannjoske: But there is an old tree with dcp from alyssa which worked for me on the mini. But it was a few roundtrips until it worked for me.
19:56joskeGlanzmann: no biggie, just testing out what works and what doesn't
19:56joskeit's clearly not yet daily driver material
19:57joskeeven for 'bleeding edge' people
19:57Glanzmannjoske: Now that wifi, keyboard and touchpard work. I could work with it.
19:57GlanzmannAnd I think mps works already quite a while with it.
19:58josketechnically, yes, you could, but no sound, no chrome, no resolution change (native is a bit too small), no poweroff, hassle to reboot etc
19:58GlanzmannAnd I just tested video performance. It is not perfect but for software rendering okay. I tried with mpv and a 1080p video.
19:58joskeif you want to develop for ARM64, it's great already I guess
19:59joskethe fastest ARM linux available by a long margin ;-)
20:00joskedoes external display work? I guess not yet
20:00Glanzmannjoske: A friend of mine bought a mini, put a linux vm on macos on it and uses it as gitlub runner for over a year now.
20:00mpsGlanzmann: yes, I use it as workstation for about 2-3 weeks, not perfect but quite fine
20:01Glanzmannjoske: No, external monitor does not work and requires a lot of work if I understood Alyssa correctly.
20:01joskeI'd figured so
20:01Glanzmannmps: I also worked the mini for a week or, was also good for me.
20:01joskeand suspend?
20:01joskeseems to do nothing for now
20:01GlanzmannNo way. But it boots very fast. :-)
20:01zimsneexh has quit [Remote host closed the connection]
20:02joske*if* you have another machine ;-)
20:02reillyeon has quit [Quit: The Lounge - https://thelounge.github.io]
20:02Glanzmann5 seconds to desktop.
20:02joskewell, about the same as my intel desktop
20:02Glanzmannjoske: Yes, but I assume marcan will tackle smc soon and than you no nolonger need a second machine.
20:02joskethe BIOS takes much longer to initialize than booting
20:02joskeI think it boots in less than 2 seconds
20:02Glanzmannjoske: Wow. What distribution do you use?
20:03joskei5 11600
20:03reillyeon has joined #asahi
20:03joskemanjaro on the intel and M1
20:06___nick___ has quit [Ping timeout: 480 seconds]
20:23c10l has quit [Quit: The Lounge - https://thelounge.chat]
20:23c10l has joined #asahi
20:28Techcable has quit [Quit: ZNC - https://znc.in]
20:43bdju has quit [Ping timeout: 480 seconds]
20:46bdju has joined #asahi
20:58alexjsteffen has joined #asahi
21:00alexjsteffen has quit []
21:02aleasto has quit [Ping timeout: 480 seconds]
21:24joske has quit [Ping timeout: 480 seconds]
23:50Major_Biscuit has quit []
23:50MajorBiscuit has joined #asahi
23:56DarkShadow44 has quit [Quit: ZNC - https://znc.in]
…