Nvidia driver - Debian way, custom (or not) kernel.

Share your own howto's etc. Not for support questions!

Postby jongi » 2009-04-01 21:00

removed all things nvidia, then ran an m-a clean nvidia to be sure.

i now have this working with both custom 2.6.28.9 and 2.6.29
Desktop: Debian (Sid) 64-bit, Gentoo 64-bit and Ubuntu Jaunty 64-bit
Laptop: Gentoo 32-bit
MythTV: Debian (Testing) 32-bit
jongi
 
Posts: 477
Joined: 2007-04-15 02:41

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby lurch » 2009-11-27 23:15

Hi
I upgraded to testing by changing my sources from Lenny to Testing.
I have tried to install the nvidia driver with this How-To and it exits with problem at m-a prepare && m-a a-i nvidia. I do not know how to attach the log printout.
The nvidia-glx install removes xorg.
lurch
Made up as i went along
ASRock 939A8X-M
AMD Opteron 175 64 bit
Geforce 7800 GS
2Gb memory
lurch
 
Posts: 13
Joined: 2006-05-25 09:56

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby milomak » 2009-11-27 23:19

see below as to where the versions lie

Code: Select all
$ apt-cache policy nvidia-kernel-source
nvidia-kernel-source:
  Installed: 190.42-2
  Candidate: 190.42-2
  Version table:
 *** 190.42-2 0
        500 http://debian.mirror.ac.za sid/non-free Packages
        500 http://mirror.giantix-server.de sid/non-free Packages
        100 /var/lib/dpkg/status
     173.14.09-5 0
        500 http://debian.mirror.ac.za stable/non-free Packages
        500 http://debian.mirror.ac.za testing/non-free Packages
        500 http://mirror.giantix-server.de stable/non-free Packages
        500 http://mirror.giantix-server.de testing/non-free Packages
iMac - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1678
Joined: 2009-06-09 22:20

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby lurch » 2009-11-27 23:28

a very quick reply
This is what I get
apt-cache policy nvidia-kernel-source
nvidia-kernel-source:
Installed: 173.14.09-5
Candidate: 173.14.09-5
Version table:
*** 173.14.09-5 0
990 http://ftp.uk.debian.org testing/non-free Packages
990 http://ftp.us.debian.org testing/non-free Packages
990 http://ftp.debian.org testing/non-free Packages
100 /var/lib/dpkg/status
How does this help?
I am trying to understand this.
lurch
Made up as i went along
ASRock 939A8X-M
AMD Opteron 175 64 bit
Geforce 7800 GS
2Gb memory
lurch
 
Posts: 13
Joined: 2006-05-25 09:56

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby milomak » 2009-11-27 23:38

you clearly are not familiar with Debian

look at what i posted. stable and testing ARE 173.14.09-5 0. Unstable is the 190 version.

lurch - what about the opening post do you not understand
iMac - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1678
Joined: 2009-06-09 22:20

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby lurch » 2009-11-27 23:51

How right you are!
I am trying to get to grips with Debian perhaps I should have stuck with Lenny but "hey live dangerously2.
The only way to learn is try it and ask questions.
If somebody is good enough to answer and point you in the right direction then say thank you for sharing the knowledge.
I will try again.
thanks
lurch
Made up as i went along
ASRock 939A8X-M
AMD Opteron 175 64 bit
Geforce 7800 GS
2Gb memory
lurch
 
Posts: 13
Joined: 2006-05-25 09:56

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby Job » 2010-01-10 18:15

Code: Select all
apt-get update && apt-get install nvidia-kernel-source module-assistant nvidia-settings nvidia-xconfig

is returning
E: Couldn't find package nvidia-kernel-source

I am trying experimental portion of the "How to" on the first page of this thread.
Any advice?
Thanks
#aptitude install life
--------------------------------------------------------------------------------------------------------------
Stretch - Devuan - Jessie (Media Center, yes, believe it)
User avatar
Job
 
