#[Solved] nvidia doesn't work after Linux 6 upgrade

331 messages · Page 1 of 1 (latest)

tawny spoke
#

I can no longer run things on my dGPU, I have no idea how or what's gone wrong

edgy yacht
#

Whats your nvidia driver version?

#

Some drivers didn't get kernel 6.0 support

#

Try installing linux-lts and linux-lts-headers and boot into lts kernel (might have to change GRUB_DEFAULT)

#

I am on nvidia nvs 540m that uses 390xx and when I checked nvidia-390xx-utils aur page I realised it hadn't gotten full Linux 6.0 support so I switched to lts and added lts to IgnorePKG for the time being

#

@tawny spoke

#

I use optimus-manager but the issue has been with nvidia drivers and not the manager

tawny spoke
#

I'm out right now so I'll do that when I get back home

edgy yacht
#

Any chance you considered using optimus-manager instead? For me bumblebee never worked at all

tawny spoke
edgy yacht
#

optimus-manager shouldn't have any issues, do you remeber your driver version?

#

Also you shouldn't be using bbswitch with optimus-manager, there is optimus-manager --switch for that

tawny spoke
#

I don't rember

#

Doesn't the GitHub for Optimus manager say "based on bbswitch"

edgy yacht
#

Yes but you can't just use bbswitch, optimus-manager uses it internally and both are different ways of handling

tawny spoke
#

Ah

edgy yacht
#

Just di optimus-manager --help

#

It also has a config file which you can edit to choose which cpu it should use on startup

tawny spoke
#

Too much info for a sick fox
I'll come back to this when I'm at home

edgy yacht
#

Do you prefer to switch drivers after logging in or just selecting one when turning on?(i.e. selecting dedicated,hybrid or integrated at startup(boot) or selecting after logging in)

edgy yacht
#

@tawny spoke you fixed it?

tawny spoke
#

I did not
Been sick

#

Gonna try this evening

tawny spoke
#

Alright, got some times now

#

@edgy yachtI'm a little lost on what to do

edgy yacht
#

Try doing full system upgrade

#

Even aur packages

#

@tawny spoke

tawny spoke
#

I forgor how xd

#

But I did one not that long ago

#

I do have two packages blacklisted tho

#

I need to blacklist another but I forgot how to lmfao, been a while since I did it
Also I'm still fresh to Linux

#

I am in your care

#

I should really clear out my package list, I got like 1100+, and a lot are garbage ones I never use

#

Is there a way to check "Has not be used in x amount of days" ?

#

Uh....I cannot type anything now

#

I have restarted my PC, shutdown and turn on

#

Uh.....

#

Foxy has broken her entire OS and needs help

plain estuary
#

Yeah other support ticket resolved this issue.

tawny spoke
#

Ok that's cool, but I have a lot of issues rn

#

And half of them I don't even know why or what they are

#

So, saying ¨It's been solved" isn't helpful at all for me

plain estuary
#

I am trying to send a link instead of copy and pasting a solution

tawny spoke
#

Huh, well now THAT works

#

Now, how can I fix Optimus-Manager

plain estuary
#

me no nvidia

tawny spoke
#

Welp

edgy yacht
#

Also do ping me everytime you send a message after a while. I do not open discord unless mentioned.

tawny spoke
#

Ah ok, I just unmuted this channel specifically lol

#

@edgy yachtPing

edgy yacht
#

Did you do aur update?

#

Nvidia proprietary drivers are on aur

tawny spoke
#

I for some reason can't

edgy yacht
#

What error does it show?

tawny spoke
#

Just doesn't prompt to update it

#

Unless I'm doing the wrong command?

edgy yacht
#

Also yes bloating is an issue, to fix that I just use rofi launcher and then see through the application list and whatever I think is not needed, i uninstall

tawny spoke
#

Did I do it wrong?

edgy yacht
#

Ok so it is upto date

#

Run optimus-manager --status

#

@tawny spoke

tawny spoke
edgy yacht
#

What nvidia drivers you use?

tawny spoke
#

I have no idea

edgy yacht
#

yay -Qe | grep nvidia

tawny spoke
edgy yacht
#

520

#

Let me check their aur page

tawny spoke
#

Alright...

edgy yacht
#

If you are wondering what that command did,

#

-Qe lists all explicitly installed

tawny spoke
#

Figured

edgy yacht
#

You can use it to check for bloat

tawny spoke
#

Ahhh

edgy yacht
#

You installed it through Pacman?

tawny spoke
#

Probably

#

It was like 3 months ago, at least

edgy yacht
#

lspci | grep VGA

edgy yacht
tawny spoke
#

I feel like baby

edgy yacht
#

Meanwhile just run this:

#

pacman -S linux-lts linux-lts-headers

tawny spoke
#

I feel quite defeated rn

edgy yacht
#

The thing is, Linux 6.0 has broken most nviidia drivers

#

And nvidia isn't updating them

#

That's why I don't like nvidia 🙂

tawny spoke
edgy yacht
#

They will update it soon

tawny spoke
#

Welp, laptop, so can't do much about that one

