Ayaneo Air Plus Mendocino (7320U) sw improvements

Status: panel oriented correctly from boot to game mode & desktop without having to do anything, but no 40/50 fps in unified slider No sound at all on speakers. I believe there's an Anwinic amp between the soc and speakers, that needs to be initialised (i2c probably) Very tiny sound on headphones: I believe this patch fixes it https://github.com/citral23/distribution/blob/main/packages/kernel/linux/patches/AMD64/009-ayaneo-audio.patch amd64 support has been dropped from Jelos since, I will see if I can reach the author to get permission to use it rgb control is fine no fan control yet, I have not checked yet if reachable over sysfs no video out it seems, but it didn't work either on windows for the 5 minutes I kept it before throwing up
GitHub
distribution/packages/kernel/linux/patches/AMD64/009-ayaneo-audio.p...
Home of the JELOS Linux distribution. Contribute to citral23/distribution development by creating an account on GitHub.
59 Replies
citral
citralOP•8mo ago
I see, the edid only supports 60hz and chimeraos injects a custom one : https://github.com/ChimeraOS/device-quirks/blob/main/usr/lib/firmware/edid/ayaneo_airplus_edid.bin
antheas
antheas•8mo ago
remember loki zero had a proper edid and gamescope could not see it you dont need permission to use the kernel patch, its gplv2 as is the whole kernel
citral
citralOP•8mo ago
Ok I'll try to overlay a custom gamescope again 🙂
antheas
antheas•8mo ago
overlaying suxx yep try to merge it to the loki patch since its the same framerates name it something like SCREEN_40_50_60 and match both panels
citral
citralOP•8mo ago
do you know what drm-mode fixed was supposed to do?
antheas
antheas•8mo ago
Ohhhh It's weird I don't recall exactly But it determines what modeline generation method is used By default it's CVT and for the steam deck gamescope has hardcoded modelines I guess if CVT is not supported on the display and you don't have the custom edid it will break
citral
citralOP•8mo ago
it's going to be a pain to merge a reworked patch that would apply to both loki and ayaneo air plus tbh Source8: 0001-disable-steam-touch-click-atom.patch Source9: 3.13.16.9-splitgate.patch ah no they don't touch the same file I think yeah that will be fine
antheas
antheas•8mo ago
for bazzite i think since the loki is the last patch its ok
citral
citralOP•8mo ago
gamescope-session can also merge ayn and ayaneo we just need to decide if we keep drm fixed, I tried cvt and I didn't see a difference after my patch
antheas
antheas•8mo ago
so it doesnt work? or does it work?
citral
citralOP•8mo ago
well cvt works
antheas
antheas•8mo ago
fixed?
citral
citralOP•8mo ago
and fixed too
antheas
antheas•8mo ago
should be the same as there is no fixed funciton for devices other than sd
citral
citralOP•8mo ago
currently ayn has fixed, ayaneo nothing
antheas
antheas•8mo ago
GitHub
drm: Custom refresh rates by honjow · Pull Request #10 · ChimeraOS/...
Added a parameter --ustom-refresh-rates, which allows custom refresh rates. This prevents the need to repeatedly add hard-coded refresh rate parameters for different devices. The alternative is to ...
antheas
antheas•8mo ago
@Kyle Gospo can we get this going?
Aru
Aru•8mo ago
oo yes, this would be very nice to have for alternative handhelds 👀
Kyle Gospo
Kyle Gospo•8mo ago
yup, i'll add for f40
citral
citralOP•8mo ago
gamescope doesn't start for me with this PR, but I built it locally on debian from chimeraos sources and applied the PR locally, so maybe it's incompatible/missing specific bazzite patches actually it starts without the --custom-refresh-rates option looks like pebkac, one moment nope, it doesn't startup, be it internal or external I'll try to see what it says in desktop no obvious error, so IDK for now
antheas
antheas•8mo ago
rip
citral
citralOP•8mo ago
the code looks alright to me tho hmm, at first glance patching gamescope/gamescope session doesn't work on this model like it did on the ayn loki zero so we still need valid edid? doesn't hurt to try to confirm I guess looks like it, same patches "work" in chimeraos for the slider however the screen corrupts on anything else than 60hz
antheas
antheas•8mo ago
so no cvt support these panels are a hit and miss when it comes to custom refresh rates unless the manufacturer validated the panel for a specific hz it wont work usually if they did it will be in the edid except for something like the steam deck for taht you can see in the gamescope source code that the panel can do refresh rates other than the edid
citral
citralOP•8mo ago
yeah, I think what we need for those panels is making use of gamescope built-in frame limiter
antheas
antheas•8mo ago
but the comments will reference the fact that the panel was validated for those refresh rates
citral
citralOP•8mo ago
hah! it works with --generate-drm-mode fixed well 50 works 40 is green, lol
antheas
antheas•8mo ago
open a very light game and make sure you have a straight line frametime at 50hz
citral
citralOP•8mo ago
it's borked
antheas
antheas•8mo ago
40hz maybe 50?
citral
citralOP•8mo ago
50 is fine, 40 is all over the place the edid of chimera is a bit strange though there's no need to add everything between 30 and 60 by increments of 1
antheas
antheas•8mo ago
oh avoid thsoe that edid is very likely busted
citral
citralOP•8mo ago
yeah
antheas
antheas•8mo ago
i had a script to do that maybe an edid generated from it ended up there
citral
citralOP•8mo ago
tomorrow I will reinstall without it and check how it behaves
antheas
antheas•8mo ago
only cvt panels can do that
citral
citralOP•8mo ago
Also I tend to think that 6" 1080p panels are forced external only to enable ui scaling, but that's not a very good way to work around it, it can be enabled via CEF
antheas
antheas•8mo ago
legion go is 2k and scanes fine at 8ish in
citral
citralOP•8mo ago
I mean I think the ayn and ayaneo panels are forced external in gamescope-session, only to unlock the "ui scaling" sliders in game mode I'm not sure it's ideal
antheas
antheas•8mo ago
yeah i get what you mean, dunno if its an issue though dunno but from what i saw in the source code, being set as an external panel does not do much
citral
citralOP•8mo ago
Yeah Bummer I thought I got my hands on a good compact indie machine finally but panel sucks, no sound, sleep not working, dp alt mode not working... That's a long list
antheas
antheas•8mo ago
so do you have both now?
citral
citralOP•8mo ago
Oh and no fan curve although someone is working on a kernel module
antheas
antheas•8mo ago
what happened to the loki beware ayaneo needs a software fan curve
citral
citralOP•8mo ago
Well I was thinking about selling the loki because the soc heats up too much, for nothing, as it's 14nm
antheas
antheas•8mo ago
use your sw money to buy a ryzen 8 lmao ally reached 400 bucks, z1 model open box 300
citral
citralOP•8mo ago
It's big though I'm happy with my deck + pc, just wanted something to travel light Haven't lost any money yet though trying 3 of them I guess loki 7320u would be decent even if it's a bit bigger than I'd like, but good luck finding one 😃 Or should just find a 6600u, more common The panel works fine since the patch, sound works, fan works But where's the fun in that 😛 Ok I gathered intelligence The display on the ayaneo air plus line shits himself below 48hz more or less, some get it down to 46, others not So adding 50hz could be useful, but 40 is a no-go I guess it's not a big priority for now though
citral
citralOP•8mo ago
I think the main topic would be trying to add https://gitlab.com/Lightwars/oxp-sensors for now, but I have no idea on how to do dkms on bazzite
GitLab
Lightwars / oxp-sensors · GitLab
This driver provides functionality to control fan and some other sensors in OneXPlayer AMD handheld and others of the like.
citral
citralOP•8mo ago
then the headphones patch, but same, not sure how I recompile the kernel and boot it on bazzite
antheas
antheas•8mo ago
There are multiple oxp sensors forks That's not the up to date one
antheas
antheas•8mo ago
The chimeraos people keep a more up to date variant
citral
citralOP•8mo ago
the driver in 6.7.12 doesn't support my device yet
antheas
antheas•8mo ago
Yeah no that driver definitely not
citral
citralOP•8mo ago
I could build and insmod the Lightwars one it's from the guy who upstreamed so I picked that one So finally, silence, this is good. I guess people can just wait for linux 6.8 to land in bazzite at this stage, no need to integrate the fork into 6.7 now the device is usable, albeit with usb audio dongle only can you guide me on how to get the sources/rebuild the kernel? Oh, that's pretty cool the oxp driver unfucks sleep mode, so it works with it
antheas
antheas•8mo ago
Eh for arch yes fedora no Look in the fsync kernel It's not terribly difficult to add an additional patch to the spec file How to build it is a different question
citral
citralOP•8mo ago
I should probably install arch or nobara to try patches yeah
citral
citralOP•8mo ago
I have sound on headphones enabling speakers
No description
citral
citralOP•8mo ago
Ok so it's just a little quirk. For speakers, apparently the amp is same family/specsheet as one already in linux tree so shouldn't be too much work I guess I'll install arch when time allows to facilitate building stuff, upstream it, then it will trickle down to bazzite
Want results from more Discord servers?
Add your server