Posts: 763
Joined: 2006-12-30 20:20
Location: no clue

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby Job » 2010-01-10 19:18

So I killed xserver. Any way to recover? dpkg-reconfigure xserver-org is not working :evil: .
This is squeeze.
Last edited by Job on 2010-01-10 19:21, edited 1 time in total.
#aptitude install life
--------------------------------------------------------------------------------------------------------------
Stretch - Devuan - Jessie (Media Center, yes, believe it)
User avatar
Job
 
Posts: 763
Joined: 2006-12-30 20:20
Location: no clue

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby bluesdog » 2010-01-10 19:20

Currently there is no nvidia-kernel-source candidate in Debian experimental

With only experimental repository in sources.list:
Code: Select all
alj@whimsy:~$ apt-cache search nvidia
xserver-xorg-video-nouveau - X.Org X server -- Nouveau display driver (experimental)
libvdpau-dev - Video Decode and Presentation API for Unix (development files)
libvdpau-doc - Video Decode and Presentation API for Unix (documentation)
libvdpau1 - Video Decode and Presentation API for Unix (libraries)
xserver-xorg-video-nv - X.Org X server -- NV display driver
alj@whimsy:~$ apt-cache search nvidia-kernel-source
alj@whimsy:~$
Tips & Tricks

Something more to read while waiting

If you obviously have not read THIS, don't expect too much...




*winter bluesdog....*
User avatar
bluesdog
 
Posts: 2082
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby Job » 2010-01-10 19:25

bluesdog wrote:Currently there is no nvidia-kernel-source candidate in Debian experimental

With only experimental repository in sources.list:
Code: Select all
alj@whimsy:~$ apt-cache search nvidia
xserver-xorg-video-nouveau - X.Org X server -- Nouveau display driver (experimental)
libvdpau-dev - Video Decode and Presentation API for Unix (development files)
libvdpau-doc - Video Decode and Presentation API for Unix (documentation)
libvdpau1 - Video Decode and Presentation API for Unix (libraries)
xserver-xorg-video-nv - X.Org X server -- NV display driver
alj@whimsy:~$ apt-cache search nvidia-kernel-source
alj@whimsy:~$


Correct!
So I went with the driver in stable and that killed xserver. I am trying to get back to the xserver but dpkg-reconfigure xserver-org is not working.
Any advice?
Thanks
#aptitude install life
--------------------------------------------------------------------------------------------------------------
Stretch - Devuan - Jessie (Media Center, yes, believe it)
User avatar
Job
 
Posts: 763
Joined: 2006-12-30 20:20
Location: no clue

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby bluesdog » 2010-01-10 19:36

Job wrote:So I killed xserver. Any way to recover? dpkg-reconfigure xserver-org is not working :evil: .
This is squeeze.

Yes, it's normally not difficult to fix X

Does X fail silently?
What error message do you see in /var/log/Xorg.0.log?
Since you're running testing, It's pretty safe to pull in the nvidia stuff from Sid. Probably safer than mixing it with stable..

If you need more help fixing X, please check the forum for one of many existing threads on X recovery.

Once you have a working X, try the nvidia build again.

I've always built a custom kernel, and then the matching nvidia. It always seems to work better
Tips & Tricks

Something more to read while waiting

If you obviously have not read THIS, don't expect too much...




*winter bluesdog....*
User avatar
bluesdog
 
Posts: 2082
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby Job » 2010-01-10 21:14

Thank you for your reply. System is all cleaned and Nvidia is up and running. :mrgreen:
#aptitude install life
--------------------------------------------------------------------------------------------------------------
Stretch - Devuan - Jessie (Media Center, yes, believe it)
User avatar
Job
 
Posts: 763
Joined: 2006-12-30 20:20
Location: no clue

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby Job » 2010-01-14 23:49

