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

Nvidia340 fails to compile on a new 5.7.9 lts kernel #23602

Closed
AngryPhantom opened this issue Jul 16, 2020 · 59 comments
Closed

Nvidia340 fails to compile on a new 5.7.9 lts kernel #23602

AngryPhantom opened this issue Jul 16, 2020 · 59 comments

Comments

@AngryPhantom
Copy link

System

  • xuname:
    Void 5.4.51_1 x86_64 AuthenticAMD uptodate rrFFFFF

  • package:
    nvidia340-340.108_3

Actual behavior

Just ran 'xbps-install -Su' today and it pulled the new 5.7.9 kernel. Is it LTS already?
Anyway, nvidia340 module fails to compile. Here is the make.log.

(there are other modules like 8188eu wifi that also failed to compile, but that's another story and should be fixed by their authors I guess)

Steps to reproduce the behavior

Update the system -> get the new 5.7.9 kernel
DKMS will fail for the nvidia340 driver.

@ericonr
Copy link
Member

ericonr commented Jul 16, 2020

@ericonr
Copy link
Member

ericonr commented Jul 16, 2020

I guess we need to add some patches from https://forums.developer.nvidia.com/t/patches-for-340-108-and-5-6-rc-need-help-with-driver-init/111760/12

@AngryPhantom
Copy link
Author

https://aur.archlinux.org/packages/nvidia-340xx-dkms/

Sorry what should I do with this? I'm a bit new to the Void world.

Probably I'd just better stay with the 5.4 kernel for some time (well, until all the dust settles down).

@ericonr
Copy link
Member

ericonr commented Jul 16, 2020

Sorry, that was the wrong link. The important part are those patches.

@AngryPhantom
Copy link
Author

@ericonr Ok, will wait for the fixes to come into the repo then :)

@AngryPhantom
Copy link
Author

@ericonr Sorry, a little offtopic: I decided to put linux and linux-headers via ignorepkg in /etc/xbps.d/ and if I do:

sudo xbps-remove -Oo

I get this:

dracut remove 050_2
kpartx remove 0.8.4_1
linux-firmware-intel remove 20200519_1
linux-firmware-nvidia remove 20200519_1
cpio remove 2.13_1

I know that it's natural and logical because of new dependencies. Should I just not use this command in the nearest future? What is the best way to clean the cache and avoid this?

@q66
Copy link
Contributor

q66 commented Jul 16, 2020

we should just drop this series, it was deprecated by nvidia last year, it won't be getting any more updates, it also doesn't support glvnd which is a can of worms of its own

additionally, every card supported by this driver and not supported by a newer series is fully supported by nouveau

@ericonr
Copy link
Member

ericonr commented Jul 16, 2020

@AngryPhantom

Sorry, a little offtopic: I decided to put linux and linux-headers via ignorepkg in /etc/xbps.d/ and if I do:

You probably want to xdowngrade to the previous linux and linux-headers metapackages, and then xbps-pkgdb -m hold them, if you don't want the update.

@AngryPhantom
Copy link
Author

@ericonr Oh, thanks!

@AngryPhantom
Copy link
Author

@q66

nouveau

Yeah, but there will be no OpenGL gaming and 3D :( Or it would be just awful.

@q66
Copy link
Contributor

q66 commented Jul 16, 2020

? opengl is fully supported by nouveau for all cards up to 700 series

@AngryPhantom
Copy link
Author

@q66 Is the performance OK? Have you tried playing something? Just asking because I've never tested nouveau.

@q66
Copy link
Contributor

q66 commented Jul 16, 2020

should be fine all the way up to kepler (i know cards like GTX 680 perform at least up to 80% of what they do on proprietary drivers, and that was a few years ago), fermi and kepler don't have automatic reclocking (400-700 series) so you have to reclock manually, but 400 series and newer is supported by nvidia390 anyway

@AngryPhantom
Copy link
Author

@q66 Great news then. Thanks! Will try nouveau.

@q66
Copy link
Contributor

q66 commented Jul 16, 2020

what card is this anyway?

@AngryPhantom
Copy link
Author

@q66 GeForce 9500 GT

@AngryPhantom
Copy link
Author

I also have GeForce 7600 GT :)

