Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

GeForce GT 730 problem with kernel 6.12

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

GeForce GT 730 problem with kernel 6.12

  • Quote

Post by sleepingsun » Sun Mar 02, 2025 2:12 pm

Hi all kernel include 6.6.x this graphic card works after i compile new stable 6.12 kernel (gentoo-sources) i cant up graphic card and kde-meta gui also emerge drivers failed

last driver for this card is

Code: Select all

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 9.31 s (backtrack: 0/20).

[ebuild   R    ] x11-drivers/nvidia-drivers-470.256.02-r2:0/470::gentoo  USE="X modules static-libs strip tools -dist-kernel -modules-compress -modules-sign -persistenced" ABI_X86="(64) -32" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

Code: Select all

18:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1)
Any chance for this card or its droped by gentoo ?
Gentoo is Rocks
Top
molletts
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 137
Joined: Sat Feb 16, 2013 12:08 pm

  • Quote

Post by molletts » Sun Mar 02, 2025 5:16 pm

Hi,

It looks like the 470.x drivers were officially supported by Nvidia for kernels up to 6.6. Beyond that, you're on your own as far as they're concerned.

There appears to be an unofficial patch for kernel 6.12 which has been created by a user; you can get it from https://aur.archlinux.org/packages/nvidia-470xx-dkms along with the 6.10 patch which you'll also need. You may need some or all of the other patches too. If you stick them in /etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02, they should be applied automatically when you emerge the drivers. Hopefully, you won't need to add any further patches for the lifetime of the 6.12 LTS kernel.

I use the equivalent 390.x patches to keep my GTX460 going, although I track the unstable kernel so I sometimes have to hold off updating to the latest until a new patch becomes available.