How do you check that glx is working?
My xorg.conf below
Code: Select all
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder75)  Tue Dec  8 21:04:28 PST 2009

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option "XAANoOffscreenPixmaps" "true"
    Option "AllowGLXWithComposite" "true"
EndSection

Section "Extensions"
        Option "Composite" "enable"
EndSection

Section "Module"
        #Load "dri"
        #Load "GLcore"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    Option "AddARGBGLXVisuals" "True"
    EndSubSection
EndSection
#aptitude install life
--------------------------------------------------------------------------------------------------------------
Stretch - Devuan - Jessie (Media Center, yes, believe it)
User avatar
Job
 
Posts: 763
Joined: 2006-12-30 20:20
Location: no clue

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby bluesdog » 2010-01-15 07:19

Job wrote:How do you check that glx is working?


Code: Select all
aptitude update
aptitude install mesa-utils
glxinfo | grep direct
Tips & Tricks

Something more to read while waiting

If you obviously have not read THIS, don't expect too much...




*winter bluesdog....*
User avatar
bluesdog
 
Posts: 2082
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Re: Nvidia driver - Debian way, custom (or not) kernel.

Postby BrainCheese » 2010-02-24 02:44

I have tried this how to and several others on the internet and still getting no luck with the Nvidia driver. I'm about an average user with Linux, probably below average with Debian. I'm running Squeeze and have a 9800 GTX Nvidia board. Here is the error I'm getting. I've tried other things in other posts but still no luck

Code: Select all
/usr/bin/make  -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/Makefile || true
if [ 6 = 6  ]; then \
        ln -s Makefile.kbuild Makefile ; \
   fi
if [  6 = 4  ]; then \
        ln -s Makefile.nvidia Makefile ; \
   fi
if [ -e patch-stamp ]; then \
      dpatch deapply-all ; \
      rm -rf patch-stamp debian/patched ; \
   fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
      cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
   fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/lib/modules/2.6.32-trunk-amd64/build -C /usr/src/modules/nvidia-kernel/ -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
rm -f /usr/src/modules/nvidia-kernel//Makefile || true;    
rm /usr/src/modules/nvidia-kernel//gcc-check
rm /usr/src/modules/nvidia-kernel//cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make  -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/Makefile || true
if [ 6 = 6  ]; then \
        ln -s Makefile.kbuild Makefile ; \
   fi
if [  6 = 4  ]; then \
        ln -s Makefile.nvidia Makefile ; \
   fi
if ! gcc-4.3 -v 2> /dev/null  ; then \
      echo "Compiler gcc-4.3 does not exist on the system" ; \
      exit 1; \
   fi   
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
      cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
   fi
if [ "x86_64" = "x86_64" ]; then \
      cp /usr/src/modules/nvidia-kernel/nv-kernel.o.x86_64 /usr/src/modules/nvidia-kernel/nv-kernel.o ; \
   fi
touch configure-stamp
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.3.4
Detected compiler version : 4.3.4
Using compiler gcc-4.3 version 4.3.4
touch /usr/src/modules/nvidia-kernel//gcc-check
touch /usr/src/modules/nvidia-kernel//cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.3" /usr/bin/make -C /usr/src/modules/nvidia-kernel/ -f Makefile SYSSRC=/lib/modules/2.6.32-trunk-amd64/build   KBUILD_PARAMS="-C /lib/modules/2.6.32-trunk-amd64/build SUBDIRS=/usr/src/modules/nvidia-kernel" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
NVIDIA: calling KBUILD...
make CC=gcc-4.3 -C /lib/modules/2.6.32-trunk-amd64/build SUBDIRS=/usr/src/modules/nvidia-kernel modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.32-trunk-amd64'
  Building modules, stage 2.
  MODPOST 0 modules
make[3]: Leaving directory `/usr/src/linux-headers-2.6.32-trunk-amd64'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[2]: *** [module] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
BrainCheese
 
Posts: 6
Joined: 2010-02-24 02:40

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable