ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
Stroller has joined #asahi
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
maximbaz has quit [Quit: bye]
maximbaz has joined #asahi
maximbaz has quit [Quit: bye]
maximbaz has joined #asahi
loki_val has joined #asahi
crabbedhaloablut has quit [Ping timeout: 480 seconds]
beeblebrox has joined #asahi
julio7359 has joined #asahi
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
<bluetail> Is there a way to disable dithering / will there be one in the future?
r0ni has quit [Quit: Leaving]
julio7359 has quit [Ping timeout: 480 seconds]
r0ni has joined #asahi
user982492 has joined #asahi
ten15 has quit [Remote host closed the connection]
beeblebrox has quit [Quit: Konversation terminated!]
ten15 has joined #asahi
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi
nicolas17 has joined #asahi
jamespmo_ has joined #asahi
jamespmorgan has quit [Ping timeout: 480 seconds]
jamespmorgan has joined #asahi
jamespmo_ has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chadmed> scardracs: 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.
<chadmed> it shouldnt even let you install it unless you really REALLY force it since upstream is a newer version for both stable and unstable keywords
<chadmed> also 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
nicolas17 has quit [Quit: Konversation terminated!]
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
tertu2 has joined #asahi
tertu has quit [Ping timeout: 480 seconds]
julio7359 has joined #asahi
tertu2 has quit [Ping timeout: 480 seconds]
tertu has joined #asahi
weitcis has quit [Quit: Konversation terminated!]
cylm has joined #asahi
wereiyou has quit [Ping timeout: 480 seconds]
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
capta1nt0ad has quit [Remote host closed the connection]
capta1nt0ad has joined #asahi
capta1nt0ad has quit []
capta1nt0ad has joined #asahi
ping_47 has quit [Remote host closed the connection]
capta1nt0ad has quit [Quit: Konversation terminated!]
capta1nt0ad has joined #asahi
capta1nt0ad has quit []
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
LinuxM1 has joined #asahi
julio7359 has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
weitcis has joined #asahi
<scardracs> Sounds good to me, thanks :)
weitcis has quit [Remote host closed the connection]
mac456 has quit [Read error: Connection reset by peer]
guillaume_g has joined #asahi
weitcis has joined #asahi
weitcis has quit []
weitcis has joined #asahi
Major_Biscuit has joined #asahi
<Glanzmann> sven: 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
<Glanzmann> sven: 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.
SSJ_GZ has joined #asahi
millenialhacker has joined #asahi
weitcis has quit [Remote host closed the connection]
millenialhacker has quit [Ping timeout: 480 seconds]
weitcis has joined #asahi
Dcow_ has quit [Remote host closed the connection]
Dcow has joined #asahi
Stroller has quit [Quit: Stroller]
<sven> can you reproduce this?
<kode54> how much of the GPU and/or DCP stuff has been released to repos yet?
<sven> replugging devices on the type c ports will usually fix whatever issue they have
<sven> that 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
<kode54> oh, linux-asahi-dev
<kode54> thank you, feature matrix
<Glanzmann> sven: 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.
<_jannau_> kode54: asahi-wip/asahi-dev have most dcp changes except the very experimental dp-altmode and experimental changes I'm working on
<_jannau_> gpu driver is only in lina's repo
millenialhacker has joined #asahi
jjido has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
Poplar has quit [Ping timeout: 480 seconds]
<kode54> gptcha
<kode54> *gotcha
<kode54> I assume dp-altmode is needed to have multiple monitors
<j`ey> yeah
<kode54> guess I'll continue to wait before attempting to use it again
<sven> yeah, dpaltmode will take a while longer
<sven> it kinda sorta sometimes works with some babysitting right now
giskard has joined #asahi
weitcis has quit [Quit: Konversation terminated!]
weitcis has joined #asahi
<basso> display outputs on m1 macs are poop
<basso> have to use thunderbolt dock to get more than 1 display out of one port, usb-c docks is no go
<sven> m1 only supports a single external display no matter what
<basso> i mean in general the m1 series of cpus
<sven> fair
<basso> if i connect a usb-c dock to my m1 pro it cant do dual displays, only mirror two lol
<sven> the 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
<basso> :(
<basso> some things are nice on m1 but there are too many exceptions, just like my old java code
<sven> they can tunnel two DP streams over USB4 though
<basso> what really?
<basso> mmm, i need usb4 dock at some point then
<sven> that's why thunderbolt works
<sven> usb4 is more or less thunderbolt 3
<basso> ah yeh that is true
<basso> worst 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
<basso> i 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
<basso> but on linux that is also really weird, have to edit an edid and include it in grub boot?
millenialhacker has joined #asahi
<sven> let 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
<sven> I already have one screen/adapter combo that works on linux but not on macos (possibly due to hdcp)
<sven> maybe we can fix some other quirks as well ;)
<basso> yeh dp altmode should be plenty enough for everyone :)
<sven> i'll need dp-over-usb4 to actually use this as a daily driver
weitcis has quit [Remote host closed the connection]
<basso> ill need new monitors to daily drive a mac running linux, 4k fractional scaling is doodoo and has too many quirks
weitcis has joined #asahi
<basso> "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
<Glanzmann> sven: Wow. Interesting.
<Glanzmann> sven: I rebooted a few times but can not reproduce it. :-(
millenialhacker has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi
Dcow has quit [Ping timeout: 480 seconds]
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
<yuka> by the way, is there any chance of getting a kvm guest with 4K pagesize on a host with 16K pagesize?
<j`ey> yes that will work
<yuka> So I could run rosetta2 in a VM on a 16K pagesize host kernel
<yuka> don't really want to change my whole host kernel to 4K pagesize because of the performance impact
<sven> not really, rosetta requires that special x86 memory ordering to be active
<yuka> well... "requires"
<yuka> the windows on arm x86 emulation stuff also just disregards that
<yuka> I could also run 10 single core vms pinned to different cores 🤔
<chadmed> i dont think rosetta works properly at all without the TSO stuff
almeyras has joined #asahi
<sven> please also don't discuss how to run rosetta2 on here since that's likely against its license
<yuka> apparently it works well enough to run geekbench?
<chadmed> yeah that too
millenialhacker has joined #asahi
<yuka> oki
millenialhacker has quit [Ping timeout: 480 seconds]
almeyras has quit [Quit: Igloo IRC: https://iglooirc.com]
capta1nt0ad has joined #asahi
Tom__ has joined #asahi
StupidYui has quit [Ping timeout: 480 seconds]
jjido has joined #asahi
Raito_Bezarius has quit [Ping timeout: 480 seconds]
jamespmorgan has quit [Ping timeout: 480 seconds]
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millenialhacker has joined #asahi
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi
millenia_ has joined #asahi
millenialhacker has quit [Read error: Connection reset by peer]
StupidYui has joined #asahi
Tom__ has quit [Ping timeout: 480 seconds]
millenia_ has quit [Remote host closed the connection]
Techcable has quit [Ping timeout: 480 seconds]
weitcis has quit [Quit: Konversation terminated!]
Poplar has joined #asahi
millenialhacker has joined #asahi
Major_Biscuit has quit [Ping timeout: 480 seconds]
Raito_Bezarius has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
Poplar has quit [Ping timeout: 480 seconds]
spectrum-m1 has joined #asahi
Poplar has joined #asahi
<spectrum-m1> Hello! I wonder how can I help the project as a newbie? Can I help with debugging?
spectrum-m1 has quit [Quit: Page closed]
Poplar has quit [Ping timeout: 480 seconds]
eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
vmeson has quit [Ping timeout: 480 seconds]
Major_Biscuit has joined #asahi
vmeson has joined #asahi
Major_Biscuit has quit [Ping timeout: 480 seconds]
eroc1990 has joined #asahi
Major_Biscuit has joined #asahi
<as400> I must say that now, with dcp/backlight control, working on my mbp is a sheer pleasure. THX guys, thx jannau !
leitao has joined #asahi
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
wereiyou has joined #asahi
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
Stroller has joined #asahi
bisko has joined #asahi
eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
bisko has quit [Ping timeout: 480 seconds]
Treibholz has quit [Quit: WeeChat 3.0]
karolherbst has joined #asahi
jamespmo_ has joined #asahi
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #asahi
<axboe> jannau: with the dcp updates, I gave it another spin here
<axboe> jannau: 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
<axboe> jannau: 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
<axboe> so it does seem to work, but it doesn't refresh the content of the display if that makes any sense
<axboe> this is running 00c174290113
<axboe> and m1n1 ba1dfab4d299
<Glanzmann> axboe: Do you need to hit the brightness up/down just once or everytime you want a screen update?
<axboe> Glanzmann: every time
<axboe> doesn't update at all without it, which is why it appeared stalled/hung
<Glanzmann> I 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.
<axboe> I should try on the m1pro, it's sitting idle anyway
<Glanzmann> axboe: Let me reboot and try it on my m1 air.
<j`ey> axboe: write a daemon to change the brightness at 60hz :P
<axboe> j`ey: haha
<Glanzmann> Btw. the brightess control is handled by the kernel or do I need userland for it?
<mps> Glanzmann: userspace have to write to /sys/class/backlight/apple-panel-bl/brightness
eroc1990 has joined #asahi
<axboe> Glanzmann: that part Just Works for me with the buttons in xfce4
<axboe> but yeah, writing to sysfs directly works as well of course
<mps> I use 'light' program with small lua tweak for awesome wm
<mps> and also I set to in rc script to constant on boot
<mps> hmm
<as400> mps: you should be the person running "make your life harder" blog :)
<mps> and also I set it to constant in rc script on boot
millenialhacker has joined #asahi
<Glanzmann> I see, thanks.
<mps> as400: hm, why
<as400> mps: hahahah - just a friday joke - no offence :)
<Glanzmann> axboe: For me it works with the dcp.
<mps> I don't feel offended, no worries ;)
<axboe> Glanzmann: it might be wm related :/
<Glanzmann> axboe: Just try fvwm or blackbox.
<as400> just wondering - you can use something that works. Don't know - plasma, gnome ?
<Glanzmann> axboe: If you want I can send you my kpkg and boot.bin, if you want to try it.
<mps> as400: I prefer to have as much as possible under my control
<axboe> as400: I don't like big desktops
<axboe> Glanzmann: I did previously try a different wm and it worked
<axboe> Glanzmann: I should try and blow away my xfce4 settings and see if that works...
<axboe> I'll do that later, got a bunch of meetings coming up
<Glanzmann> axboe: I remeber. Really strange what it is then.
<axboe> Glanzmann: yeah no idea really, but I also don't know much about that side of things
<as400> axboe: sure, understandable. But isn't it more productive to have something that just works and is still FOSS ?
<Glanzmann> Is the macbook air supposed to turn off the screen using dcp when I close the lid or do I have to do that myself?
<axboe> as400: I'm typing from that laptop right now, just not using dcp
<mps> as400: you mean windows :p
<as400> mps: that was a hard strike :)
<mps> (sorry for OT)
millenialhacker has quit [Ping timeout: 480 seconds]
<as400> axboe: ok, I thought you are using dcp but somehow it does not work for you.
danielnechtan has quit [Read error: Connection reset by peer]
danielnechtan has joined #asahi
Poplar has joined #asahi
<_jannau_> axboe: does it start working if you switch to a tty and back to X11?
<axboe> _jannau_: nope doesn't change if I switch to a tty and back
int16h has joined #asahi
<_jannau_> but the switch works? does the tty update if you type?
<axboe> _jannau_: switch works, update works on tty
danielnechtan has quit [Ping timeout: 480 seconds]
Major_Biscuit has quit []
<axboe> _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
Poplar has quit [Ping timeout: 480 seconds]
Poplar has joined #asahi
bisko has joined #asahi
Techcable has joined #asahi
guillaume_g has quit []
roxfan2 is now known as roxfan
bcrumb has joined #asahi
<bcrumb> if force_discharge on battery really forcefully reducing battery capacity or just letting battery lose charge meaning blocking AC?
<bcrumb> *is
<bcrumb> by forcefully reducing battery capacity meaning, forcefully discharging battery
<bcrumb> this sounds stupid, i hope someone understands what i mean
millenialhacker has joined #asahi
bcrumb has quit [Quit: WeeChat 3.7.1]
millenialhacker has quit [Ping timeout: 480 seconds]
jjido has joined #asahi
julio7359 has joined #asahi
riker77 has quit [Quit: Quitting IRC - gone for good...]
riker77 has joined #asahi
<marcan> force discharge means AC input is blocked, it's not going to literally burn power lol
<marcan> force discharge as in force the battery management into "discharging" state by disabling inflow entirely
testaccount123 has joined #asahi
testaccount123 has quit []
r0ni has quit [Remote host closed the connection]
r0ni has joined #asahi
grgy has quit [Remote host closed the connection]
grgy has joined #asahi
Poplar has quit [Ping timeout: 480 seconds]
Poplar has joined #asahi
Stary has quit [Quit: ZNC - http://znc.in]
Poplar has quit [Ping timeout: 480 seconds]
Stary has joined #asahi
millenialhacker has joined #asahi
___nick___ has joined #asahi
___nick___ has quit []
millenialhacker has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kh has joined #asahi
kh is now known as kazuki
<kazuki> Is brightness control supposed to work? It doesn't work here on my M1 MBP 13, even if I use jannau's m1n1 brightness branch
<Glanzmann> kazuki: For me it is working on m1 air which is very simliar to m1 mbp 13.
<jannau> kazuki: no m1n1 changes are necessary. it works with m1n1 1.1.8 out of the box. it requires however DRM_APPLE
<kazuki> I'm using linux-asahi-edge but it isn't working...
<kazuki> Fw ver is 12.3
<Glanzmann> kazuki: What version is your macos?
<kazuki> The default, 12.3
yuka has quit [Remote host closed the connection]
<Glanzmann> kazuki: So for me the current rebase worked after I upgraded to Ventura.
<Glanzmann> No idea if it is related or was just a stupid one off.
<kazuki> Oh I'm on ventura too, I thought you meant the firmware for asahi
<Glanzmann> kazuki: 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.
<Glanzmann> kazuki: Okay, than that isn't it.
yuka has joined #asahi
<Glanzmann> kazuki: So the edge kernel is not booting for you?
<kazuki> It boots, but brightness doesn't change when I move the slider
<kazuki> display brightness slider
<Glanzmann> kazuki: Okay, have you tried echo '80' > /sys/class/backlight/apple-panel-bl/brightness as root?
<Glanzmann> kazuki: Can you paste the output of your dmesg to tg.st/p ?
kazuki has quit [Quit: Konversation terminated!]
<Glanzmann> Looks like a regression.
kh has joined #asahi
kh is now known as kazuki
kazuki is now known as kh
<kh> > Okay, have you tried echo '80' > /sys/class/backlight/apple-panel-bl/brightness as root?
<kh> Same result
<Glanzmann> kh: So the brightness does not change?
<kh> Yes
<Glanzmann> jannau, 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
<Glanzmann> kh: So the issue is apparantly, that you don't use dcp. As a result you don't have any brightness control.
<kh> I'll send another dmesg with m1n1 1.18
<j`ey> but also: [ 3.013670] apple-dcp 231c00000.dcp: RTKit: Initializing (protocol version 12)
kh has quit []
mxz has quit [Quit: cya]
kh has joined #asahi
<jannau> kazuki: you need m1n1 1.1.8
mxz has joined #asahi
<Glanzmann> kh: Same thing.
<kh> jannau: I previously used m1n1 1.1.8 with your brightness changes
<Glanzmann> kh: Here is a dmesg of where dcp is working on m1 air: https://pbot.rmdir.de/42lia7YpUmwMMCdi9cwcKg
<kh> The dmesg I just sent is on unmodified m1n1 1.1.8
<axboe> jannau: tried on the m1 pro and in two boots I just get a black screen with dcp
yrlf has quit [Quit: Ping timeout (120 seconds)]
<kh> I'm on macOS 13.0.1 if that helps
<Glanzmann> kh: I'm on the same version and for me it works.
yrlf has joined #asahi
<jannau> kh: 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
<jannau> macos version should not matter except for the one of the stub install
kh has quit [Quit: Konversation terminated!]
<mps> maybe m1n1+dtbs+u-boot isn't updated
<jannau> axboe: can I get the kernel boot messages
<axboe> jannau: sure, 2 sec
<axboe> jannau: ok new boot it actually seems to work, but I did disable a few things in .config
<axboe> just to experiment
<axboe> and interestingly, it works with xfce4
<axboe> oh dcp didn't load... hang on, I'll get it back and see what happens (and provide dmesg)
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
kh has joined #asahi
<kh> mps: I have every package updated to the latest availabe
<kh> available*
<axboe> looks like DRM_FBDEV is needed :)
<mps> axboe: yes
<mps> kh: I mean rebuild /efi/m1n1/boot.bin
<mps> /boot/efi/m1n1/boot.bin
<mps> on ESP
<kh> Isn't that rebuilt each time m1n1 is updated?
<jannau> that should happen on asahi automatically
<kh> (2/2) Updating m1n1 image...
<kh> Reading m1n1 config from /etc/m1n1.conf:
<kh> Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
<kh> m1n1 updated at /run/.system-efi/m1n1/boot.bin
<axboe> jannau: tty works, I can go back and forth. but black screen for X
<jannau> looks like the display get's turned off starting around 5.147404
<jannau> what is started at boot a session manager using Xorg?
<axboe> lightdm
<jannau> does /dev/dri/card1 exists?
<axboe> yep
Dcow_ has quit [Remote host closed the connection]
<axboe> killed simple drm and I get X displaying
<axboe> same update issues, which makes sense as it's the same setup
<axboe> let me blow away the xfce4 config
<axboe> yep then it works
<axboe> jannau: 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
<axboe> now I only have card for dri and one fb device
<mps> axboe: also I disabled simpledrm, had some issues with it. if appledrm is enabled with =y then backlight is disabled for simpledrm
<mps> if appledrm is =m then also simpledrm backlight is =m
<mps> these options are forced in Kconfig
kh has quit [Quit: Konversation terminated!]
mxz has quit [Quit: cya]
<jannau> dcp (appledrm to be precise) should disable simpledrm before lightdm is started
mxz has joined #asahi
<mps> yes, it does ime
<jannau> lightdm doesn't start for me at all
yrlf has quit [Quit: Ping timeout (120 seconds)]
yrlf has joined #asahi
vx has quit [Quit: G-line: User has been permanently banned from this network.]
vx has joined #asahi
princesszoey has quit [Quit: Ping timeout (120 seconds)]
princesszoey has joined #asahi
<jannau> user problem, assuming installing lightdm would result in an usable lightdm
kh has joined #asahi
<kh> Seems like DCP wasn't being initialized, I inlined all Apple drivers and now it works
<kh> Cursor is really jittery and the colors look dull but at least backlight control works
<kh> I guess that's how it's supposed to be?
<axboe> heh, a dumb bash script for changing the brightness totally works
<axboe> for refreshing the display, every .1 second
julio7359 has quit [Ping timeout: 480 seconds]
<j`ey> axboe: told you :p
<axboe> j`ey: indeed
<axboe> I wonder wtf this is
kh has quit [Quit: Konversation terminated!]
yrlf has quit [Quit: Ping timeout (120 seconds)]
yrlf has joined #asahi
cylm has quit [Quit: WeeChat 3.6]
<mps> just tested on m1 macbook and everything is fine
<mps> j293
<mps> now I'm tempted to push kernel with appledrm to alpine
<axboe> seems to work here for anything but xfce4
<axboe> tried a few different ones
<mps> long time passed when I used xfce, but people tempting me to try again ;)
<axboe> I like it...
<axboe> budgie seems like it could work for me though
millenialhacker has joined #asahi
vmeson has quit [Quit: Konversation terminated!]
<mps> hmm, created qemu VM img for some developers who wanted test alpine on other distro but forgot what is needed to get it running
<mps> with xfce, meant to say
<mps> lets see for fun
marvin24 has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
<mps> hm, it works though need tweaks
<axboe> everything needs tweaks :)
<axboe> does it work on dcp for you?
<axboe> I mean, refresh
<mps> axboe: yes, but I use alpine linux and not asahi distro
<axboe> mps: I'm on debian, so not asahi either
<axboe> funky
<mps> aha, Glanzmann keep debian, maybe he can help
<axboe> mps: what version are you running?
<axboe> I'm guessing this is either an xfce4 bug, or some bad interaction between xfce4 and dcp
<mps> 4.16
<axboe> works fine with xfce4 with simple drm
<axboe> same version here
<mps> didn't tried it with simpledrm, only with apppledrm
<axboe> ok
jluthra has quit [Remote host closed the connection]
bisko has quit [Read error: Connection reset by peer]
bisko has joined #asahi
jluthra has joined #asahi
simpledcp has joined #asahi
<mps> axboe: looks like something is bad with xfce, tried two times to boot machine and also got blank screen both times
<simpledcp> hello, 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?
<axboe> mps: does fiddling with brightness help?
<mps> but when first start with awesome wm and then switch to xfce it works
<axboe> mps: huh
<axboe> haven't tried that
<mps> let me try again to confirm
<jannau> axboe: 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
<axboe> jannau: I've never used wayland, maybe I can give that a short
<axboe> *shot
<jannau> the black screen is probably caused by not doing a single swap with the new framebuffer after the modeset on Xorg start
<axboe> oh that doesn't work with xfce4
<axboe> jannau: seems to be two things here indeed - that black screen, and the lack of refresh for xfce4
<jannau> the driver tries to workaround that but either I partially broke it or it is racy
Stroller has quit [Quit: Stroller]
___nick___ has quit [Ping timeout: 480 seconds]
<jannau> it's seems to be easily reproducible with the WIP patches for usb-c display out
<simpledcp> and 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)?
<jannau> the xfce4 not update or update only at brighness change is a little wild
<jannau> simpledcp: which device is this? a macbook pro 13" m1?
<jannau> I don't see why you wouldn't run into the same problem with lina's gpu branch
<simpledcp> ah, sorry, yes this is mbp m1, don't remember (should be 13''
<simpledcp> is there a problem with mbp13"?
<jannau> there was someone 2 hours ago with essentially the same problem on a m1 mbp13"
<mps> just tested xfce with simpledrm, it works fine
<axboe> jannau: the black screen does look like a race, as it's intermittent. the refresh is reliably broken
<simpledcp> jannau: oh, i'll check the logs
<mps> my guess is that is bug in xfce
<mps> but I have no idea how to debug it
<axboe> that'd be my guess too, and me neither
<jannau> simpledcp: I think you issue should be resolved by reverting d9588077b8f82611286e564fe9f12d7e3afabbc6 "arch: arm64: apple: t8103: Add dcpext/dispext0 nodes"
Dcow has joined #asahi
millenialhacker has joined #asahi
<jannau> that is not yet necessary but I thought it would be harmless
<simpledcp> also: how can I check the fw version?
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi
<simpledcp> i'll build kernel with this commit reverted
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi
<jannau> I don't see how this could be be an xfce4 bug, especially if a brightness update refreshes the display
<axboe> jannau: does it reproduce for you? same thing on two laptops here, sounds like mps is seeing it too
lolock has joined #asahi
<mps> forgot to tell, when start xfce I've got cursor and it moves fine on blank screen
LinuxM1 has quit [Quit: Leaving]
<axboe> same here, cursor updates
<axboe> nothing else
<mps> and I don't know how to switch to console from xfce, Ctrl key doesn't work
<jannau> it doesn't reproduce on the mac studio, haven't yet tested on my 14" mbp since I use it as main computer
<axboe> root@m1:/sys/class/backlight/apple-panel-bl# while true; do sleep .03; echo 199 > brightness; echo 200 > brightness; done
<axboe> if I run that, then it updates as you'd expect, albeit of course choppily
Poplar has joined #asahi
amarioguy2 has joined #asahi
<jannau> huh, if the mouse cursor updates but nothing else it sounds more like xfce4 bug although I have trouble to imagine how that can happen
<axboe> jannau: 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
<axboe> jannau: and as mentioned, other wms I've tried seem to work...
<axboe> it's also funky how when X starts it's fine - it updates in lightdm typing name/password
<axboe> then stops updating while loading xfce4
millenialhacker has quit [Ping timeout: 480 seconds]
<jannau> ok, I can reproduce it, not with a black background but with the default xfce4 background
julio7359 has joined #asahi
<jannau> and I can't change the brightness to update
giskard has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
amarioguy has quit [Ping timeout: 480 seconds]
<axboe> jannau: if I turn off compositing, it seems to refresh fine
LinuxM1 has joined #asahi
Poplar_ has joined #asahi
Poplar has quit [Ping timeout: 480 seconds]
Tano70_ has joined #asahi
Dcow has quit [Remote host closed the connection]
<mps> ahm, just tested on m1 mpb (j293 model) and xfce works fine
<jannau> oh, that sounds like xfwm makes assumptions in compositor mode that are not true. still strange that a brightness update works around this
Dcow has joined #asahi
Dcow 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)]
<axboe> jannau: yep, but at least I can now test dcp :)
<simpledcp> hmmm ERROR: modpost: "esr_get_class_string" [drivers/soc/apple/apple-rtkit.ko] undefined!
<axboe> on the m1 max 16" now and yeah xfce4 just works if I turn the compositor off
<axboe> I'm counting this as a major win, now I have backlight control :)
<axboe> on that note, really heading out
LinuxM1 has left #asahi [Leaving]
Stroller has joined #asahi
<jannau> bye, glad we have at least discovered what triggers the no update issue
<simpledcp> I was compiling with make CC=clang LLVM=1 -j `nproc` V=0 and olddefconfig
<jannau> did you compile before with gcc?
<sven> backlight really seems to be the most important feature ever
<simpledcp> jannau: no
<simpledcp> should i?
<jannau> simpledcp: no. change apple_rtkit from m to y
Tano70_ has quit [Quit: Leaving]
LinuxM1 has joined #asahi
chengsun has joined #asahi
<mps> hm I celebrate to early, also on m1 mbp xfce is buggy
<bluetail> does 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
Poplar_ is now known as Poplar
rayanamukami3 has joined #asahi
LinuxM1 has quit [Quit: Leaving]
<axboe> jannau: thanks for entertaining the idea :)
kloenk has quit [Remote host closed the connection]
kloenk has joined #asahi
millenialhacker has joined #asahi
millenialhacker has quit [Ping timeout: 480 seconds]
jjido has joined #asahi
eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
eroc1990 has joined #asahi
<axboe> mps: just turn off the compositor
<mps> axboe: yes, I did
<mps> but still doesn't work
weitcis has joined #asahi
<axboe> mps: huh