edgy yacht
#

Till then just use lts kernel

tawny spoke
#

I distinctly remember it getting stuck on this before

edgy yacht
#

So just install both those packages,

edgy yacht
#

It's not stuck

tawny spoke
#

Oh

#

Huh

edgy yacht
#

It takes a long time to do that

tawny spoke
#

It's hard when it shows zero feedback

edgy yacht
#

Seems like you cancelled it while it was updating?

tawny spoke
#

Uh hmm

tawny spoke
edgy yacht
#

Or if there is an error

tawny spoke
#

But, something else happened? Idk

#

I can't tell if this is a good output or a bad output

edgy yacht
#

It's good.

#

Run pacman -S linux-headers

tawny spoke
#

The ambiguity is fucking my brain

edgy yacht
#

It will say reinstall say yes

edgy yacht
tawny spoke
#

Thanks NVidia

edgy yacht
#

I got to eat now, ttyl will ping back when I come

tawny spoke
#

Aight

edgy yacht
tawny spoke
#

Wew my CPU is being eaten rn

#

Nom nom nom

edgy yacht
#

When that all happens just run optimus-manager --status and see if it errors. If it doesn't then successs

tawny spoke
#

Alright, thanks

#

Failed...

#

Oh restart

#

Nope, same error...

#

Gonna reinstall optimus-manager

#

Nope, same error

edgy yacht
#

No need to reinstall optimus-manager

#

Share me output of

pacman -S linux-headers

#

Full output after it runs dkms-install

#

A lot of waiting but need to see output

#

@tawny spoke

tawny spoke
#

Ok

edgy yacht
# tawny spoke

Checked this file. It is because of the kernel 6 thing I mentioned.

tawny spoke
#

But I'm on 5?

edgy yacht
#

Run uname -R

#

Downgrading didn't work for me on Linux 5.13

#

So I just switched to Lts kernel for the time being

tawny spoke
edgy yacht
#

Weird it didn't error

#

It should error at dkms install

tawny spoke
#

Well

edgy yacht
#

Anyways,

#

Run this

#

history | grep grub

#

And send full output

#

If it doesn't work, run

su

Then enter password and then run that command again

#

@tawny spoke

tawny spoke
#

I don't have this channel muted

#

Don't have to ping me xd

edgy yacht
#

🗿habits

tawny spoke
edgy yacht
#

So run the mkconfig command and then run grub-install command

#

Same as shown in output

tawny spoke
#

In english?

edgy yacht
#

I didn't know your grub path that's why told you to run su and then checking in history because atleast once you should've run that when installing.

edgy yacht
tawny spoke
#

Yes

#

Yes, I am

edgy yacht
#

Ok then just do this instead

#

!14

#

Then after that runs show output and then do

#

!13

tawny spoke
edgy yacht
#

This would give you an option to boot into lts kernel in your boot menu

tawny spoke
#

its or LTS?

edgy yacht
#

Then after running both of these, restart and select lts

#

LTS

#

Long Term Support release.

#

This doesn't get much updates and is stable

tawny spoke
edgy yacht
#

Now restart and see if you get linux-lts in boot menu

#

If you only get 2 options, select advanced and then select lts kernel

tawny spoke
#

Crickey

#

"Use Linux" they said
"It works great" they said

edgy yacht
#

The ! Is a bash syntax so with ! And a number you can run that specific command. Like !15 runs 15th command in history

edgy yacht
tawny spoke
#

Hahahaha

edgy yacht
#

No real need to use nvidia really unless you game

tawny spoke
#

Good one

edgy yacht
#

Also since you use arch Linux you have to do some DIY

tawny spoke
edgy yacht
#

Otherwise if you are looking for something easier, use Zorin OS

#

I have used it and it worked great with nvidia drivers

tawny spoke
#

Alright
I'm in lts

edgy yacht
#

Anyways, did you boot into LTS?

#

Now run optimus-manager --status

tawny spoke
#

YUAAAAS

edgy yacht
#

Worked right?

tawny spoke
#

Current GPU mode Nvidia

#

Let's fucking GO

edgy yacht
#

Told you, it's the Linux 6.0 thing

tawny spoke
#

Fuck you Nvidia

edgy yacht
#

Technically nvidia issue they didn't update

#

Now to be safe,

#

Just add linux-lts and linux-lts-headers to IgnorePKG

tawny spoke
#

Where is ignorepkg

edgy yacht
#

So that you don't end up accidentally upgrading it and breaking stuff

edgy yacht
tawny spoke
#

Kate

edgy yacht
#

Vim? Nano?

tawny spoke
#

Kate

edgy yacht
#

Terminal based*

tawny spoke
#

I almost never do it in terminal

#

I did it in kate and it was fine

edgy yacht
#

Ok use that, run

sudo kate /etc/pacman.conf

tawny spoke
#

How should I seperate them?

edgy yacht
#

If the windows is not an empty file, search Ignore in that file and then add linux-lts and linux-lts-headers to that

tawny spoke
#

Yeah I found the file

edgy yacht
tawny spoke
#

