UB
Universal Blueโ€ข8mo ago
citral

Ayn Loki Zero sw improvements

Stock install of bazzite-deck-gnome works fine, what could be improved is: - rgb (next hhd should have it) - fan control is exposed by the same ayn-platform driver, a gui would be nice (for now adapting https://docs.google.com/document/u/0/d/17a0F6Wsdak1ekE6XDUn749BNynU5mj8FH9vpzDWm_bg/mobilebasic?pli=1#heading=h.7vd2la8jx513 works fine, but hwmon number changes between reboots so must use something like
FAN=`find /sys/devices/platform/ayn-platform/hwmon/* -maxdepth 0
FAN=`find /sys/devices/platform/ayn-platform/hwmon/* -maxdepth 0
` - Frame limit only shows 10, 12, 15, 20, 30, 60 fps Should ideally show 30, 40, 50, 60 instead, with 40 being a priority on such a weak device Gamescope-session-plus has # Set refresh rate range and enable refresh rate switching export STEAM_DISPLAY_REFRESH_LIMITS=${GAMESCOPE_OVERRIDE_REFRESH_RATE:-40,60} but it doesn't do anything
180 Replies
antheas
antheasโ€ข8mo ago
fan control will be ready by the end of the month well not march
citral
citralOPโ€ข8mo ago
It's not like it's high priority, it's off so doesn't drain battery by default
antheas
antheasโ€ข8mo ago
By default when ChimeraOS is installed on the AYN Loki, with current kernel, the CPU scaling is default to performance, governor default to performance, and fan speed is default (which is very high speed).
By default when ChimeraOS is installed on the AYN Loki, with current kernel, the CPU scaling is default to performance, governor default to performance, and fan speed is default (which is very high speed).
that shouldnt be true STEAM_DISPLAY_REFRESH_LIMITS works with the legacy slider by disabling unified slider so right now you have 15 30 60 right?
citral
citralOPโ€ข8mo ago
On bazzite the default governor is "conservative" which seems appropriate
antheas
antheasโ€ข8mo ago
should be powersave unless you are not on the pstate driver cat /sys/devices/platform/ayn-platform/hwmon/name can you?
citral
citralOPโ€ข8mo ago
The soc doesn't support pstate, it's zen1
antheas
antheasโ€ข8mo ago
seems like we will need a custom gui for the fan curve, maybe i should abstract the fan curve guis i have right now since they are the same for asus and the legion go and seems like they will be the same for loki although only 5 points
citral
citralOPโ€ข8mo ago
[root@loki ~]# cat /sys/devices/platform/ayn-platform/hwmon/hwmon7/name aynec Disabling unified slider I have 15, 30, 60, OFF yes. 40 is missing
antheas
antheasโ€ข8mo ago
what are the supported framerates of the panel?
citral
citralOPโ€ข8mo ago
I will try to find out
antheas
antheasโ€ข8mo ago
antheas
antheasโ€ข8mo ago
40 50 60
antheas
antheasโ€ข8mo ago
GitHub
handheld-gamescope/legion_go.patch at master ยท hhd-dev/handheld-gam...
Up to date gamescope build files for Arch with patches for the Legion Go and ROG Ally. - hhd-dev/handheld-gamescope
citral
citralOPโ€ข8mo ago
I confirm all the refreshes work in gnome
citral
citralOPโ€ข8mo ago
No description
antheas
antheasโ€ข8mo ago
now you need to convince gamescope probably by making a patch like the one above
citral
citralOPโ€ข8mo ago
๐Ÿ™‚ Fine Thanks
antheas
antheasโ€ข8mo ago
np
antheas
antheasโ€ข8mo ago
GitHub
bazzite/spec_files/gamescope at main ยท ublue-os/bazzite
Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld. - ublue-os/bazzite
antheas
antheasโ€ข8mo ago
then we will take your patch and add it
kdubthebeast
kdubthebeastโ€ข8mo ago
Can anyone guide me on how to get bazzite going ? . I already have the bazzite iso and used Rufus but I'm not sure what settings to change in the bios to get the installation started .
Aru
Aruโ€ข8mo ago
Universal Blue
Bazzite Initial Setup and Installation Guide
I am not actually that familiar with Rufus and currently do not have access to a Windows installation, or have hardware capable of running it in a VM. However I can recommend trying to flash the ISO again with Balena Etcher or Fedora Media Writer. Both have Windows ports.
Aru
Aruโ€ข8mo ago
also for future documentation, https://github.com/honjow/HueSync for RGB control on Loki, users confirmed it works on the max. not sure about other models
GitHub
GitHub - honjow/HueSync: RGB control decky plugin
RGB control decky plugin. Contribute to honjow/HueSync development by creating an account on GitHub.
antheas
antheasโ€ข8mo ago
Driver supports zero too
citral
citralOPโ€ข8mo ago
where do I find the valid string for e.g. strcmp(conn->model, "Loki Display") ? ideally it would englobe all loki models
antheas
antheasโ€ข8mo ago
Edid Look at the hwinfo repo For where the legion go name 8s And how it's used in the patch
citral
citralOPโ€ข8mo ago
If I go for "build bazzite" workflow instead of iso, will I be able to update from that? instead of reinstalling completely hmm if it generates a gamescope package I should be able to install just that, let's see
antheas
antheasโ€ข8mo ago
Layer the gamescope on your image Make sure it works Then we'll take the patch And it will be in the next image
citral
citralOPโ€ข8mo ago
ok so from what I gather I need a fedora virtual machine to build a spec file with rpm dev tools (sorry I'm on debian and only used to docker and buildroot for now, so unknown territory)
antheas
antheasโ€ข8mo ago
I think you're right. I have a docker file for it but not with me right now You can also abuse copr By uploading your spec files to be built there
citral
citralOPโ€ข8mo ago
Idk I have fedora WS 39 installed with all dependencies, build runs well until it stops with Failed to guess install tag for /usr/share/vulkan/implicit_layer.d/VkLayer_FROG_gamescope_wsi.x86_64.json I'm running fedpkg local in spec_files/gamescope, with just Release variables replaced, not sure if that's correct nvm I'm dumb Seems it does nothing though; so I applied this patch https://github.com/citral23/bazzite/commit/cf1cb91b9a2977d2879a80c643e43492210836a7, built gamescope, did "rpm-ostree usroverlay" on the loki, switched to desktop, replaced /usr/bin/gamescope with my build, returned to gaming session, and the refresh rates don't show up but maybe the legion go is portrait, so it doesn't work in the same way
Aru
Aruโ€ข8mo ago
usroverlay is temporary, no? it'll reset on reboot
citral
citralOPโ€ข8mo ago
well until reboot I didn't reboot I can't for the life of me get rpm-ostree to replace an existing package with a local package of the same version just hangs in inactive
Aru
Aruโ€ข8mo ago
if you could figure it out, that'd be great. i also couldn't figure out how to replace an existing package with a local or more updated version ๐Ÿ˜ตโ€๐Ÿ’ซ there has to be a way to do it, I just don't know how
antheas
antheasโ€ข8mo ago
you can override the gamescope cmd right? you can also just copy the executable on the device and stub it make the command point to it
citral
citralOPโ€ข8mo ago
I could also modify gamescope-session to point to the new binary yeah I guess worth a try tomorrow to see if that changes something with a reboot, which I very much doubt, getting late here so that'll be all for today Wait, panel is forced as external
kdubthebeast
kdubthebeastโ€ข8mo ago
New to bazzite ๐Ÿ˜… but I saw @antheas say fan control will be ready at the end of the month but is there a way to adjust the fan curve in the bios right now ? Fan is pretty loud at the moment ๐Ÿ”Š
citral
citralOPโ€ข8mo ago
There are fan controls in the latest bios but it didn't work for me, but I really didn't insist, maybe needed save + reset or something I prefer software control generally If you scroll up I talked about it So as it is now, if I enable external display refresh control in dev options, I can set it to whatever between 40 and 60 by increments of 1, but frame limit stays separate and only allows 10, 12, 15, 20, 30, 60. Unified slider doesn't work they stay separate. Looks like gamescope-session-plus needs some work.
citral
citralOPโ€ข8mo ago
No description
antheas
antheasโ€ข8mo ago
Gamescope patch worked you're sure? Add some logs
citral
citralOPโ€ข8mo ago
I have not yet tried with the patch, I'm on it, and don't worry I know how to print stuff to make sure it's working was just observing that how it's set up by default, it's intended to be used with external display refresh control it seems (cf export STEAM_DISPLAY_REFRESH_LIMITS=${GAMESCOPE_OVERRIDE_REFRESH_RATE:-40,60}) in device quirks except it's really quirky, as a fixed refresh of 60 and a granular frame limiter would make much more sense imo
antheas
antheasโ€ข8mo ago
Without the patch it won't work That controls the legacy steam slider you showed Gamescope does not support reading all refresh rates from the edid and needs to be hardcoded The legacy slider breaks most handheld screens They are finicky in what refresh rate they support As for the granular frame limiter, it assumes you can disable vsync and you will get tearing The thought for doing 40 50 60 is that you avoid tearing And gamescope will try to come up with screen parameters using a cvt implementation that just doesn't work on handheld screens
citral
citralOPโ€ข8mo ago
well unified slider does not work if external display refresh management is enabled stuck in legacy mode if panel is not forced to be external, it will be upside down
antheas
antheasโ€ข8mo ago
Fix the params
citral
citralOPโ€ข8mo ago
so if my patch is supposed to work with external refresh disabled, and with unified slider, for now no, it does not work
antheas
antheasโ€ข8mo ago
There's a param called force external panel rotation or something Remove the external
citral
citralOPโ€ข8mo ago
yes, but setting it to either left or right does the same thing, it will be upside down I guess there is a reason it's done that way by chimera folks for aya and ayn probably a gamescope limitation
antheas
antheasโ€ข8mo ago
For the ally yes For ayn prob can remove it if you deal with the rotation It's probably to fix the refresh rate without the patch But if you do the patch it will work flawlessly Does it work with external? Does the screen flash when you change the refresh rate?
citral
citralOPโ€ข8mo ago
Yeah just busy with work but found a minute and it works
No description
citral
citralOPโ€ข8mo ago
# AYN Loki Devices
AYN_LIST="Loki Max:Loki Zero:Loki MiniPro"
if [[ ":$AYN_LIST:" =~ ":$SYS_ID:" ]]; then
# Dependent on a special --force-external-orientation option in gamescope
if ( gamescope --help 2>&1 | grep -e "--force-orientation" > /dev/null ) ; then
export GAMESCOPECMD="/usr/bin/gamescope \
-e \
--generate-drm-mode fixed \
--xwayland-count 2 \
-O *,eDP-1 \
--default-touch-mode 4 \
--hide-cursor-delay $CURSOR_DELAY \
--fade-out-duration 200 \
--cursor-scale-height 720 \
--force-orientation left "
fi
# Set refresh rate range and enable refresh rate switching
export STEAM_DISPLAY_REFRESH_LIMITS=${GAMESCOPE_OVERRIDE_REFRESH_RATE:-40,60}
fi
# AYN Loki Devices
AYN_LIST="Loki Max:Loki Zero:Loki MiniPro"
if [[ ":$AYN_LIST:" =~ ":$SYS_ID:" ]]; then
# Dependent on a special --force-external-orientation option in gamescope
if ( gamescope --help 2>&1 | grep -e "--force-orientation" > /dev/null ) ; then
export GAMESCOPECMD="/usr/bin/gamescope \
-e \
--generate-drm-mode fixed \
--xwayland-count 2 \
-O *,eDP-1 \
--default-touch-mode 4 \
--hide-cursor-delay $CURSOR_DELAY \
--fade-out-duration 200 \
--cursor-scale-height 720 \
--force-orientation left "
fi
# Set refresh rate range and enable refresh rate switching
export STEAM_DISPLAY_REFRESH_LIMITS=${GAMESCOPE_OVERRIDE_REFRESH_RATE:-40,60}
fi
so basically s/force-external-orientation/force-orientation/g + my gamescope patch 20 fps is linked to 60hz refresh, while it could be to 40 to save a bit more battery, but it's nitpicking at this point I have not found any explanation for "generate-drm-mode fixed"
antheas
antheasโ€ข8mo ago
should be 60 thats correct probably is not going to save battery life and if you have a missed frame you only add 1/60 to your frame time instead of 1/40
citral
citralOPโ€ข8mo ago
perfect then
antheas
antheasโ€ข8mo ago
3/40 vs 4/60 so its your patch that fixes the unified slider right?
citral
citralOPโ€ข8mo ago
tesing in game panel goes black for a second when switching on unified slider, caps at 40/50/60 as expected
antheas
antheasโ€ข8mo ago
perfect send the patch when you can
citral
citralOPโ€ข8mo ago
I will try without my patch to be sure without patch it slides from 10 to 60 by increments of 1, so not very good (just with panel non external in device quirks, stock gamescope)
antheas
antheasโ€ข8mo ago
and it flashes black right? does it work though going 1 by 1
citral
citralOPโ€ข8mo ago
no it does nothing, doesn't flash and remains capped at 60
antheas
antheasโ€ข8mo ago
sounds great then
citral
citralOPโ€ข8mo ago
yes but I must also send a patch to gamescope-session-plus
antheas
antheasโ€ข8mo ago
what did you change there?
citral
citralOPโ€ข8mo ago
we need 2 lego bricks this
antheas
antheasโ€ข8mo ago
how was it before i mean try with --generate-drm-mode cvt without your patch for fun see if it freaks out
citral
citralOPโ€ข8mo ago
it was "force-external-orientation" and "force-panel-type external"
antheas
antheasโ€ข8mo ago
force-orientation doesnt work?
citral
citralOPโ€ข8mo ago
it does the gamescope patch doesn't work if panel is left as "forced external" makes sense
antheas
antheasโ€ข8mo ago
oh yes ofc you removed the external got it perfect, we can get them included next ver probably
citral
citralOPโ€ข8mo ago
but bazzite pulls gamescope-session-plus directly from their repo, no?
antheas
antheasโ€ข8mo ago
no actually not sure
antheas
antheasโ€ข8mo ago
GitHub
gamescope-session/usr/share/gamescope-session-plus/device-quirks at...
GamerOS session on Gamescope. Contribute to KyleGospo/gamescope-session development by creating an account on GitHub.
antheas
antheasโ€ข8mo ago
yep, this is where you need to pull
citral
citralOPโ€ข8mo ago
I sent my PR
antheas
antheasโ€ข8mo ago
GitHub
bazzite/spec_files/gamescope at main ยท ublue-os/bazzite
Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld. - ublue-os/bazzite
antheas
antheasโ€ข8mo ago
i cant see your pull request here oh yes gamescope great @Kyle Gospo you need to do both the quirk and the gamescope patch for it to work
citral
citralOPโ€ข8mo ago
GitHub
Change panel type from external to internal for Ayn Loki devices by...
Combined with ublue-os/bazzite#947 this allows to have 40/50/60hz on loki devices
citral
citralOPโ€ข8mo ago
FWIW, I'm building and testing it for Chimera too, so once it's in you might want to drop those and pull form upstream. But as their release cycle is quite slow, it makes sense for now to get it in bazzite
Kyle Gospo
Kyle Gospoโ€ข8mo ago
Merged, thank you so much I'll get a build out with this soon
citral
citralOPโ€ข8mo ago
Well thanks antheas mostly, great reactivity and will to help, much appreciated The zero will be a lot better now, it's a very inefficient 14nm apu so capping fallout new vegas at 40 will help a lot 30 is... Not my thing ๐Ÿ˜ฌ
antheas
antheasโ€ข8mo ago
Can you test the git version of hhd to make sure it works before I release? I made some performance changes and I want to make sure it did not break Also added explicit support for the zero
citral
citralOPโ€ข8mo ago
I don't really see a difference, but I'm still on chimera as I tested the panel fix there too If you want it tested on bazzite I can do tomorrow I have handheld daemon controller as controller name; and all is well but not RGB setting in Calibration & Advanced testing; but maybe it needs some bazzite specific patches
antheas
antheasโ€ข8mo ago
Ah that's Xbox mode Can you install the git version?
citral
citralOPโ€ข8mo ago
antheas
antheasโ€ข8mo ago
And make sure it runs especially after suspend and when changing settings Open hhd.dev and press Update unstable
citral
citralOPโ€ข8mo ago
Ok this is not ideal, removing handygccs and installing hhd broke touch on desktop mode, I will test it properly on bazzite tomorrow I think there's too much interference here
antheas
antheasโ€ข8mo ago
completely unrelated to both lmao some panels freak out when you change the refresh rate, hopefully its not that
citral
citralOPโ€ข8mo ago
No it's not that
antheas
antheasโ€ข8mo ago
Can you test hhd runs at least so I can prepare the release?
citral
citralOPโ€ข8mo ago
Reinstalling anyway, still have an hour or so
antheas
antheasโ€ข8mo ago
The git version
citral
citralOPโ€ข8mo ago
Well it's a failure, stuck at steam logo nothing I can do but reinstall, too late for today (athlom 3050e takes like 10 mins just to update initramfs so it's painfully long)
citral
citralOPโ€ข8mo ago
No description
citral
citralOPโ€ข8mo ago
Ded Wait Wow, 10 mins and it works now lol Well after another 30 mins of updating I have no option to switch hhd to unstable I guess it's not in the bazzite version because it was there when I installed it on chimera
antheas
antheasโ€ข8mo ago
Yes it's chimeraos only Well any version installed with the script You can use a script that's floating Around in the main chat for bazzite
citral
citralOPโ€ข8mo ago
Sorry I fell asleep I have it installed on chimera this morning, and it seems to break suspend It did enable the gyro and led stuff with git version Hmm suspend is also borked without it so hard to say what is what
antheas
antheasโ€ข8mo ago
so you cant say if it crashes unfortunate at least it runs yes chimeraos is semi-unmaintained, so problems
citral
citralOPโ€ข8mo ago
it runs but seems to have a rather large impact on cpu at idle probably something you wouldn't notice on a 6800U, but on 3050e it's struggling
antheas
antheasโ€ข8mo ago
thats the gyro i guess unfortunate
citral
citralOPโ€ข8mo ago
yeah, definitely
antheas
antheasโ€ข8mo ago
what are the top stats? how much cpu util
citral
citralOPโ€ข8mo ago
actually, it's not very different on handygccs as soon as I open qam it's the same
antheas
antheasโ€ข8mo ago
qam?
citral
citralOPโ€ข8mo ago
quick acccess menu the one on the right
antheas
antheasโ€ข8mo ago
what does that have to do with hhd?
citral
citralOPโ€ข8mo ago
I'm comparing cpu stats of handygccs and hhd and in both case it's like 0 on fresh boot
antheas
antheasโ€ข8mo ago
both use almost 0 CPU without gyro
citral
citralOPโ€ข8mo ago
but as soon as I open qam gamescope jumps to like 40%cpu
antheas
antheasโ€ข8mo ago
thats steam
citral
citralOPโ€ข8mo ago
yeah ok so hhd sits at 0.7% cpu idle without gyro, 9% with gyro but 9% of not much maybe a small bug that enabling/disabling gyro flashes the leds (when they are at 0% brightness) otherwise looks fine to me changing motion hz also flashes the leds btw interesting, dropping to 200hz it uses almost 0% cpu again well 3% instead of 9 so much better for that device ship it
citral
citralOPโ€ข8mo ago
citral
citralOPโ€ข8mo ago
doesn't mater what rgb setup, changing gyro settings will always briefly flash blue at 100% brightness
antheas
antheasโ€ข8mo ago
the git ver is that? Cool it reloads so fast now thats steam thats not me when a controller connects it flashes the leds
citral
citralOPโ€ข8mo ago
Git version yeah Ah yeah Right
citral
citralOPโ€ข8mo ago
I believe this gives accenture copyright ownership over the code or something, not good
antheas
antheasโ€ข8mo ago
Good thing it's the last one He can just do undo commit undo commit then swap the signed off
citral
citralOPโ€ข8mo ago
yeah as long as PR is not merged I can force push to edit it, but now I can't anymore, sorry for that
Kyle Gospo
Kyle Gospoโ€ข8mo ago
All good, fix shortly ok, force merged it out @citral feel free to reopen I will wait for it to do any further bazz pushes @antheas While I'm at it I'll add your patch
citral
citralOPโ€ข8mo ago
thank you; resubmitted I see it's already in bazzite that I just reinstalled, you guys are so fast lol one thing that would be nice @antheas is still allowing RGB control in xbox controller mode in HHD because as it is now, I have to switch to dualsense, put brightness to 0, switch back to xbox mode to turn it off perhaps a bit unintuitive for people who discover it
antheas
antheasโ€ข8mo ago
I plan adding it to the ui But I have other priorities now
Aru
Aruโ€ข8mo ago
GitHub
GitHub - honjow/HueSync: RGB control decky plugin
RGB control decky plugin. Contribute to honjow/HueSync development by creating an account on GitHub.
antheas
antheasโ€ข8mo ago
I know for devices like the Loki if you want them off it's not ide Yes true
citral
citralOPโ€ข8mo ago
Yeah, "would be nice", not deal breaking at all
Aru
Aruโ€ข8mo ago
huesync should work on loki devices
antheas
antheasโ€ข8mo ago
But if you install decky You might as well install the dualsense theme
citral
citralOPโ€ข8mo ago
Huesync does work actually, true
Aru
Aruโ€ข8mo ago
it does depend on decky though, not ideal
citral
citralOPโ€ข8mo ago
A cool project for me would be to do an ayn-fantastic plugin If work becomes quiet again at some point:P
Aru
Aruโ€ข8mo ago
someone should make an ayn plugin for fans, instead of relying on a script + systemd service shouldn't be too hard ๐Ÿค”
antheas
antheasโ€ข8mo ago
I will add support for fans I already did for ROG and legion go Or one of you can but tbh the fan stuff needs a rewrite To unify it
citral
citralOPโ€ข8mo ago
Btw your hhd update works fine with sleep
Aru
Aruโ€ข8mo ago
ayn will be a tad bit awkward. If i'm remembering right, you can set arbitrary temp thresholds and fan speeds, but only a max of 5 total thresholds
antheas
antheasโ€ข8mo ago
Yes
citral
citralOPโ€ข8mo ago
Glad to have it again, this not working on chimera is actually a deal breaker
antheas
antheasโ€ข8mo ago
But someone told me it doesn't work You did actually
Aru
Aruโ€ข8mo ago
chimera suspend is probably broken due to the suspend mods issue, maybe?
antheas
antheasโ€ข8mo ago
The interface is the same as the rog ally
citral
citralOPโ€ข8mo ago
I mean sleep
antheas
antheasโ€ข8mo ago
So I need to rewrite that to do both Yes chimeraos is not on a good place rn
citral
citralOPโ€ข8mo ago
Chimera complain about usb-dev not being able to sleep + s2 missing from bios and insta wakes up, or remains dead with fan and backlight running and nothing else
Aru
Aruโ€ข8mo ago
chimera's slower update cycle is both a blessing and a curse. more stable, but if something breaks it won't be fixed for a long while also takes longer for fixes to get deployed
citral
citralOPโ€ข8mo ago
It's ok for older hardware, like 5600+6700xt, but on 8700G or exotic device it's not working well It's easier to customize with frzr-unlock so there's that
antheas
antheasโ€ข8mo ago
True, but you need to remember that when you do that you fork So then you need to redo everything every update
citral
citralOPโ€ข8mo ago
Yeah
antheas
antheasโ€ข8mo ago
Kinda works with the 2 month pacing Layering is slower but once you get your setup up in bazzite you're good with updates. Neither is ideal tbh I hope we get the update situation resolved so updates happen in like 5 min
citral
citralOPโ€ข8mo ago
I think silverblue has a learning curve but you only have to learn things once
antheas
antheasโ€ข8mo ago
From what I've seen the biggest pain point is customizing the kernel Other than that you can live with layering And bazzite is quite feature complete so most users need 1-3 packages at most Although chimeraos does not support dkms either But you can at least swap the kernel there
citral
citralOPโ€ข8mo ago
I come from devices where we can boot custom kernels over usb for testing, it's golden System76 scheduler is interfering with simpledeckytdp, it needs to be disabled for governor setting to work
Kyle Gospo
Kyle Gospoโ€ข8mo ago
System76 only touches nice values It doesn't do governor anything TuneD will, but only at boot or when PPD profile is changed
citral
citralOPโ€ข8mo ago
Hmm I will confirm by testing more Also tailscaled should be disabled on zero if not used, consumes a bit of cpu. Somehow governor was sticky in game mode to conservative until I disabled system76 sched and rebooted, but maybe it's a false conclusion In gnome it wasn't sticky though
Kyle Gospo
Kyle Gospoโ€ข8mo ago
Conservative sounds like pstate Which is tuned
citral
citralOPโ€ข8mo ago
The soc is zen1, so acpi-cpufreq, but I will look at tuned too hmm, there is something else, with tuned stopped it's sticky to schedutil. system76 is obviously doing nothing you're right, it's just a niceness thing so I don't know how I made it work for a while I made it work again after a clean install by writing once manually to /sys/devices/cpu/cpufreq/policy*/scaling_governor, so maybe a small plugin bug vOv Btw the device needs iomem=relaxed for ryzenadj -i to display tables, but tdp works without it Just writing this for people who have the device, can be useful @Aru I see simpledeckytdp writes logs but they are empty, is there something to toggle?
Aru
Aruโ€ข8mo ago
do you mean the /tmp/simpleTDP.log?
citral
citralOPโ€ข8mo ago
No homebrew/logs/simpledeckytdp/timestamp.log
Aru
Aruโ€ข8mo ago
oh, as far as I know, SimpleDeckyTDP doesn't really log anything to the homebrew logs folder
citral
citralOPโ€ข8mo ago
I'll check /tmp then, thx
Aru
Aruโ€ข8mo ago
but with that being said, i do need to fix logging in general, need to enable a debug logs mode for simpleDeckyTDP right now only errors or crashes get logged to /tmp/simpleTDP.log
citral
citralOPโ€ข8mo ago
That would help yeah, looks like I found a small bug on acpi-cpufreq
Aru
Aruโ€ข8mo ago
could you describe the bug? i can try to replicate
citral
citralOPโ€ข8mo ago
The governor is not switched by plugin, until I write once manually to /sys/devices/system/cpu/cpufreq/policy*/scaling_governor, then it works
Aru
Aruโ€ข8mo ago
so after the first write, it starts working afterwards?
citral
citralOPโ€ข8mo ago
Yes, will reboot now to see how it is Well it still works after reboot so... If I reinstall fresh I'll check the log to see what it says, no need to bother for now I had the issue on 2 fresh installs though so there's definitely something
Aru
Aruโ€ข8mo ago
aight, i'll keep an eye out for it. also will look into improving logging in general
citral
citralOPโ€ข8mo ago
I have the bug again after poweroff/start instead of reboot I see [2024-04-07 23:11:38,868 | main.py:58:get_settings] ERROR: main#get_settings failed to get info cannot unpack non-iterable NoneType object Not sure it's related yet tho What's strange is that cpupower -frequency-info reports the correct governor, but sysfs doesn't ๐Ÿค”
Aru
Aruโ€ข8mo ago
Probably related, I'll take a look I'm assuming it's some sort of race condition
citral
citralOPโ€ข8mo ago
[citral@loki ~]$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
schedutil
[citral@loki ~]$ sudo cpupower frequency-info analyzing CPU 3:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 3
CPUs which need to have their frequency coordinated by software: 3
maximum transition latency: Cannot determine or is not supported.
hardware limits: 1000 MHz - 1.40 GHz
available frequency steps: 1.40 GHz, 1.20 GHz, 1000 MHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 1000 MHz and 1.40 GHz.
The governor "powersave" may decide which speed to use within this range.
[citral@loki ~]$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
schedutil
[citral@loki ~]$ sudo cpupower frequency-info analyzing CPU 3:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 3
CPUs which need to have their frequency coordinated by software: 3
maximum transition latency: Cannot determine or is not supported.
hardware limits: 1000 MHz - 1.40 GHz
available frequency steps: 1.40 GHz, 1.20 GHz, 1000 MHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 1000 MHz and 1.40 GHz.
The governor "powersave" may decide which speed to use within this range.
Oh, because cpu3 is indeed on powersave So it's not writing to all cpus That's what I call a mixed bag lol Alright at least it starts to make sense now, was pretty confused I can have a look too tomorrow
Aru
Aruโ€ข8mo ago
I'll also investigate more, thanks for flagging the bug Not sure if I'll be able to replicate, I'll test in a bit ok, was able to replicate. It's changing all but cpu0 somehow cpu0 is the only one not being changed ๐Ÿค” probably a one off bug somewhere, time to track it down fixed it, pushed a release. let me know if you still see the issue
citral
citralOPโ€ข7mo ago
Fixed in 0.3.2, thanks! I see the latest ppd release is quite the improvement, would be good to benchmark against tuned, especially as it's un-archived and active it may as well stay the fedora default tbh
Kyle Gospo
Kyle Gospoโ€ข7mo ago
latest ppd update is just adding a couple tiny features tuned already supports
citral
citralOPโ€ข7mo ago
I don't say you're wrong, but I'll look at numbers when I have some spare time, I've seen a lot of claims (something something gentoo in year 2000) To be fair it's mostly epp related, I don't expect a real difference on acpi-cpufreq, but worth a look If anything for the bazzite default "balanced" vs "balanced-no-pstate" proposed by tuned
Kyle Gospo
Kyle Gospoโ€ข7mo ago
yeah epp stuff is non-op on acpi-cpufreq the balanced-no-pstate is a hotfix for acpi-cpufreq so schedutil is used and not conservative on a proper pstate scheduler you're making full use of epp tuned got that before PPD and they're just playing catch up now that they're no longer abandoned
bouhaa
bouhaaโ€ข7mo ago
Can you please stop spreading this kind of FUD
antheas
antheasโ€ข7mo ago
when you fix the suspend issue on the go and ally with 45-2
Kyle Gospo
Kyle Gospoโ€ข7mo ago
Let's lay off the comments on Chimera, not worth upsetting a sibling project. We've had bugs they didn't before too If there's a fault I'd rather 100% of our resources go to learning the fault and fixing it AOT
antheas
antheasโ€ข7mo ago
i try not to mention anything on it anymore
Kyle Gospo
Kyle Gospoโ€ข7mo ago
Thank you
citral
citralOPโ€ข7mo ago
I think both are cool, chimera is much lighter for the zero, rpm-ostree takes forever to complete on the loki zero, just adding a kargs is a pain in the ass if I'm honest. But he's not wrong, without functional sleep mode a linux handheld is not really useful. Still as I always say, if you want x feature to be baked in or fixed, help yourself instead of complaining ๐Ÿ™‚
bouhaa
bouhaaโ€ข7mo ago
I am not pretending Chimera is perfect. Just that we are playing in the same sandbox, no need to be mean to each other.
antheas
antheasโ€ข7mo ago
of course, I have nothing against the project and especially not you โค๏ธ
HikariKnight
HikariKnightโ€ข7mo ago
1. make your own thread 2. documentation
Universal Blue
Bazzite Documentation
[Bazzite_Documentation] General FAQ Installation Guide Gaming Guide Contributing to Bazzite Software Installing and Managing Applications Waydroid Setup Guide Updates, Rollbacks, & Rebasing Quirks, Desktop Environment Tweaks, & Miscellaneous Topics Steam Gaming Mode Handheld Wiki Information on Steam Deck, Handheld, & HTPC Images (Gaming M...
Want results from more Discord servers?
Add your server