You are not logged in.

#1 2004-04-17 12:36:42

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

[extra/x11] nvidia graphics driver

hi

i put up the nvidia installer to my repo
now you can install/upgrade/deinstall the nvidia driver with pacman

if it works for you all nvidia users
i will put it up to staging

feedback is very welcome

i included an installation instruction as well with further steps after installing
have a look at it if i forgot something contact me

here are the files

PKGBUILD
# Contributor : Tobias Powalowski

pkgname=nvidia
pkgver=1.0.5336
pkgbinary=NVIDIA-Linux-x86-1.0-5336
pkgrel=1
pkgdesc="The Nvidia drivers for XFree86"
url="http://www.nvidia.com"
depends=('kernel26' 'xfree86' 'bash')
source=('ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg0.run' 'ftp://download.nvidia.com/XFree86/Linux … 336/README')
install="nvidia.install"
build() {
  cd $startdir/src/
  chmod +x $pkgbinary-pkg0.run
  mkdir -p $startdir/pkg/opt/nvidia
  mv * $startdir/pkg/opt/nvidia
}
md5sums=('2ceffa20391d5471b8a483101563eccb' 'e739db6166f31e5cb7d2d5c8c1cd26a5')

nvidia.install

post_install() {
  cat << EOF

==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and
==> run /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run as root
==> to finish installation

==> If you are in console mode installer starts now!

EOF

/bin/true
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia

cat << EOF

==> After installation do the following steps:

==> XF86Config:
==> Disable in modules section
==> GLcore and DRI

==> Add to modules section
==> Load "glx"

==> change driver "nv" to
==> driver "nvidia"

==> Finally:
==> Add nvidia to rc.conf modules section

==> For more options have a look at the README file in /opt/nvidia
EOF
}

post_upgrade() {
  cat << EOF

==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and
==> run /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run as root
==> to finish update

==> If you are in console mode installer starts now!

EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia
}

pre_remove() {
  cat << EOF

==> Deinstaller starts now!
==> Don't forget to update XF86Config
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --uninstall
}

op=$1
shift

$op $*

Offline

#2 2004-04-18 21:09:25

bigpod
Member
Registered: 2004-04-13
Posts: 16

Re: [extra/x11] nvidia graphics driver

Works Fine For Me  big_smile

Good Work tpowa.

Offline

#3 2004-04-19 02:43:39

tehdely
Member
Registered: 2004-02-20
Posts: 148
Website

Re: [extra/x11] nvidia graphics driver

Thanks for reminding me to add your repo to my pacman.conf wink


[Arch GNUstep Repository] [ PKGBUILDS ]
[code][gnustep]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/gnustep[/code]

Offline

#4 2004-04-19 14:58:15

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

at the moment only kernel 2.6.5 work with the package
don't try the scsi kernel you'll get a message to remove your kernel
i'll try to fix that

Offline

#5 2004-04-19 17:26:59

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

package fixed
please give feedback

here is the new PKGBUILD for all who cannot wait till database is synced:

# Contributor : Tobias Powalowski


pkgname=nvidia
pkgver=1.0.5336
pkgbinary=NVIDIA-Linux-x86-1.0-5336
pkgrel=2
pkgdesc="The Nvidia drivers for XFree86"
url="http://www.nvidia.com"
depends=('xfree86' 'bash')
source=('ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg0.run' 'ftp://download.nvidia.com/XFree86/Linux … 336/README')
install="nvidia.install"
build() {
  cd $startdir/src/
  chmod +x $pkgbinary-pkg0.run
  mkdir -p $startdir/pkg/opt/nvidia
  mv * $startdir/pkg/opt/nvidia
}
md5sums=('2ceffa20391d5471b8a483101563eccb' 'e739db6166f31e5cb7d2d5c8c1cd26a5')

nvidia.install file:
post_install() {
  cat << EOF

==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
    YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
   
    THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT

==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish installation

==> If you are in console mode installer starts now!

EOF

/bin/true
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia

cat << EOF

==> After installation do the following steps:

==> XF86Config:
==> Disable in modules section
==> GLcore and DRI

==> Add to modules section
==> Load "glx"

==> change driver "nv" to
==> driver "nvidia"

==> Finally:
==> Add nvidia to rc.conf modules section

==> For more options have a look at the README file in /opt/nvidia
EOF
}

post_upgrade() {
  cat << EOF
==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
    YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
   
    THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT

==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish update

==> If you are in console mode installer starts now!

EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia
}

pre_remove() {
  cat << EOF

==> Deinstaller starts now!
==> Don't forget to update XF86Config
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --uninstall
}

op=$1
shift

$op $*

Offline

#6 2004-04-19 21:25:15

tehdely
Member
Registered: 2004-02-20
Posts: 148
Website

Re: [extra/x11] nvidia graphics driver

That's some nice work but if I may criticize, I think that it still in the end amounts to little more than the user downloading the nvidia installer and running it.