Like, in one line?

#

In one line per package?

edgy yacht
#

Search Ignore first

#

Then show outlut

#

Space seperated

tawny spoke
#

I'm in the pacman.conf

#

I only have obs in there

#

I'm just doing it in a text editor

edgy yacht
#

Om cool just add a space and then add linux-lts and linux-lts-headers there

#

Ok*

tawny spoke
#

Like this?

edgy yacht
#

Perfect

#

Headers

#

With an s

tawny spoke
#

Aight

edgy yacht
#

After doing it save it and run

cat /etc/pacman.conf | grep Ignore

#

And ensure that line is correct

tawny spoke
#

Run what?

#

Oh

#

Seems correct

edgy yacht
#

You are good now

#

Keep an eye out for updates on your nvidia package

tawny spoke
#

But when I do yay
It only shows OBS as an ignored package

edgy yacht
#

If it says added Linux 6.p support or something

edgy yacht
tawny spoke
#

It does not

edgy yacht
#

Did you add OBS to IgnorePkg?

tawny spoke
#

Yes

edgy yacht
tawny spoke
#

But it's not showing the other packages

#

It's only listing OBS

edgy yacht
#

Elaborate.

tawny spoke
edgy yacht
#

Share output

tawny spoke
#

It's not listing obs-ndi, linux-lts or linux-lts-headers

#

Only obs-studio

edgy yacht
#

Oh, it will only show when there is an actually update to those packages

#

Ike let's say you are kn Linux 5 and have it ignored

tawny spoke
#

ndi has an update and it's not showing

edgy yacht
#

Do you want to update obs-ndi?

tawny spoke
#

Ah no, there it is

#

Whatever, it seems fine now

edgy yacht
#

If you want to, remove it from ignored just remove it in that file

tawny spoke
#

Yeah I know

tawny spoke
#

The last OBS update broke nearly everything I had setup

#

So, OBS stays on 27

edgy yacht
#

Keep an eye out for updates on that package, if you see it's updated.

Run full system upgrade,
Then boot into non lts kernel (Linux) and then boot into it and run optimus-manager --status

#

If it works out you can remove lts and lts-headers from IgnorePkg

tawny spoke
#

I will definitely remember that when the time comes

edgy yacht
#

Till then keep using lts

#

You can change grub default to lts

#

Need help doing that?

tawny spoke
#

Ah

#

Yes

#

I would like to change the default

edgy yacht
#

If yes, share me a photo (using phone) of boot menu

tawny spoke
#

Advanced or normal?

tawny spoke
edgy yacht
#

Just send photo first

tawny spoke
#

Of what

edgy yacht
#

Normal

tawny spoke
#

The whole screen?

#

Or just the main part

edgy yacht
#

If it doesn't seem good then I will tell you to show of advanced

edgy yacht
tawny spoke
edgy yacht
#

I am looking for the boot grub entries which are the items in that menu

tawny spoke
edgy yacht
#

Ok click advanced and send photo

#

Try restarting and this time don't touch anything

#

Let it select default entry

#

Then run optimus manager status command

tawny spoke
#

Ok it's default

#

Lemme see

edgy yacht
#

Lts is default?

tawny spoke
#

No like

edgy yacht
#

Since it's the first entry it seems default but let's confirm

tawny spoke
#

Nevermind

#

Optimus thing launched

edgy yacht
#

uname -r

#

Run that and if output is something like 5.xx

tawny spoke
#

5.15

edgy yacht
#

Then lts is default

tawny spoke
#

Cool

edgy yacht
#

You are good to go then

#

Mark it as solved.

tawny spoke
#

How

edgy yacht
#

Also since you use Arch Linux keep in mind things might break very often

tawny spoke
#

So I've learnt

edgy yacht
#

Like less often (this happened the first time for nvidia)

#

It was like 28 oct or something

#

Before that my setup never breaked but it might break. So always just be ready.

tawny spoke
#

Woo, proper GPU processing

edgy yacht
#

In such cases, arch wiki and this sever are your best friends

tawny spoke
#

Yea

edgy yacht
#

Also always keep an eye out for full system upgrades

tawny spoke
#

Arch wiki wasn't enough help for me for this one

edgy yacht
#

If you had looked at output of when it updated nvidia, it would have shown you that

edgy yacht
#

That's why I said this server is second option

tawny spoke
edgy yacht
#

On the output of commands you run

#

I didn't look as well

#

In my case, my integrated GPU is literally blown up

#

So basically if nvidia doesn't work, my laptop will keep crashing

#

So I couldn't boot in for 2 days

#

And then I had to make arch Linux bootable usb and then chroot into my setup

#

And then had to run these commands to fix

#

That's why I took this thread because I exactly know the issue 🙂

tawny spoke
#

Nice

edgy yacht
#

To mask as solved just add [Solved] before the name of the thread

#

Rename the thread*

#

Also change thread name to this instead:

[Solved] nvidia doesn't work after Linux 6 upgrade

#

After that just let the thread archive and go to any other channel. It someone doesn't message here for some time it should archive the thread and you should be good.