Scusate l'assenza ma ultimamente sono un po' impegnato. Sto rifacendo il pacchetto (per current ma che dovrebbe funzionare anche per stable) perchè il precedente non compila (a meno di escamotage) su kernel >= 3.7.10
Stò facendo quello della 313.26 (non ho tempo di stare dietro a 2 versioni per ora).
Sto cercando di migliorarlo un po'. Ecco quello che ho fatto finora.
1) Ho praticamente riscritto NVIDIA.Slackware aggiungendo e ordinando diverse importanti note, solo che avrei bisogno di qualcuno che mi desse una mano con la traduzione che fa un po' schifetto, e magari anche sulla forma. Questo file da anche una indicazione di come è il pacchetto
Codice: Seleziona tutto
Slackware Notes:
This version of NVIDIA driver is taken from the original site:
NVIDIA-Linux-x86_64-313.26.run
or
NVIDIA-Linux-x86-313.26.run
The package contains only precompiled libraries so the package should works with
slackware current even if the package was built on a slackware 14.0 and
viceversa (but read the 'Kernel Module' section below)
This package does NOT install the vdpau module. You need it for some
multimedial feature.
You can choose to install libvdpau 0.5 or the nvidia-vdpau package (same
version of nvidia-linux package) that you may find in the same repository.
== SPECIAL NOTES ==
1. Kernel Module
1.1. Prebuilt module
1.2. Upgrading kernel
2. Conflicts
2.1. Upgrading slackware packages
2.2. Removing nvidia-linux driver
3. Xorg Configuration
==
1. KERNEL MODULE
1.1. Prebuilt module
The package should already contain the nvidia.ko kernel module.
This module may be built for slackware current or slackware 14.0
If kernel version does not match with the running kernel, the
post-install script will recompile automatically a new kernel
module.
1.2. Upgrading kernel
If you upgrade your kernel (recompiling it manually or upgrading
Slackware to -current), you must to recompile the kernel
module using the script
/usr/share/nvidia-linux/makekernelmodule.sh
You have two options:
a) recompile it BEFORE reboot with the new kernel. You have to
launch the script specifing the new kernel version:
# KERNEL=3.8.4 /usr/share/nvidia-linux/makekernelmodule.sh
b) recompile it AFTER reboot with the new kernel. You must boot
system in runlevel 3, then build the module with:
# /usr/share/nvidia-linux/makekernelmodule.sh
and then load new module:
# modprobe nvidia
Now you can start the xorg (with startx or init 4)
2. Conflicts
The nvidia drivers conflict, for libGL and libglx, with the preinstalled
drivers (xorg-server and mesa packages) and some other mesa files. This
may require special operation after upgrading slackware packages or
after uninstalling nvidia-linux drivers.
The nvidia-linux installer should backup libglx.so in
/usr/lib/xorg/modules/extensions/libglx.so-prenvidia
or
/usr/lib64/xorg/modules/extensions/libglx.so-prenvidia
2.1. Upgrading slackware packages
If you are upgrading the mesa package or the xorg-server package
(when you upgrade slackware), you MUST rerun the nvidia-linux
postinstall script after the upgrade:
# cd /
# bash /var/log/scripts/nvidia-linux-3*
2.2. Removing nvidia-linux driver
If you want to remove the nvidia-linux package, you must to restore
the conflicting files after removing nvidia-linux:
# cd /usr/lib/xorg/modules/extensions/
(or lib64)
# mv libglx.so-prenvidia libglx.so
# ldconfig
don't forget to remove the xorg configuration (see below)
3. Xorg Configuration
The nvidia-linux package contains a minimal Xorg configuration sufficient
to start X in most nvidia cards.
The configuration is in /etc/X11/xorg.d :
- monitor-xorg.conf
- nvidia-xorg.conf
the base settings may not works with your card, so you need to configure
it manually. You have two way:
a) edit manually the configuration files
b) configure xorg using the official tools:
- remove the existent configuration
- create a basic configuration with 'nvidia-xconfig' (that creates
an /etc/X11/xorg.conf file)
- start X
After run X, you may launch 'nvidia-settings' to tune the configuration.
This tool may create an /etc/X11/xorg.conf file for special configuration.
In this case, remember to delete the /etc/X11/xorg.d/*.conf files.
When you upgrade nvidia-linux package, you must re-delete the same files.
Refer to the official documentation for specific configuration (that you
can found in /usr/doc/nvidia-linux-3*
2) ora, se necessario e se possibile, il modulo kernel viene creato durante la fase di installazione (su questo però avrei bisogno di testing), perchè il modulo preinserito è compilato in current e per 3.8.4 (non ho una stable a disposizione), quindi chi lo installa su stable o su current successive necessiterà di sicuro del rebuild
3) lo script per fare il modulo kernel ora consente correttamente di compilare il modulo per versioni di kernel diverse da quella corrente. Per esempio oggi ho fatto l'aggiornamento di slackware e mi ha aggiornato il kernel. Ho dovuto compilare il modulo kernel PRIMA di riavviare, altrimenti avrei dovuto farlo in runlevel 3 ecc. Questo era consentito anche prima, ma era bacata l'installazione del modulo
4) visto che il titolo di questo topic è partito tutto dal problema del flash in blu, e visto che questo è risolto omai da tempo con nvidia-vdpau, stavo pensando di eliminare lo sdoppiamento dei pacchetti e riaccorparli. Che ne pensate?
5) segnalatemi bug delle versioni precedenti (ce ne sono) e consigli per la configurazione di default.
Al momento non ricordo quante siano le differenze tra la serie 310.x e 313.x, ma ricordo che ce ne sono, quindi non so dire se lo slackbuild è interscambiabile.