Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding Framework power kmod #139

Closed
wants to merge 11 commits into from

Conversation

Waffleophagus
Copy link

Per this issue: #137 I am attempting to add https://github.com/DHowett/framework-laptop-kmod as a mod, I believe I've wrapped it in a COPR properly? But have no way of testing it in ublue if its not in this repository. I am definitely very new at this kind of work so any feedback is appreciated. For the record, my COPR is here: https://copr.fedorainfracloud.org/coprs/waffleophagus/framework-laptop-tests/packages/

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"

Copy link
Contributor

@bsherman bsherman Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should take a look at build-kmod-v4l2loopback.sh and add a similar conditional to this script so that it only runs on main KERNEL_FLAVOR and RELEASE >= 39.

You'll need to move the cp for the COPR repo after the conditional as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so the kernel flavor is just nvidia or main right now yea? Given that frameworks don't have nvidia drivers that's safe to exit as well. So I think the != main is still fine. I've got a commit that will do that, but now that I've taken a look at it, I don't think that this is my only concern. Its very likely "a" concern, but there are other things that are still borked I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, given that my != main should still stand.

@bsherman
Copy link
Contributor

bsherman commented Apr 8, 2024

F40 fails with: error: Packages not found: framework_laptop-*.fc40.x86_64
F39 fails with: error: Packages not found: framework_laptop-*.fc39.x86_64

Looks like it's not here: https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/packages/

Is that where you expected to find the akmod RPM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants