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

Add patch for Linux 6.5 #17

Merged
merged 2 commits into from
Sep 28, 2023
Merged

Add patch for Linux 6.5 #17

merged 2 commits into from
Sep 28, 2023

Conversation

jackpot51
Copy link
Member

@jackpot51 jackpot51 requested review from a team September 27, 2023 16:39
@jackpot51 jackpot51 self-assigned this Sep 27, 2023
@leviport
Copy link
Member

I'm still seeing some DKMS issues after adding this patch

system76@pop-os:~$ apt policy nvidia-driver-470
nvidia-driver-470:
  Installed: 470.199.02-1pop0~1695832709~22.04~27efad5
  Candidate: 470.199.02-1pop0~1695832709~22.04~27efad5
  Version table:
 *** 470.199.02-1pop0~1695832709~22.04~27efad5 1002
       1002 http://apt.pop-os.org/staging/linux-6.5.4 jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     470.199.02-1pop0~1691175114~22.04~4d976fd 1002
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1002 http://apt.pop-os.org/staging/master jammy/main amd64 Packages
     470.199.02-0ubuntu0.22.04.1 500
        500 http://apt.pop-os.org/ubuntu jammy-security/restricted amd64 Packages
        500 http://apt.pop-os.org/ubuntu jammy-updates/restricted amd64 Packages
     470.103.01-0ubuntu2 500
        500 http://apt.pop-os.org/ubuntu jammy/restricted amd64 Packages
system76@pop-os:~$ sudo apt install nvidia-driver-470
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-driver-470 is already the newest version (470.199.02-1pop0~1695832709~22.04~27efad5).
The following package was automatically installed and is no longer required:
  nvidia-firmware-535-535.113.01
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up nvidia-dkms-470 (470.199.02-1pop0~1695832709~22.04~27efad5) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-oryp2-ess
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-thelio-massive-b1
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-oryp3-b
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-oryp3-ess
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-oryp2
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-bonw11
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-oryp3
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/system76-nvidia-quirks-serw10
Removing old nvidia-470.199.02 DKMS files...
Deleting module nvidia-470.199.02 completely from the DKMS tree.
Loading new nvidia-470.199.02 DKMS files...
Building for 6.5.4-76060504-generic
Building for architecture x86_64
Building initial module for 6.5.4-76060504-generic
ERROR (dkms apport): kernel package linux-headers-6.5.4-76060504-generic is not supported
Error! Bad return status for module build on kernel: 6.5.4-76060504-generic (x86_64)
Consult /var/lib/dkms/nvidia/470.199.02/build/make.log for more information.
dpkg: error processing package nvidia-dkms-470 (--configure):
 installed nvidia-dkms-470 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-470:
 nvidia-driver-470 depends on nvidia-dkms-470 (>= 470.199.02); however:
  Package nvidia-dkms-470 is not configured yet.

dpkg: error processing package nvidia-driver-470 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
             Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.4-76060504-generic
kernelstub.Config    : INFO     Looking for configuration...
kernelstub           : INFO     System information: 

    OS:..................Pop!_OS 22.04
    Root partition:....../dev/dm-1
    Root FS UUID:........dc202d82-3680-4444-842d-d6ca8bd67ad7
    ESP Path:............/boot/efi
    ESP Partition:......./dev/nvme0n1p1
    ESP Partition #:.....1
    NVRAM entry #:.......-1
    Boot Variable #:.....0000
    Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash
    Kernel Image Path:.../boot/vmlinuz-6.5.4-76060504-generic
    Initrd Image Path:.../boot/initrd.img-6.5.4-76060504-generic
    Force-overwrite:.....False

kernelstub.Installer : INFO     Copying Kernel into ESP
kernelstub.Installer : INFO     Copying initrd.img into ESP
kernelstub.Installer : INFO     Setting up loader.conf configuration
kernelstub.Installer : INFO     Making entry file for Pop!_OS
kernelstub.Installer : INFO     Backing up old kernel
kernelstub.Installer : INFO     Making entry file for Pop!_OS
Errors were encountered while processing:
 nvidia-dkms-470
 nvidia-driver-470
E: Sub-process /usr/bin/dpkg returned an error code (1)

@jackpot51
Copy link
Member Author

@leviport I pushed another patch from the AUR package, I think it should build now.

Copy link
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

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

This fixes the DKMS errors I was seeing with 6.5.4, and I'm not seeing any regressions with graphics switching, external displays, or suspend/resume on oryp9.

@jackpot51 jackpot51 merged commit 4c2d0ee into master Sep 28, 2023
6 checks passed
@jackpot51 jackpot51 deleted the linux-6.5.4_jammy branch September 28, 2023 19:57
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.

None yet

3 participants