Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia API mismatch after upgrading nvidia-drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 167
Location: Slovakia

PostPosted: Thu Apr 11, 2013 6:27 pm    Post subject: nvidia API mismatch after upgrading nvidia-drivers Reply with quote

i did emerge -unD world today and nvidia-drivers-313.30 failed to install. in the error msg was a procedure:

Code:

 * # cd /usr/src/linux
 * # make oldconfig
 * # make modules_prepare


so i did it and emerged the drivers successfuly, but after pressing F7 to get back to X there was a blank screen.
/etc/init.d/xdm restart did not help.

i did then try to install an older version of nvidia-drivers but i had the same result: EE API mismatch (sorry i dont have the error in Xorg.0.old anymore)

i fixed this by recompiling the kernel and installing the previous version of nvidia-drivers-310.44 (no idea if i should try 313.30 again it is masked for now)

any idea what happened?

ps: here is some older post with the same error but other versions - https://forums.gentoo.org/viewtopic-t-881191-highlight-nvidia+api.html
_________________
---__o__---
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3924

PostPosted: Thu Apr 11, 2013 10:09 pm    Post subject: Reply with quote

- emerge nvidia drivers v1
- modprobe nvidia / or reboot (so nvidia v1 loaded)
- emerge -u nvidia and you got v2
- startX : mismatch you have now v2 install while in memory you still have v1.
An example how to get your mismatch error:

The solve is so dawn easy :
Code:
rmmod nvidia (so unload v1)
modprobe nvidia (so load the v2)
startx (now happy as module in memory is for v2 and glx on disk is v2 too)
Or the lazzy solve, reboot.

So when you emerge nvidia drivers and wish use it, unload the previous module and load the new version before starting X.
Back to top
View user's profile Send private message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 167
Location: Slovakia

PostPosted: Fri Apr 12, 2013 7:46 am    Post subject: Reply with quote

ok thanks. will try your solution when i get that problem again. by the way the reboot did not help in my case (only after new kernel).
i was just curious because usually i build the new nvidia drivers and continue to use the pc normaly, i have the new drivers in memory when i start the pc next day.
_________________
---__o__---
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3924

PostPosted: Fri Apr 12, 2013 8:50 am    Post subject: Reply with quote

I just gave you an example, the real explain to understand is that running module and currently install module must be same version.
Downgrading the drivers would make the same effect, with a running v2 and installed version v1.

e3k wrote:
i build the new nvidia drivers and continue to use the pc normaly

Yes, as long as you don't try restarting X.
Back to top
View user's profile Send private message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 167
Location: Slovakia

PostPosted: Fri Apr 12, 2013 9:00 am    Post subject: Reply with quote

Quote:
Yes, as long as you don't try restarting X.

well i did not i just went from ctrl+alt+F1 to F7. usualy it worked fine but not this time. i tried to restart x afterwards.
_________________
---__o__---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum