2022-03-15
00:07mrkajetanp has quit [Ping timeout: 480 seconds]
00:10yuyichao has quit [Ping timeout: 480 seconds]
00:16al3xtjames3 has joined #asahi
00:16al3xtjames has quit [Read error: Connection reset by peer]
00:16al3xtjames3 is now known as al3xtjames
00:33hendry has quit [Quit: WeeChat 3.4]
00:33hendry has joined #asahi
00:44zamadatix has joined #asahi
00:48zamadatixIs uninstall to do a clean slate re-install as simple as clearing out the volume or are there more steps to do it properly?
00:50tpw_ruleszamadatix: https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md#nixos-uninstallation
01:13mrkajetanp has joined #asahi
01:17zamadatix has quit [Quit: Page closed]
01:19damien_vancouver has joined #asahi
01:34creechy has quit [Remote host closed the connection]
01:35creechy has joined #asahi
01:56creechy has quit [Ping timeout: 480 seconds]
01:59hizon has joined #asahi
02:11creechy has joined #asahi
02:19yuyichao has joined #asahi
02:19creechy has quit [Ping timeout: 480 seconds]
02:47creechy has joined #asahi
02:50kreechy has joined #asahi
02:54catlover999[m] has joined #asahi
02:55creechy has quit [Ping timeout: 480 seconds]
03:00riker77_ has joined #asahi
03:02riker77 has quit [Ping timeout: 480 seconds]
03:02riker77_ is now known as riker77
03:20phiologe has joined #asahi
03:23PhilippvK has quit [Ping timeout: 480 seconds]
03:29kreechy has quit [Quit: WeeChat 3.4]
04:05kov has quit [Quit: Coyote finally caught me]
04:05kov has joined #asahi
04:16jochum_ has joined #asahi
04:18jochum has quit [Ping timeout: 480 seconds]
04:20marvin24_ has joined #asahi
04:24marvin24 has quit [Ping timeout: 480 seconds]
05:09bluetail[m]chadmed: The DSP will only apply to the internal speakers, right? If I were to use a interface, it wouldn't receive the changes, right?
05:23marcaneither way the way this is done now isn't likely to be the way we actually do it in the long term
05:25chadmedi mean all that really needs to change is for pipewire and wireplumber to actually provide features we need, like hiding an interface
05:26chadmedi dont see an issue long-term with the architecture of this setup other than its not totally seamless to the end user, which again is just pipewire/wireplumber lacking features
05:28chadmedi watched the entirety of kiagiadakis's presentation on managing streams via wireplumber scripts and nothing it can do is really what we want which really sucks
05:58gladiac has joined #asahi
06:13the_lanetly_052 has joined #asahi
06:34the_lanetly_052 has quit [Ping timeout: 480 seconds]
07:27marcanand ideally the DSP description should be somewhat decoupled from that single sound system
07:27marcanthe problem we're trying to solve here isn't "decent audio for macbooks", it's "linux still doesn't have any kind of database/configuration system for speaker DSP at all"
07:47bluetail[m]It’s a privilege to converse with you all. Love you.
07:53tmlindmps: i configured my m1 air lid open/close with the busybox acpi scripts along what pmos does for n900 slider, see the files at http://muru.com/linux/m1/etc/
07:55tmlindnot sure what's the best way to deal with this for other distros that don't use busybox acpid
08:01MajorBiscuit has joined #asahi
08:14mpstmlind: yes, that is how I do set events handlers for different things on my machines, and I think it is right method for busybox acpid
08:18mpstmlind: other (non busybox based) distros uses acpid2 package, and it is added in alpine few months ago (so also in postmarketOS) so it can be also used but the config is different
08:21mpson alpine busybox acpid applet is symlink to busybox and it is started by default after alpine is installed with setup-alpine
08:26mpstmlind: I started writing guide about using acpi.map and scripts about events handling with BB acpid about year ago but didn't finished yet
08:46ChaosPrincess has joined #asahi
08:47OwOwA has joined #asahi
09:26firefox317tmlind, nope its controlled by the dcp, if you are talking about the backlight of the screen
09:29firefox317tmlind, yep so thats controlled by the dcp. We do have an initial driver for dcp written by alaysa and jannau, so it might not be to hard to add the required functionality
09:29Major_Biscuit has joined #asahi
09:30tmlindfirefox317: ok, additionally to dcp, i guess it could be there is some lcd bridge chip or i2c device too with pwm and dcp only controls the gpio for the bridge?
09:34bluetail[m]Is it possible to automatically connect to Bluetooth devices once they are visible? On macOS itself it isn’t, only through Automator.
09:34bluetail[m]but given bt isn’t yet supported…
09:34bluetail[m]I know. But would it be technically possible?
09:35MajorBiscuit has quit [Ping timeout: 480 seconds]
09:35bluetail[m]scenario is pretty straightforward. Capturing MIDI
09:36bluetail[m]It isn’t possible
09:36bluetail[m]you have to have Ministudio open and click a connect button each time and once connected leave the device on always
09:36bluetail[m]its stupid
09:37bluetail[m]midi studio *
09:40OwOwA has quit [Ping timeout: 480 seconds]
09:42bluetail[m]They do? Perhaps this only applies to non audio devices like MIDI KEYBOARDS
09:43firefox317tmlind, yeah that might be the case indeed. The only interface we can see is the dcp, so how it actually controls the backlight is a black box and also doesnt matter anyway
09:43bluetail[m]My Roland fp30 can’t connect to a device itself. Instead another device has to connect to it for comms
09:46bluetail[m]j`ey: A Thomann.de salesperson probably will tell me I would require to instead use the usb cable or get some weird usb device that allows to be programmed to auto connect the bit midi itself and transmits to the Mac.
09:47bluetail[m]that isn’t an option cause the Mac is 6m away. I know I could also hide a raspberry nearby but it would mean more clutter
09:50sheepgoose_ has quit [Ping timeout: 480 seconds]
10:08kameks has joined #asahi
10:40myon9821 has joined #asahi
10:41myon98 has quit [Ping timeout: 480 seconds]
10:42chadmed has quit [Ping timeout: 480 seconds]
10:52chadmed has joined #asahi
11:23PaterTemporalis has joined #asahi
11:26shenki has joined #asahi
11:29hizon has quit [Remote host closed the connection]
12:23jn has quit [Read error: Connection reset by peer]
12:24jn has joined #asahi
12:37apg has joined #asahi
13:14apg has quit [Quit: Leaving]
13:41zopieux has quit [Ping timeout: 480 seconds]
13:42yuyichao has quit [Ping timeout: 480 seconds]
13:43zopieux has joined #asahi
13:55matthewayers[m]chadmed: the readme for asahi-audio is priceless :)
13:59kameks has quit [Ping timeout: 480 seconds]
14:02yuyichao has joined #asahi
14:10Glanzmannkov: Just saw your comment about d-i. Have to test it. Will fix it. Btw. did the dm-crypt work for you?
14:12kovhe was a bit too eager and selected 'use the entire disk' though, so a DFU restore had to be performed xD
14:15bluetail[m]matthewayers: I think so too. It’s a good thing to share.
14:26marcanGlanzmann: < kov> he was a bit too eager and selected 'use the entire disk' though, so a DFU restore had to be performed xD <- FYI, this is the kind of thing why I'm not going to add your installer to the list until we have an "user-contributed, unsupported" heading for them
14:26marcanI'm happy to add user-contributed images, but people need to understand they are not supported by the project nor do we vouch for them
14:29kovmarcan, tbf I think Glanzmann's installer image is not d-i, it should be a lot safer, we used d-i because we wanted encryption and I believe that is not possible atm with the debian rootfs approach
14:31kovmarcan, his guide has 3 pieces, the asahi installer one, which does simple partition creation + rootfs unpacking, a debian live one, which I use as my usb rescue boot whenever I break something, and a debian installer image for anyone who wants to do their own custom installation
14:33kovmarcan, that said I understand having the user-contributed thing, especially after reading your post on being very careful with the user's system
14:43Glanzmannmarcan: As kov explained I have currently 4 different methods of installing Debian in the wiki. The preferred method is using your asahi installer and does more or less the same thing you do for alarm.
14:44Glanzmannkov: If you feel comfortable about adding debian to the installer_data.json with whatever heading you like to that would be nice, but if not, I'll just provide a copy of your installer with the edited json as long as it helpful like it currently is.
14:46Glanzmannmarcan: At the moment i see from the logs that 3-7 people install Debian using the asahi installer.
14:53Glanzmannleah2: Nope, I see the different IPs. Some come per v4, some per v6 from different parts of the world.
14:55eroux has quit [Remote host closed the connection]
15:02Glanzmannopticron: 61 users total, two of them is me: https://pbot.rmdir.de/VmTWVX7aC7MBl6fQT56nKA
15:14eroux has joined #asahi
15:15immychan[m]Basic data collection =/= spying
15:15immychan[m]How so?
15:17mpsimmychan[m]: I worked some years with GDPR people and learned that any unnecesary data collection is spying, be it intentional or not
15:17sveni don't necessarily agree, but depending on which lawyer you ask GDPR possibly already defines an IP address as personally identifiable data fwiw
15:21creechy has joined #asahi
15:25danielsmarcan: and yeah, anything using xkbcommon (not the X server) can do overlays, but ideally for common things they’d be upstream in the common definitions, not in random downstream
15:26marcanthere's no sane jp(mac) keyboard layout for one, everything upstream is broken in some way
15:27marcan(it's also extremely confusing how the layouts and the symbols for the applealu stuff interact)
15:30marcanlike apparently applealu_jis with jp means macintosh_vndr/apple(alukbd)+macintosh_vndr/jp(usmac)+macintosh_vndr/jp(mac):2
15:32danielsso alukbd will presumably map the core symbols and modifiers, then US on level 1, then JP on level 2
15:32marcanthe only useful thing alukbd does here is fix capslock. unfortunately, "usmac" does not have backslash, so it's useless
15:34marcanof course the keyboard *physically* has no backslash, but that's only because Apple is stupid
15:35marcanon macos you can toggle ¥ into typing \, and get the other one with option+, except the terminal always defaults to backslash, which is a mess
15:35marcanhere in the real world, either ¥ is always backslash (JIS style, jp(106) in xkb) or ¥ is ¥ and backslash is the unshifted underscore key (which is how it is labeled in OADG109A keyboards, jp(OADG109A) in xkb)
15:36danielsI was going to say - and this is absolutely not to deflect from how shit the XKB rules syntax is - that one of the biggest problems is that people look at keyboards and say 'this is obviously dumb as hell, the correct thing to do is $thing, no-one else could ever possibly want anything else'
15:37danielsanyway, what you want to do is to ignore the part files, and just look at build/rules/evdev
15:37marcanwell, considering xkb can't magically do the nonsense macOS does, the next best thing is make the special keys do the right thing and then let users pick between 106 and OADG109A modes, which is what they'll be used to from other machines anyway
15:40marcanapple tries to do the right thing in the OS with font rendering, but the keyboard is still weird because of this
15:42danielsso, looking at build/rules/evdev, you end up with keycodes/evdev + macintosh_vndr/macintosh(jisevdev) which just fixes kana and is harmless
15:43danielsthen you end up with symbols/macintosh_vndr/jp(usmac), where usmac does everything correctly _but_ it also overrides AE13 -> [yen,bar], and you'd like it to be [backslash,bar] right?
15:46marcanso if you want what's printed on the keycaps on the vast majority of machines today, you want that
15:47marcanand then apple kind of went with JIS plus that option hack, but most Linux users probably would rather have either of the above two modes
15:47danielsmm, I was going to say 'but if you're using your normal PC keyboard then just use the evdev model, not the mac model'
15:48marcanif you want to do what macos does then we need the option thing, but then that kind of clashes with the whole "macos doesn't do keybindings like linux does"
15:48marcanand if you want to fix *that* you need userspace daemons (which is how people actually do it)
15:49marcanbut given we can't do that in xkb, I argue the reasonable thing to offer by default is "provide a layout that matches the keycaps without trying to do fancy third level shifts that don't fit into the standard linux modifier model, and stick backslash somewhere sane"
15:49marcanwhere the two options for "somewhere sane" are replacing ¥ or putting it where it would be on every other PC keyboard
15:54marcanthe driver properly reports it in evdev, and also synthesizes Fn+top bar = Fxx keys, and Fn+arrow keys = paging/home/end keys in-kernel (although that can be disabled)
15:54marcanthe latter is probably a decent idea given that having those keys missing kind of sucks, and most people wouldn't want to do anything else there
15:56danielsonce you've built and installed xkeyboard-config, you can use xkbcommon's tools to poke at it, e.g. /build-x86-64/compile-keymap --include ~/x/xkb/xkeyboard-config/foo/usr/local/share/X11/xkb --rules evdev --model applealu_jis --layout jp --option apple:jp_oadg109
15:57danielsthere are a few (laptop mainly) HID specials in the kernel which fake up the relevant keycodes for you by handling Fn, much like up/down
15:57danielsthey get away with that because they're all multimedia keys, which have no interaction with modifiers etc
15:58danielsusually for stuff like that you try to stick it as options rather than variants; you can only have a single variant active at a time, so most 'I want this thing, but with this one small tweak' go in as options
15:59danielsback to Fn - if you can fake up a fixed set of multimedia keys in the kernel, then great - if not then you're in to adding a new keytype, which definitely gets a little bit fun within XKB. but Wayland can handle it completely perfectly, it's only Xorg-native stuff that struggles
16:00marcan(I actually don't know and have never met any japanese computer users that use kana mode)
16:02danielsyeah, steering people towards better defaults, and giving them better prompts to work with, is definitely doable
16:03marcanso Fn, the HID codes the top row reports are indeed Fx, but the keycaps say they are actually media keys unshifted and F-keys with Fn, though on macOS you can swap them if you want
16:03marcanthe hid-apple driver does the same, defaulting to mapping to media keys unshifted and Fx with Fn, but you can swap it via module arg, or disable the conversion entirely
16:04danielsmy XPS randomly flips between whether media or Fx is the unshifted mode, which is always a pleasure
16:04danielsanyway, I would file an issue/MR on xk-c with something that steers people by default to something as close to possible as what macOS does ootb, with a note about the backslash-happy variants, and then following that notes and opinions about the various modes
16:05daniels'I have looked at a keyboard and I have ideas on a better way to do things' is usually not the best start in that repo; 'here's what the native OS does on that device and this gets us as close as practically possible to it, with an explanation of the tweaks' is A+++ merge on sight
16:08marcanand then I need to hack up calamares to preconfigure the keyboard model properly on the macbooks... which is also going to require some extra devicetree shenanigans to forward the layout from the ADT... (as we just confirmed in #asahi-dev)
16:11kettenisI don't think any of the spi/hid/keyboard/touchpad stuff was submitted updtream yet, is it?
16:29brentr123[m]anyone know if asahi alpha is ready?
16:30immychan[m]Depends what you mean by “ready”
16:43coderobe has quit [Remote host closed the connection]
16:55brigarian[m] has joined #asahi
16:57brigarian[m] has left #asahi [#asahi]
17:12marcanPSA: pushed a m1n1 bugfix that affects stage 1. I *could* work around it in stage 2, but this doesn't affect normal u-boot chainload cases yet. however, it will break SEP once we get there.
17:13marcanso if you were thinking of leaving your existing stage 1 lying around for months, might want to do one final update
17:21the_lanetly_052 has joined #asahi
17:26Major_Biscuit has quit []
17:31Fabrcio[m] has joined #asahi
17:37mavericks5 has joined #asahi
17:41artemist has quit [Ping timeout: 480 seconds]
17:41mavericks has quit [Ping timeout: 480 seconds]
17:41mavericks5 is now known as mavericks
17:50Sellerie1 has joined #asahi
17:52Sellerie has quit [Ping timeout: 480 seconds]
17:52Sellerie1 is now known as Sellerie
18:02m6wiq has joined #asahi
18:03coderobe has joined #asahi
18:05Sellerie9 has joined #asahi
18:11Sellerie has quit [Ping timeout: 480 seconds]
18:11Sellerie9 is now known as Sellerie
18:25mpsj`ey: yes, kernel starts but only got blank screen, led on caps lock works on/off by pressing key
18:38Glanzmannmps: For me the new kernel works, including display output: https://tg.st/u/config-2022-03-15-4k
18:39creechy has quit [Quit: WeeChat 3.4]
18:42Glanzmannpovik: With the new sound code, are speakers supposed to work on the air? I just builded using this config: https://pbot.rmdir.de/Vuq52wIhK_E4u3HY2pDzXw
18:43Glanzmannmps: Second half of the sentence was for you. https://pbot.rmdir.de/Vuq52wIhK_E4u3HY2pDzXw
18:47Glanzmannpovik: Btw. I also noticed that the jack is very loud. I was just watching a netflix movie and I had to scale the volume down: https://tg.st/u/screenshot-air-2022-03-15-19_46_58.png
18:47___nick___ has joined #asahi
18:50Glanzmannpovik: In the old version the audio jack output control in alsamixer was doing something, but now I can change it to whatever I want and the output volume does not change: https://tg.st/u/screenshot-air-2022-03-15-19_50_05.png
18:52the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:54sheepgoose_ has joined #asahi
18:54matthewayers[m]Does anyone know how I can connect to internet using a captive portal and wpa supplicant?
18:56opticronthat's all router-side stuff, so it just looks like a normal open or wpa[2] connection to supplicant
19:12Glanzmanndmesg for the new kernel, if someone wants to have a look. That is from the air: https://pbot.rmdir.de/pyLIO3MepRhInZu4Pi1sQw
19:15sventhat command always failed because apple’s not following the spec there and I never got around to add a quirk because there’s already a fallback
19:16opticronI also see a few errors with the wifi, but those are the same as last kernel (and it still works just fine)
19:17opticronI can paste the exact text somewhere, but the summary is ...firmware: failed ot update device address ret -52, p2pdev: set p2p_disc error, ...add_iface: add iface p2p-dev-wlp1s0f type 10 fialed err=-52
19:19matthewayers[m]Looks like my 14” MBP cannot find the audio jack output device
19:19matthewayers[m]Any suggestions? I’m on Debian Bookworm
19:28Glanzmannpovik: Any idea why there is no sound on mbp 14"? https://pbot.rmdir.de/fZ2bCPrUGVFQSgUqQzjyJA
19:30Glanzmannmatthewayers[m]: Yours look very similiar to opticron. The sound card appears not to be detected. Maybe something with the device trees, maybe something else.
19:32povikbecause jack isn't supported on the 2021 macbooks (and speakers are behind that DT edit on your own risk)
19:34matthewayers[m]I have the 2021 14" Macbook Pro with M1 Max silicon
19:34matthewayers[m]povik: Thank you for helping us not destroy our speakers :)
19:49sheepgoose has joined #asahi
19:55sheepgoose_ has quit [Ping timeout: 480 seconds]
19:59gladiac has quit [Quit: k thx bye]
20:44m6wiq1 has joined #asahi
20:45m6wiq has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:14s1gtrap[m]uh, I guess I screwed up when installing because now I have a full ext4 part with no way of extending it: can't be done from asahi, doesn't seem to be any tools for this on macos so unless there's bootable live media available somewhere?
21:21Mary has quit [Quit: The Lounge - https://thelounge.chat]
21:21Mary has joined #asahi
21:23m6wiq1 has quit []
21:24s1gtrap[m]j`ey: I tried to figure this out earlier but couldn't be done w/o umounting
21:24s1gtrap[m]at least to my understanding
21:24Mary has quit []
21:26Glanzmanns1gtrap[m]: If you want I can walk you through it. Can you run 'parted /dev/nvme0n1 print free' and paste the output to tg.st/p
21:27Glanzmanns1gtrap[m]: Btw, there is also a bootable live media: https://github.com/AsahiLinux/docs/wiki/Debia
21:27s1gtrap[m]ah ahh! using that as live media
21:27Mary has joined #asahi
21:29s1gtrap[m]Glanzmann: I thought parting a mounted drive was a big no-no?
21:30Glanzmanns1gtrap[m]: I thought so, too. Until I found out that you can make it bigger without an issue.
21:30s1gtrap[m]sweet!
21:31s1gtrap[m]yea, definitely giving this a shot: thanks!
21:33Glanzmanntpw_rules: You always come up with nice commands. :-) You're the first how teached me how to stream tar a tgz disk image.
21:35Glanzmanns1gtrap[m]: https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md#installation
22:05nobodynada has joined #asahi
22:05nobodynada has quit []
22:36artemist has joined #asahi
23:15sheepgoose_ has joined #asahi
23:21sheepgoose has quit [Ping timeout: 480 seconds]
23:43ChaosPrincess has quit [Remote host closed the connection]