summaryrefslogtreecommitdiff
path: root/x11-drivers
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/Manifest.gzbin4210 -> 4208 bytes
-rw-r--r--x11-drivers/nvidia-drivers/Manifest20
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-570.conf47
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild42
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-535.230.02.ebuild40
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-550.144.03.ebuild40
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-550.40.83.ebuild40
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-565.77.ebuild40
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild594
9 files changed, 657 insertions, 206 deletions
diff --git a/x11-drivers/Manifest.gz b/x11-drivers/Manifest.gz
index ae2eb26c749f..091adaaa9e95 100644
--- a/x11-drivers/Manifest.gz
+++ b/x11-drivers/Manifest.gz
Binary files differ
diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest
index 3a845728f89b..db52383369f8 100644
--- a/x11-drivers/nvidia-drivers/Manifest
+++ b/x11-drivers/nvidia-drivers/Manifest
@@ -3,6 +3,7 @@ AUX nvidia-390.conf 797 BLAKE2B 7cb7dc58841d2e7cf28f677939031a20ff820e2d46f79917
AUX nvidia-470.conf 1316 BLAKE2B b7ebe612ba932592b7b280042cd635486f0f2ce65a70d6213d796b46904b2151cdd6bd9ac531149ae1274207b5e18435d03fd44b5e8d54d659cd2e5e20356243 SHA512 c84ce3668ff80357c789de305ba40b31e55208204afd3a155f280aaa836b233d56e6543832e0d5735874a4e8ef0688c0e6ddd31b6d85dd2a19c454b592abab52
AUX nvidia-545.conf 1546 BLAKE2B 29ec9b17749bfc23483726adbe69ea2ef7c0edd98276be3ac0af15039b97b9fa937b5bf1766ed7e04bd9182dd0739dfd06260e99c977c9106048e8530bb8bdbe SHA512 bf8a37e57caf762d316ba6ce4e75af65ca81065c9c4e2345809ca804991cb23a804e1524e9497be4be59cd8201d4108d4a1c015e21b32c74dc922cf2545ce1b5
AUX nvidia-555.conf 1852 BLAKE2B 8a21c6cf9607575d4a9b6feef8b57718071505d65e5c78842322bdf5995f55a2d7f997535b4afa23b8db84116dd6c0d732a23c338cdd2b9605d296281db9c4d8 SHA512 8ed7c6775b6b22b28cd3c60c5964f9648887ebff8add09dd03ed02daa2495c5a0871ec31fc679a235e6713d25428dae866af2170b25fbb26bef4a51dd188c18a
+AUX nvidia-570.conf 2035 BLAKE2B 98c7fbcb6cad34cf44ba1fb27a476468d477b30521088bf7900ec32e54deb2b2726dc2b2234832a8b3fc09ec240e80876f946c6cde41242e979a9ddc4171d1e0 SHA512 074978f23bac604ef41fb474543909011fe56a99070ae14dc281564be57dd04c37139a2f5b2c5f344ca8c26c26222cc358772ab75f6e53a0b93632698851f60e
AUX nvidia-drivers-390.154-clang15-x86.patch 1085 BLAKE2B 5bb221407b280f2dde69ef2b37317606bec1c108dbc56653898cfa9318de6e47df21e5b38943212caf13bc6412f2427fad7c534491d868d03399091e2146daaa SHA512 1349c1c715b2f09e64a5e91412aceabc80041d070a6bbacfdf7038872f1f4a798bbc63277d47a25d1a5b28b573b3d5bd6295dadbbdbf245f5cfb0241879a3bc4
AUX nvidia-drivers-390.154-clang15.patch 2915 BLAKE2B e9799aee3c6b814ecdc40e83d2e495acad046f18c88fe8c1b5fead1c9cd0fab3d0a0a2924730dadec5eb8ea1e2d2132c495298d6ab108c015721bab911a4da79 SHA512 6e1c99ae8efb06aa4fc3accb4cee55f43a6498f94fca064fd4b9b007a3555913a5cef042d4e74b6f24a3eb6f14988f810d0c848d34ae81835fbae8ec32cf0cf0
AUX nvidia-drivers-470.141.03-clang15.patch 3757 BLAKE2B 9cec15b57c82c8e24f89a025a73bf78e3d7ea5df681cf803888ca4ad8b96976b433717d01c9fdad5036cb06376345bef64dd05287791ed0ce7dc2a06c8a79aab SHA512 10ed0fa6b1fdf24fbc18432a9b94b1c1b9d7d6003926272d3c924d72a298c1d3a8875b43a42472d701864fe9dda35d75f9cf7c51ca841d20b989ed46ed994311
@@ -22,6 +23,7 @@ AUX system-sleep.elogind 177 BLAKE2B 207d06f14e507dbaad58b94d7500ef415bf2ed84212
DIST NVIDIA-Linux-aarch64-535.230.02.run 269922956 BLAKE2B 153d598eb73007e0a4f4e58c5072c955b6fc0b8d44c224f91895ab0fefad5a180241d66b0c2de7f6c8c0b976f74aa9cef6e55fef235c415927e814d93c70db24 SHA512 7954350fe91419fa85c25483e2572e63c14da3e6fef27ffd13b5a4fcc814cde32faf4cd289333d6a22db26c64658f3e2df0ff8a9ec17094e29a25d35517048e4
DIST NVIDIA-Linux-aarch64-550.144.03.run 236384330 BLAKE2B 773c0ee75a2fcaa405539afdfd3a700bb6b2694f4f6c6770778141838ca06ed2e3cd97416f43ac446ede245a21e6c5e03e8a26a8558bb5c3815f77f13b633be0 SHA512 8bf610acbb92dd4cace8dd18263623db6a4108d988da91603c61fc46402289edd78423a329c2b91f8af922327a1f7aa0357fd5431e88acf99242a712357c335f
DIST NVIDIA-Linux-aarch64-565.77.run 253994527 BLAKE2B 3fb41a7958c58742817eaf3c7bab9dc5620cdaea7244918d963cc54b0708572ae22de30866671d77474c2c61413797865efa1a6ef4e53e4fbdcd283e0324a4b5 SHA512 89be8b0b1fd645fe2ae1ea5d1af787b21e665a7f0b0d911acb749b545ccc70770bc42f8842f2c0cf1b965a980e4260fe025e2aa8a678de2036c3aeef49b7f336
+DIST NVIDIA-Linux-aarch64-570.86.16.run 289340931 BLAKE2B c55b3ae8868a01587b877d212dda87ac656a74d85f3b304c9e10d9af1f0c131fcd379f8a564715101cca2a55097c25ccb15f546968c63d8da70df7374c527722 SHA512 e879de075d64d29a400d985a2d5e971b3b8a92c4a9edb76b0fe6b1149fd8d20810581e3318f1891430fccaa4ef5fbbd2d7d29c2fed61e6283fa71864bb650b63
DIST NVIDIA-Linux-x86-390.157.run 49417041 BLAKE2B 435b5e0e60468cc74b41cc5d9b5bb0105d29c11a2d408457835212a96519c9334ecf19278b36749d3ff7f498f5b0ae45a2efae2d428703dac21245c62f1efebe SHA512 dae9ac2c12f9ad90f7441e00e01a984147c577892421911d7f67f6a31e616ac1cb7d434bc9c7f58fbd9b8ae909521b5bece607a63c79588c0bb9d99c6bad5fb0
DIST NVIDIA-Linux-x86_64-390.157.run 85835541 BLAKE2B 44b855cd11f3b2f231f9fb90492ae2e67a67ea3ea83c413e7c90956d38c9730a8bd0321281ae03c6afce633d102f5b499aed25622b9bfd31bdd2c98f0717e95b SHA512 4780503a4cff0180b1b1f37d20a6ba3438dd78b51fa7f69b98d35521835e5d61099129746929d51d63afa2d47b672b3e145e1e1897584dc3799e7f822c5b3a0a
DIST NVIDIA-Linux-x86_64-470.256.02.run 272850014 BLAKE2B 0fdc867f92b82b2a60810c3b43751cad7ac2c39928c92c6c343c0c6044f4d7d923d93b8599db3f7c999c0ee7d16940e65d991a61cbb30e1d9e49c5639ac6bdc8 SHA512 a837946dd24d7945c1962a695f1f31965f3ceb6927f52cd08fd51b8db138b7a888bbeab69243f5c8468a7bd7ccd47f5dbdb48a1ca81264866c1ebb7d88628f88
@@ -29,39 +31,47 @@ DIST NVIDIA-Linux-x86_64-535.230.02.run 341903243 BLAKE2B 954ad0d390aa786a0a9529
DIST NVIDIA-Linux-x86_64-550.144.03.run 307272669 BLAKE2B 6d1daf41eb3f65071b42dc9bc5b8e0cf48170b03f3418c938f956ddb843f5a1e0f3d968b8825207e3237fa0490f0c29e3ffc4403b4558ef557dadf4fcf5ad17c SHA512 b7c4638695ef3e75043fd1726f0153ff0c140475f965d88c21f46d2909e68d023ebe6aa1e758ed81ab58440ba9a789e00b9b84200c03f00d429e11938a2bed65
DIST NVIDIA-Linux-x86_64-550.40.83.run 312434216 BLAKE2B c197623e617851b0fe87ae10552144da92eec7bf1831be2e7054ced1c3d71f00dbebba4f9ee880d63d75f4f380a1b10c54bc58a92cbae5c51b755869653409f8 SHA512 091ac7c72d479ab59d9796341581792b3eb5be558869fa0afa39430ed0eeb357fd74ac278cc066c4adb36a6ec832dc583cf26551385c9eac532f3957e27e301e
DIST NVIDIA-Linux-x86_64-565.77.run 339246825 BLAKE2B 6c3c57048b6ac25f08a4d493123816c534ed310197aef532ebfbe7f9327897020506fa892b80bb150e6edb953a74ad8d649d743ce7d33d2117850d3308470a0a SHA512 62a85223b1cbc00b65113235642a4a39eb8e78e085845e4c7d12abf916ea2c1d86030849040bba118ba6af56a1d0da073d4a96791674fc18d7154e55a3587b63
+DIST NVIDIA-Linux-x86_64-570.86.16.run 375504315 BLAKE2B 3fc5d4b9f8b64323399f201d4d9d896ff47593108d675e5d77a45255e7ca9354e6876e5b4dee1f59c6c933493fbbf9d35606016f83430c43c5fc54c82685f3f8 SHA512 415adf4609f093e8703dd6f2c03bc5cbd84270c694e67bb0ee72897ac18dddb0d8aaf8baaf47e8624a79c54a1f794126a3ddb10fae91784f05f1f32ba063b985
DIST NVIDIA-kernel-module-source-535.230.02.tar.xz 12527212 BLAKE2B fd641d03cf7b417f1300b39dc271b08c920d11861491c510ceb713aaf69f1b4d373a1b0417993a0483dc6b2cb1d3e2d176d9c23edf9586f129df13bef495ce0b SHA512 d9080f257312b6760140a7dad3bb8e1d6f5982e7b25b3e623a74c519a7c296b1a12eece07335fc79f2d209b790a8239df81948cdb4031852d6225c4768ae42c3
DIST NVIDIA-kernel-module-source-550.144.03.tar.xz 13544304 BLAKE2B d68c1bc8914289b5f90a7fabaec029394871175b0563d64416fe596d7dc30c35b607b3fca5c88d03e59f1944e44663810b20609fccaa32aee89ce79b9fb061e9 SHA512 5923c7e6cdc3d8bfe4cdaf079d07e26b638f35ffa6b7a6c74c5ca2f9478a757ca92a1ced5f5b105f8ec0a61ef792653460683dcd1069beafba68264fb180fb14
DIST NVIDIA-kernel-module-source-565.77.tar.xz 15374480 BLAKE2B 0ca329dd09db37e283c8066722718182e43beee77fc5f3f3e2a06f74a8a6d481beb4ad90260afd3b93a45b1dc462dadcec6e11919c535cdbc4af950836e5af3f SHA512 dcc5d7a53e1c67d42dc0d4bff8ac8181fac15bb05ccd0990e50d4675c94a54a3ed5d56c60cc7f65a958b0d9f2075620a79add51c5ba443869eb47c9c414da586
+DIST NVIDIA-kernel-module-source-570.86.16.tar.xz 17882116 BLAKE2B 85d7a9395286526028cd42af762466833140c05804cb21512e5738f6c5a7a0264791f8ac11bae24f85d871c30cf4b3765e176cee794370abcf356359f7f2cbd6 SHA512 d1fcb8b5500b9120a76a123a8c1a21a44f0495f9eaa16b9c13d631946e6fad610f21f3dc97bfb1c5818207cb9352a53ed606a7a76fae2d4f3f91fd40933b5b95
DIST nvidia-installer-390.157.tar.bz2 150323 BLAKE2B 8058ca87a6dea956d564af9f7eab9b1fc82b1f2382bd5cb2f6d97cbe2e19292533522d5f8f2eacbeb16520372715fcb72f8f9b0998962af5d4e75522c8d74524 SHA512 93a7ece648602157496c8e27a88864ede341a100f5328a4c1a25faf8f0b94d252060e5e2f71d0c302fd0566c10773c30b76b3b5f431d8039b71c90a7969f7d7e
DIST nvidia-installer-470.256.02.tar.bz2 146269 BLAKE2B 4402e725c8fd0157eb84d4ec140a33f97e873014577487ef1e32fb8921cabe79c60ff46532e5bfaabb2b6ac894f7c80086dbab19e61906e2e27346fb85f98829 SHA512 c962dc17d9696256d1ebedcaeb3010994f2ce3895aedc47987599ebfec132a9b9a249d2ece6502b15bd4a93f9b0106aa13487a7da5f64199c274ce11eba27cfd
DIST nvidia-installer-535.230.02.tar.bz2 148662 BLAKE2B ca0c35eca37f66fa169b693b35bd3d4fe3d0960729db33c32b849ac6742b3615c3049b6ace8eac9899809c9ccb92192374ee5cefaf414d696d1fd7ee71410045 SHA512 9f15574aa5293d8881c8a79b23a1bc353ccc66224b260cec2db4c6d43c24cb8d6bab09e798d64074d5200c8d520b92dfa0620f1ee3a547ed624ddd4efd4027cf
DIST nvidia-installer-550.144.03.tar.bz2 155619 BLAKE2B 457f33a2c66f8f687124ecf8695bcf8fe39292e2017de69f98be856aec95e4abb41e03a8b23583a3c819c3b4cacebe7d51b3a9c2a16f05745a7b772a098b81aa SHA512 0b0e360250d2d9ef6d8da10db2b7c85b7614a032a0d274b0b3bf19ebef029a9d4f83607241073ec6bce25ee1a28570d86fabdfdbf2b7232cbfc06cb202c99f25
DIST nvidia-installer-565.77.tar.bz2 168880 BLAKE2B 646183592cf837d9d1521cd9e539d7009289dbfb4c13c894ee94f2613df4a7fab9fa26a9e4e88c16193052c15133f6d227719138d24eb7aae7af694fefdcc582 SHA512 e73d6215f5a3c2984b99232ca93fa8e795a59f559f207c8d4999a5ba48dbaf9082f74fa6304a0d6f186d4c4d9d6f67a991f0dde0a548f05149526759c903a16e
+DIST nvidia-installer-570.86.16.tar.bz2 169267 BLAKE2B cc6c06e84426273b3fc66b1adb1d246309ba6e443214c0c02892fe1dbe3bda3d6661100755f9e73e518eafd696a83bf14d1e2ffbc6f6601bf3f65c886032a900 SHA512 00dc99abdd128d10176937753aaee7c98efec74b9f8b04d5798d9eb9a316b9f3de77e8c9b11b1ec31194c99ba929aa1371364918a974eb26121a348c1b6ae370
DIST nvidia-modprobe-390.157.tar.bz2 35306 BLAKE2B 80d202b39c2f95ec0f909712c2e101483af50124092c32efb33bd98ff58ddfb97b737ff07f1ddc941f688c1b4c26a15f392566d522e18506771f10422fcd571c SHA512 109bbe24a3758b568ea65fe1e9d78f69fae6108ec0497b796c885a3912825fe04ffd7389a3e22987f1a10a2926bf6eaa384faabc59478aa3ee244dd3ac91c6d3
DIST nvidia-modprobe-470.256.02.tar.bz2 38769 BLAKE2B 0db444b09b0b6d24c04877fae95249e781d82b3141f90eb05d869b64d2b6e65ad00bf44c4e427c64dbd4765fa99a8699f80a1d95b00c66137a54dc878d7ea298 SHA512 c1cbfa6c8e188e5a5eb5d390b9a903406cbff103d212fc30e611e4023be3fde896ad84e8bb45b030beb5d1bcd8155c9e55a8f9636c45ce1e2a5c03f672989a31
DIST nvidia-modprobe-535.230.02.tar.bz2 40755 BLAKE2B a3d65084214237416dfb564a5e85ad83fa8e37bbf4a056c57c05020b792a3fff0ae01d55469348e7de3bafdd5ab045ee254ee9f019e33160ce4b155bbd608dbc SHA512 d48859f5ef6dc467fca4da763d6f67076b4da27831a2d6ef6aeafdf8109d7e69311383f0ea3841f653a594b51b207a4d8851b58e9345f7d4a9ff7d57d390d6f6
DIST nvidia-modprobe-550.144.03.tar.bz2 41461 BLAKE2B 2efaf72026775651ae1c6b8bac94d36643a00940eec8b89754c7712fc33a5d003180f95a123dfe4b538636567628f7fba88cdb54b48424a8fe50b5796e59ce28 SHA512 8ee0bae7acf1c590308ff1dd0a616659c416e18a582c55ff539aab728a164fa27e7fc57d29dc3519cf680390748902d509d4230a6812a40c850598a33bee4c3b
DIST nvidia-modprobe-565.77.tar.bz2 41644 BLAKE2B 6eccaf62ba02cd68bb3547266df65cdd6514e925748043ab4089f7b1d6f73d36e6d167293a1bc1c6339ab42cf76ea65e06676180563ad89484bc8d71c64293c5 SHA512 f9cc72d0e07e53541cb3eb6811d4fc6783a82d7a0c6fed2693885fdaa8ea5ff25d6f63a72e99e7fae9fc0e2b337bb1a28cb935768ed283fe9d8f62e2eea374f1
+DIST nvidia-modprobe-570.86.16.tar.bz2 41617 BLAKE2B 28d3123f725f9a937a31ddbcec2e903dcc613f84387f90543d0b0e1e7baa6fc6bbc2ccd06d8527d89b3c2d6857ed045bdde7f63814d3b198c6607ad86751220e SHA512 913cd040a0c0f16fa115df805640c35439be82d797a717fbf6159448e455bb387ca25814a1a5a4836d45a260348fad0d9cd11ecb7badf428b1b2b7b985078c78
DIST nvidia-persistenced-390.157.tar.bz2 48654 BLAKE2B 2cf6c92da90acff55e8c180a06b0c6a29d48be9fd8ca3c541202fd14f0697220fba6b66452942aa7ae7cc8821f5c5eb9fa8f7a31d2248624e5f9141d83a176b8 SHA512 70f0707ed6f2b877e69ef90cf782f66cbc9d2071db53ca09ceb7b89427b0fe176708517340621fa251539b7d481b238adeeb60261674eed74de1f62db6dbb72e
DIST nvidia-persistenced-470.256.02.tar.bz2 46567 BLAKE2B 8f837322a3b88412fd2f6acf38721b49a6cb444fbd842d652519e5596f2e545d8f06bbdf017f46a22301ce87455f96147fab2829ca5fbf26131ec3e4a772e282 SHA512 4fd19258649b7d39945fb5c8578bf11ab118617dd14f3d11cdf15cb3fe77daf7b4719e4ae57af59031b1b809d02f4e8e8afed0ec60b9d0aed4d2488bd3013cd9
DIST nvidia-persistenced-535.230.02.tar.bz2 48593 BLAKE2B 3db9b706f42abe108787ba56066b54f0cb4fa76a7f3da5e0f927da8b1dde37d8c9fb39b5f06859c1087b2e634edf1f2bfc69e4f62d15a5b0f54a0af0b7cc1b2a SHA512 f5482032bba92b94fb95d71830e8596e44f3f22c5804cda32a1f5f856711ae66740ba35fb9930fefe2fab688026a292705cb882e6ae408f74c8dc494ff3c4600
DIST nvidia-persistenced-550.144.03.tar.bz2 61298 BLAKE2B c9b6f35fef2779f4dc3e505d3fac9680fd792b227c5770ed518187bf16eeb01dda65f02bb0323d845d7f27e4d7d14ae424d8c6782a455396894869ab8c462423 SHA512 a9f4c46255c4e61d106bfa1df49fcc24dc754e1df1a7b1d62bb00054c5936aaad19d4c4d4aead4276681b73ce40111a3f15226ac138aa43b0919af4c91045236
DIST nvidia-persistenced-565.77.tar.bz2 49679 BLAKE2B 42cb002e207274b4e3100879d3a1dfb7f458f600d8ae82637771d38a0d06998cbc53061df1e84fec26d2a1b713a033bb96ae07e4a30307a7c3a9965033024682 SHA512 7268953c5e17891498bf75fd9b3fecdf27eaa1e9488eb390b939a08cab04568b1be5363a8cd788aa4491315ca0285a6edbde8a661a7fa1a2ad7ae7bcf5ff0e95
+DIST nvidia-persistenced-570.86.16.tar.bz2 61718 BLAKE2B fe4fb227c5bfc678e1bdad28bb2d58a88e2d435e543db59464cf5766c4777677206284eb950311d271633cdd16204381e4f8d390e49a9dd1c7f6402d2d40c5d6 SHA512 c335d71a75360af0fa326a0e9330930d0081678a725790dc2cb2c8905889c2da3143286088a65806e57b4ac6d15bf2d819410bffc6ddc0701306aafc6ce721e3
DIST nvidia-settings-390.157.tar.bz2 1108938 BLAKE2B d9ec1ab5d7f157d74627272adf752a671dd17e2ede02069437b6180b927fe315b15cc6416d584ab2f038b76fe01e5b64514a834f24d88ac16676e55205fdecdd SHA512 b16699009bf56a1ff3b623a528c58061c4f5a2c5c4a373756a07bcd667743a1df7c733a572d2d0baa835a904ac2fda8a5c85890dcc00c3a0f223e0467aea902d
DIST nvidia-settings-470.256.02.tar.bz2 1062273 BLAKE2B 8e66201e7861469b12932595ef8f9fd29d4cfd570c2576ae7fbb7383f61c55ac71fe721cc431e79d6d69f86d998b5b4c3cafe531b573f439e6b499b0fc047a19 SHA512 626e66118ae2e62eacfdf44e37529c409b945a6f33637b9690d74abd87a2afb581aaca5f90328d280da99ceb659959d0e5dc5c22ef8013b2205b2b1c72e08007
DIST nvidia-settings-535.230.02.tar.bz2 1094719 BLAKE2B 492a7c190b10ff6703eb1d5a18702f71f7cfdb9d2657aa6ff63487dfd6bc133d7df980af40c12ccb4fc834025776a72791fb2df39628e81ade0588bc0e3ad1a7 SHA512 9e4cfd71198be0c6a8df15d0a4c57d117da8674922b4b3d9584aac13df704def146f4ffef7f8c39f2064c76ce3813f13daed3e96f0b2bebd2dfb6ac612fea990
DIST nvidia-settings-550.144.03.tar.bz2 1099313 BLAKE2B 16f111b49a38063d7b7dac5559f8775d6871fac322017e6ad789e4cca737ffe1c75934cd44c44008f1ae55ab5a3d2f85924086227d18035a00bedfdbfe0e73fd SHA512 223a71474001d9e57888fee41c5a61c86b79438a1502d40f3c5de5e0c8919bf78f2c5042dfb529893c4c3dea537942f9fab8458ad87418e2f43cd613cd3dc815
DIST nvidia-settings-565.77.tar.bz2 1119070 BLAKE2B 74f3a0a68a9bf10d7a8cd96a5db9b6e11d70073de2f1e8494f5d40ed79fb88895f158797b3b70bc0656c9d65d9920f033ed5aa1f3c95f71cbfcf04a118478d9c SHA512 100560edbf1575a365e09394409333bbfc28bdd03761b13b89b6d052e195f65f94c9e47c9f0588f40a0f6d375a8e16b543ca84f82cc1a5a76ec37ea1941fae1f
+DIST nvidia-settings-570.86.16.tar.bz2 1122941 BLAKE2B 9691e71f62f11b5c19ab989f9dc28381685409cf3e269f93430292a58ebc78ad5eacc93fbc61b801fec601a269ba25da3d7b4cd4c26cdc791d615919bfe663da SHA512 501cf906dce3c2e6863e5717538b3819cf8a03e763717897b2931257b05f58434f3b269a942a95da0690056d958c65c9acf738c3811ba654f9afff0a1ab1d56d
DIST nvidia-xconfig-390.157.tar.bz2 107399 BLAKE2B 0cbb3b1ba508ddc3ba4a161c290b31bf7a67f67880bdbd01171a962c5fa97ca945b1ef17932403f8589309380743f1da632c728d8accb6d4e56dbd895e7486bb SHA512 50b390811c9bf091b14add41f886925b17496b41006b7d3981d2398caa65cf5db8a579c8cebed78278384bf3acc629befb07b54339c61abcc75852c0dcb8b8ca
DIST nvidia-xconfig-470.256.02.tar.bz2 108698 BLAKE2B e468574e4bc57e7279d4120e2b08a201671b50d408be0c530eabe5da7d45daaf21cbf5c7fa31410d0d732fe8ea1551cbfb21d1ae193c1b3f5b5c50c764c9e236 SHA512 9dcec1e0c2b56b4d38a5f2c76086302f8bc0860cc15012cce29c3a5062f801a48b6a2bb78344361b07a2717b58502783441a2daf402d9973a17526175b1f15ca
DIST nvidia-xconfig-535.230.02.tar.bz2 111060 BLAKE2B a29389a0d73f66b47131ce420a8b0c06134737dc01c9175b146305fa1e534d4c8e722a3af73ec9e745de6e027810836e7a77a0c05e771b46932cf47ce03de198 SHA512 4d0f5e239b47dcccf9abb1208c74d2baff87d93ad8d691772353bc84a340ec1b097e4cc436109ebe063b8180baab39a8c713992eb48c9f76206d54b890a5381c
DIST nvidia-xconfig-550.144.03.tar.bz2 111209 BLAKE2B 733058b0960b04212ad058616a93e79fbc1d18b51d7bf8b2cf9a5227fe1f5fbc2af1accd4043b71137a9c12ef534c454db9a8b46c1c707bc22fbf618d76c0dd2 SHA512 98c637a243bfd0a7f3154994b05400701d3b1ddfe8a38cf7782c237baa33f11cbc5be305b9bce8ac98813af1d37143cf96c13b3e6d3357c30d3f89a9be8bee0d
DIST nvidia-xconfig-565.77.tar.bz2 111235 BLAKE2B 75cc8a5ed9248f044159482940e6d4eead7b4cb8321b15883ce0c97230c85b260cacdd74cdad45ee8a8248271e081ae94623d195151840b07c8f747eea33a0e1 SHA512 641ca934b79d2a597be56309dfab968ab1b908bfc346c33fe69d9c13c56636e643388b6c1d83918bcc3fda70ecc2a34d6a305422539130424eafd973fc94c41e
+DIST nvidia-xconfig-570.86.16.tar.bz2 111239 BLAKE2B 490638802c16634c6d21e22d81991327d7b4d45a918ad64b05e1191a99143a57bfc84beae2fb900149686b0adff94ede06c16711fb4f4d43a374c270d851d668 SHA512 0c1834a979e8771a6fe29a7e25640f1bb414b2f3db6529ad359079fb5b0db0681c67ab38490c0df9fcbf754a7a6ddcffc8dd7fb4f969214aa81f067a43cfd83f
DIST open-gpu-kernel-modules-550.40.83.tar.gz 13813581 BLAKE2B 5c841bb5949733b0baf43a08112bf4451893348a18a48f956abd5184a2a93d03d4a912e6ac19bafb711aa0694c7041946134c34144c34ea4280edc39903c88ea SHA512 8ffc1d034889c225d43ecd61bdd448a3cbf53a7ffef04a2fb4343c9df089f535431de797208330dd55db399109a36eb0f8665e78a53f60616d36ca063d6ce22a
EBUILD nvidia-drivers-390.157.ebuild 15171 BLAKE2B 3ca881fb215472a69802c859059724166da46d994c7e34f75633d33b2ce600d9992faee4a7976177a7cf0f224a25cf652ceef8d357e0a47ad0ae805f23300b2a SHA512 8468a6ef9a04434540b9f14892a01075c438851ac7e2aa6f98ebec8479f5af51b9cd1a1362c4ef2fbfb2b386929e84ffc95855f89dc9c814945ddb5a942a94b3
-EBUILD nvidia-drivers-470.256.02-r2.ebuild 18820 BLAKE2B c87b3f9d791b1b8076cc9342a62443db7005b112dd9d2d6a60619ac585fb6cbfecb3e57d085168feb5393e57a4bb1f1cd52321857bfb26a4061d8e99d1108755 SHA512 0c38b2f789f36b2cdb37dc0af5adc3ca566e2bcf2f13089cd754e32c7cd358559ee6f77e31b748db175322f6e56247e20a582366abab3fcc052d530d4e60c498
-EBUILD nvidia-drivers-535.230.02.ebuild 22276 BLAKE2B e962882e918bcc26de5e8bff8e0f6ce399ce17fc7c56189adeec2e35adc2a5a42dc04d20dc982fdbf248334326cb3ba44f79c44618d29838f6e359ef0a46599a SHA512 26afb0d287495f16af0d894fbc114c995e0c40b35a0c7feb518221ab7582eb948b9518c9518a8974ac9277b51fb3840c06f3acbf17baee29d3fa81fa00008d57
-EBUILD nvidia-drivers-550.144.03.ebuild 21965 BLAKE2B fe4902938389025b6a7b71a89903f6cd52e0d8a915ab4fe1119ee471582dd22421df49c3cf699df4345464e00ddde943ff977a3d67903129d9e7861601b70fad SHA512 61d41c356cc896782c10a7b38102e379d61a3fc6e8ba2be54bea9a845adee899c2ac5708d52be629ff072136af3e3f4a9a4687a4fe0365ccf380c90f5b8ece27
-EBUILD nvidia-drivers-550.40.83.ebuild 21864 BLAKE2B 2109ef15e9af614142e2d87840bf603d04d1bb041581eb8e9d3ab7eec74f1b5630f48a88bfc5c5ffb9b7ddeb5dcbb91eb9ea9b9bc351b1a08cae954f531f7789 SHA512 e77f84621905547a17a227c88873f02be65911691cab02d9ccc62e181291ee38e634bfb67d108499c73837ebcaa677da559ac4ad9f5344c74f3021afd7ef7569
-EBUILD nvidia-drivers-565.77.ebuild 22870 BLAKE2B 410026581de6b1f1aad9c53f312919c83e5fae77f37b5b7da0ed11594a774d954aa3b659d08b9e021bc5eb3978c11eb3d25bc25ced435d3f3e5e0155e95e875f SHA512 65f926c24644b6330ed4712d754ece31d6322429106eb7cc3732b44c067d9e4c8b8545c019b1a14f56e5a2e60fda51d66ad17f05f24f061b24e973ee9b4b346e
+EBUILD nvidia-drivers-470.256.02-r2.ebuild 16801 BLAKE2B 8b1b734345961180a9e5f6acae61043b9d8b3a689518b61b4945906745aefccbd5b42f971d312efea4d7e9c12fef0e161e6b83b08d9b5eb24903235ad8bb2572 SHA512 59ab549f22f4c61b90f74b8ecde5fe0e845df10fbb73cf6339af0a25e75fc96efd1c337efd589e9dfedc83168768bdae96e767f04d523fd8739c787fd820000b
+EBUILD nvidia-drivers-535.230.02.ebuild 20257 BLAKE2B 02fd2fcd59efa5d40928328505f4bcb15c5b76f7cf144260b88531da6ffa9a3c0842a75713d517bd31ae4789a3f513c736ddce9a68921d1221bddd377a0cb82b SHA512 ba7a019cd0201870b8a6f87af2c3ca47286be3744e14c3d0075e08160ad0fec0b974e3615d9f560bc5de4dce47802e63d0afde8692fb0ef04dd21efb8d04fa57
+EBUILD nvidia-drivers-550.144.03.ebuild 19946 BLAKE2B 17e1f574a10b23827afe0af1d87dbdf06055707ff33fda180e43191299a6acb2a9b6a9703d7d82e16da72d413a5fc35e7147c8bbe0785219ec2db7b66115bb57 SHA512 ca37997909b1ba2f20f00a3c6b8fbd0fc6ed26ae91173af4336a42501df29caab52c98c052a760c2f003c33094c0cccb8bdc7a98d9a72c78b8b71a514eb5bfb7
+EBUILD nvidia-drivers-550.40.83.ebuild 19846 BLAKE2B 89f3291cdbb81571e5901506ea61c5384203f2d49b31d390c67f9f741a146e203af59e4f06a66425547776f45de75319dbd16a0c8888f149f254801768a23d17 SHA512 0bf20640e2148d0bb3e90bc1ed754d8c3bbe6397188740d6462415f6d30ec53fab744ae4f608264e2564761395ff4efbf6019c151ae259073d3482cb51a70403
+EBUILD nvidia-drivers-565.77.ebuild 20852 BLAKE2B 3ea103d41778e3309e12720a30f4251a06e51cb3983197faca49ce334aaf394630b6bf34e51275a1491ca3a84dfcdb77bca634fce790f32d42f3c88729ac2f3a SHA512 fe0312f35badda4775cf59f136ce3d97c06fc2595cbbb2d4002210441c2ade77b3b4db5c51d21b9dbdb96c35fc7432a15d78657cbf4349791f5ac6542b0dbcdc
+EBUILD nvidia-drivers-570.86.16-r1.ebuild 21179 BLAKE2B 42309f61ac89738733b4f45b8595a57e928a74ac25f5f6c2513ea114871346b53fc845ffedf73e68ca5dc4d2b94ff874a112b5f06a4dcaf283696c3cc01c9431 SHA512 81c1e945d917eca3cbe51f0b5d58feeb9981186a295d061cca668bd3f8b764e44b4a2427c1e47de49cd5ad5dfba8859126b1934d660016c714592c01bf3b1cfc
MISC metadata.xml 1457 BLAKE2B 10fccbffe28ab58e012aae439123f947acea95eb3bdc4d0e2eb1ec14a92ad24fc2e3e0c248dcce87d9fdec54a65b8e040b2ed048d9ef11054f762f295c24ce39 SHA512 8469884c614a0275f438a0f8d583f2823d1159905ee27402e859c824cc458ac31daf69f2b7960533daaf86e1ca203be745c03e4e67ff12e9bbb2c08b91c667a0
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-570.conf b/x11-drivers/nvidia-drivers/files/nvidia-570.conf
new file mode 100644
index 000000000000..7ef30c1025d0
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-570.conf
@@ -0,0 +1,47 @@
+# NVIDIA drivers options
+# See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.
+
+# nvidia-drivers and nouveau cannot be used at same time.
+# Comment out the following line if you wish to allow nouveau.
+blacklist nouveau
+
+# Kernel Mode Setting (notably needed for fbdev and wayland).
+# Enabling may possibly cause issues with SLI and Reverse PRIME.
+#options nvidia-drm modeset=1
+
+# If modeset=1 ^, NVIDIA will handle the console/tty display and
+# allow overriding DRM devices such as simpledrm. This is a default
+# since 570.x drivers but has been known to cause a variety of
+# problems. Given efifb is more typically used on Gentoo at the moment,
+# it is not *required* here and is safer to be disabled for now.
+# Comment out the line if you need it. https://bugs.gentoo.org/949097
+options nvidia-drm fbdev=0
+
+# Disable use of the GSP firmware which has newly been enabled by default
+# for GPUs that support it (Turing/Ampere+ GPUs, aka GTX 1650+). Not
+# recommended unless experience regressions for which disabling helps.
+# Cannot be disabled if using USE="kernel-open".
+#options nvidia NVreg_EnableGpuFirmware=0
+
+# Suspend options. Note that Allocations=1 requires suspend hooks currently
+# only used when either systemd or elogind is used to suspend. If using
+# neither or have issues, try Allocations=0 (revert if it does not help
+# as =0 is not recommended).
+options nvidia \
+ NVreg_PreserveVideoMemoryAllocations=1 \
+ NVreg_TemporaryFilePath=/var/tmp
+
+# !!! Security Warning !!!
+# Do not change the DeviceFile options unless you know what you are doing.
+# Only add trusted users to the 'video' group, these users may be able to
+# crash, compromise, or irreparably damage the machine.
+options nvidia \
+ NVreg_DeviceFileGID=@VIDEOGID@ \
+ NVreg_DeviceFileMode=432 \
+ NVreg_DeviceFileUID=0 \
+ NVreg_ModifyDeviceFiles=1
+
+# Should be no need to touch anything below.
+alias char-major-195 nvidia
+alias /dev/nvidiactl char-major-195
+remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild
index b0d6b97ad07c..1ac00d9739fb 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -476,46 +476,6 @@ pkg_postinst() {
ewarn "[2] https://wiki.gentoo.org/wiki/Nouveau"
fi
- # these can be removed after some time, only to help the transition
- # given users are unlikely to do further custom solutions if it works
- # (see also https://github.com/elogind/elogind/issues/272)
- if grep -riq "^[^#]*HandleNvidiaSleep=yes" "${EROOT}"/etc/elogind/sleep.conf.d/ 2>/dev/null
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected HandleNvidiaSleep=yes in ${EROOT}/etc/elogind/sleep.conf.d/."
- ewarn "This 'could' cause issues if used in combination with the new hook"
- ewarn "installed by the ebuild to handle sleep using the official upstream"
- ewarn "script. It is recommended to disable the option."
- fi
- if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \
- sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]]
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected a custom script at ${EROOT}{/etc,{/usr,}/lib*}/elogind/system-sleep"
- ewarn "referencing NVIDIA. This version of ${PN} has installed its own"
- ewarn "hook at ${EROOT}/usr/lib/elogind/system-sleep/nvidia and it is recommended"
- ewarn "to remove the custom one to avoid potential issues."
- ewarn
- ewarn "Feel free to ignore this warning if you know the other NVIDIA-related"
- ewarn "scripts can be used together. The warning will be removed in the future."
- fi
- if [[ ${REPLACING_VERSIONS##* } ]] &&
- ver_test ${REPLACING_VERSIONS##* } -lt 470.256.02-r1 # may get repeated
- then
- elog
- elog "For suspend/sleep, 'NVreg_PreserveVideoMemoryAllocations=1' is now default"
- elog "with this version of ${PN}. This is recommended (or required) by"
- elog "major DEs especially with wayland but, *if* experience regressions with"
- elog "suspend, try reverting to =0 in '${EROOT}/etc/modprobe.d/nvidia.conf'."
- elog
- elog "May notably be an issue when using neither systemd nor elogind to suspend."
- elog
- elog "Also, the systemd suspend/hibernate/resume services are now enabled by"
- elog "default, and for openrc+elogind a similar hook has been installed."
- fi
-
ewarn
ewarn "Be warned/reminded that the 470.xx branch reached end-of-life and"
ewarn "NVIDIA is no longer fixing issues (including security). Free to keep"
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.230.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.230.02.ebuild
index 7f52da36b2ef..02fa367c93eb 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.230.02.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.230.02.ebuild
@@ -573,44 +573,4 @@ pkg_postinst() {
elog "If you experience issues, either disable wayland or edit nvidia.conf."
elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
fi
-
- # these can be removed after some time, only to help the transition
- # given users are unlikely to do further custom solutions if it works
- # (see also https://github.com/elogind/elogind/issues/272)
- if grep -riq "^[^#]*HandleNvidiaSleep=yes" "${EROOT}"/etc/elogind/sleep.conf.d/ 2>/dev/null
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected HandleNvidiaSleep=yes in ${EROOT}/etc/elogind/sleep.conf.d/."
- ewarn "This 'could' cause issues if used in combination with the new hook"
- ewarn "installed by the ebuild to handle sleep using the official upstream"
- ewarn "script. It is recommended to disable the option."
- fi
- if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \
- sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]]
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected a custom script at ${EROOT}{/etc,{/usr,}/lib*}/elogind/system-sleep"
- ewarn "referencing NVIDIA. This version of ${PN} has installed its own"
- ewarn "hook at ${EROOT}/usr/lib/elogind/system-sleep/nvidia and it is recommended"
- ewarn "to remove the custom one to avoid potential issues."
- ewarn
- ewarn "Feel free to ignore this warning if you know the other NVIDIA-related"
- ewarn "scripts can be used together. The warning will be removed in the future."
- fi
- if [[ ${REPLACING_VERSIONS##* } ]] &&
- ver_test ${REPLACING_VERSIONS##* } -lt 535.183.01-r1 # may get repeated
- then
- elog
- elog "For suspend/sleep, 'NVreg_PreserveVideoMemoryAllocations=1' is now default"
- elog "with this version of ${PN}. This is recommended (or required) by"
- elog "major DEs especially with wayland but, *if* experience regressions with"
- elog "suspend, try reverting to =0 in '${EROOT}/etc/modprobe.d/nvidia.conf'."
- elog
- elog "May notably be an issue when using neither systemd nor elogind to suspend."
- elog
- elog "Also, the systemd suspend/hibernate/resume services are now enabled by"
- elog "default, and for openrc+elogind a similar hook has been installed."
- fi
}
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.144.03.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.144.03.ebuild
index 389d910edd3e..69d63203644f 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.144.03.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.144.03.ebuild
@@ -566,44 +566,4 @@ pkg_postinst() {
elog "If you experience issues, either disable wayland or edit nvidia.conf."
elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
fi
-
- # these can be removed after some time, only to help the transition
- # given users are unlikely to do further custom solutions if it works
- # (see also https://github.com/elogind/elogind/issues/272)
- if grep -riq "^[^#]*HandleNvidiaSleep=yes" "${EROOT}"/etc/elogind/sleep.conf.d/ 2>/dev/null
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected HandleNvidiaSleep=yes in ${EROOT}/etc/elogind/sleep.conf.d/."
- ewarn "This 'could' cause issues if used in combination with the new hook"
- ewarn "installed by the ebuild to handle sleep using the official upstream"
- ewarn "script. It is recommended to disable the option."
- fi
- if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \
- sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]]
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected a custom script at ${EROOT}{/etc,{/usr,}/lib*}/elogind/system-sleep"
- ewarn "referencing NVIDIA. This version of ${PN} has installed its own"
- ewarn "hook at ${EROOT}/usr/lib/elogind/system-sleep/nvidia and it is recommended"
- ewarn "to remove the custom one to avoid potential issues."
- ewarn
- ewarn "Feel free to ignore this warning if you know the other NVIDIA-related"
- ewarn "scripts can be used together. The warning will be removed in the future."
- fi
- if [[ ${REPLACING_VERSIONS##* } ]] &&
- ver_test ${REPLACING_VERSIONS##* } -lt 550.107.02-r1 # may get repeated
- then
- elog
- elog "For suspend/sleep, 'NVreg_PreserveVideoMemoryAllocations=1' is now default"
- elog "with this version of ${PN}. This is recommended (or required) by"
- elog "major DEs especially with wayland but, *if* experience regressions with"
- elog "suspend, try reverting to =0 in '${EROOT}/etc/modprobe.d/nvidia.conf'."
- elog
- elog "May notably be an issue when using neither systemd nor elogind to suspend."
- elog
- elog "Also, the systemd suspend/hibernate/resume services are now enabled by"
- elog "default, and for openrc+elogind a similar hook has been installed."
- fi
}
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.83.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.83.ebuild
index 1ee927ceccbd..f4e1b8c9ff17 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.83.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.83.ebuild
@@ -564,44 +564,4 @@ pkg_postinst() {
elog "If you experience issues, either disable wayland or edit nvidia.conf."
elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
fi
-
- # these can be removed after some time, only to help the transition
- # given users are unlikely to do further custom solutions if it works
- # (see also https://github.com/elogind/elogind/issues/272)
- if grep -riq "^[^#]*HandleNvidiaSleep=yes" "${EROOT}"/etc/elogind/sleep.conf.d/ 2>/dev/null
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected HandleNvidiaSleep=yes in ${EROOT}/etc/elogind/sleep.conf.d/."
- ewarn "This 'could' cause issues if used in combination with the new hook"
- ewarn "installed by the ebuild to handle sleep using the official upstream"
- ewarn "script. It is recommended to disable the option."
- fi
- if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \
- sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]]
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected a custom script at ${EROOT}{/etc,{/usr,}/lib*}/elogind/system-sleep"
- ewarn "referencing NVIDIA. This version of ${PN} has installed its own"
- ewarn "hook at ${EROOT}/usr/lib/elogind/system-sleep/nvidia and it is recommended"
- ewarn "to remove the custom one to avoid potential issues."
- ewarn
- ewarn "Feel free to ignore this warning if you know the other NVIDIA-related"
- ewarn "scripts can be used together. The warning will be removed in the future."
- fi
- if [[ ${REPLACING_VERSIONS##* } ]] &&
- ver_test ${REPLACING_VERSIONS##* } -lt 550.40.71-r1 # may get repeated
- then
- elog
- elog "For suspend/sleep, 'NVreg_PreserveVideoMemoryAllocations=1' is now default"
- elog "with this version of ${PN}. This is recommended (or required) by"
- elog "major DEs especially with wayland but, *if* experience regressions with"
- elog "suspend, try reverting to =0 in '${EROOT}/etc/modprobe.d/nvidia.conf'."
- elog
- elog "May notably be an issue when using neither systemd nor elogind to suspend."
- elog
- elog "Also, the systemd suspend/hibernate/resume services are now enabled by"
- elog "default, and for openrc+elogind a similar hook has been installed."
- fi
}
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-565.77.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-565.77.ebuild
index 2f947bfb056e..649f3eece71a 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-565.77.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-565.77.ebuild
@@ -586,44 +586,4 @@ pkg_postinst() {
elog "enables the use of the GSP firmware by default. *If* experience regressions,"
elog "please see '${EROOT}/etc/modprobe.d/nvidia.conf' to optionally disable."
fi
-
- # these can be removed after some time, only to help the transition
- # given users are unlikely to do further custom solutions if it works
- # (see also https://github.com/elogind/elogind/issues/272)
- if grep -riq "^[^#]*HandleNvidiaSleep=yes" "${EROOT}"/etc/elogind/sleep.conf.d/ 2>/dev/null
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected HandleNvidiaSleep=yes in ${EROOT}/etc/elogind/sleep.conf.d/."
- ewarn "This 'could' cause issues if used in combination with the new hook"
- ewarn "installed by the ebuild to handle sleep using the official upstream"
- ewarn "script. It is recommended to disable the option."
- fi
- if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \
- sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]]
- then
- ewarn
- ewarn "!!! WARNING !!!"
- ewarn "Detected a custom script at ${EROOT}{/etc,{/usr,}/lib*}/elogind/system-sleep"
- ewarn "referencing NVIDIA. This version of ${PN} has installed its own"
- ewarn "hook at ${EROOT}/usr/lib/elogind/system-sleep/nvidia and it is recommended"
- ewarn "to remove the custom one to avoid potential issues."
- ewarn
- ewarn "Feel free to ignore this warning if you know the other NVIDIA-related"
- ewarn "scripts can be used together. The warning will be removed in the future."
- fi
- if [[ ${REPLACING_VERSIONS##* } ]] &&
- ver_test ${REPLACING_VERSIONS##* } -lt 560.35.03-r1 # may get repeated
- then
- elog
- elog "For suspend/sleep, 'NVreg_PreserveVideoMemoryAllocations=1' is now default"
- elog "with this version of ${PN}. This is recommended (or required) by"
- elog "major DEs especially with wayland but, *if* experience regressions with"
- elog "suspend, try reverting to =0 in '${EROOT}/etc/modprobe.d/nvidia.conf'."
- elog
- elog "May notably be an issue when using neither systemd nor elogind to suspend."
- elog
- elog "Also, the systemd suspend/hibernate/resume services are now enabled by"
- elog "default, and for openrc+elogind a similar hook has been installed."
- fi
}
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild
new file mode 100644
index 000000000000..068810f548aa
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild
@@ -0,0 +1,594 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MODULES_OPTIONAL_IUSE=+modules
+inherit desktop eapi9-pipestatus flag-o-matic linux-mod-r1 readme.gentoo-r1
+inherit systemd toolchain-funcs unpacker user-info
+
+MODULES_KERNEL_MAX=6.13
+NV_URI="https://download.nvidia.com/XFree86/"
+
+DESCRIPTION="NVIDIA Accelerated Graphics Driver"
+HOMEPAGE="https://www.nvidia.com/"
+SRC_URI="
+ amd64? ( ${NV_URI}Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run )
+ arm64? ( ${NV_URI}Linux-aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run )
+ $(printf "${NV_URI}%s/%s-${PV}.tar.bz2 " \
+ nvidia-{installer,modprobe,persistenced,settings,xconfig}{,})
+ ${NV_URI}NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-${PV}.tar.xz
+"
+# nvidia-installer is unused but here for GPL-2's "distribute sources"
+S=${WORKDIR}
+
+LICENSE="NVIDIA-r2 Apache-2.0 BSD BSD-2 GPL-2 MIT ZLIB curl openssl"
+SLOT="0/${PV%%.*}"
+KEYWORDS="-* ~amd64 ~arm64"
+# note: kernel-open is an upstream default in >=560 if all GPUs on the system
+# support it but, since no automagic here, keeping it off for the wider support
+IUSE="+X abi_x86_32 abi_x86_64 kernel-open persistenced powerd +static-libs +tools wayland"
+REQUIRED_USE="kernel-open? ( modules )"
+
+COMMON_DEPEND="
+ acct-group/video
+ X? ( x11-libs/libpciaccess )
+ persistenced? (
+ acct-user/nvpd
+ net-libs/libtirpc:=
+ )
+ tools? (
+ >=app-accessibility/at-spi2-core-2.46:2
+ dev-libs/glib:2
+ dev-libs/jansson:=
+ media-libs/harfbuzz:=
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ x11-libs/pango
+ )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ dev-libs/openssl:0/3
+ sys-libs/glibc
+ X? (
+ media-libs/libglvnd[X,abi_x86_32(-)?]
+ x11-libs/libX11[abi_x86_32(-)?]
+ x11-libs/libXext[abi_x86_32(-)?]
+ )
+ powerd? ( sys-apps/dbus[abi_x86_32(-)?] )
+ wayland? (
+ >=gui-libs/egl-gbm-1.1.1-r2[abi_x86_32(-)?]
+ >=gui-libs/egl-wayland-1.1.13.1[abi_x86_32(-)?]
+ X? ( gui-libs/egl-x11[abi_x86_32(-)?] )
+ )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ static-libs? (
+ x11-base/xorg-proto
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ tools? (
+ dev-util/vulkan-headers
+ media-libs/libglvnd
+ sys-apps/dbus
+ x11-base/xorg-proto
+ x11-libs/libXrandr
+ x11-libs/libXv
+ x11-libs/libvdpau
+ )
+"
+BDEPEND="
+ sys-devel/m4
+ virtual/pkgconfig
+"
+
+QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*"
+
+PATCHES=(
+ "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch
+ "${FILESDIR}"/nvidia-settings-530.30.02-desktop.patch
+)
+
+pkg_setup() {
+ use modules && [[ ${MERGE_TYPE} != binary ]] || return
+
+ # do early before linux-mod-r1 so can use chkconfig to setup CONFIG_CHECK
+ get_version
+ require_configured_kernel
+
+ local CONFIG_CHECK="
+ PROC_FS
+ ~DRM_KMS_HELPER
+ ~SYSVIPC
+ ~!LOCKDEP
+ ~!PREEMPT_RT
+ ~!SLUB_DEBUG_ON
+ !DEBUG_MUTEXES
+ $(usev powerd '~CPU_FREQ')
+ "
+
+ kernel_is -ge 6 11 && linux_chkconfig_present DRM_FBDEV_EMULATION &&
+ CONFIG_CHECK+=" DRM_TTM_HELPER"
+
+ use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764
+
+ use kernel-open && CONFIG_CHECK+=" MMU_NOTIFIER" #843827
+
+ local drm_helper_msg="Cannot be directly selected in the kernel's config menus, and may need
+ selection of a DRM device even if unused, e.g. CONFIG_DRM_QXL=m or
+ DRM_AMDGPU=m (among others, consult the kernel config's help), can
+ also use DRM_NOUVEAU=m as long as built as module *not* built-in."
+ local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
+ of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
+ ${drm_helper_msg}"
+ local ERROR_DRM_TTM_HELPER="CONFIG_DRM_TTM_HELPER: is not set but is needed to compile when using
+ kernel version 6.11.x or newer while DRM_FBDEV_EMULATION is set.
+ ${drm_helper_msg}"
+ local ERROR_MMU_NOTIFIER="CONFIG_MMU_NOTIFIER: is not set but needed to build with USE=kernel-open.
+ Cannot be directly selected in the kernel's menuconfig, and may need
+ selection of another option that requires it such as CONFIG_KVM."
+ local ERROR_PREEMPT_RT="CONFIG_PREEMPT_RT: is set but is unsupported by NVIDIA upstream and
+ will fail to build unless the env var IGNORE_PREEMPT_RT_PRESENCE=1 is
+ set. Please do not report issues if run into e.g. kernel panics while
+ ignoring this."
+
+ linux-mod-r1_pkg_setup
+}
+
+src_prepare() {
+ # make patches usable across versions
+ rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die
+ rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die
+ rm nvidia-settings && mv nvidia-settings{-${PV},} || die
+ rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die
+ mv NVIDIA-kernel-module-source-${PV} kernel-module-source || die
+
+ default
+
+ # prevent detection of incomplete kernel DRM support (bug #603818)
+ sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \
+ -i kernel{,-module-source/kernel-open}/conftest.sh || die
+
+ # adjust service files
+ sed 's/__USER__/nvpd/' \
+ nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \
+ > "${T}"/nvidia-persistenced.service || die
+ sed -i "s|/usr|${EPREFIX}/opt|" systemd/system/nvidia-powerd.service || die
+
+ # use alternative vulkan icd option if USE=-X (bug #909181)
+ use X || sed -i 's/"libGLX/"libEGL/' nvidia_{layers,icd}.json || die
+
+ # enable nvidia-drm.modeset=1 by default with USE=wayland
+ cp "${FILESDIR}"/nvidia-570.conf "${T}"/nvidia.conf || die
+ use !wayland || sed -i '/^#.*modeset=1$/s/^#//' "${T}"/nvidia.conf || die
+
+ # makefile attempts to install wayland library even if not built
+ use wayland || sed -i 's/ WAYLAND_LIB_install$//' \
+ nvidia-settings/src/Makefile || die
+}
+
+src_compile() {
+ tc-export AR CC CXX LD OBJCOPY OBJDUMP PKG_CONFIG
+
+ local xnvflags=-fPIC #840389
+ # lto static libraries tend to cause problems without fat objects
+ tc-is-lto && xnvflags+=" $(test-flags-CC -ffat-lto-objects)"
+
+ NV_ARGS=(
+ PREFIX="${EPREFIX}"/usr
+ HOST_CC="$(tc-getBUILD_CC)"
+ HOST_LD="$(tc-getBUILD_LD)"
+ BUILD_GTK2LIB=
+ NV_USE_BUNDLED_LIBJANSSON=0
+ NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out
+ WAYLAND_AVAILABLE=$(usex wayland 1 0)
+ XNVCTRL_CFLAGS="${xnvflags}"
+ )
+
+ if use modules; then
+ local o_cflags=${CFLAGS} o_cxxflags=${CXXFLAGS} o_ldflags=${LDFLAGS}
+
+ # conftest.sh is broken with c23 due to func() changing meaning,
+ # and then fails later due to ealier misdetections
+ # TODO: try without now and then + drop modargs' CC= (bug #944092)
+ KERNEL_CC+=" -std=gnu17"
+
+ local modlistargs=video:kernel
+ if use kernel-open; then
+ modlistargs+=-module-source:kernel-module-source/kernel-open
+
+ # environment flags are normally unused for modules, but nvidia
+ # uses it for building the "blob" and it is a bit fragile
+ filter-flags -fno-plt #912949
+ filter-lto
+ CC=${KERNEL_CC} CXX=${KERNEL_CXX} strip-unsupported-flags
+
+ LDFLAGS=$(raw-ldflags)
+ fi
+
+ local modlist=( nvidia{,-drm,-modeset,-peermem,-uvm}=${modlistargs} )
+ local modargs=(
+ CC="${KERNEL_CC}" # needed for above gnu17 workaround
+ IGNORE_CC_MISMATCH=yes NV_VERBOSE=1
+ SYSOUT="${KV_OUT_DIR}" SYSSRC="${KV_DIR}"
+
+ # kernel takes "x86" and "x86_64" as meaning the same, but nvidia
+ # makes the distinction (since 550.135) and is not happy with "x86"
+ # TODO?: it should be ok/better for tc-arch-kernel to do x86_64
+ $(usev amd64 ARCH=x86_64)
+ )
+
+ # temporary workaround for bug #914468
+ CPP="${KERNEL_CC} -E" tc-is-clang && addpredict "${KV_OUT_DIR}"
+
+ linux-mod-r1_src_compile
+ CFLAGS=${o_cflags} CXXFLAGS=${o_cxxflags} LDFLAGS=${o_ldflags}
+ fi
+
+ emake "${NV_ARGS[@]}" -C nvidia-modprobe
+ use persistenced && emake "${NV_ARGS[@]}" -C nvidia-persistenced
+ use X && emake "${NV_ARGS[@]}" -C nvidia-xconfig
+
+ if use tools; then
+ # avoid noisy *very* noisy logs with deprecation warnings
+ CFLAGS="-Wno-deprecated-declarations ${CFLAGS}" \
+ emake "${NV_ARGS[@]}" -C nvidia-settings
+ elif use static-libs; then
+ # pretend GTK+3 is available, not actually used (bug #880879)
+ emake "${NV_ARGS[@]}" BUILD_GTK3LIB=1 \
+ -C nvidia-settings/src out/libXNVCtrl.a
+ fi
+}
+
+src_install() {
+ local libdir=$(get_libdir) libdir32=$(ABI=x86 get_libdir)
+
+ NV_ARGS+=( DESTDIR="${D}" LIBDIR="${ED}"/usr/${libdir} )
+
+ local -A paths=(
+ [APPLICATION_PROFILE]=/usr/share/nvidia
+ [CUDA_ICD]=/etc/OpenCL/vendors
+ [EGL_EXTERNAL_PLATFORM_JSON]=/usr/share/egl/egl_external_platform.d
+ [FIRMWARE]=/lib/firmware/nvidia/${PV}
+ [GBM_BACKEND_LIB_SYMLINK]=/usr/${libdir}/gbm
+ [GLVND_EGL_ICD_JSON]=/usr/share/glvnd/egl_vendor.d
+ [OPENGL_DATA]=/usr/share/nvidia
+ [VULKANSC_ICD_JSON]=/usr/share/vulkansc
+ [VULKAN_ICD_JSON]=/usr/share/vulkan
+ [WINE_LIB]=/usr/${libdir}/nvidia/wine
+ [XORG_OUTPUTCLASS_CONFIG]=/usr/share/X11/xorg.conf.d
+
+ [GLX_MODULE_SHARED_LIB]=/usr/${libdir}/xorg/modules/extensions
+ [GLX_MODULE_SYMLINK]=/usr/${libdir}/xorg/modules
+ [XMODULE_SHARED_LIB]=/usr/${libdir}/xorg/modules
+ )
+
+ local skip_files=(
+ $(usev !X "libGLX_nvidia libglxserver_nvidia")
+ libGLX_indirect # non-glvnd unused fallback
+ libnvidia-{gtk,wayland-client} nvidia-{settings,xconfig} # from source
+ libnvidia-egl-gbm 15_nvidia_gbm # gui-libs/egl-gbm
+ libnvidia-egl-wayland 10_nvidia_wayland # gui-libs/egl-wayland
+ libnvidia-egl-xcb 20_nvidia_xcb.json # gui-libs/egl-x11
+ libnvidia-egl-xlib 20_nvidia_xlib.json # gui-libs/egl-x11
+ libnvidia-pkcs11.so # using the openssl3 version instead
+ )
+ local skip_modules=(
+ $(usev !X "nvfbc vdpau xdriver")
+ $(usev !modules gsp)
+ $(usev !powerd powerd)
+ installer nvpd # handled separately / built from source
+ )
+ local skip_types=(
+ GLVND_LIB GLVND_SYMLINK EGL_CLIENT.\* GLX_CLIENT.\* # media-libs/libglvnd
+ OPENCL_WRAPPER.\* # virtual/opencl
+ DOCUMENTATION DOT_DESKTOP .\*_SRC DKMS_CONF SYSTEMD_UNIT # handled separately / unused
+ )
+
+ local DOCS=(
+ README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json
+ nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt
+ )
+ local HTML_DOCS=( html/. )
+ einstalldocs
+
+ local DISABLE_AUTOFORMATTING=yes
+ local DOC_CONTENTS="\
+Trusted users should be in the 'video' group to use NVIDIA devices.
+You can add yourself by using: gpasswd -a my-user video\
+$(usev modules "
+
+Like all out-of-tree kernel modules, it is necessary to rebuild
+${PN} after upgrading or rebuilding the Linux kernel
+by for example running \`emerge @module-rebuild\`. Alternatively,
+if using a distribution kernel (sys-kernel/gentoo-kernel{,-bin}),
+this can be automated by setting USE=dist-kernel globally.
+
+Loaded kernel modules also must not mismatch with the installed
+${PN} version (excluding -r revision), meaning should
+ensure \`eselect kernel list\` points to the kernel that will be
+booted before building and preferably reboot after upgrading
+${PN} (the ebuild will emit a warning if mismatching).
+
+See '${EPREFIX}/etc/modprobe.d/nvidia.conf' for modules options.")\
+$(use amd64 && usev !abi_x86_32 "
+
+Note that without USE=abi_x86_32 on ${PN}, 32bit applications
+(typically using wine / steam) will not be able to use GPU acceleration.")
+
+For additional information or for troubleshooting issues, please see
+https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers and NVIDIA's own
+documentation that is installed alongside this README."
+ readme.gentoo_create_doc
+
+ if use modules; then
+ linux-mod-r1_src_install
+
+ insinto /etc/modprobe.d
+ doins "${T}"/nvidia.conf
+
+ # used for gpu verification with binpkgs (not kept, see pkg_preinst)
+ insinto /usr/share/nvidia
+ doins supported-gpus/supported-gpus.json
+ fi
+
+ emake "${NV_ARGS[@]}" -C nvidia-modprobe install
+ fowners :video /usr/bin/nvidia-modprobe #505092
+ fperms 4710 /usr/bin/nvidia-modprobe
+
+ if use persistenced; then
+ emake "${NV_ARGS[@]}" -C nvidia-persistenced install
+ newconfd "${FILESDIR}"/nvidia-persistenced.confd nvidia-persistenced
+ newinitd "${FILESDIR}"/nvidia-persistenced.initd nvidia-persistenced
+ systemd_dounit "${T}"/nvidia-persistenced.service
+ fi
+
+ if use tools; then
+ emake "${NV_ARGS[@]}" -C nvidia-settings install
+
+ doicon nvidia-settings/doc/nvidia-settings.png
+ domenu nvidia-settings/doc/nvidia-settings.desktop
+
+ exeinto /etc/X11/xinit/xinitrc.d
+ newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings
+ fi
+
+ if use static-libs; then
+ dolib.a nvidia-settings/src/out/libXNVCtrl.a
+
+ insinto /usr/include/NVCtrl
+ doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h
+ fi
+
+ use X && emake "${NV_ARGS[@]}" -C nvidia-xconfig install
+
+ # mimic nvidia-installer by reading .manifest to install files
+ # 0:file 1:perms 2:type 3+:subtype/arguments -:module
+ local m into
+ while IFS=' ' read -ra m; do
+ ! [[ ${#m[@]} -ge 2 && ${m[-1]} =~ MODULE: ]] ||
+ [[ " ${m[0]##*/}" =~ ^(\ ${skip_files[*]/%/.*|\\} )$ ]] ||
+ [[ " ${m[2]}" =~ ^(\ ${skip_types[*]/%/|\\} )$ ]] ||
+ has ${m[-1]#MODULE:} "${skip_modules[@]}" && continue
+
+ case ${m[2]} in
+ MANPAGE)
+ gzip -dc ${m[0]} | newman - ${m[0]%.gz}
+ pipestatus || die
+ continue
+ ;;
+ GBM_BACKEND_LIB_SYMLINK) m[4]=../${m[4]};; # missing ../
+ VDPAU_SYMLINK) m[4]=vdpau/; m[5]=${m[5]#vdpau/};; # .so to vdpau/
+ esac
+
+ if [[ -v 'paths[${m[2]}]' ]]; then
+ into=${paths[${m[2]}]}
+ elif [[ ${m[2]} == EXPLICIT_PATH ]]; then
+ into=${m[3]}
+ elif [[ ${m[2]} == *_BINARY ]]; then
+ into=/opt/bin
+ elif [[ ${m[3]} == COMPAT32 ]]; then
+ use abi_x86_32 || continue
+ into=/usr/${libdir32}
+ elif [[ ${m[2]} == *_@(LIB|SYMLINK) ]]; then
+ into=/usr/${libdir}
+ else
+ die "No known installation path for ${m[0]}"
+ fi
+ [[ ${m[3]: -2} == ?/ ]] && into+=/${m[3]%/}
+ [[ ${m[4]: -2} == ?/ ]] && into+=/${m[4]%/}
+
+ if [[ ${m[2]} =~ _SYMLINK$ ]]; then
+ [[ ${m[4]: -1} == / ]] && m[4]=${m[5]}
+ dosym ${m[4]} ${into}/${m[0]}
+ continue
+ fi
+ # avoid portage warning due to missing soname links in manifest
+ [[ ${m[0]} =~ ^libnvidia-ngx.so ]] &&
+ dosym ${m[0]} ${into}/${m[0]%.so*}.so.1
+
+ printf -v m[1] %o $((m[1] | 0200)) # 444->644
+ insopts -m${m[1]}
+ insinto ${into}
+ doins ${m[0]}
+ done < .manifest || die
+ insopts -m0644 # reset
+
+ # MODULE:installer non-skipped extras
+ : "$(systemd_get_sleepdir)"
+ exeinto "${_#"${EPREFIX}"}"
+ doexe systemd/system-sleep/nvidia
+ dobin systemd/nvidia-sleep.sh
+ systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend,suspend-then-hibernate}.service
+
+ dobin nvidia-bug-report.sh
+
+ insinto /usr/share/nvidia/files.d
+ doins sandboxutils-filelist.json
+
+ # MODULE:powerd extras
+ if use powerd; then
+ newinitd "${FILESDIR}"/nvidia-powerd.initd nvidia-powerd #923117
+ systemd_dounit systemd/system/nvidia-powerd.service
+
+ insinto /usr/share/dbus-1/system.d
+ doins nvidia-dbus.conf
+ fi
+
+ # enabling is needed for sleep to work properly and little reason not to do
+ # it unconditionally for a better user experience
+ : "$(systemd_get_systemunitdir)"
+ local unitdir=${_#"${EPREFIX}"}
+ # not using relative symlinks to match systemd's own links
+ dosym {"${unitdir}",/etc/systemd/system/systemd-hibernate.service.wants}/nvidia-hibernate.service
+ dosym {"${unitdir}",/etc/systemd/system/systemd-hibernate.service.wants}/nvidia-resume.service
+ dosym {"${unitdir}",/etc/systemd/system/systemd-suspend.service.wants}/nvidia-suspend.service
+ dosym {"${unitdir}",/etc/systemd/system/systemd-suspend.service.wants}/nvidia-resume.service
+ dosym {"${unitdir}",/etc/systemd/system/systemd-suspend-then-hibernate.service.wants}/nvidia-suspend-then-hibernate.service
+ dosym {"${unitdir}",/etc/systemd/system/systemd-suspend-then-hibernate.service.wants}/nvidia-resume.service
+ # also add a custom elogind hook to do the equivalent of the above
+ exeinto /usr/lib/elogind/system-sleep
+ newexe "${FILESDIR}"/system-sleep.elogind nvidia
+ # <elogind-255.5 used a different path (bug #939216), keep a compat symlink
+ # TODO: cleanup after 255.5 been stable for a few months
+ dosym {/usr/lib,/"${libdir}"}/elogind/system-sleep/nvidia
+
+ # needed with >=systemd-256 or may fail to resume with some setups
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072722
+ insinto "${unitdir}"/systemd-homed.service.d
+ newins - 10-nvidia.conf <<-EOF
+ [Service]
+ Environment=SYSTEMD_HOME_LOCK_FREEZE_SESSION=false
+ EOF
+ insinto "${unitdir}"/systemd-suspend.service.d
+ newins - 10-nvidia.conf <<-EOF
+ [Service]
+ Environment=SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false
+ EOF
+ dosym -r "${unitdir}"/systemd-{suspend,hibernate}.service.d/10-nvidia.conf
+ dosym -r "${unitdir}"/systemd-{suspend,hybrid-sleep}.service.d/10-nvidia.conf
+ dosym -r "${unitdir}"/systemd-{suspend,suspend-then-hibernate}.service.d/10-nvidia.conf
+
+ # symlink non-versioned so nvidia-settings can use it even if misdetected
+ dosym nvidia-application-profiles-${PV}-key-documentation \
+ ${paths[APPLICATION_PROFILE]}/nvidia-application-profiles-key-documentation
+
+ # don't attempt to strip firmware files (silences errors)
+ dostrip -x ${paths[FIRMWARE]}
+
+ # sandbox issues with /dev/nvidiactl and others (bug #904292,#921578)
+ # are widespread and sometime affect revdeps of packages built with
+ # USE=opencl/cuda making it hard to manage in ebuilds (minimal set,
+ # ebuilds should handle manually if need others or addwrite)
+ insinto /etc/sandbox.d
+ newins - 20nvidia <<<'SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-caps:/dev/char"'
+
+ # dracut does not use /etc/modprobe.d if hostonly=no, but want to make sure
+ # our settings are used for bug 932781#c8 and nouveau blacklist if either
+ # modules are included (however, just best-effort without initramfs regen)
+ if use modules; then
+ echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \
+ "${ED}"/usr/lib/dracut/dracut.conf.d/10-${PN}.conf || die
+ fi
+}
+
+pkg_preinst() {
+ has_version "${CATEGORY}/${PN}[kernel-open]" && NV_HAD_KERNEL_OPEN=
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=
+
+ use modules || return
+
+ # set video group id based on live system (bug #491414)
+ local g=$(egetent group video | cut -d: -f3)
+ [[ ${g} =~ ^[0-9]+$ ]] || die "Failed to determine video group id (got '${g}')"
+ sed -i "s/@VIDEOGID@/${g}/" "${ED}"/etc/modprobe.d/nvidia.conf || die
+
+ # try to find driver mismatches using temporary supported-gpus.json
+ # TODO?: automatically check "kernelopen" bit for USE=kernel-open compat
+ for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do
+ g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \
+ "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null)
+ if [[ ${g} ]]; then
+ g=$((${g##*\"}+1))
+ if ver_test -ge ${g}; then
+ NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}"
+ break
+ fi
+ fi
+ done
+ rm "${ED}"/usr/share/nvidia/supported-gpus.json || die
+}
+
+pkg_postinst() {
+ linux-mod-r1_pkg_postinst
+
+ readme.gentoo_print_elog
+
+ if [[ -r /proc/driver/nvidia/version &&
+ $(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
+ ewarn "Currently loaded NVIDIA modules do not match the newly installed"
+ ewarn "libraries and may prevent launching GPU-accelerated applications."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot. If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\` output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that (if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at least, not old ones)."
+ fi
+ fi
+
+ if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
+ ewarn "Detected that the current kernel command line is using 'slub_debug=',"
+ ewarn "this may lead to system instability/freezes with this version of"
+ ewarn "${PN}. Bug: https://bugs.gentoo.org/796329"
+ fi
+
+ if [[ -v NV_LEGACY_MASK ]]; then
+ ewarn
+ ewarn "***WARNING***"
+ ewarn
+ ewarn "You are installing a version of ${PN} known not to work"
+ ewarn "with a GPU of the current system. If unwanted, add the mask:"
+ if [[ -d ${EROOT}/etc/portage/package.mask ]]; then
+ ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}"
+ else
+ ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask"
+ fi
+ ewarn "...then downgrade to a legacy[1] branch if possible (not all old versions"
+ ewarn "are available or fully functional, may need to consider nouveau[2])."
+ ewarn "[1] https://www.nvidia.com/object/IO_32667.html"
+ ewarn "[2] https://wiki.gentoo.org/wiki/Nouveau"
+ fi
+
+ if use kernel-open && [[ ! -v NV_HAD_KERNEL_OPEN ]]; then
+ ewarn
+ ewarn "Open source variant of ${PN} was selected, note that it requires"
+ ewarn "Turing/Ampere+ GPUs (aka GTX 1650+). Try disabling if run into issues."
+ ewarn "Also see: ${EROOT}/usr/share/doc/${PF}/html/kernel_open.html"
+ fi
+
+ if use wayland && use modules && [[ ! -v NV_HAD_WAYLAND ]]; then
+ elog
+ elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1"
+ elog "in '${EROOT}/etc/modprobe.d/nvidia.conf'. This feature is considered"
+ elog "experimental but is required for wayland."
+ elog
+ elog "If you experience issues, either disable wayland or edit nvidia.conf."
+ elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
+ fi
+
+ if use !kernel-open && [[ ${REPLACING_VERSIONS##* } ]] &&
+ ver_test ${REPLACING_VERSIONS##* } -lt 555
+ then
+ elog
+ elog "If using a Turing/Ampere+ GPU (aka GTX 1650+), note that >=nvidia-drivers-555"
+ elog "enables the use of the GSP firmware by default. *If* experience regressions,"
+ elog "please see '${EROOT}/etc/modprobe.d/nvidia.conf' to optionally disable."
+ fi
+}