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
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
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
Ok I'll try to overlay a custom gamescope again 🙂
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
do you know what drm-mode fixed was supposed to do?
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
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
for bazzite i think since the loki is the last patch its ok
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
so it doesnt work?
or does it work?
well cvt works
fixed?
and fixed too
should be the same
as there is no fixed funciton for devices other than sd
currently ayn has fixed, ayaneo nothing
https://github.com/ChimeraOS/gamescope/pull/10 check this out
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 ...
@Kyle Gospo can we get this going?
oo yes, this would be very nice to have for alternative handhelds 👀
yup, i'll add for f40
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
rip
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
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
yeah, I think what we need for those panels is making use of gamescope built-in frame limiter
but the comments will reference the fact that the panel was validated for those refresh rates
hah! it works with --generate-drm-mode fixed
well 50 works
40 is green, lol
open a very light game
and make sure you have a straight line frametime at 50hz
it's borked
40hz maybe
50?
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
oh avoid thsoe
that edid is very likely busted
yeah
i had a script to do that
maybe an edid generated from it ended up there
tomorrow I will reinstall without it and check how it behaves
only cvt panels can do that
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
legion go is 2k and scanes fine at 8ish in
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
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
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
so do you have both now?
Oh and no fan curve although someone is working on a kernel module
what happened to the loki
beware ayaneo needs a software fan curve
Well I was thinking about selling the loki because the soc heats up too much, for nothing, as it's 14nm
use your sw money to buy a ryzen 8
lmao
ally reached 400 bucks, z1 model
open box 300
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
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.
then the headphones patch, but same, not sure how I recompile the kernel and boot it on bazzite
There are multiple oxp sensors forks
That's not the up to date one
Well actually
it's upstream
https://github.com/torvalds/linux/blob/master/Documentation/hwmon/oxp-sensors.rst
The chimeraos people keep a more up to date variant
GitLab
Add OneXFly. (!5) · Merge requests · JoaquÃn Ignacio AramendÃa / ox...
While at it, improve organization of some case statements.
the driver in 6.7.12 doesn't support my device yet
Yeah no that driver definitely not
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
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
I should probably install arch or nobara to try patches yeah
I have sound on headphones enabling speakers
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