#
…

2021-04-18

00:06zkrx has quit [Ping timeout: 240 seconds]
00:13jeffmiw_ has joined #asahi
00:14klaus has quit [Ping timeout: 252 seconds]
00:17jeffmiw_ has quit [Ping timeout: 240 seconds]
00:20raster has quit [Quit: Gettin' stinky!]
00:27klaus has joined #asahi
00:30zkrx has joined #asahi
00:32klaus has quit [Ping timeout: 265 seconds]
00:45klaus has joined #asahi
00:51klaus has quit [Ping timeout: 268 seconds]
01:00DragoonAethis has quit [Quit: hej-hej!]
01:00DragoonAethis has joined #asahi
01:02klaus has joined #asahi
01:07arekm has quit [Ping timeout: 252 seconds]
01:07arekm has joined #asahi
01:22odmir has quit [Remote host closed the connection]
01:22odmir has joined #asahi
01:26klaus has quit [Ping timeout: 246 seconds]
01:27odmir has quit [Ping timeout: 240 seconds]
01:33marcanpipcet[m]: isn't the touchbar oled?
01:34marcanthough I guess it might have a brightness control and oled displays might export that as a backlight
01:34marcanin which case it'd be a display backlight since it's a display
01:39klaus has joined #asahi
01:43klaus has quit [Ping timeout: 240 seconds]
01:46JTLI'd be curious if you'd be able to manipulate the PWM and/or "refresh" frequency
01:53odmir has joined #asahi
01:58marcanhttps://pid.codes/1209/316D/ well that got merged fast :)
02:02JTLI wasn't aware of pid.codes and the grandfathered "sublicensing" exemption of USB-IF. Interesting.
02:04tpw_ruleswhy does that need its own PID?
02:06marcanJTL: there is also openmoko
02:06marcantpw_rules: because we don't have one?
02:06marcanit's not like we should be using Apple's
02:07marcanI mean yes we could use a generic one, but that's ugly and makes it harder to tell the device apart
02:07JTLmarcan: ah yeah, glad to see something good come out of openmoko
02:07nico_32easier to write udev rules :)
02:07marcanSUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="316d", KERNEL=="ttyACM*", SYMLINK+="m1n1"
02:07klaus has joined #asahi
02:11tpw_rulesi guess a lot of products are just USB-CDC devices. it initially seemed weird to me that you would need one as a common device class
02:11klaus has quit [Ping timeout: 240 seconds]
02:14tpw_rulesi wonder how many VIDs are left
02:22odmir has quit [Remote host closed the connection]
02:22odmir has joined #asahi
02:26odmir has quit [Remote host closed the connection]
02:27odmir has joined #asahi
02:32odmir has quit [Ping timeout: 240 seconds]
02:40pthariensflame has joined #asahi
02:49phiologe has quit [Ping timeout: 250 seconds]
02:50phiologe has joined #asahi
02:51pthariensflame has quit []
02:55klaus has joined #asahi
02:58odmir has joined #asahi
02:59klaus has quit [Ping timeout: 240 seconds]
03:08odmir has quit [Remote host closed the connection]
03:08odmir has joined #asahi
03:12odmir has quit [Ping timeout: 246 seconds]
03:25marvin24 has quit [Ping timeout: 276 seconds]
03:25marvin24_ has joined #asahi
03:39klaus has joined #asahi
03:44klaus has quit [Ping timeout: 265 seconds]
04:18klaus has joined #asahi
04:22klaus has quit [Ping timeout: 252 seconds]
04:23Chainsaw_ has joined #asahi
04:26Chainsaw has quit [Ping timeout: 240 seconds]
04:53klaus has joined #asahi
04:58klaus has quit [Ping timeout: 246 seconds]
05:09VinDuv has joined #asahi
05:35klaus has joined #asahi
05:39klaus has quit [Ping timeout: 246 seconds]
05:59PedroArajo[m] has joined #asahi
06:02modrobert has quit [Remote host closed the connection]
06:09klaus has joined #asahi
06:14klaus has quit [Ping timeout: 246 seconds]
06:44klaus has joined #asahi
06:49klaus has quit [Ping timeout: 260 seconds]
07:18klaus has joined #asahi
07:23klaus has quit [Ping timeout: 252 seconds]
07:57bdju has quit [Ping timeout: 246 seconds]
08:05klaus has joined #asahi
08:09bdju has joined #asahi
08:10klaus has quit [Ping timeout: 240 seconds]
08:14modrobert has joined #asahi
08:24Chainsaw_ has quit [Changing host]
08:24Chainsaw_ has joined #asahi
08:24Chainsaw_ is now known as Chainsaw
08:30sventpw_rules: the reason i used a common device class is such that we don't need customer kernel drivers or require libusb in proxyclient/*
08:30sven*custom
08:32klaus has joined #asahi
08:34TD-Linux has joined #asahi
08:42jeffmiw_ has joined #asahi
08:46jeffmiw_ has quit [Ping timeout: 252 seconds]
08:54jeffmiw_ has joined #asahi
08:55jeffmiw__ has joined #asahi
08:55jeffmiw_ has quit [Read error: Connection reset by peer]
08:55jeffmiw__ has quit [Client Quit]
09:00hothotleg[m] has quit [Quit: Idle for 30+ days]
09:00ponikrf[m] has quit [Quit: Idle for 30+ days]
09:06zkrx has quit [Ping timeout: 252 seconds]
09:08ephe_meral1 has joined #asahi
09:23raster has joined #asahi
09:25Crisco has quit [Ping timeout: 245 seconds]
09:27zkrx has joined #asahi
09:31Crisco has joined #asahi
09:31Crisco has quit [Changing host]
09:31Crisco has joined #asahi
09:52Major_Biscuit has joined #asahi
09:58raster has quit [Quit: Gettin' stinky!]
10:12Major_Biscuit has quit [Ping timeout: 240 seconds]
10:21thestr4ng3r has quit [Read error: Connection reset by peer]
10:23thestr4ng3r has joined #asahi
10:28thestr4ng3r has quit [Read error: Connection reset by peer]
10:29thestr4ng3r has joined #asahi
10:34raster has joined #asahi
10:40Crisco has quit [Ping timeout: 258 seconds]
10:42Crisco has joined #asahi
12:07Crisco has quit [Ping timeout: 258 seconds]
12:13Crisco has joined #asahi
12:16inglor has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
12:17raster has quit [Quit: Gettin' stinky!]
12:17inglor has joined #asahi
12:23choozy has joined #asahi
12:33maknho_ has joined #asahi
12:35maknho has quit [Ping timeout: 265 seconds]
12:38Crisco has quit [Ping timeout: 258 seconds]
12:39Crisco has joined #asahi
12:43Major_Biscuit has joined #asahi
12:52Major_Biscuit has quit [Ping timeout: 252 seconds]
12:59Major_Biscuit has joined #asahi
12:59maknho__ has joined #asahi
13:03maknho_ has quit [Ping timeout: 268 seconds]
13:04Crisco has quit [Ping timeout: 258 seconds]
13:06choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
13:06Crisco has joined #asahi
13:07mxw39 has quit [Quit: Konversation terminated!]
13:07amwHas anyone tried CONFIG_EARLY_PRINTK_USB_XDBC as per linux/Documentation/driver-api/usb/usb3-debug-port.rst ?
13:08amwIt sounds like it might be the next step after using a normal USB m1n1 boot for linux serial console
13:08mxw39 has joined #asahi
13:12mxw39 has quit [Remote host closed the connection]
13:12svennah, but i have usb gadget mode working in linux as well
13:13svenit's somewhat hacked together, but tl;dr: grab my iommu patches, make sure the usb PHY has been brought up from m1n1 and add a dwc3 node attached to the iommu to the device tree
13:13svenmake sure to enable g_serial as well ofc ;)
13:14mxw39 has joined #asahi
13:14svenor alternatively: enable full bypass mode in the usb iommu, add dma-ranges to the device tree, patch the dwc3 driver to use 64bit dma addresses and add a node for it to the device tree as well
13:16amwI found the usb2 debug port to not be very reliable in practise - might be better with usb3
13:16amwA few posts suggest that gadget mode is not so useful for debugging as it starts up quite late
13:16svenyeah, but i'm not so sure if the mac mini even has a usb3 debug port
13:17amwI think it's standard on the USB controllers, usally the first port only, but might require some other hardware/PHY tweaks possibly?
13:19svenprobably
13:20svenit might also just not be supported on apple hw. they don't seem to care much about standards
13:20amwCan the gadget driver be used as a console at all? Or only has a serial port e.g. once booted?
13:20sven"The xHCI debug capability (DbC) is an optional but standalone functionality provided by the xHCI host controller. " let's see
13:21svenit comes up quite some time before userspace afaik, but i haven't played much with it because macos doesn't seem to attach their cdc kext to it
13:25Major_Biscuit has quit [Ping timeout: 240 seconds]
13:29amwI can just try it and see what happens, I might get lucky :-)
13:30svensure :)
13:30svenyou'll probably still need the dwc3 node though
13:30svenbecause the kernel won't be able to find the xhci controller otherwise
13:31sveni might've messed up, but afaict the dwc3 xhci doesn't support this debug port
13:31amwOk - I'll have to dig into that - is there an example node for the dts?
13:32svennot really. you'll probably also need to bring up the iommu
13:32Major_Biscuit has joined #asahi
13:40sven0x8e0 0x401 USB Legacy Support
13:40sven0x8f0 0x2000402 Supported Protocol
13:40sven0x900 0x3100002 Supported Protocol
13:40sventhat's all the xhci register space claims to support
13:40sveni.e. no debug port mode
13:41amwok - Sigh. Thanks again - Time for bed - I was getting excited :-(
13:43marcanit should be possible to write an earlyprintk thing that takes a gadget handoff from the bootloader
13:43marcanI've been mulling over whether to give that a shot
13:44sventhat sounds like a neat hack :D
13:45svenor you could just shave another yak and finish that usb-pd cable you've been meaning to build :P
13:47Major_Biscuit has quit [Ping timeout: 240 seconds]
14:06Bublik_ has quit [Ping timeout: 252 seconds]
14:08Bublik_ has joined #asahi
14:29vimal has quit [Quit: Leaving]
14:35zopieux has quit [Ping timeout: 260 seconds]
14:36zopieux has joined #asahi
15:05exception has quit [Quit: ZNC 1.8.2 - https://znc.in]
15:10odmir has joined #asahi
15:14odmir has quit [Ping timeout: 260 seconds]
16:00user1tt[m] has quit [Quit: Idle for 30+ days]
16:00manu1volta[m] has quit [Quit: Idle for 30+ days]
16:01pipcet[m]hmm. Turning off the main panel's backlight is easy enough on the MacBook Pro, but does it save any power?
16:02pipcet[m]I mean, fighting light pollution is all good and noble, but if it's the only thing that's doing...
16:05tpw_ruleswhy would it not save power?
16:10Major_Biscuit has joined #asahi
16:10pipcet[m]I suppose it's likely that it does, but the display subsystem has been strange to me so far...
16:14pipcet[m]anyway, it's key "gP12" on the SMC; 1 enables, 0 disables.
16:16Major_Biscuit has quit [Ping timeout: 240 seconds]
16:19Major_Biscuit has joined #asahi
16:25Major_Biscuit has quit [Ping timeout: 268 seconds]
16:42Mary_ has joined #asahi
16:52vimal has joined #asahi
16:57odmir has joined #asahi
17:01odmir has quit [Ping timeout: 240 seconds]
17:07odmir has joined #asahi
17:08odmir_ has joined #asahi
17:08odmir has quit [Read error: Connection reset by peer]
17:19Major_Biscuit has joined #asahi
17:30radex has quit [Ping timeout: 260 seconds]
17:47user1tt[m] has joined #asahi
17:52radex has joined #asahi
18:16pipcet[m]speaking of which, that's one of the SMC keys interpreted, 1422 to go :-)
18:30vimal has quit [Ping timeout: 260 seconds]
18:39Major_Biscuit has quit [Ping timeout: 240 seconds]
18:49vimal has joined #asahi
18:52Major_Biscuit has joined #asahi
18:56raster has joined #asahi
20:01odmir_ has quit [Remote host closed the connection]
20:02odmir has joined #asahi
20:06VinDuv has quit [Quit: Leaving.]
20:07odmir has quit [Ping timeout: 260 seconds]
20:33odmir has joined #asahi
20:36choozy has joined #asahi
20:42ephe_meral1 has quit [Ping timeout: 240 seconds]
20:50pipcet[m]what's the usual epoch on macs?
21:00pthariensflame has joined #asahi
21:00pthariensflame has quit [Client Quit]
21:10odmir has quit [Ping timeout: 240 seconds]
21:27odmir has joined #asahi
21:43Major_Biscuit has quit [Quit: WeeChat 3.0.1]
21:57maknho___ has joined #asahi
21:58maknho__ has quit [Ping timeout: 240 seconds]
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi
22:04odmir has quit [Ping timeout: 240 seconds]
22:14roxfan has quit [Remote host closed the connection]
22:19roxfan has joined #asahi
22:31odmir has joined #asahi
22:46choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
22:49odmir has quit [Ping timeout: 240 seconds]
23:01odmir has joined #asahi
23:17mxw39 has quit [Ping timeout: 252 seconds]
23:35odmir has quit [Ping timeout: 260 seconds]
23:37mxw39 has joined #asahi
23:58raster has quit [Quit: Gettin' stinky!]
23:59odmir has joined #asahi
…