2021-12-19
00:11MajorBiscuit has quit [Quit: WeeChat 3.3]
00:18marcanj`ey: I'm bringing up support on a new chip; there's a good chance it works on the M1 chip just adding the IDs now
00:24nabaiste^ has quit [Ping timeout: 480 seconds]
01:06nabaiste^ has joined #asahi
01:09fionera[m]Hi y'all I finally got myself a m1 max today and made it boot a nixos install with the asahi kernel. I noticed that the system doesnt reset on shutdown and just halts, is that a known issue?
02:15Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:16Dcow has joined #asahi
02:22steffen[m]fionera: a watchdog driver is required for reboot. I don't know if that's in the asahi kernel branch yet. https://github.com/AsahiLinux/docs/wiki/HW:WDT
02:23fionera[m]steffen: I saw this commit and thought it was implemented :) https://github.com/AsahiLinux/linux/commit/389d64447cee1e5727e1acf70c0fd4bce9ab9c73
02:36Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:53riker77_ has joined #asahi
02:58riker77 has quit [Ping timeout: 480 seconds]
02:58riker77_ is now known as riker77
03:01darkapex1 has joined #asahi
03:06darkapex has quit [Ping timeout: 480 seconds]
03:41kov has quit [Quit: Coyote finally caught me]
04:02phiologe has quit [Ping timeout: 480 seconds]
04:23marcanj`ey: BCM4378 (the one in M1s) works perfectly fine with the work I did yesterday, just added the IDs and rambase
04:23marcanwell, at least as far as "ip link set wlan0 up"; haven't bothered trying a full install with wireless tools yet
04:27marvin24 has joined #asahi
04:28marcanpushed to asahi-installer, go to src/ and run python -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar
04:28marcanthis will be integrated into the installer itself later, right now it's just that part of the logic
04:29tpw_rulesis there any meaningful differences between the firwmare in the different OS versions?
04:30marvin24_ has quit [Ping timeout: 480 seconds]
04:32tpw_rulesoh, does the installer avoid downloading the whole ipsw and just get the central directory first?
04:34marcanwe're already downloading the whole 1GB recovery image part anyway, so the wifi firmware isn't anything extra
04:35marcanthis also means we don't need any staging space for the ipsw; everything is downloaded straight to the destination
04:53amarioguy has quit [Ping timeout: 480 seconds]
04:59nabaiste^ has quit [Ping timeout: 480 seconds]
05:25marcanah, actually, NVRAM wasn't being downloaded; with that added it fails... because apparently it *really* wants a macaddr entry in the nvram? heh
05:27marcanlooks like all but one of the standard linux-firmware nvram files have a default MAC burned in
05:28tpw_rulesit would also be good if you could have it sort the files before putting them in the tar, for reproducibility
05:32marcanwhich are largely identical as far as wifi, except the module name and antenna SKU will have to come from DMI or UEFI vars or something
05:32marcanI intend to work that out once the M1 stuff is done, so the same patch works for everyone
05:33tpw_rulesok. i don't think 9 megs is a problem but not carrying around the T2 ones might help reduce the number of versions of that tar
05:55tpw_rulesdoes idevicerestore work on m1 macs yet? can it recover from destruction of the NOR flash?
06:15Glanzmann has quit [Quit: EOF]
06:23long[m]thanks everyone for all that you do. I'm excited to get an M1 Mac sometime soon, but have a 2019 Macbook Air (2019 Intel) with a T2 chip in it. Am I understanding it correctly that with all the work that's being done for the M1 Mac's I'd be able to benefit from it on my Intel Macbook Air 2019 with a T2 chip in it? Sorry for the silly question, but a lot of this is waaay over my head.
06:24long[m]wanting to eventually get Linux properly working on that 2019 Macbook Air so it's not just sitting in a drawer lol
06:39marcanlong[m]: wifi yes, also keyboard/touchpad may improve (at least code-wise, not sure if anything users would notice)
06:40long[m]great! thank you marcan. I was debating selling it to aid in paying for the M1 Macbook Air
06:42chadmed has joined #asahi
07:12jannauthe updated touchpad driver will report pressure and we will probably figure out how to use the force touch actuator
07:18marcannot sure why the ramsize calculation that works for all the other chips doesn't work here
07:24marcandifferent bank sizes for chunks of RAM at the end; the calculation assumes a constant bank size
07:45chadmedjannau: you could probably just have it report to libinput as a gesture so that its user/DE configurable
07:48amarioguy has joined #asahi
07:48jannauthe pressure? that is already reported as pressure and libinput / user space may do with it what they want
07:49chadmednah i mean the force touch event, as i understand your msg that is registered by the touchpad independent of the pressure reporting
08:08amarioguy has quit [Ping timeout: 480 seconds]
08:33somdkls^ has joined #asahi
08:34marcan13:28:34 <@marcan> pushed to asahi-installer, go to src/ and run python -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar
08:35zimsneexhoh i read the tweet about it working fine on M1 and thought i'd try, guess i'll wait more then
08:36mpsmarcan: you mean this branch https://github.com/AsahiLinux/linux/commits/wifi-wip is not ready yet?
08:39zimsneexhI was just curious and thought I'd give it a try - I didn't expect it to be working flawlessly or anything of the sorts
08:41marcansure, but until we're at the point where it works properly for *me* and I've implemented everything that needs implementing there's no point in people trying it, because you're all just going to run into all the issues I already know about
08:44marcankettenis: I suspect there's a race condition somewhere, where the firmware comes up before the host has initialized something it needs to initialize, and crashes
08:47kettenis(I haven't spent a lot of time investigating that problem since it tries a 2nd time when the interface is brought up and that attempt almost always succeeds)
08:59MajorBiscuit has joined #asahi
09:16kov has joined #asahi
09:22NightRaven[m]@mps it works image2.gz thanks so much give me a Ping if you want be to try to any other .gz files
09:36chadmed has quit [Remote host closed the connection]
09:44chadmed has joined #asahi
09:46NightRaven[m]Hi I am stuck on something I have added a user but how can I add it to the login system
09:51mpsNightRaven[m]: well, I think I will build kernels next days as new things (drivers) are added (and improved or fixed)
09:52NightRaven[m]mps: Oh ok
09:56Glanzmann has joined #asahi
09:58chadmedi had planned on working on something for artix and gentoo while i have some time off but my 14" is still in processing and isnt due to ship until im meant to be on a sailing trip :(
09:59chadmedhopefully i have some time toward the end of jan to have a look at it before uni starts again
09:59NightRaven[m]mps: I found something when you do reboot it work but when you try to shutdown it gets stuck
09:59* NightRaven[m]uploaded an image: (187KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/lZubiMiPvfRNlEKyfwQVDwLH/20211219_095947_2299587024576757500.jpg >
10:00NightRaven[m]Oh ok
10:00mpsbesides all works I do, I'm nominated by alpine to get one SBC from RISC-V foundation to add/improve alpine on riscv64
10:03NightRaven[m]Oh ok makes sense
10:03Glanzmannmps: My idea was the following, boot to 1tr, use the asahi installer to get the sub partition, create a partition and curl | gunzip | dd a minimum debian installation on the block device. And supply a boot chain that can boot of that netboot image.
10:05MajorBiscuit has quit [Ping timeout: 480 seconds]
10:07mpsGlanzmann: well, that could be long-term solution ofc. for now I thinking about creating installation on usb (maybe with u-boot) and instructions how to 'move' it to nvme
10:07GlanzmannGlanzmann: I assume marcan will end up doing something similiar but much more furbished and safe in the installer in the end.
10:08Glanzmannmps: I see, but I see so many people wanting to try it out in here but struggeling. So I thought about how to make it as fast and easy as possible.
10:08svenyeah, it doesn't really help anyone at this point if unexperienced end users are struggling to get something to work that they won't be happy with anyway
10:09GlanzmannAnd to be honest, if I have not done an installation recently I take 2 hours to install Linux on a mac, because I forgot how the asahi installer works and I forget that I need to boot to 1tr to create an empty partition to use, etc ...
10:10Glanzmannsven: For me nvme never paniced on the mini and worked several days with it, but i keep that in mind.
10:11Glanzmannsven: I read that and can imagine it, but it never happened to me. How did you trigger that behaviour?
10:12GlanzmannProbably. I did a lot of I/O testing also with concurrent I/O, debootstrapped, install hundreds of packages and used it to work with it 12 hours a day ...
10:12egavinc has quit [Quit: Leaving]
10:13GlanzmannOnly thing that gets on my nerves is the bad random 4k performance, but 'eaymydata' is my friend and than it is fucking fast obviously. But after reading the backlog from sven in -dev I got an idea how fucking complicated this nvme on m1 is.
10:14Glanzmannmps: Me, too. I also do not reboot unless I want to try a new kernel. So I had already uptime with 7 days and longer. And currently my mini has 2 days uptime ...
10:14Glanzmannsven: I know, I'm not complaining. I'm just telling you how fucking good it works. :-)
10:15Glanzmannmps: I have no state on my workstations that is not somewhere else, so I don't care if I loose all data on my workstation (mostly git repositories).
10:15GlanzmannBut I never lost anything. Only stupid thing I did is deleting 1tr and wondering why macos was no longer able to apply updates. But marcan talked me through a complete device restore using a second mac, which worked after 3 to 4 retries.
10:17Glanzmannmps: I recently bought a wifi-6 access point from tp (EAP660). This thing has a 2.5 GBit/s port. But funny thing is that it give me more throughput when I connect it on a 1 Gbit/s port. Only like 5-10% more.
10:23Glanzmannsven: I just checked, the mini did not give me issues since 27th Sep with the various versions of the NVMe driver. https://pbot.rmdir.de/OxO-xhIPosnjYlIHQSiYbg
10:25aleasto has joined #asahi
10:25sventhere will be a time where testing like this will be incredibly helpful, but right now i already know that the driver has issues and that i've essentially rewritten it anyway
10:26Glanzmannsven: Btw. is there an easy way to tell Linux to never flush the cache or do I need to change the kernel, if I don't want to flush the cache on a sync?
10:42landscape15[m]<tpw_rules> "landscape15: did you ever get..." <- I didn’t tried yet. I’ll give a feedback if it works ;)
10:53gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:54gabuscus has joined #asahi
11:04amarioguy has joined #asahi
11:08Glanzmannmps: Have you tried this tree? https://github.com/pipcet/linux/commits/pearl The commits from the last 24 hours sound promising. :-)
11:09dottedmagAn interesting twist: Apple produces so few variants of the computers, and the hardware between variants is so similar that user-testing is of way lesser importance than on PC platform. There are just not many variants to test.
11:09j`eyso my suggestion is to not use that, or if you do, at least dont report any issues or whatever here!
11:12landscape15[m]mps: honestly I would have set a stricter license for asahi (not MIT)
11:16___nick___ has joined #asahi
11:16___nick___ has quit []
11:18___nick___ has joined #asahi
11:24MajorBiscuit has joined #asahi
11:24amarioguy has quit [Ping timeout: 480 seconds]
11:35darkapex2 has joined #asahi
11:40darkapex1 has quit [Ping timeout: 480 seconds]
12:16Dcow has joined #asahi
12:25m42uko has quit [Quit: Leaving.]
12:25m42uko has joined #asahi
12:38Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:38fionera[m]<tpw_rules> "and it works fine in nixos on..." <- I try to build the kernel in nixos itself rn and then keyboard doesnt work anymore. tho the manually build one works. So its probably smth with the config. I didnt try reboot yet, let me see
12:44jannaufionera[m]: keyboard/tp need CONFIG_SPI_HID_APPLE, CONFIG_HID_APPLE, CONFIG_HID_MAGICMOUSE
12:46MajorBiscuit has quit [Ping timeout: 480 seconds]
12:48Dcow has joined #asahi
12:50fionera[m]<jannau> "fionera: keyboard/tp need CONFIG..." <- Yeah I made a derivation that uses the recommended config from the wiki but smh that doesnt work
12:51fionera[m]j`ey: It works for me with that tho
12:52fionera[m]https://raw.githubusercontent.com/amworsley/asahi-wiki/main/images/config-keyboard+nvme
12:53MajorBiscuit has joined #asahi
12:59Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:05aleasto has quit [Remote host closed the connection]
13:11JamesTaylor[m] has joined #asahi
13:15MajorBiscuit has quit [Ping timeout: 480 seconds]
13:16MajorBiscuit has joined #asahi
13:20somdkls^ has quit [Remote host closed the connection]
13:21amarioguy has joined #asahi
13:53chadmed has quit [Remote host closed the connection]
14:02n1c has joined #asahi
14:03dsrt^ has joined #asahi
14:45egavinc has joined #asahi
15:29Dcow has joined #asahi
15:34DcowI've always thought that bluetooth will came with wifi, since it's the same chip... could you give us some light on the bluetooth plans?
15:49leah2 has quit [Remote host closed the connection]
15:51leah2 has joined #asahi
16:08leo60228 has quit [Ping timeout: 480 seconds]
16:39SamAdams[m]Have we consulted with this person regarding wifi drivers on Mac OS/Linux? They are doing the same thing, but reverse, transforming Linux wifi drivers to Mac OS. We have the Mac OS Wifi drivers and need to bring them to Linux.
16:54egavinc has quit [Quit: Leaving]
17:11chengsun has joined #asahi
17:35Fruit has left #asahi [#asahi]
17:54Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:19Dcow has joined #asahi
18:31Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:33Dcow has joined #asahi
19:06mpsGlanzmann: I looked at pipcet kernel few months ago and talked with him in private but decided to not play with because I want to follow that what will be upstreamed
19:07mpslandscape15[m]: what you mean with 'stricter license for asahi'? I didn't set any licence and I don't work on asahi project. did you meant to send msg to someone else?
19:15Glanzmannmps: Since you're using Linux on an m1 laptop, do you have anything to adopt the backlight or turn it off?
19:16mavericks has joined #asahi
19:20landscape15[m]mps: sorry, I meant the official asahi repo.
19:21darkapex3 has joined #asahi
19:28darkapex2 has quit [Ping timeout: 480 seconds]
19:31Glanzmann has quit [Quit: EOF]
19:34n1c has left #asahi [#asahi]
20:01Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:01leo60228 has joined #asahi
20:11gladiac is now known as Guest8870
20:11gladiac has joined #asahi
20:17Guest8870 has quit [Ping timeout: 480 seconds]
20:18Dcow has joined #asahi
21:05MajorBiscuit has quit [Quit: WeeChat 3.3]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:44fionera[m]is it known that atleast on the m1 max the usb gadged is kinda flaky and fails to init hpm0?
21:47fionera[m]it doesnt happen if I dont have a cable in the machine while booting but its very very flaky and even without touching anything it stops working
21:49fionera[m]right now I cant get it to work at all :/ but I dont know why yet
21:57Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:59Dcow has joined #asahi
22:08fionera[m]I dont boot at all :( I have to reboot m1n1 until it doesnt happen
22:08fionera[m]manually ofc
22:13fionera[m]oh now it happend on hpm2. (/me is now actively watching it)
22:54jannauI can't reproduce with vf2eac15 but I feel your pain. rebooting m1n1 through long pressing power is annoying
22:56jannaufionera[m]: I don't think the hpm init should be affected by a bad cable but have you tried with a different cable or can easily try?
22:56fionera[m]I sadly dont have a reliable way to reproduce it yet since I also dont have a clue how to fix. It fixed itself either by time or switching cables
22:57fionera[m]the cable is the official nintendo switch cable so i dont think its bad quality
22:59Latrina has quit [Quit: Powered by AlpineLinux under the supervision of Docker.]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:00Latrina has joined #asahi
23:01yrlf has joined #asahi
23:42el_mugroso has joined #asahi
23:44el_mugroso has quit []
23:44el_mugroso has joined #asahi
23:47el_mugroso has quit []