@AngryPhantom
Copy link
Author

Sorry, deleted a comment. I've successfully uninstalled nvidia340. Gonna install kernel 5.7 and reboot...

@AngryPhantom
Copy link
Author

@q66 Well, it works to some extent, even played some games. The only thing I get artifacts in windows in XFCE sometimes, the title bars are garbled or with glitches. I don't know if there any configs/settings for nouveau.

@q66
Copy link
Contributor

q66 commented Jul 18, 2020

I suggest you disable xfce's builtin compositor and use something like picom

@AngryPhantom
Copy link
Author

AngryPhantom commented Jul 18, 2020 via email

@fosslinux
Copy link
Contributor

I have a laptop with a very old NVIDIA card. The artifacts in windows seem to be common, and I am not sure exactly why.

@AngryPhantom
Copy link
Author

@fosslinux Are you using nouveau or a proprietary driver?

@q66
Copy link
Contributor

q66 commented Jul 23, 2020

i have a powermac g5 with geforce 6600 in it and that has no desktop artifacts (though in games it's quite broken, but i suspect that's specific to big endian architecture and it's probably fine on x86), though geforce 9000 series is a few years newer

@fosslinux
Copy link
Contributor

Nouveau

@fosslinux
Copy link
Contributor

Good news for this driver, majaro is actively developing patches for 5.7+, I'll PR them shortly, confirmed they work with my GTS 250 It is very much on its last legs though, this is probably it's last burst of life.

@seannaswell
Copy link

Good news for this driver, majaro is actively developing patches for 5.7+, I'll PR them shortly, confirmed they work with my GTS 250 It is very much on its last legs though, this is probably it's last burst of life.

Would be tremendously helpful, have an old MacBook that only works with nvidia340, not nouveau. At this point the FreeBSD Nvidia driver still works, but would be a great Void test machine...

@AngryPhantom
Copy link
Author

@seannaswell Could you please share how do you install the FreeBSD driver?

@fosslinux
Copy link
Contributor

No, it isn't, but if you are able to, clone the void-packages repository on my branch, ./xbps-src binary-bootstrap && ./xbps-src pkg nvidia340 and then xbps-install -R hostdir/binpkgs nvidia340 -u to update. You ahve to build it yourself until it is merged and more testers would be appreciated

@AngryPhantom
Copy link
Author

AngryPhantom commented Nov 10, 2020

Oh, that's nice. Actually I switched to a more stable 5.4.x kernel branch. I've also found out that Debian still supports nvidia340 driver and will support it in the future releases with 5.8.x, 5.9.x and higher kernels. Probably you can take the patches from them? Here is the driver (you need to unpack it and take the nvidia-legacy-340xx-kernel.tar.xz archive, there will be a 'patches' directory inside). I think you should take the latest version (for Debian Sid).
I guess I'm not the one with old hardware here, so it would be really nice if you continue supporting legacy drivers.
Well, if it's not a problem for you, of course...

Thank you!

@fosslinux
Copy link
Contributor

It has been merged into master, try an update, 5.{7,8,9}.x should work now

@AngryPhantom
Copy link
Author

@fosslinux Thank you very much! I really appreciate your efforts. Keep up the good work!

@Chocimier
Copy link
Member

Is it fixed?

@fosslinux
Copy link
Contributor

Yes

@Yay-mod
Copy link

Yay-mod commented Jan 17, 2021

i didn,t find that package (nvidia340) in the repo

where to download it ?

@fosslinux
Copy link
Contributor

nvidia340 has now been dropeed from the repos.

@Yay-mod
Copy link

Yay-mod commented Jan 18, 2021

this is the repo your taking about (if i,m not wrong)
https://github.com/void-linux/void-packages

and so you tell me that there,s in the srcpkgs folder a package called nvidia340
i downloaded all of this and didn,t find anything
runned the command above and got this

[alakondray@alakondray-s-laptop]$ cd void-packages
[alakondray@alakondray-s-laptop void-packages]$ ./xbps-src binary-bootstrap && xbps-src pkg nvidia340
fatal: cannot change to '/home/alakondray/void-packages/srcpkgs/nvidia340': No such file or directory
stat: cannot statx '/home/alakondray/void-packages/srcpkgs/nvidia340/template No such file or directory
ERROR: xbps-src: unexistent file: /home/alakondray/void-packages/srcpkgs/ nvidia340/template
[akakondray@alakondray-s-laptop void-packages]$

and i know that means there,s no nvidia340 package
i saw that there,s nvidia and nvidia390 and same version of DKMS but no nvidia340
(i,m not a basher i like linux and i,m stuck with this problem)(plz help)

@Yay-mod
Copy link

Yay-mod commented Jan 18, 2021

i now realised that you said (Dropped)

do you have a copy so i can put it in my copy of the repo

@Yay-mod
Copy link

Yay-mod commented Jan 18, 2021

pls don,t tell me i,m too late

@ericonr
Copy link
Member

ericonr commented Jan 18, 2021

@Yay-mod just revert the commit where it was removed: git revert 9c820a9e247bfafaac9e1221eb8e7974250bb331.

But be warned that we no longer guarantee that everything will work correctly with the driver.

You should be able to clone this branch https://github.com/ericonr/void-packages/tree/nvidia340 and build and install nvidia340 and removed-packages from it. Be warned that this makes your system unsupported and you are unlikely to receive help for any issues you face because of it. I urge you to strongly consider switching to nouveau.

@AngryPhantom
Copy link
Author

@Yay-mod
What are you talking about? Just enable non-free repo. And yes, as @ericonr has already said, this will make your system unsupported. Switch to nouveau.

@fosslinux
Copy link
Contributor

@AngryPhantom nvidia340 had been dropped from the repo... there is no nvidia340 package any longer.

@AngryPhantom
Copy link
Author

@fosslinux I saw a post on Void Linux subreddit where aedinius said that it would be dropped soon. I'm aware of the issue. Anyway, you saw my screenshot, the package is there at the moment. Also here.

@Yay-mod
Copy link

Yay-mod commented Jan 18, 2021

  1. what is the non-free repo (it is just like the repo forks or what / how to install it
    2)the packages is also removed frome the binary
    https://github.com/void-linux/void-packages/tree/master/srcpkgs/nvidia340
    https://github.com/void-linux/void-packages/tree/master/srcpkgs/nvidia340-dkms
  2. i found on aur a version of it with updating / bleeeding edge patches (i was a arch user before until they couldn,t help me at this)
    https://aur.archlinux.org/pkgbase/nvidia-340xx/
  3. nouveau driver is giving me performance and compibiltiy issues it is hard to play games and upscalling windows always slows (i want the driver to revive this laptop and can,t change the gpu. other than this i,ll have to move back to windows which is so bloated and so heavy on the laptop) + crashes. so i have 0 choices

@Yay-mod
Copy link

Yay-mod commented Jan 18, 2021

about 2
can,t the repo use the patches and readd the driver ?
just like you did with the debian driver
for some reason it didn,t want to install on arch (or at least endeavour what i was using)
but you can take the patches and hopefully i,ll work?

@Yay-mod
Copy link

Yay-mod commented Jan 18, 2021

and about the nvidia340 repo
it will be supported untill what

wait have the repo already readded it ?

@AngryPhantom
Copy link
Author

AngryPhantom commented Jan 18, 2021 via email

@fosslinux
Copy link
Contributor

fosslinux commented Jan 19, 2021

It has been dropped from the source packages tree:

https://github.com/void-linux/void-packages/tree/master/srcpkgs/nvidia340 <-- not found

It is now a no-op package, see https://github.com/void-linux/void-packages/blob/master/srcpkgs/removed-packages/template#L87, installing it will not do anything.

It no longer exists and is not supported. Whenever you next update your system, it will be removed.

@Yay-mod
Copy link

Yay-mod commented Jan 19, 2021

well i installed it and it no longer works
xorg didn,t start/work
i had to uninstall it
but there,s something happened while installing
the terminal (cli) told me it couldn,t install the nvidia340-dkms module
it told me to do to /etc/x11/xorg to see the errorlog
i didn,t find anything other than the build/source of nvidia340
i,m not sure but i think it have to do with it

@fosslinux
Copy link
Contributor

@Yay-mod nvidia340 is no longer supported/packaged by Void. Either find some other way of installing it or just use nouveau. We won't be providing help here.

@Chocimier
Copy link
Member

It's not that package is no-op. If one grabs it and forcefully install, it will have all what it had. But it will be then removed on (some of) next system update.

@Yay-mod
Copy link

Yay-mod commented Jan 20, 2021

then where can i find help
the nouveau driver isn,t that good compared to the nvidia one (as i said above) i understand why (and tbh they,re making a good job from scratch) but that isn,t fair.
i don,t want to go back to windows it,s bad in every way and i can,t unless that modified version of it fixes the download link (https://nexusliteos.blogspot.com/2020/11/xtreme-liteos-10-v3-ltsb-1607-build-x64.html)
i just wanted to make this laptop usable and playable as it is one of linux uses and advantages

  • (plus) i want to use linux and learning in progress it (because it is so customizable and good for tinkering) as my spare computer that i can do whatever i want on (i wouldn,t be a good idea to install it on a pc full of work and files for a beginner).
    there have to be a solution (right ?) i don,t want to give up on that laptop yet

@Yay-mod
Copy link

Yay-mod commented Jan 20, 2021

and if it no longer supported on void should i install debian and install the driver or install arch and hope for the best (i choosed void because it,s so minimal)

or just get the package with patches from anywhere and build it and also hope for the best

@fosslinux
Copy link
Contributor

If you have a very compelling need for nvidia340, you have two options:

  • manually build and install nvidia340 on every kernel update (I would suggest using LTS versions to avoid jumping major versions too often) using patches from other places, using other distros still supporting nvidia340 (probably not for too much longer)
  • use another distro supporting nvidia340

FWIW, my experience with nvidia340 was less than stellar.

@AngryPhantom
Copy link
Author

@Yay-mod

should i install debian

Debian still supports nvidia340 and will support it in the next release. And even after the next one, as you can see here. So, yes, if you really need nvidia driver you can switch to it. I'm running Debian on my other machines and servers, it's awesome.

i choosed void because it,s so minimal

Just install Debian from the netinst.iso and use --no-install-recommends in the APT's settings. It will be as minimal as you want it to.

@Yay-mod
Copy link

Yay-mod commented Jan 22, 2021

(sorry for replying late i was kinda busy)(this comment is long and might be unnecessary at all !)
well i appreciate all the help i,m getting from this github issue and the patience from the helpers including the maintainers of the void source repo (fosslinux , Angeryphantom and ericonr).
i fear that the main problem (with me) is that i,m not able to install that driver correctly due to the problem of me being a linux beginner , so i always miss a important part of the installation becaues there wasn,t a guide video to follow. i later while i was researching i found out that i have to configure #nvidia-xconfig in order to make that working (as for no reason the nvidia driver dosen,t use the xorg config file).
while installing other nvidia supported distro is still a good idea but if i don,t know what i,m doing i,ll ending up nowhere otherwise in any distro (or in a timehole like this).
i,m not bashing about linux i understand how unsupportive nvidia is to the linux community and how harsh it is to (completely) setup that proprietary driver and dealing with it specially in that case where nvidia no longer want linux user to use it anymore (i mean literally resupporting that driver) and that,s why it,s rare to find a guide fr someting so harsh like this .

@Yay-mod
Copy link

Yay-mod commented Jan 22, 2021

i just want to know how to setup that driver and dealing with the #nvidia-config and if there,s something else have to be done.
i know i have pulled this problem this far with you but i don,t want to end up in another timehole and that,s will solve some problems with me experiencing linux.

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

7 participants