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

[BUG] 0.0.18 in Fedora 41: Compilation Error in DKMS Module Due to Incompatibility with Python 3.13, DNF5, or Recent Kernel (most likely). #273

Closed
Allephh opened this issue Nov 2, 2024 · 15 comments

Comments

@Allephh
Copy link

Allephh commented Nov 2, 2024

Problem Description
The LenovoLegionLinux driver is probably not installed, since nothing has changed in practice. Although the Python GUI is here, I can't change anything there, and the options are impossible to activate.
At first, I thought it was a problem related to Python, because in the pre-installation, the text said Python(abi) = 3.12 was missing. Even installing this version of Python (along with pip = darkdetect) didn't solve the problem.
Before, in the post-installation, there were also problems related to DNF5, where it showed possible commands that had changed or no longer existed. However, when I installed it again yesterday after formatting, this didn't happen. Log of recently installation:

sudo.dnf.install.dkms.txt

And that's where the Kernel comes in. When I start the system, it presents problems like these:

  • systemd-backlightglade:pi_s (or se) of leds: platform: :kbd_backlight.

  • Failed to start: dkms.service - Bui...ll new kernel modules through DKMS. 'systemctl status dkms.service' for details.

Here are the videos demonstrating the absence of the driver and the errors.

Reboot.after.driver.installation.mp4
System.start.errors.1.mp4
System.start.erros.2.mp4
FN.+.Q.energy.presets.and.python.gui.not.working.mp4

And here are the terminal commands that show the logs:

systemctl

cat