[edit - premature publication! got distracted then didn't finish typing...]
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

Re: GeForce GT 730 problem with kernel 6.12

  • Quote

Post by Josef.95 » Sun Mar 02, 2025 7:09 pm

sleepingsun wrote: [...]
Any chance for this card or its droped by gentoo ?
The 470 driver is end of live by upstream,
not dropped by gentoo.
With this (hard masked) driver version, you should stay on stable 6.6 LTS Kernel.

Code: Select all

grep KERNEL_MAX x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild
MODULES_KERNEL_MAX=6.6
Top
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

  • Quote

Post by sleepingsun » Mon Mar 03, 2025 9:24 am

molletts wrote:Hi,

It looks like the 470.x drivers were officially supported by Nvidia for kernels up to 6.6. Beyond that, you're on your own as far as they're concerned.

There appears to be an unofficial patch for kernel 6.12 which has been created by a user; you can get it from https://aur.archlinux.org/packages/nvidia-470xx-dkms along with the 6.10 patch which you'll also need. You may need some or all of the other patches too. If you stick them in /etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02, they should be applied automatically when you emerge the drivers. Hopefully, you won't need to add any further patches for the lifetime of the 6.12 LTS kernel.

I use the equivalent 390.x patches to keep my GTX460 going, although I track the unstable kernel so I sometimes have to hold off updating to the latest until a new patch becomes available.

[edit - premature publication! got distracted then didn't finish typing...]
Can you explain me as i have /etc/portage/patches/ folder i made x11-drivers and nvidia-drivers-470.256.02 manual folder and download from git there but nothing happen still can not emerge driver
Gentoo is Rocks
Top
Ralphred
l33t
l33t
Posts: 822
Joined: Tue Dec 31, 2013 11:52 am

  • Quote

Post by Ralphred » Mon Mar 03, 2025 4:06 pm

There are two things you need to do:
  • Expose the patches to the ebuild
  • Update the ebuild so it doesn't limit you to "MODULES_KERNEL_MAX=6.6"
So copy kernel-6.10.patch to the patch directory you created (/etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/) as 0001-kernel-6.10.patch and copy kernel-6.12.patch as 0002-kernel-6.12.patch.
Next copy the gentoo ebuild and it's files to your local overlay

Code: Select all

mkdir -p /var/db/repos/local/x11-drivers/nvidia-drivers/files 
cp /var/db/repos/gentoo/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild /var/db/repos/local/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild <<note the revision increment
cp /var/db/repos/gentoo/x11-drivers/nvidia-drivers/files/* /var/db/repos/local/x11-drivers/nvidia-drivers/files/
Update the new local ebuild so it will allow compilation against your 6.12 kernel, with an editor, or just

Code: Select all

sed -i 's/MODULES_KERNEL_MAX=6.6/MODULES_KERNEL_MAX=6.12/' /var/db/repos/local/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild
Then use the ebuild command to "digest" it

Code: Select all

ebuild /var/db/repos/local/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild digest
If you have not used a local overlay before you'll need:

Code: Select all

[local]
location = /var/db/repos/local
priority = 10
masters = gentoo

Code: Select all

masters = gentoo

Code: Select all

local
Now if you emerge nvidia-drivers portage should want to install x11-drivers/nvidia-drivers-470.256.02-r3::local instead of x11-drivers/nvidia-drivers-470.256.02-r2::gentoo

I have no intention of teaching grandma to suck eggs with this post, I just thought it best to be thorough.
Top
molletts
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 137
Joined: Sat Feb 16, 2013 12:08 pm

  • Quote

Post by molletts » Mon Mar 03, 2025 7:08 pm

Ralphred wrote:There are two things you need to do:
  • Expose the patches to the ebuild
  • Update the ebuild so it doesn't limit you to "MODULES_KERNEL_MAX=6.6"
It shouldn't be necessary to update the ebuild - I've never had to edit the 390 ebuild to change MODULES_KERNEL_MAX. It will simply warn you at emerge time that you're on your own if your kernel is higher than this value.
Top
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

  • Quote

Post by sleepingsun » Mon Mar 03, 2025 7:43 pm

i do as you say and get this error

Code: Select all

[ebuild   R    ] x11-drivers/nvidia-drivers-470.256.02-r3:0/470::local  USE="X modules static-libs strip tools -dist-kernel -modules-compress -modules-sign -persistenced" ABI_X86="(64) -32" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-470.256.02-r3::local
 * NVIDIA-Linux-x86_64-470.256.02.run BLAKE2B SHA512 size ;-) ...                            [ ok ]
 * nvidia-installer-470.256.02.tar.bz2 BLAKE2B SHA512 size ;-) ...                           [ ok ]
 * nvidia-modprobe-470.256.02.tar.bz2 BLAKE2B SHA512 size ;-) ...                            [ ok ]
 * nvidia-persistenced-470.256.02.tar.bz2 BLAKE2B SHA512 size ;-) ...                        [ ok ]
 * nvidia-settings-470.256.02.tar.bz2 BLAKE2B SHA512 size ;-) ...                            [ ok ]
 * nvidia-xconfig-470.256.02.tar.bz2 BLAKE2B SHA512 size ;-) ...                             [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     6.12.16-gentoo
 * Checking for suitable kernel configuration options ...                                    [ ok ]
 * Preparing x86_64-pc-linux-gnu toolchain for kernel modules (override with KERNEL_CHOST) ...
 * Toolchain picked for kernel modules (override with KERNEL_CC, _LD, ...): '/usr/bin/x86_64-pc-linux-gnu-gcc-14' '/usr/bin/x86_64-pc-linux-gnu-g++-14' '/usr/bin/x86_64-pc-linux-gnu-ld.bfd' '/usr/bin/x86_64-pc-linux-gnu-gcc-ar' '/usr/bin/x86_64-pc-linux-gnu-gcc-nm' '/usr/bin/x86_64-pc-linux-gnu-objcopy' '/usr/bin/x86_64-pc-linux-gnu-objdump' '/usr/bin/x86_64-pc-linux-gnu-readelf' '/usr/bin/x86_64-pc-linux-gnu-strip'
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-470.256.02.run to /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Unpacking nvidia-installer-470.256.02.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Unpacking nvidia-modprobe-470.256.02.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Unpacking nvidia-persistenced-470.256.02.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Unpacking nvidia-settings-470.256.02.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Unpacking nvidia-xconfig-470.256.02.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work ...
 * Applying nvidia-drivers-470.141.03-clang15.patch ...                                      [ ok ]
 * Applying nvidia-modprobe-390.141-uvm-perms.patch ...                                      [ ok ]
 * Applying nvidia-settings-390.144-desktop.patch ...                                        [ ok ]
 * Applying nvidia-settings-390.144-no-gtk2.patch ...                                        [ ok ]
 * Applying nvidia-settings-390.144-raw-ldflags.patch ...                                    [ ok ]
 * =================================================================================================
 * Applying user patches from /etc/portage/patches ...
 * Applying 0001-kernel-6.10.patch ...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruNb a/kernel/conftest.sh b/kernel/conftest.sh
|--- a/conftest.sh        2024-07-19 04:36:26.183701185 -0500
|+++ b/conftest.sh        2024-07-19 04:36:26.230366381 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruNb a/kernel/nvidia/nvidia.Kbuild b/kernel/nvidia/nvidia.Kbuild
|--- a/nvidia/nvidia.Kbuild       2022-10-12 04:29:57.000000000 -0500
|+++ b/nvidia/nvidia.Kbuild       2024-07-19 05:17:39.148448922 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 49
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruNb a/kernel/nvidia/os-mlock.c b/kernel/nvidia/os-mlock.c
|--- a/nvidia/os-mlock.c  2022-10-12 04:30:26.000000000 -0500
|+++ b/nvidia/os-mlock.c  2024-07-19 04:36:26.230366381 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored                                                                      [ !! ]
 * ERROR: x11-drivers/nvidia-drivers-470.256.02-r3::local failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_prepare
 *             environment, line 3993:  Called default
 *      phase-functions.sh, line  874:  Called default_src_prepare
 *      phase-functions.sh, line  950:  Called __eapi8_src_prepare
 *             environment, line  362:  Called eapply_user
 *             environment, line 1834:  Called eapply '/etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch'
 *             environment, line 1794:  Called _eapply_patch '/etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch'
 *             environment, line 1732:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-470.256.02-r3::local'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-470.256.02-r3::local'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work'

>>> Failed to emerge x11-drivers/nvidia-drivers-470.256.02-r3, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-470.256.02-r3:

 * ERROR: x11-drivers/nvidia-drivers-470.256.02-r3::local failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_prepare
 *             environment, line 3993:  Called default
 *      phase-functions.sh, line  874:  Called default_src_prepare
 *      phase-functions.sh, line  950:  Called __eapi8_src_prepare
 *             environment, line  362:  Called eapply_user
 *             environment, line 1834:  Called eapply '/etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch'
 *             environment, line 1794:  Called _eapply_patch '/etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch'
 *             environment, line 1732:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-470.256.02/0001-kernel-6.10.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-470.256.02-r3::local'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-470.256.02-r3::local'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-470.256.02-r3/work'
Gentoo is Rocks
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Tue Mar 04, 2025 2:29 am

Note that the long-term-support kernel 6.6.x branch will still be supported until December 2026 and getting new releases (6.12 also drops support in 2026 unless it is extended).

And with old hardware you probably no major need for 6.12, I'd suggest just saving yourself headaches and keep using 6.6 (and ideally replace hardware before 2027 if not planning to use nouveau and if don't want to be on your own with this).
Top
Ralphred
l33t
l33t
Posts: 822
Joined: Tue Dec 31, 2013 11:52 am

  • Quote

Post by Ralphred » Tue Mar 04, 2025 5:23 am

sleepingsun wrote:i do as you say and get this error
I can't fix the patches, I don't have a kernel that will allow the ebuild to prepare.
You are best following Ionen's advice until someone fixes/packages them.
Top
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

  • Quote

Post by sleepingsun » Tue Mar 04, 2025 12:35 pm

Ok is it safe to back on last gentoo-sources 6.6.x stable i have before ?

And is it same process as upgrade and how to set grub to load 6.6 or install kernel will be do automatic ?

I never before do it downgrade


Thank you
Gentoo is Rocks
Top
musv
Advocate
Advocate
User avatar
Posts: 3380
Joined: Sun Dec 01, 2002 4:13 pm
Location: de

  • Quote

Post by musv » Thu Jan 29, 2026 10:17 pm

Created a patch from Arch patches an got nvidia-drivers-470.x with kernel-6.12.58 compiled:

https://bugs.gentoo.org/969443

Maybe it helps someone.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic