Skip to main content

Yet Another Framework Interface

YAFI is another GUI for the Framework Laptop Embedded Controller. It is written in Python with a GTK4 Adwaita theme, and uses the CrOS_EC_Python library to communicate with the EC.

It has support for fan control, temperature monitoring, LED control, and battery limiting.

Installation

You can download the latest release from the Releases page.

There are builds for Flatpak, and PyInstaller for portable execution on Linux or Windows.

YAFI is also available on Flathub: flatpak install flathub au.stevetech.yafi.

Linux

To allow YAFI to communicate with the EC, you will need to enable user access to the /dev/cros_ec device. You can do this by running echo KERNEL==\"cros_ec\", TAG+=\"uaccess\" | sudo tee /etc/udev/rules.d/60-yafi.rules, and then reload the rules with sudo udevadm control --reload-rules && sudo udevadm trigger.

You can also do this by running curl -Lfs yafi.stevetech.au/udev.sh | sudo sh which will run the add-udev-rules.sh script.

Windows

If your Laptop's BIOS supports Framework's EC driver, there is no need to install any third-party drivers. YAFI should also work without administrator privileges.

Otherwise, YAFI supports the PawnIO driver, and will be automatically used if installed and there is no Framework driver available. YAFI will need to be run as administrator to communicate with the driver.

Building

Flatpak

Build and install the Flatpak package with flatpak-builder --install --user build au.stevetech.yafi.json.

You can also create a flatpak bundle with flatpak-builder --repo=repo build au.stevetech.yafi.json and install it with flatpak install --user repo au.stevetech.yafi.flatpak.

Pip

System Dependencies

This project requires PyGObject, and the introspection data for GTK4 and Adwaita. On Debian/Ubuntu, you can install these with:

sudo apt install python3-gi gir1.2-gtk-4.0 gir1.2-adw-1

Install

Install the package with pip install yafi.

Pipx is also supported.

Windows

It is possible to run YAFI on Windows using gvsbuild and installing YAFI via pip, but it can be complicated and is therefore not recommended.

Screenshots

Fan Control and Temperature Monitoring

Thermals Page

LED Control

LEDs Page

Battery Statistics

Battery Page

Battery Limiting

Battery Limiter Page

Battery Extender

Battery Extender

Hardware Info

Hardware Page

Troubleshooting

[Errno 13] Permission denied: '/dev/cros_ec'

This error occurs when the udev rules are not installed or not working. Make sure you have installed the udev rules as described in the Linux Installation section.

Could not auto detect device, check you have the required permissions, or specify manually.

This error occurs when /dev/cros_ec is not found, and the CrOS_EC_Python library also cannot talk over LPC. You can either update your kernel to have a working cros_ec_dev driver, or run YAFI as root.

It can also occur if you do not have a CrOS EC, like on non Framework laptops.

Disclaimer

YAFI is not affiliated with Framework Computer Inc. in any way.

YAFI is licensed under the GPL-2.0-or-later license, and comes with no warranty or guarantee of any kind. Use at your own risk.

Metadata

Release files for yafi 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yafi 1.0
File Size Uploaded Provenance Actions
yafi-1.0.tar.gz 26.3 kB Without provenance Details for yafi-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yafi 1.0
File Interpreter ABI Platform Actions
yafi-1.0-py3-none-any.whl Python 3 none any Details for yafi-1.0-py3-none-any.whl

Total release size: 57.0 kB

Release files / yafi-1.0.tar.gz

Download URL yafi-1.0.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d0b4f3c8783f5a8f6070590d31292e2618f052f335ad01211570f216e087207e
BLAKE2b-256 checksum
How to use checksums
2fa355b181e8788491f9eeeaf2ebf557bdd3543aaedcf2d3f06ebdd560e5ef25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / yafi-1.0-py3-none-any.whl

Download URL yafi-1.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d17a280f01d498e0524fcebe7c8d5f1f127e2b4e38d9b6d406decd208dbb8259
BLAKE2b-256 checksum
How to use checksums
3955e75ce5f0a6289c6fcf5f313bcc2ce8cf699640c9ec12eab93cbb6854e4c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for yafi 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page