Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  [ solved ] Kernel 3.11 and NVIDIA, solution for aptosid  (Read 4036 times)

Offline JohnML

  • User
  • Posts: 22
found a tipp and now nvidia driver works with kernel 3.11

See:
https://devtalk.nvidia.com/default/topic/602829/-solved-nvidia-linux-3-11-compatibility-error-lsquo-num_physpages-rsquo-undeclared-first-use-i/

or short url:
http://goo.gl/gBD4BG

Because i don't know how to apply such a patch i simply copied these lines:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
#define NV_NUM_PHYSPAGES get_num_physpages
#else
#define NV_NUM_PHYSPAGES num_physpages
#endif

to

nv-Linux.h

inserts after Line 963

.. and now nexuiz runs again !!

see:
/usr/src/nvidia-current-325.15/nv-linux.h

Offline JohnML

  • User
  • Posts: 22
Kernel 3.11 and NVIDIA, solution
« Reply #1 on: 2013/09/17, 10:04:11 »
this procedure was ok for aptosid, but for siduction i couldn't get rid of xserver-xorg-video-nvidia-legacy-304xx
--> post removal skript throws an error ... giving up!

Offline absolut

  • User
  • Posts: 455
RE: Kernel 3.11 and NVIDIA, solution
« Reply #2 on: 2013/09/17, 10:44:51 »
maybe you would like to paste the console output here or to a pastebin.

Offline JohnML

  • User
  • Posts: 22
RE: Kernel 3.11 and NVIDIA, solution
« Reply #3 on: 2013/09/17, 11:08:02 »
.. because kdesu is broken too for ages now, i'll reinstall siduction and hope everything is ok :--))

Offline michaa7

  • User
  • Posts: 2.300
RE: Kernel 3.11 and NVIDIA, solution
« Reply #4 on: 2013/09/17, 11:51:59 »
I don't understand your problem.

I've installed kernel 3.11 and I am using nvidia-legacy-304xx-driver and xserver-xorg-video-nvidia-legacy-304xx. I did this days before you posted your fix. There was no problem to fix.

towo provided siduction packages *some days ago* which you may install enabling the siduction fixes repo. And today Debian provides new packages, too (which I haven't installed yet and therefor cannot tell whether they work or not).

So what's the problem? If it is about how *you* fix this problem on your own you'd better post in the experimental or kernelhacking forum. Because the "fix" you provided was obsolete when you posted it (and wasn't even a fix for you).

To avoid confusion you should mark this thread as "solved" (at the latest after you reinstalled siduction and nvidia-legacy-304xx successfully).
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline JohnML

  • User
  • Posts: 22
RE: Kernel 3.11 and NVIDIA, solution
« Reply #5 on: 2013/09/17, 12:36:09 »
... done

Offline michaa7

  • User
  • Posts: 2.300
Re: RE: Kernel 3.11 and NVIDIA, solution
« Reply #6 on: 2013/09/17, 13:14:08 »
Quote from: "JohnML"
... done


Thanks. But is this problem solved for you, too?

BTW, I can confirm that the Debian driver works. So no fix needed and currently no fixes repo needed for that driver:

Code: [Select]
apt-get install xserver-xorg-video-nvidia-legacy-304xx=304.108-3
which will pull some more needed packages by itself.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake