Re: etch nvidia xorg nvidia-glx-legacy X crashes

2008-03-25 Thread Andrei Popescu
On Mon, Mar 24, 2008 at 08:43:26PM -0400, Hugh Lawson wrote:
 
 I've been trying to install the nvidia driver.  I managed to get it
 working, but my solution is not entirely satisfactory, because it's
 vulnerable to an update of the nvidia-glx-legacy package.  I'll trace
 through the problem, and perhaps somebody can point to a better way.
 
 Debian etch
 nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)
 NVIDIA-Linux-x86-96.43.01-pkg1.run (the installer)
 nvidia-glx-legacy
 
As far as I know you are *not* supposed to have both, so you should 
purge the package nvidia-glx-legacy. You might want to restore that file 
first, otherwise dpkg will complain about a missing file.

Regards,
Andrei
P.S. The newer nvidia-glx is also a solution, but make sure you remove 
all traces of the other driver as well.
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: etch nvidia xorg nvidia-glx-legacy X crashes

2008-03-25 Thread Hugh Lawson
Owen Townend [EMAIL PROTECTED] writes:

Hugh wrote:
  The init file /etc/init.d/nvidia-glx-legacy was causing the X crashes,
  by fiddling with needed links and file locations in the libraries.  I
  fixed this by the following:

Owen wrote:

   Are you using the legacy
 drivers or are they simply being installed alongside and causing issues?
 
   The nvidia-glx-legacy isn't for the Geforce4 line:

[ snip ]

 This is the 'legacy' driver for older chipsets. Unless your chipset is
 explicitly listed in the above paragraph, please use the nvidia-glx driver,
 which is much more up to date.

Thanks Owen.

Since posting, I've done some more work.

nvidia-glx-legacy has been purged; now I have nvidia-glx.

Nevertheless, /etc/init.d/nvidia-glx causes the same problem, when
used along with the nvidia proprietary installer. I do not understand
this technically, only empirically from trial-and-error. Somehow,
the /etc/init.d/nvidia-glx init script fiddles around with library
files and links, that are needed by the nvidia module, as it is
installed by:

sh NVIDIA-Linux-x86-96.43.01-pkg1.run 

Hence, /etc/init.d/nvidia-glx on the next boot changes things in a way
that won't let X start.  To fix this, I did once more:

sh NVIDIA-Linux-x86-96.43.01-pkg1.run

and then:

cd /etc/init.d/
sudo mv nvidia-glx XXnvidia-glx

That paralyzes the /etc/init.d/nvidia-glx script and prevents it from
messing up the links and files needed by the nvidia module as
installed by NVIDIA-Linux-x86-96.43.01-pkg1.run.

I don't understand what the /etc/init.d/nvidia-glx script is supposed
to accomplished, and how I can get along without it.

-- 
Hugh Lawson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: etch nvidia xorg nvidia-glx-legacy X crashes

2008-03-25 Thread Hugh Lawson
Andrei Popescu [EMAIL PROTECTED] writes:

 As far as I know you are *not* supposed to have both, so you should 
 purge the package nvidia-glx-legacy. You might want to restore that file 
 first, otherwise dpkg will complain about a missing file.

Thanks Andrei,

I did dpkg --purge nvidia-glx-legacy, and put nvidia-glx in its place.

Unfortunately, the /etc/init.d/nvidia-glx script, upon reboot, moves
or deletes files needed by the nvidia module as installed by:

 NVIDIA-Linux-x86-96.43.01-pkg1.run

And X won't start.

Is nvidia-glx actually needed with the nvidia module installed by

 NVIDIA-Linux-x86-96.43.01-pkg1.run

-- 
Hugh Lawson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: etch nvidia xorg nvidia-glx-legacy X crashes

2008-03-25 Thread Wackojacko

Hugh Lawson wrote:


Since posting, I've done some more work.

nvidia-glx-legacy has been purged; now I have nvidia-glx.


AFAIK you don't need nvidia-glx if you are using the script from the 
nvidia site.  nvidia-glx is for the module in the repository.


Nevertheless, /etc/init.d/nvidia-glx causes the same problem, when
used along with the nvidia proprietary installer. I do not understand
this technically, only empirically from trial-and-error. Somehow,
the /etc/init.d/nvidia-glx init script fiddles around with library
files and links, that are needed by the nvidia module, as it is
installed by:

sh NVIDIA-Linux-x86-96.43.01-pkg1.run 


Hence, /etc/init.d/nvidia-glx on the next boot changes things in a way
that won't let X start.  To fix this, I did once more:

sh NVIDIA-Linux-x86-96.43.01-pkg1.run

and then:

cd /etc/init.d/
sudo mv nvidia-glx XXnvidia-glx

That paralyzes the /etc/init.d/nvidia-glx script and prevents it from
messing up the links and files needed by the nvidia module as
installed by NVIDIA-Linux-x86-96.43.01-pkg1.run.

I don't understand what the /etc/init.d/nvidia-glx script is supposed
to accomplished, and how I can get along without it.



