#
…

2022-11-18

00:04Stroller has joined #asahi
00:09millenialhacker has joined #asahi
00:17millenialhacker has quit [Ping timeout: 480 seconds]
00:17maximbaz has quit [Quit: bye]
00:18maximbaz has joined #asahi
00:23maximbaz has quit [Quit: bye]
00:24maximbaz has joined #asahi
00:28loki_val has joined #asahi
00:30crabbedhaloablut has quit [Ping timeout: 480 seconds]
00:31beeblebrox has joined #asahi
01:01julio7359 has joined #asahi
01:07jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
01:24bluetailIs there a way to disable dithering / will there be one in the future?
01:28r0ni has quit [Quit: Leaving]
01:33julio7359 has quit [Ping timeout: 480 seconds]
01:35r0ni has joined #asahi
01:41user982492 has joined #asahi
01:42ten15 has quit [Remote host closed the connection]
01:42beeblebrox has quit [Quit: Konversation terminated!]
01:44ten15 has joined #asahi
02:00DragoonAethis has quit [Quit: hej-hej!]
02:00DragoonAethis has joined #asahi
02:06nicolas17 has joined #asahi
02:06jamespmo_ has joined #asahi
02:13jamespmorgan has quit [Ping timeout: 480 seconds]
02:18jamespmorgan has joined #asahi
02:24jamespmo_ has quit [Ping timeout: 480 seconds]
02:32user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:38chadmedscardracs: i dont really have anything to add to what jannau and sven said, i added that ebuild as a proof of concept only and it should not be installed. it will not work.
02:39chadmedit shouldnt even let you install it unless you really REALLY force it since upstream is a newer version for both stable and unstable keywords
02:41chadmedalso i check logs regularly when im afk/forget to join certain channels so you can still ping me in #asahi-alt if im not around and ill see the message eventually
03:06nicolas17 has quit [Quit: Konversation terminated!]
03:15millenialhacker has joined #asahi
03:23millenialhacker has quit [Ping timeout: 480 seconds]
04:41millenialhacker has joined #asahi
04:49millenialhacker has quit [Ping timeout: 480 seconds]
04:54tertu2 has joined #asahi
04:54tertu has quit [Ping timeout: 480 seconds]
04:55julio7359 has joined #asahi
05:07tertu2 has quit [Ping timeout: 480 seconds]
05:09tertu has joined #asahi
05:13weitcis has quit [Quit: Konversation terminated!]
05:16cylm has joined #asahi
05:21wereiyou has quit [Ping timeout: 480 seconds]
05:24yuyichao has quit [Remote host closed the connection]
05:26yuyichao has joined #asahi
05:29capta1nt0ad has quit [Remote host closed the connection]
05:30capta1nt0ad has joined #asahi
05:30capta1nt0ad has quit []
05:31capta1nt0ad has joined #asahi
05:45ping_47 has quit [Remote host closed the connection]
05:54capta1nt0ad has quit [Quit: Konversation terminated!]
05:55capta1nt0ad has joined #asahi
05:58capta1nt0ad has quit []
06:05millenialhacker has joined #asahi
06:13millenialhacker has quit [Ping timeout: 480 seconds]
06:14LinuxM1 has joined #asahi
06:15julio7359 has quit [Ping timeout: 480 seconds]
06:47millenialhacker has joined #asahi
06:55millenialhacker has quit [Ping timeout: 480 seconds]
06:59weitcis has joined #asahi
07:01scardracsSounds good to me, thanks :)
07:09weitcis has quit [Remote host closed the connection]
07:09mac456 has quit [Read error: Connection reset by peer]
07:10guillaume_g has joined #asahi
07:12weitcis has joined #asahi
07:13weitcis has quit []
07:18weitcis has joined #asahi
07:20Major_Biscuit has joined #asahi
07:35Glanzmannsven: I just booted my mini and my keyboard on usb-c was dead once linux was booted (in u-boot/grub it was working). Than I plugged to usb-a and it worked. When I put it back into the usb-a to usb-c dongle it did not work, but when I repluged the usb-c dongle than it became active. dmesg in case you're interested: https://pbot.rmdir.de/m1AZcyUkn3i_Zf69mSIPFw
07:39Glanzmannsven: This is with the edge config but with every 'edge' option as =y and dart=y because otherwise the kernel does not find usb-a, usb-c, pcie, network. Jannau was unable to reproduce my boot issue, but if someone is interested in the dmesg I can disable x boot the broken kernel and use the serial console or make a photo.
07:41SSJ_GZ has joined #asahi
07:44millenialhacker has joined #asahi
07:50weitcis has quit [Remote host closed the connection]
07:52millenialhacker has quit [Ping timeout: 480 seconds]
07:53weitcis has joined #asahi
07:54Dcow_ has quit [Remote host closed the connection]
07:55Dcow has joined #asahi
08:02Stroller has quit [Quit: Stroller]
08:09svencan you reproduce this?
08:09kode54how much of the GPU and/or DCP stuff has been released to repos yet?
08:10svenreplugging devices on the type c ports will usually fix whatever issue they have
08:11sventhat shouldn’t be required but it’s one of the advantages of having to tear down everything and set it back up when a plug is inserted
08:11kode54oh, linux-asahi-dev
08:11kode54thank you, feature matrix
08:15Glanzmannsven: I had only three boots with the kernel (1 out of 2 had the issue) so far, but I can try to reproduce and let you know.
08:21_jannau_kode54: asahi-wip/asahi-dev have most dcp changes except the very experimental dp-altmode and experimental changes I'm working on
08:21_jannau_gpu driver is only in lina's repo
08:27millenialhacker has joined #asahi
08:28jjido has joined #asahi
08:35millenialhacker has quit [Ping timeout: 480 seconds]
08:40Poplar has quit [Ping timeout: 480 seconds]
08:46kode54I assume dp-altmode is needed to have multiple monitors
08:48kode54guess I'll continue to wait before attempting to use it again
08:50svenyeah, dpaltmode will take a while longer
08:50svenit kinda sorta sometimes works with some babysitting right now
08:54giskard has joined #asahi
08:54weitcis has quit [Quit: Konversation terminated!]
08:58weitcis has joined #asahi
09:11bassodisplay outputs on m1 macs are poop
09:12bassohave to use thunderbolt dock to get more than 1 display out of one port, usb-c docks is no go
09:12svenm1 only supports a single external display no matter what
09:12bassoi mean in general the m1 series of cpus
09:13bassoif i connect a usb-c dock to my m1 pro it cant do dual displays, only mirror two lol
09:13sventhe issue is that the hardware just doesn't support MST which is what you'd need to get 2 displays out of a single port
09:14bassosome things are nice on m1 but there are too many exceptions, just like my old java code
09:14sventhey can tunnel two DP streams over USB4 though
09:14bassowhat really?
09:14bassommm, i need usb4 dock at some point then
09:14sventhat's why thunderbolt works
09:14svenusb4 is more or less thunderbolt 3
09:15bassoah yeh that is true
09:16bassoworst quirk is that displays that are connected with hdmi/adapters with hdmi out does not do rgb444 and tgat makes fonts and stuff look ass
09:17bassoi remember doing that weird edid patch on my old intel mac to get rgb444 on monitors, so weird you cant override it in a meaningfull way
09:18bassobut on linux that is also really weird, have to edit an edid and include it in grub boot?
09:20millenialhacker has joined #asahi
09:20svenlet us first get dp altmode and dp-over-usb4/tbt-tunneling to work reliable. then we'll take a look into making it work nicely
09:20svenI already have one screen/adapter combo that works on linux but not on macos (possibly due to hdcp)
09:20svenmaybe we can fix some other quirks as well ;)
09:21bassoyeh dp altmode should be plenty enough for everyone :)
09:21sveni'll need dp-over-usb4 to actually use this as a daily driver
09:24weitcis has quit [Remote host closed the connection]
09:27bassoill need new monitors to daily drive a mac running linux, 4k fractional scaling is doodoo and has too many quirks
09:27weitcis has joined #asahi
09:31basso"non-fractional-mixed-dpi setup on gnome" is actually is the setup with least amounts of quirks, thats what i use at work and what i recommend to most people looking into using linux with their high dpi laptops
09:32Glanzmannsven: Wow. Interesting.
09:32Glanzmannsven: I rebooted a few times but can not reproduce it. :-(
09:34millenialhacker has quit [Ping timeout: 480 seconds]
09:45Dcow_ has joined #asahi
09:52Dcow has quit [Ping timeout: 480 seconds]
10:00jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
10:07yukaby the way, is there any chance of getting a kvm guest with 4K pagesize on a host with 16K pagesize?
10:08j`eyyes that will work
10:08yukaSo I could run rosetta2 in a VM on a 16K pagesize host kernel
10:09yukadon't really want to change my whole host kernel to 4K pagesize because of the performance impact
10:09svennot really, rosetta requires that special x86 memory ordering to be active
10:09yukawell... "requires"
10:10yukathe windows on arm x86 emulation stuff also just disregards that
10:11yukaI could also run 10 single core vms pinned to different cores 🤔
10:11chadmedi dont think rosetta works properly at all without the TSO stuff
10:12almeyras has joined #asahi
10:12svenplease also don't discuss how to run rosetta2 on here since that's likely against its license
10:12yukaapparently it works well enough to run geekbench?
10:12chadmedyeah that too
10:12millenialhacker has joined #asahi
10:20millenialhacker has quit [Ping timeout: 480 seconds]
10:21almeyras has quit [Quit: Igloo IRC: https://iglooirc.com]
10:27capta1nt0ad has joined #asahi
10:38Tom__ has joined #asahi
10:39StupidYui has quit [Ping timeout: 480 seconds]
10:42jjido has joined #asahi
11:08Raito_Bezarius has quit [Ping timeout: 480 seconds]
11:24jamespmorgan has quit [Ping timeout: 480 seconds]
11:27bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:28millenialhacker has joined #asahi
11:33millenialhacker has quit [Remote host closed the connection]
11:33millenialhacker has joined #asahi
11:36millenia_ has joined #asahi
11:36millenialhacker has quit [Read error: Connection reset by peer]
12:06StupidYui has joined #asahi
12:09Tom__ has quit [Ping timeout: 480 seconds]
12:11millenia_ has quit [Remote host closed the connection]
12:14Techcable has quit [Ping timeout: 480 seconds]
12:18weitcis has quit [Quit: Konversation terminated!]
12:18Poplar has joined #asahi
12:20millenialhacker has joined #asahi
12:21Major_Biscuit has quit [Ping timeout: 480 seconds]
12:30Raito_Bezarius has joined #asahi
12:30millenialhacker has quit [Ping timeout: 480 seconds]
12:44Poplar has quit [Ping timeout: 480 seconds]
12:52spectrum-m1 has joined #asahi
12:52Poplar has joined #asahi
12:52spectrum-m1Hello! I wonder how can I help the project as a newbie? Can I help with debugging?
13:04spectrum-m1 has quit [Quit: Page closed]
13:06Poplar has quit [Ping timeout: 480 seconds]
13:10eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
13:13vmeson has quit [Ping timeout: 480 seconds]
13:13Major_Biscuit has joined #asahi
13:13vmeson has joined #asahi
13:27Major_Biscuit has quit [Ping timeout: 480 seconds]
13:30eroc1990 has joined #asahi
13:32Major_Biscuit has joined #asahi
13:39as400I must say that now, with dcp/backlight control, working on my mbp is a sheer pleasure. THX guys, thx jannau !
13:44leitao has joined #asahi
14:22millenialhacker has joined #asahi
14:34millenialhacker has quit [Ping timeout: 480 seconds]
14:37wereiyou has joined #asahi
14:40jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
14:56Stroller has joined #asahi
14:57bisko has joined #asahi
15:03eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
15:05bisko has quit [Ping timeout: 480 seconds]
15:14Treibholz has quit [Quit: WeeChat 3.0]
15:20karolherbst has joined #asahi
15:23jamespmo_ has joined #asahi
15:31rvalue has quit [Read error: Connection reset by peer]
15:32rvalue has joined #asahi
15:32axboejannau: with the dcp updates, I gave it another spin here
15:32axboejannau: had same behavior as before - I get the login screen, but it kind of stalls. and if I log in, seems like it stalls. just like I described last time
15:33axboejannau: but then I tested if the backlight works (it does!) and discovered that it simply seems to lack updates. whatever I do, if I hit brightness up+down (or anything really, seems like it wants two changes) then it refreshes the screen just fine
15:33axboeso it does seem to work, but it doesn't refresh the content of the display if that makes any sense
15:34axboethis is running 00c174290113
15:34axboeand m1n1 ba1dfab4d299
15:36Glanzmannaxboe: Do you need to hit the brightness up/down just once or everytime you want a screen update?
15:36axboeGlanzmann: every time
15:37axboedoesn't update at all without it, which is why it appeared stalled/hung
15:37GlanzmannI see. Strange, I use dcp on my mini. No issues once the kernel booted and probed pcie. I never tried it on the laptop. But I'll soon.
15:37axboeI should try on the m1pro, it's sitting idle anyway
15:37Glanzmannaxboe: Let me reboot and try it on my m1 air.
15:38j`eyaxboe: write a daemon to change the brightness at 60hz :P
15:38axboej`ey: haha
15:39GlanzmannBtw. the brightess control is handled by the kernel or do I need userland for it?
15:40mpsGlanzmann: userspace have to write to /sys/class/backlight/apple-panel-bl/brightness
15:40eroc1990 has joined #asahi
15:41axboeGlanzmann: that part Just Works for me with the buttons in xfce4
15:41axboebut yeah, writing to sysfs directly works as well of course
15:41mpsI use 'light' program with small lua tweak for awesome wm
15:42mpsand also I set to in rc script to constant on boot
15:43as400mps: you should be the person running "make your life harder" blog :)
15:43mpsand also I set it to constant in rc script on boot
15:43millenialhacker has joined #asahi
15:44GlanzmannI see, thanks.
15:44mpsas400: hm, why
15:44as400mps: hahahah - just a friday joke - no offence :)
15:44Glanzmannaxboe: For me it works with the dcp.
15:44mpsI don't feel offended, no worries ;)
15:45axboeGlanzmann: it might be wm related :/
15:45Glanzmannaxboe: Just try fvwm or blackbox.
15:45as400just wondering - you can use something that works. Don't know - plasma, gnome ?
15:45Glanzmannaxboe: If you want I can send you my kpkg and boot.bin, if you want to try it.
15:45mpsas400: I prefer to have as much as possible under my control
15:46axboeas400: I don't like big desktops
15:46axboeGlanzmann: I did previously try a different wm and it worked
15:46axboeGlanzmann: I should try and blow away my xfce4 settings and see if that works...
15:47axboeI'll do that later, got a bunch of meetings coming up
15:47Glanzmannaxboe: I remeber. Really strange what it is then.
15:48axboeGlanzmann: yeah no idea really, but I also don't know much about that side of things
15:48as400axboe: sure, understandable. But isn't it more productive to have something that just works and is still FOSS ?
15:48GlanzmannIs the macbook air supposed to turn off the screen using dcp when I close the lid or do I have to do that myself?
15:48axboeas400: I'm typing from that laptop right now, just not using dcp
15:48mpsas400: you mean windows :p
15:48as400mps: that was a hard strike :)
15:48mps(sorry for OT)
15:51millenialhacker has quit [Ping timeout: 480 seconds]
15:52as400axboe: ok, I thought you are using dcp but somehow it does not work for you.
15:59danielnechtan has quit [Read error: Connection reset by peer]
16:01danielnechtan has joined #asahi
16:04Poplar has joined #asahi
16:16_jannau_axboe: does it start working if you switch to a tty and back to X11?
16:17axboe_jannau_: nope doesn't change if I switch to a tty and back
16:17int16h has joined #asahi
16:18_jannau_but the switch works? does the tty update if you type?
16:18axboe_jannau_: switch works, update works on tty
16:19danielnechtan has quit [Ping timeout: 480 seconds]
16:22Major_Biscuit has quit []
16:30axboe_jannau_: when I've got some time later today, I'll try and blow away the xfce4 settings and see if I can figure out which one is causing this
16:30Poplar has quit [Ping timeout: 480 seconds]
16:43Poplar has joined #asahi
16:45bisko has joined #asahi
17:02Techcable has joined #asahi
17:10guillaume_g has quit []
17:11roxfan2 is now known as roxfan
17:14bcrumb has joined #asahi
17:15bcrumbif force_discharge on battery really forcefully reducing battery capacity or just letting battery lose charge meaning blocking AC?
17:15bcrumbby forcefully reducing battery capacity meaning, forcefully discharging battery
17:16bcrumbthis sounds stupid, i hope someone understands what i mean
17:21millenialhacker has joined #asahi
17:26bcrumb has quit [Quit: WeeChat 3.7.1]
17:29millenialhacker has quit [Ping timeout: 480 seconds]
17:31jjido has joined #asahi
17:37julio7359 has joined #asahi
17:37riker77 has quit [Quit: Quitting IRC - gone for good...]
17:37riker77 has joined #asahi
17:41marcanforce discharge means AC input is blocked, it's not going to literally burn power lol
17:42marcanforce discharge as in force the battery management into "discharging" state by disabling inflow entirely
17:55testaccount123 has joined #asahi
17:57testaccount123 has quit []
17:59r0ni has quit [Remote host closed the connection]
17:59r0ni has joined #asahi
18:02grgy has quit [Remote host closed the connection]
18:05grgy has joined #asahi
18:06Poplar has quit [Ping timeout: 480 seconds]
18:09Poplar has joined #asahi
18:25Stary has quit [Quit: ZNC - http://znc.in]
18:26Poplar has quit [Ping timeout: 480 seconds]
18:29Stary has joined #asahi
18:36millenialhacker has joined #asahi
18:45___nick___ has joined #asahi
18:45___nick___ has quit []
18:47millenialhacker has quit [Ping timeout: 480 seconds]
18:47___nick___ has joined #asahi
18:49leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:56kh has joined #asahi
18:56kh is now known as kazuki
18:56kazukiIs brightness control supposed to work? It doesn't work here on my M1 MBP 13, even if I use jannau's m1n1 brightness branch
19:01Glanzmannkazuki: For me it is working on m1 air which is very simliar to m1 mbp 13.
19:01jannaukazuki: no m1n1 changes are necessary. it works with m1n1 1.1.8 out of the box. it requires however DRM_APPLE
19:03kazukiI'm using linux-asahi-edge but it isn't working...
19:03kazukiFw ver is 12.3
19:03Glanzmannkazuki: What version is your macos?
19:03kazukiThe default, 12.3
19:03yuka has quit [Remote host closed the connection]
19:03Glanzmannkazuki: So for me the current rebase worked after I upgraded to Ventura.
19:04GlanzmannNo idea if it is related or was just a stupid one off.
19:04kazukiOh I'm on ventura too, I thought you meant the firmware for asahi
19:04Glanzmannkazuki: On Debian I used the following script to produce a working kernel, m1n1, u-boot: https://tg.st/u/dcp.sh but I'm not sure if works well on alarm.
19:04Glanzmannkazuki: Okay, than that isn't it.
19:05yuka has joined #asahi
19:05Glanzmannkazuki: So the edge kernel is not booting for you?
19:05kazukiIt boots, but brightness doesn't change when I move the slider
19:05kazukidisplay brightness slider
19:06Glanzmannkazuki: Okay, have you tried echo '80' > /sys/class/backlight/apple-panel-bl/brightness as root?
19:06Glanzmannkazuki: Can you paste the output of your dmesg to tg.st/p ?
19:07kazuki has quit [Quit: Konversation terminated!]
19:07GlanzmannLooks like a regression.
19:08kh has joined #asahi
19:09kh is now known as kazuki
19:09kazuki is now known as kh
19:09kh> Okay, have you tried echo '80' > /sys/class/backlight/apple-panel-bl/brightness as root?
19:09khSame result
19:09Glanzmannkh: So the brightness does not change?
19:10Glanzmannjannau, correct me if I'm wrong, but it looks like dcp does not work: [ 1.953076] apple-dcp: probe of 271c00000.dcp failed with error 295021056
19:11Glanzmannkh: So the issue is apparantly, that you don't use dcp. As a result you don't have any brightness control.
19:11khI'll send another dmesg with m1n1 1.18
19:11j`eybut also: [ 3.013670] apple-dcp 231c00000.dcp: RTKit: Initializing (protocol version 12)
19:12kh has quit []
19:13mxz has quit [Quit: cya]
19:13kh has joined #asahi
19:14jannaukazuki: you need m1n1 1.1.8
19:14mxz has joined #asahi
19:14Glanzmannkh: Same thing.
19:14khjannau: I previously used m1n1 1.1.8 with your brightness changes
19:15Glanzmannkh: Here is a dmesg of where dcp is working on m1 air: https://pbot.rmdir.de/42lia7YpUmwMMCdi9cwcKg
19:15khThe dmesg I just sent is on unmodified m1n1 1.1.8
19:15axboejannau: tried on the m1 pro and in two boots I just get a black screen with dcp
19:17yrlf has quit [Quit: Ping timeout (120 seconds)]
19:17khI'm on macOS 13.0.1 if that helps
19:18Glanzmannkh: I'm on the same version and for me it works.
19:18yrlf has joined #asahi
19:19jannaukh: it fails to boot dcpext but I have no idea why that wouldn't work on the macbook pro 13" m1 if it works on all all other m1 machines
19:19jannaumacos version should not matter except for the one of the stub install
19:20kh has quit [Quit: Konversation terminated!]
19:20mpsmaybe m1n1+dtbs+u-boot isn't updated
19:21jannauaxboe: can I get the kernel boot messages
19:21axboejannau: sure, 2 sec
19:22axboejannau: ok new boot it actually seems to work, but I did disable a few things in .config
19:22axboejust to experiment
19:23axboeand interestingly, it works with xfce4
19:23axboeoh dcp didn't load... hang on, I'll get it back and see what happens (and provide dmesg)
19:23jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
19:24kh has joined #asahi
19:24khmps: I have every package updated to the latest availabe
19:24khavailable*
19:24axboelooks like DRM_FBDEV is needed :)
19:26mpsaxboe: yes
19:27mpskh: I mean rebuild /efi/m1n1/boot.bin
19:27mps /boot/efi/m1n1/boot.bin
19:27mpson ESP
19:27khIsn't that rebuilt each time m1n1 is updated?
19:28jannauthat should happen on asahi automatically
19:28kh(2/2) Updating m1n1 image...
19:28khReading m1n1 config from /etc/m1n1.conf:
19:28khMounted System ESP /dev/nvme0n1p4 at /run/.system-efi
19:28khm1n1 updated at /run/.system-efi/m1n1/boot.bin
19:28axboejannau: tty works, I can go back and forth. but black screen for X
19:33jannaulooks like the display get's turned off starting around 5.147404
19:34jannauwhat is started at boot a session manager using Xorg?
19:35axboelightdm
19:35jannaudoes /dev/dri/card1 exists?
19:36Dcow_ has quit [Remote host closed the connection]
19:40axboekilled simple drm and I get X displaying
19:41axboesame update issues, which makes sense as it's the same setup
19:41axboelet me blow away the xfce4 config
19:42axboeyep then it works
19:43axboejannau: I'll mess around with this later and figure out what's going on with xfce4, but it looks like it doesn't like simple drm being enabled for me
19:44axboenow I only have card for dri and one fb device
19:45mpsaxboe: also I disabled simpledrm, had some issues with it. if appledrm is enabled with =y then backlight is disabled for simpledrm
19:47mpsif appledrm is =m then also simpledrm backlight is =m
19:47mpsthese options are forced in Kconfig
19:49kh has quit [Quit: Konversation terminated!]
19:51mxz has quit [Quit: cya]
19:51jannaudcp (appledrm to be precise) should disable simpledrm before lightdm is started
19:51mxz has joined #asahi
19:52mpsyes, it does ime
20:00jannaulightdm doesn't start for me at all
20:01yrlf has quit [Quit: Ping timeout (120 seconds)]
20:02yrlf has joined #asahi
20:05vx has quit [Quit: G-line: User has been permanently banned from this network.]
20:05vx has joined #asahi
20:07princesszoey has quit [Quit: Ping timeout (120 seconds)]
20:08princesszoey has joined #asahi
20:09jannauuser problem, assuming installing lightdm would result in an usable lightdm
20:11kh has joined #asahi
20:12khSeems like DCP wasn't being initialized, I inlined all Apple drivers and now it works
20:12khCursor is really jittery and the colors look dull but at least backlight control works
20:12khI guess that's how it's supposed to be?
20:22axboeheh, a dumb bash script for changing the brightness totally works
20:22axboefor refreshing the display, every .1 second
20:23julio7359 has quit [Ping timeout: 480 seconds]
20:23j`eyaxboe: told you :p
20:23axboej`ey: indeed
20:24axboeI wonder wtf this is
20:26kh has quit [Quit: Konversation terminated!]
20:28yrlf has quit [Quit: Ping timeout (120 seconds)]
20:28yrlf has joined #asahi
20:29cylm has quit [Quit: WeeChat 3.6]
20:32mpsjust tested on m1 macbook and everything is fine
20:33mpsnow I'm tempted to push kernel with appledrm to alpine
20:34axboeseems to work here for anything but xfce4
20:34axboetried a few different ones
20:35mpslong time passed when I used xfce, but people tempting me to try again ;)
20:35axboeI like it...
20:35axboebudgie seems like it could work for me though
20:36millenialhacker has joined #asahi
20:36vmeson has quit [Quit: Konversation terminated!]
20:37mpshmm, created qemu VM img for some developers who wanted test alpine on other distro but forgot what is needed to get it running
20:37mpswith xfce, meant to say
20:38mpslets see for fun
20:39marvin24 has joined #asahi
20:44millenialhacker has quit [Ping timeout: 480 seconds]
20:48mpshm, it works though need tweaks
20:48axboeeverything needs tweaks :)
20:48axboedoes it work on dcp for you?
20:48axboeI mean, refresh
20:49mpsaxboe: yes, but I use alpine linux and not asahi distro
20:49axboemps: I'm on debian, so not asahi either
20:49mpsaha, Glanzmann keep debian, maybe he can help
20:50axboemps: what version are you running?
20:50axboeI'm guessing this is either an xfce4 bug, or some bad interaction between xfce4 and dcp
20:50axboeworks fine with xfce4 with simple drm
20:50axboesame version here
20:52mpsdidn't tried it with simpledrm, only with apppledrm
20:53jluthra has quit [Remote host closed the connection]
20:53bisko has quit [Read error: Connection reset by peer]
20:53bisko has joined #asahi
20:54jluthra has joined #asahi
21:01simpledcp has joined #asahi
21:04mpsaxboe: looks like something is bad with xfce, tried two times to boot machine and also got blank screen both times
21:04simpledcphello, can anyone be of help, I've installed linux-asahi-edge and apple_dcp+appledrm seems to be present in lsmod but i've got https://paste.debian.net/1261173/ this in dmesg, is this normal? also can't change the brightness or color prefs, am I missing something?
21:04axboemps: does fiddling with brightness help?
21:04mpsbut when first start with awesome wm and then switch to xfce it works
21:04axboemps: huh
21:05axboehaven't tried that
21:05mpslet me try again to confirm
21:05jannauaxboe: part of the problem is that Xorg uses the display driver differently than macos. macos (and wayland compositors) use double-bufffering and swap the framebuffer for every screen update. Xorg use just a single framebuffer and and updates it directly
21:06axboejannau: I've never used wayland, maybe I can give that a short
21:06jannauthe black screen is probably caused by not doing a single swap with the new framebuffer after the modeset on Xorg start
21:06axboeoh that doesn't work with xfce4
21:07axboejannau: seems to be two things here indeed - that black screen, and the lack of refresh for xfce4
21:07jannauthe driver tries to workaround that but either I partially broke it or it is racy
21:07Stroller has quit [Quit: Stroller]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:08jannauit's seems to be easily reproducible with the WIP patches for usb-c display out
21:09simpledcpand one more question: if i want gl stuff, i should compile lina's branch and mesa from asahi-main, do i get this right (so i should change pkgconfig and build a package)?
21:09jannauthe xfce4 not update or update only at brighness change is a little wild
21:10jannausimpledcp: which device is this? a macbook pro 13" m1?
21:11jannauI don't see why you wouldn't run into the same problem with lina's gpu branch
21:12simpledcpah, sorry, yes this is mbp m1, don't remember (should be 13''
21:14simpledcpis there a problem with mbp13"?
21:15jannauthere was someone 2 hours ago with essentially the same problem on a m1 mbp13"
21:15mpsjust tested xfce with simpledrm, it works fine
21:16axboejannau: the black screen does look like a race, as it's intermittent. the refresh is reliably broken
21:16simpledcpjannau: oh, i'll check the logs
21:16mpsmy guess is that is bug in xfce
21:17mpsbut I have no idea how to debug it
21:17axboethat'd be my guess too, and me neither
21:18jannausimpledcp: I think you issue should be resolved by reverting d9588077b8f82611286e564fe9f12d7e3afabbc6 "arch: arm64: apple: t8103: Add dcpext/dispext0 nodes"
21:18Dcow has joined #asahi
21:18millenialhacker has joined #asahi
21:18jannauthat is not yet necessary but I thought it would be harmless
21:18simpledcpalso: how can I check the fw version?
21:19Dcow has quit [Remote host closed the connection]
21:20Dcow has joined #asahi
21:20simpledcpi'll build kernel with this commit reverted
21:20Dcow has quit [Remote host closed the connection]
21:20Dcow has joined #asahi
21:23jannauI don't see how this could be be an xfce4 bug, especially if a brightness update refreshes the display
21:25axboejannau: does it reproduce for you? same thing on two laptops here, sounds like mps is seeing it too
21:26lolock has joined #asahi
21:26mpsforgot to tell, when start xfce I've got cursor and it moves fine on blank screen
21:26LinuxM1 has quit [Quit: Leaving]
21:27axboesame here, cursor updates
21:27axboenothing else
21:27mpsand I don't know how to switch to console from xfce, Ctrl key doesn't work
21:27jannauit doesn't reproduce on the mac studio, haven't yet tested on my 14" mbp since I use it as main computer
21:28axboeroot@m1:/sys/class/backlight/apple-panel-bl# while true; do sleep .03; echo 199 > brightness; echo 200 > brightness; done
21:28axboeif I run that, then it updates as you'd expect, albeit of course choppily
21:29Poplar has joined #asahi
21:29amarioguy2 has joined #asahi
21:30jannauhuh, if the mouse cursor updates but nothing else it sounds more like xfce4 bug although I have trouble to imagine how that can happen
21:30axboejannau: anyway, heading out now, but let me know if there's anything I can do to help debug this. I don't know anything about X or the display driver, but happy to run whatever since I have 2 laptops and one isn't really being used
21:31axboejannau: and as mentioned, other wms I've tried seem to work...
21:32axboeit's also funky how when X starts it's fine - it updates in lightdm typing name/password
21:32axboethen stops updating while loading xfce4
21:32millenialhacker has quit [Ping timeout: 480 seconds]
21:33jannauok, I can reproduce it, not with a black background but with the default xfce4 background
21:34julio7359 has joined #asahi
21:34jannauand I can't change the brightness to update
21:35giskard has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
21:36amarioguy has quit [Ping timeout: 480 seconds]
21:39axboejannau: if I turn off compositing, it seems to refresh fine
21:45LinuxM1 has joined #asahi
21:49Poplar_ has joined #asahi
21:51Poplar has quit [Ping timeout: 480 seconds]
21:51Tano70_ has joined #asahi
21:52Dcow has quit [Remote host closed the connection]
21:52mpsahm, just tested on m1 mpb (j293 model) and xfce works fine
21:52jannauoh, that sounds like xfwm makes assumptions in compositor mode that are not true. still strange that a brightness update works around this
21:53Dcow has joined #asahi
21:53Dcow has quit [autokilled: This host violated network policy. Mail support@oftc.net if you think this is in error. (2022-11-18 21:53:01)]
21:53axboejannau: yep, but at least I can now test dcp :)
21:54simpledcphmmm ERROR: modpost: "esr_get_class_string" [drivers/soc/apple/apple-rtkit.ko] undefined!
21:55axboeon the m1 max 16" now and yeah xfce4 just works if I turn the compositor off
21:55axboeI'm counting this as a major win, now I have backlight control :)
21:56axboeon that note, really heading out
21:57LinuxM1 has left #asahi [Leaving]
21:58Stroller has joined #asahi
21:58jannaubye, glad we have at least discovered what triggers the no update issue
21:58simpledcpI was compiling with make CC=clang LLVM=1 -j `nproc` V=0 and olddefconfig
21:59jannaudid you compile before with gcc?
21:59svenbacklight really seems to be the most important feature ever
21:59simpledcpjannau: no
22:00jannausimpledcp: no. change apple_rtkit from m to y
22:09Tano70_ has quit [Quit: Leaving]
22:10LinuxM1 has joined #asahi
22:15chengsun has joined #asahi
22:21mpshm I celebrate to early, also on m1 mbp xfce is buggy
22:26bluetaildoes a EDID contain flags for whether dithering is on or off? I am kind of intrigued if there would be a way to turn it off
22:34Poplar_ is now known as Poplar
22:40rayanamukami3 has joined #asahi
22:48LinuxM1 has quit [Quit: Leaving]
22:50axboejannau: thanks for entertaining the idea :)
23:02kloenk has quit [Remote host closed the connection]
23:03kloenk has joined #asahi
23:03millenialhacker has joined #asahi
23:11millenialhacker has quit [Ping timeout: 480 seconds]
23:17jjido has joined #asahi
23:25eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
23:32eroc1990 has joined #asahi
23:33axboemps: just turn off the compositor
23:41mpsaxboe: yes, I did
23:41mpsbut still doesn't work
23:43weitcis has joined #asahi
23:57axboemps: huh
…