Hardware Information:

  • Hardware Model: Lenovo IdeaPad Gaming 3 15ARH7
  • Memory: 16.0 GiB
  • Processor: AMD Ryzen™ 7 6800H with Radeon™ Graphics × 16
  • Graphics: AMD Radeon™ 680M and NVDIA RTX 3050 (i didn't install the driver)
  • Graphics 1: NV177
  • Disk Capacity: 512 GB

Software Information:

  • Firmware Version: JNCN51WW(V2.11)
  • OS Name: Fedora Linux 41 (Workstation Edition)
  • OS Type: 64-bit
  • GNOME Version: 47
  • Windowing System: Wayland
  • Kernel Version: Linux 6.11.5-300.fc41.x86_64
@Allephh Allephh changed the title [BUG] 0.0.18 Compilation Error in DKMS Module Due to Incompatibility with Python 3.13, DNF5, or Recent Kernel (most likely). [BUG] 0.0.18 in Fedora 41: Compilation Error in DKMS Module Due to Incompatibility with Python 3.13, DNF5, or Recent Kernel (most likely). Nov 2, 2024
@johnfanv2
Copy link
Owner

That is using the old version. The compilation error for the "remove" function was fixed on master. A new version of the pkg for Fedora is needed.

@Allephh
Copy link
Author

Allephh commented Nov 12, 2024

Hi.
Could it have anything to do with this?
Changes/TunedAsTheDefaultPowerProfileManagementDaemon

@RodrigoPrestes
Copy link

That is using the old version. The compilation error for the "remove" function was fixed on master. A new version of the pkg for Fedora is needed.

Any ideas when we plan to tag a new version?

Hi. Could it have anything to do with this? Changes/TunedAsTheDefaultPowerProfileManagementDaemon

If that's the case, that is being tracked here I believe: #279

@RodrigoPrestes
Copy link

Looks like we have a new tag, waiting new version to show up on copr.

@MrDuartePT
Copy link
Collaborator

@Allephh I build new packages just now pls test:
image

@RodrigoPrestes
Copy link

Tested on a Legion Slim 7 (16ARHA7, AMD Advantage) on a clean install.
v0.0.19 seems to have fixed installation on Fedora Workstation 41 as dnf completed without errors, and we closed #283.


On the other hand I couldn't make it work, it even breaks things, after a reboot it was using software rendering.
I've been trying to install these past few days on Fedora Workstation 40 with v0.0.18 and had the same issue so maybe I just don't know how to set it up on Fedora.

Here's the log where it has errors, although that's just the GUI:

nov 23 09:01:00 fedora legion_gui.desktop[3469]: Error occured cannot access local variable 'values' where it is not associated with a value
nov 23 09:01:00 fedora legion_gui.desktop[3469]: Traceback (most recent call last):
nov 23 09:01:00 fedora legion_gui.desktop[3469]:   File "/usr/lib/python3.13/site-packages/legion_linux/legion_gui.py", line 397, in update_view_from_feature
nov 23 09:01:00 fedora legion_gui.desktop[3469]:     if i< len(values):
nov 23 09:01:00 fedora legion_gui.desktop[3469]:               ^^^^^^
nov 23 09:01:00 fedora legion_gui.desktop[3469]: UnboundLocalError: cannot access local variable 'values' where it is not associated with a value
nov 23 09:01:00 fedora legion_gui.desktop[3469]: Error occured cannot access local variable 'values' where it is not associated with a value
nov 23 09:01:00 fedora legion_gui.desktop[3469]: Traceback (most recent call last):
nov 23 09:01:00 fedora legion_gui.desktop[3469]:   File "/usr/lib/python3.13/site-packages/legion_linux/legion_gui.py", line 397, in update_view_from_feature
nov 23 09:01:00 fedora legion_gui.desktop[3469]:     if i< len(values):
nov 23 09:01:00 fedora legion_gui.desktop[3469]:               ^^^^^^
nov 23 09:01:00 fedora legion_gui.desktop[3469]: UnboundLocalError: cannot access local variable 'values' where it is not associated with a value
nov 23 09:01:00 fedora systemd[2468]: app-gnome-legion_gui-3469.scope: Consumed 719ms CPU time, 74.8M memory peak.
nov 23 09:16:19 fedora kernel: legion_laptop: loading out-of-tree module taints kernel.
nov 23 09:16:19 fedora kernel: legion_laptop: module verification failed: signature and/or required key missing - tainting kernel

Maybe we can close this and I'll open a new issue since it seems to be a different problem.

@MrDuartePT
Copy link
Collaborator

That error is very strange and dosent happen on my system

@RodrigoPrestes
Copy link

Never mind, it just needed a system update then it worked.

@Allephh
Copy link
Author

Allephh commented Nov 23, 2024

@Allephh I build new packages just now pls test: image

Captura de tela de 2024-11-23 14-29-54
Hello!
Should i proceed?
"Problem: Unable to install best candidate for the task - nothing provides python(abi) = 3.12 required by python-darkdetect-0.8.0-1.noarch from copr:copr.fedorainfracloud.org:mrduarte:LenovoLegionLinux".

@RodrigoPrestes
Copy link

@Allephh personally I didn't explicitly installed python-darkdetect since it's a dependency.
Can you try just sudo dnf install dkms-LenovoLegionLinux python-LenovoLegionLinux? (even though it's bound to fail as it's going to try to install python-darkdetect anyways)

Since I just tested with a clean install and it did not complained like this, maybe check if you have anything python related installed that might be causing this error.

@Allephh
Copy link
Author

Allephh commented Nov 23, 2024

@Allephh personally I didn't explicitly installed python-darkdetect since it's a dependency. Can you try just sudo dnf install dkms-LenovoLegionLinux python-LenovoLegionLinux? (even though it's bound to fail as it's going to try to install python-darkdetect anyways)

Since I just tested with a clean install and it did not complained like this, maybe check if you have anything python related installed that might be causing this error.

Apparently everything is fine. Fn + Q working.
Captura de tela de 2024-11-23 20-15-34

@Allephh
Copy link
Author

Allephh commented Nov 23, 2024

I think now i'll install the new NVIDIA driver and start playing.
I really appreciate everyone.

Log of information that the LenovoLegionLinuxGui application reported in the corresponding section.
2024 11 23 20 17 33 126.txt

@Allephh
Copy link
Author

Allephh commented Nov 24, 2024

After playing a bit, i have something to report.
I don't know if it's the LenovoLegionLinux driver's fault, but my NVIDIA video card seems to be super limited.
The fans work, but the temperatures - which should be high - don't, no matter the power mode. I don't know if it's something related to Fedora 41 and its native Wayland, but the performance in games is not as high as in Fedora 40. It seems like i'm using none or very little of it, in other means, only the APU. However, the system seems to identify it (icon, system details).
If i prove anything, i'll open a new discussion.

@Allephh
Copy link
Author

Allephh commented Nov 25, 2024

I haven't been able to prove it concretely yet. It's something related to Wayland or Tuned.
As for Tuned, there are many Fedora 41 users complaining about poor performance and correlating it with that. Maybe it's a good idea to take a look.
When i turned on my computer a little while ago, i pressed ALT + TAB and some very strange errors appeared. The line was yellow and when GDM loaded, it was incomplete. I restarted and everything worked.

image

@MrDuartePT
Copy link
Collaborator

MrDuartePT commented Nov 25, 2024

That don't have nothing to do with our driver. That other problem in your fedora system.

Also this issue close because the problem with the driver package is solve.

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

No branches or pull requests

4 participants