X11/legacy driver

Z Wikiverzity
< X11

legacy GPU jsou GPU starší generace, která už nejsou podporovaná v Unified UNIX Graphics Driver. Nicméně jsou dále podporovaná tzv. Legacy GPU" drivers, které jsou periodicky updatované vzhledem k novým jádrům linuxu.

Na stránce najdeme:

The 340.xx driver supports the following set of GPUs.
...
Quadro FX 770M 	0x065C
...

To by mohlo vyřešit některé problémy, např. s uspáním notebooku.

$ lspci -vnn | grep VGA -A 12

VGA compatible controller [0300]: NVIDIA Corporation G96GLM [Quadro FX 770M] [10de:065c] (rev a1) (prog-if 00 [VGA controller])
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_340
# lshw -numeric -C display
product: G96GLM [Quadro FX 770M] [10DE:65C]
vendor: NVIDIA Corporation [10DE]

Vyplním:

  • Product Type: Quadro
  • Product Series: Quadro FX Series (Notebooks)
  • Product: Quadro FX 770M
  • Operting system: Linux 64-bit
  • Download type: Linux Long Lived Driver
  • Language: English (US)

[SEARCH]

Výsledek:

Linux x64 (AMD64/EM64T) Display Driver
Version: 	340.102
Release Date: 	2017.2.14
Operating System: 	Linux 64-bit
Language: 	English (US)
File Size: 	66.72 MB

Release highlights:

  • Added support for X.Org xserver ABI 23 (xorg-server 1.19)
  • Fixed a bug that allowed nvidia-installer to attempt loading kernel modules that were built against non-running kernels.

Supported (m.j.):

  • Quadro FX Series (Notebooks):
    • Quadro FX 3800M, Quadro FX 3700M, Quadro FX 3600M, Quadro FX 2800M, Quadro FX 2700M, Quadro FX 1800M, Quadro FX 1700M, Quadro FX 1600M, Quadro FX 880M, Quadro FX 770M, Quadro FX 570M, Quadro FX 380M, Quadro FX 370M, Quadro FX 360M

Additional information (citace):

Note that many Linux distributions provide their own packages of the NVIDIA Linux Graphics Driver in the distribution's native package management format. This may interact better with the rest of your distribution's framework, and you may want to use this rather than NVIDIA's official package.

Also note that SuSE users should read the SuSE NVIDIA Installer HOWTO before downloading the driver.

Installation instructions: Once you have downloaded the driver, change to the directory containing the driver package and install the driver by running, as root, sh ./NVIDIA-Linux-x86_64-340.102.run

One of the last installation steps will offer to update your X configuration file. Either accept that offer, edit your X configuration file manually so that the NVIDIA X driver will be used, or run nvidia-xconfig

Note that the list of supported GPU products is provided to indicate which GPUs are supported by a particular driver version. Some designs incorporating supported GPUs may not be compatible with the NVIDIA Linux driver: in particular, notebook and all-in-one desktop designs with switchable (hybrid) or Optimus graphics will not work if means to disable the integrated graphics in hardware are not available. Hardware designs will vary from manufacturer to manufacturer, so please consult with a system's manufacturer to determine whether that particular system is compatible.

See the README for more detailed instructions.

For further information please visit our forum, https://devtalk.nvidia.com/default/board/98/linux/ .

README:

FORUM:

[DOWNLOAD]:

Stáhnu soubor:

  • 69960567 (67 MB) NVIDIA-Linux-x86_64-340.102.run
$ file NVIDIA-Linux-x86_64-340.102.run 
NVIDIA-Linux-x86_64-340.102.run: POSIX shell script executable (binary data)

Je to divné, 67 MB skript? Aha, ono to končí:

else
    $echo "Cannot decompress $0"; exit 1
fi

        cleanupDecompress

exit $res

END_OF_STUB

Takže ono to obsahuje tu binárku.

No dobrá, nebudu to instalovat rovnou z tohoto staženého souboru, ale přidržím se rady:

After a successful search take a note of the resulting driver version number:

Což je v mém případě

Version: 	340.102

a použiji příkaz:

$ sudo apt-get install nvidia-340

Ještě předtím ale zjišťuji, že z příkazové řádky mohu spustit příkazy:

  • nvidia-bug-report.sh
  • nvidia-cuda-mps-control
  • nvidia-cuda-mps-server
  • nvidia-debugdump
  • nvidia-detector
  • nvidia-persistenced
  • nvidia-settings
  • nvidia-smi
  • nvidia-xconfig

Nějak k tomu nenacházím manuálové stránky. Ale když zkusím

$ nvidia-settings 

tak mi vyběhne to informační okénko, kde se ukazuje m.j.:

NVIDIA Driver Version: 340.102

Takže já tam ten správný driver už mám nainstalovaný?

$ nvidia-detector 
    none
$ nvidia-cuda-mps-control 
    Cannot find MPS control daemon process
$ nvidia-cuda-mps-server 
$ nvidia-cuda-mps-control 
    Cannot find MPS control daemon process
$ nvidia-detector 
    none

$ nvidia-smi

Sat Sep  2 08:57:50 2017       
+------------------------------------------------------+                       
| NVIDIA-SMI 340.102    Driver Version: 340.102        |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro FX 770M      Off  | 0000:01:00.0     N/A |                  N/A |
| N/A   61C   P12    N/A /  N/A |    106MiB /   511MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+



$ nvidia-xconfig 

   WARNING: Unable to locate/open X configuration file.
   WARNING: Unable to parse X.Org version string.

   Package xorg-server was not found in the pkg-config search path.
   Perhaps you should add the directory containing `xorg-server.pc'
   to the PKG_CONFIG_PATH environment variable
   No package 'xorg-server' found

   ERROR: Unable to write to directory '/etc/X11'.

nvidia-settings[editovat]

Tak by se možná dal ten problém vyřešit jen správným nastavením.

  • X Server Display Configuration
    • Philips 235PQ 1920×1080
    • Make this the primary display for the X screen
  • X Screen 0
    • Xserver XVideo Settings:
      • Auto -> Philips