You are mixing the two methods of installing the the nvidia module.
1. Use the script from the nvidia site and nothing else.
2. Install the nvidia module for your kernel from the repository, which 
will also require the nvidia-glx package that matches the module version.


Either purge the nvidia-glx package and reinstall the NVIDIA script or 
remove the NVIDIA script and then install the modules from the repository.


HTH

Wackojacko

NB if you run custom built kernel you can build the nvidia module using 
module-assistant


As root

#aptitude install module-assistant
#m-a prepare
#m-a a-i nvidia
#aptitude install nvidia-glx

restart x


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: etch nvidia xorg nvidia-glx-legacy X crashes--Solved

2008-03-25 Thread Hugh Lawson
Wackojacko [EMAIL PROTECTED] writes:

 Hugh Lawson wrote:
 
  Since posting, I've done some more work.
  nvidia-glx-legacy has been purged; now I have nvidia-glx.

Wacko wrote:

 You are mixing the two methods of installing the the nvidia module.
 1. Use the script from the nvidia site and nothing else.
 2. Install the nvidia module for your kernel from the repository,
 which will also require the nvidia-glx package that matches the module
 version.
 
 Either purge the nvidia-glx package and reinstall the NVIDIA script or
 remove the NVIDIA script and then install the modules from the
 repository.

Hugh again:

Much thanks Wacko; you provided the absolutely essential
information. 

I had deb packages left on my system from an earlier effort to do #2
above.  I didn't understand that this remaining stuff was absolutely
incompatible with the nvidia-provided script.

So I shifted to choice #1 above, purged all the nvidia* deb packages,
and ran this nvidia-provided script:

NVIDIA-Linux-x86-96.43.01-pkg1.run

Since then I have rebooted; glxgears, glxinfo, and compiz  work as expected.

Thank you!

-- 
Hugh Lawson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: etch nvidia xorg nvidia-glx-legacy X crashes

2008-03-24 Thread Owen Townend
On 24 Mar 2008 20:43:26 -0400, Hugh Lawson [EMAIL PROTECTED] wrote:


 I've been trying to install the nvidia driver.  I managed to get it
 working, but my solution is not entirely satisfactory, because it's
 vulnerable to an update of the nvidia-glx-legacy package.  I'll trace
 through the problem, and perhaps somebody can point to a better way.

 Debian etch
 nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)
 NVIDIA-Linux-x86-96.43.01-pkg1.run (the installer)
 nvidia-glx-legacy

 I used the  installer to compile and install the nvidia video
 driver module, but X crashed on next boot.  I couldn't find any
 documentation warning about this after much searching.  I did however
 figure out what was causing the problem.

 The init file /etc/init.d/nvidia-glx-legacy was causing the X crashes,
 by fiddling with needed links and file locations in the libraries.  I
 fixed this by the following:

 # cd /etc/init.d
 # mv nvidia-glx-legacy XXnvidia-glx-legacy

 How I tested this:

 First I installed the module
 #  sh NVIDIA-Linux-x86-96.43.01-pkg1.run

 Upon success, I rebooted.  Then X failed to run.  So I used a rescue
 linux to edit /etc/X11/xorg.conf to use the nv driver rather than
 the nvidia one, and rebooted again.

 Then I tested the installation of the nvidia module.

 # sh NVIDIA-Linux-x86-96.43.01-pkg1.run  --sanity

 The output of this program showed that files were missing, so I
 installed the nvidia module once more:

 #  sh NVIDIA-Linux-x86-96.43.01-pkg1.run

 Staying in the console, I ran this:

 # sh NVIDIA-Linux-x86-96.43.01-pkg1.run  --sanity

 No missing files. Then I ran:

 #  /etc/init.d/nvidia-glx-legacy

 and ran the sanity check once more:

 # sh NVIDIA-Linux-x86-96.43.01-pkg1.run  --sanity

 The sanity check showed files were missing again. So, I installed the
 nvidia module once more:

 #  sh NVIDIA-Linux-x86-96.43.01-pkg1.run

 and did this:

 # mv nvidia-glx-legacy XXnvidia-glx-legacy

 Upon reboot, the nvidia logo appeared and X started normally.

 QED: /etc/init.d/nvidia-glx-legacy, a part of the nvidia-glx-legacy
 package
 makes it impossible for me to use the nvidia video driver, as
 installed by NVIDIA-Linux-x86-96.43.01-pkg1.run



Hey,

  Are you using the legacy
drivers or are they simply being installed alongside and causing issues?

  The nvidia-glx-legacy isn't for the Geforce4 line:

From `apt-cache show nvidia-glx-legacy`:

Description: NVIDIA binary XFree86 4.x/X.Org 'legacy' driver
These XFree86 4.x/X.Org binary drivers provide optimized hardware
acceleration
of OpenGL applications via a direct-rendering X Server and supports the TNT,
TNT2, TNT Ultra, GeForce, and GeForce2 chipsets. AGP, TV-out and flat panel
displays are also supported.
.
This is the 'legacy' driver for older chipsets. Unless your chipset is
explicitly listed in the above paragraph, please use the nvidia-glx driver,
which is much more up to date.

cheers,
Owen.