I noticed this little part in NVIDIA's license which may be to our benefit:

2.1.2  Linux Exception.  Notwithstanding the foregoing terms of Section 2.1.1, SOFTWARE designed exclusively for use on the Linux operating system may be copied and redistributed, provided that the binary files thereof are not modified in any way (except for unzipping of compressed files).

Given this, why can't we then just distribute nvidia like we do other packages which include kernel modules, i. e. as a set of precompiled modules which gets updated each time the kernel is?

The PKGBUILD above still requires the user to use NVIDIA's installer, and the installed files also can not be tracked by pacman (as they are installed post-install, not into a destroot during makepkg).

In the spirit of Arch's packaging, I would suggest making a true nvidia package rather than this.


[Arch GNUstep Repository] [ PKGBUILDS ]
[code][gnustep]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/gnustep[/code]

Offline

#7 2004-04-20 05:57:27

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

it uses the installer because in that way you can use your own compiled kernel
not all archers are using the newest kernel
or modify them to their needs

with this method all goes well

sorry i didn't get it work with a other method

the files are not traced by pacman

but the uninstall routine is called if you remove the driver
with pacman -R that should be enough

suggestions are welcome

Offline

#8 2004-04-20 08:21:53

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: [extra/x11] nvidia graphics driver

tehdely wrote:

Given this, why can't we then just distribute nvidia like we do other packages which include kernel modules, i. e. as a set of precompiled modules which gets updated each time the kernel is?

Once upon a time the nvidia driver was packaged like this but changes in their installer made it more difficult to install to a seperate directory (like makepkg needs).  Not only that, but the nvidia installer got so good that we felt we didn't need to include a package anymore.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#9 2004-04-21 15:19:37

bigpod
Member
Registered: 2004-04-13
Posts: 16

Re: [extra/x11] nvidia graphics driver

I installed your package few days ago, and i noticed tha opengl programs run
much slower than did in my previous distro slackware with nvidia drivers.
I also noticed that it gives me the following warning:

/usr/lib/libGL.so.1: no version information available

Has anyone noticed something similar?

Offline

#10 2004-04-21 16:24:47

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

hi
i will put up a new package on friday
but that fixes only doc and type of installation

have you tried to run the installer from /opt/nvidia?
the package does nothing more than running the installer
and show up some hints from the docs

so i can't imagine it is much slower than on any other distro
i guess the libGL.so.1 of your system is wrong linked perhaps to mesa or so
check the link
and try deinstall and reinstall of the driver and run the installer from the /opt/nvidia directory
bye

Offline

#11 2004-04-21 16:29:20

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

here are the new PKGBUILDS that will come up on friday

# Contributor : Tobias Powalowski


pkgname=nvidia
pkgver=1.0.5336
pkgbinary=NVIDIA-Linux-x86-1.0-5336
pkgrel=3
pkgdesc="The Nvidia drivers for XFree86"
url="http://www.nvidia.com"
depends=('xfree86' 'bash')
source=('ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg0.run')
install="nvidia.install"
build() {
  cd $startdir/src/
  chmod +x $pkgbinary-pkg0.run
  mkdir -p $startdir/pkg/opt/nvidia
  mv * $startdir/pkg/opt/nvidia
}
md5sums=('2ceffa20391d5471b8a483101563eccb')

nvidia.install:

post_install() {
cat << EOF

==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
    YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
   
    THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT

==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish installation.

==> If you are in console mode installer starts now!

EOF

/bin/true
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --ui=none -n
modprobe nvidia

cat << EOF

==> After installation do the following steps:

==> edit /etc/X11/XF86Config:
==> Disable in modules section
==> GLcore and DRI

==> Add to modules section
==> Load "glx"

==> change driver "nv" to
==> driver "nvidia"

==> Finally:
==> Add nvidia to /etc/rc.conf modules section

==> For more options and information have a look at the README file:
==> /usr/share/doc/NVIDIA_GLX-1.0/README

EOF
}

post_upgrade() {
cat << EOF
==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
    YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
   
    THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT

==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish update.

==> If you are in console mode update starts now!

EOF

/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --ui=none -n
modprobe nvidia
}

pre_remove() {
cat << EOF

==> Deinstallation starts now!

EOF

/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --ui=none --uninstall

cat << EOF
==> Don't forget to update your /etc/X11/XF86Config!
EOF
}

op=$1
shift

$op $*

Offline

#12 2004-04-21 20:24:04

bigpod
Member
Registered: 2004-04-13
Posts: 16

Re: [extra/x11] nvidia graphics driver

Sorry my mistake  :oops:
libGL was linked with mesa,
i removed mesa and now works fine.

Thx for the help.  big_smile

Offline

#13 2004-04-21 20:44:19

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: [extra/x11] nvidia graphics driver

The nvidia installer has an option to add the newly compiled module to the installer, that way other people can just use that new installer without compiling their own module, and they also don't need to have any kernel sources. The only reason I didn't make a package yet is because I don't use a default Arch kernel (the module I get isn't compatible with Arch's kernel), and because I didn't figure out yet how to get rid of the existing precompiled modules, the nvidia installer could be about 5 Mb smaller without those.

Offline

#14 2004-04-22 17:50:35

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

the package is made for the stock kernel
there i can test it
it should work with custom kernels if you have installed kernel sources
the package uses the version of the installer without any precompiled driver so it is 4.5MB instead of 5.5MB

Offline

#15 2004-04-28 21:24:11

potentials
Member
Registered: 2004-01-04
Posts: 130

Re: [extra/x11] nvidia graphics driver

With all my respect and appretiation to tpowa's work, I can't understand the use of the current nvidia package. Why not offer only precompiled modules as suggested. If the problem is that not everybody runs the latest kernel the package could then include precompiled modules for several previous kernel versions (say 2.6.2, 2.6.3, 2.6.4 and 2.6.5) and installs the module corresponding the kernel of the system of concern, or even give the choice to the user (incase he's running several kernel versions) . The size of the package will significantly fall cause it will not include the nvidia installer itself. If somebody wants to compile his own module he can always download the nvidia installer from nvidia's website.

Offline

#16 2004-04-28 23:26:53

aCoder
Member
From: Medina, OH
Registered: 2004-03-07
Posts: 359
Website

Re: [extra/x11] nvidia graphics driver

Really, I don't mind anymore, now that I've tried it.  tpowa, your pkg works great as-is, and is at least a step up from running the curses installer.


If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
  - John Cage

Offline

#17 2004-04-29 15:39:31

galen
Member
From: Canada
Registered: 2003-07-02
Posts: 135
Website

Re: [extra/x11] nvidia graphics driver

where it says "
if you are in console mode the installer will start now"
it does not if you are in console mode and running 'mc'


Off to using Peanut and Slackware, no hard feelings but I need my CD to burn, PDA and scanner to connect and arch won't do it.

[img]http://www.flightsimhq.org/images/war-is-bushit_s.jpg[/img]

Offline

#18 2004-04-30 05:11:51

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

thanks that i didn't try

with console mode
that means you are not running X
and do a
pacman -S  nvidia from the normal console login

i'll try to fix the message that it becomes more clear

Offline

#19 2004-04-30 11:15:50

galen
Member
From: Canada
Registered: 2003-07-02
Posts: 135
Website

Re: [extra/x11] nvidia graphics driver

you could also mention that you need to remain connected to the internet
while you install

those troopers on dialup will need a console conection tool.
wvdial?


Off to using Peanut and Slackware, no hard feelings but I need my CD to burn, PDA and scanner to connect and arch won't do it.

[img]http://www.flightsimhq.org/images/war-is-bushit_s.jpg[/img]

Offline

#20 2004-04-30 13:19:42

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

no a connection to the internet is not needed at all
after you have downloaded my package

Offline

#21 2004-04-30 19:11:06

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

@ potentials:

the package i made is for most compatibility
think of custom kernel or older kernels

it's just the nvidia-installer called by pacman
without user interaction + get some hints to get the driver to work
so you have control over the files you have installed
and know how to configure XF86Config etc.

i didn't find a way to make a PKGBUILD for the case you described
the installer is tricky with this situation. i tried it i found no way to do it.
in the state as it is now it works on most systems and i think thats an important point.

An other thing what if the module you have installed doesn't work no chance to get your card to run (you have to take vesa or nv to get X running again), if you use my package you can use the installer at /opt/nvidia to get debugging what went wrong.

think of other distros suse, red hat have to download the big package 5.6 MB if you don't want to have the kernel-sources installed
i only use the "small" 4.5 MB package without the other precompiled modules for other distros

Offline

#22 2004-05-16 10:30:00

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

i moved the package to staging
i think it's stable enough

Offline

#23 2004-07-02 18:49:34

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [extra/x11] nvidia graphics driver

new version is in staging

DRIVER 1.0.6106

i have no probs with the new drivers
if you want to be on the safe side hold a copy of the old drivers
(like always it's a little bit a roulette to change the graphics driver, but there are some new features that might be interesting)

Offline

#24 2004-07-02 19:24:44

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: [extra/x11] nvidia graphics driver

sorry but i still don't see the point of having a nvidia pkg.

there were plenty of reasons that it was removed in the first place.


AKA uknowme

I am not your friend

Offline

#25 2004-07-02 20:44:58

nifan
Member
Registered: 2003-04-10
Posts: 102

Re: [extra/x11] nvidia graphics driver

i dont really see the reason for all this messing arround (maybe its to hard but its the closest words) with this nvidia pkg.

now I ask:
why souldnt there be an nvidia pkg?


______
"Ignorance, the root and the stem of every evil." - Plato

Offline

Board footer

Powered by FluxBB