Ubuntu HD VDR mittels Xine und VDPAU - Grafikkarten Treiber

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „==Vorwort== Der Grafikkartentreiber muss direkt auf der Linux Konsole installiert werden. Ihr könnt von der grafischen Oberfläche auf eine der insgesamt sechs K…“)
 
(Download qvdpautest und benötigter Pakete)
 
(79 dazwischenliegende Versionen von 12 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
==Vorwort==
 
==Vorwort==
Der Grafikkartentreiber muss direkt auf der Linux Konsole installiert werden. Ihr könnt von der grafischen Oberfläche auf eine der insgesamt sechs Konsolen mit folgender Tastenkombination wechseln:
+
Es wird der in Ubuntu mitgelieferte NVIDIA Grafikkartentreiber verwendet.
 
+
STRG+ALT+F1
+
 
+
Username: vdr
+
Kennwort: Eurer Passwort
+
  
 
==Prüfen der Grafikkarte==
 
==Prüfen der Grafikkarte==
 
  lspci -v
 
  lspci -v
 
   
 
   
  02:00.0 VGA compatible controller: nVidia Corporation GeForce 8300 (rev a2)
+
  03:00.0 VGA compatible controller: nVidia Corporation ION VGA (rev b1)
  Subsystem: ASUSTeK Computer Inc. Device 82e2
+
  Subsystem: ASUSTeK Computer Inc. Device 83e2
  Flags: bus master, fast devsel, latency 0, IRQ 21
+
  Flags: bus master, fast devsel, latency 0, IRQ 20
  Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
+
  Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
  Memory at d8000000 (64-bit, prefetchable) [size=128M]
+
  Memory at e0000000 (64-bit, prefetchable) [size=256M]
  Memory at e6000000 (64-bit, prefetchable) [size=32M]
+
  Memory at f6000000 (64-bit, prefetchable) [size=32M]
 
  I/O ports at dc00 [size=128]
 
  I/O ports at dc00 [size=128]
  [virtual] Expansion ROM at e0000000 [disabled] [size=128K]
+
  Expansion ROM at fbee0000 [disabled] [size=128K]
  Capabilities: [60] Power Management version 2
+
  Capabilities: <access denied>
Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
+
  Kernel driver in use: nouveau
  Kernel driver in use: nvidia
+
  Kernel modules: nvidiafb, nouveau
  Kernel modules: nvidia, nvidiafb
+
  
==Installation NVDIA Grafikkarten Treiber==
+
==libvdpau installieren==
===Downloadverzeichnis erstellen===
+
sudo apt-get install libvdpau1 libvdpau-dev
  mkdir -p /data/installfiles/nvidia
+
 
 +
==NVIDIA Treiber installieren==
 +
  sudo apt-get install nvidia-current
 +
sudo init 6
  
===Treiber herunterladen===
+
===xorg.conf erstellen===
  cd /data/installfiles/nvidia
+
  sudo nvidia-xconfig
wget ftp://download.nvidia.com/XFree86/Linux-x86_64/190.53/NVIDIA-Linux-x86_64-190.53-pkg1.run
+
  
===Treiber installieren===
+
===System neu starten===
sudo /etc/init.d/gdm stop
+
cd /data/installfiles/nvidia/
+
sudo sh NVIDIA-Linux-x86_64-190.53-pkg1.run
+
Accept -> Yes -> Ok
+
 
  sudo init 6
 
  sudo init 6
  
==Beispiel xorg.conf==
+
YMMD with that awnser! TX
 +
 
 +
===edid.bin erstellen===
 +
Nachdem das System neu gestartet wurde kann unter der grafischen Oberfläche das NVIDIA Konfigurationsmenü aufgerufen werden.
 +
 
 +
* Anwendungen -> Zubehör -> Terminal
 +
 
 +
sudo nvidia-settings
 +
 
 +
GPU-0 -> DFP-0 -> Acquire EDID...
 +
 
 +
Die erstellte Datei unter folgendem Pfad ablegen:
 +
 
 +
/etc/X11/edid.bin
 +
 
 +
Falls Ihr die edid.bin nicht direkt unter /etc/X11 abspeichern könnt speichert diese vorerst unter /tmp und kopiert diese dann manuell nach /etc/X11:
 +
 
 +
sudo cp /tmp/edid.bin /etc/X11
 +
 
 +
==xorg.conf anpassen==
 +
Gegebenfalls müsst Ihr eure xorg.conf auf eure Grafikkarte und TV anpassen. Anbei findet Ihr meine xorg.conf.
 +
 
 
Zu finden unter:
 
Zu finden unter:
  
 
  cd /etc/X11
 
  cd /etc/X11
  vi xorg.conf
+
  sudo vi xorg.conf
  
 
  # nvidia-settings: X configuration file generated by nvidia-settings
 
  # nvidia-settings: X configuration file generated by nvidia-settings
  # nvidia-settings:  version 1.0  (buildmeister@builder58Tue Oct 20 21:26:01 PDT 2009
+
  # nvidia-settings:  version 1.0  (buildd@yellowFri Apr  9 11:51:21 UTC 2010
 
   
 
   
 
  Section "ServerLayout"
 
  Section "ServerLayout"
Zeile 56: Zeile 69:
 
   
 
   
 
  Section "Files"
 
  Section "Files"
 +
EndSection
 +
 +
Section "Extensions"
 +
    Option "Composite" "Disable"
 
  EndSection
 
  EndSection
 
   
 
   
Zeile 82: Zeile 99:
 
     VertRefresh    23.0 - 61.0
 
     VertRefresh    23.0 - 61.0
 
     Option        "DPMS"
 
     Option        "DPMS"
+
     ModeLine       "1920x1080@50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    Option "UseDisplayDevice" "DFP-0"
+
     ModeLine       "1920x1080@60" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    Option "ExactModeTimingsDVI" "True"
+
    Option "UseEDIDFreqs" "False"
+
   
+
    # 1920x1080p @ 50Hz (EIA/CEA-861B)
+
     ModeLine "1920x1080@50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync  
+
+
    # 1920x1080p @ 60Hz (EIA/CEA-861B)
+
     ModeLine "1920x1080@60" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
+
+
    # 1920x1080p @ 24Hz (EIA/CEA-861B)
+
    ModeLine "1920x1080@24" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
+
+
    # 1920x1080p @ 23.976Hz (EIA/CEA-861B)
+
    ModeLine "1920x1080@23.976" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
+
+
    # 1920x1080i @ 50Hz (EIA/CEA-861B)
+
    # Modeline "1920x1080@50i" 74.250 1920 2448 2492 2640 1080 1085 1095 1125 +hsync +vsync Interlace
+
    # Modeline "1920x1080@50i" 74.184 1920 2408 2496 2640 1080 1084 1094 1124 -hsync -vsync interlace
+
    # Modeline "1920x1080@50i" 74.25 1920 2440 2456 2640 1080 1083 1085 1125 +hsync +vsync interlace
+
    # Modeline "1920x1080@50i" 74.25 1920 2448 2492 2640 1080 1084 1094 1124 +hsync +vsync interlace
+
    ModeLine "1920x1080@50i" 74.200 1920 1964 2052 2200 1080 1084 1088 1125 +hsync -vsync interlace
+
 
+
    # 1920x1080i @ 60Hz (EIA/CEA-861B)
+
    Modeline "1920x1080@60i" 74.250 1920 2008 2052 2200 1080 1085 1095 1125 +hsync +vsync Interlace
+
+
    # 1920x1080p @ 59.94Hz (EIA/CEA-861B)
+
    ModeLine "1920x1080@59.94" 148.350 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
+
+
    # 1920x1080i @ 59.94Hz (EIA/CEA-861B)
+
    Modeline "1920x1080@59.94i" 74.175 1920 2008 2052 2200 1080 1085 1095 1125 +hsync +vsync Interlace
+
+
    # 1920x1080p @ 25Hz (EIA/CEA-861B)
+
    ModeLine "1920x1080@25" 74.250 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
+
+
    # 1920x1080p @ 29.97Hz (EIA/CEA-861B)
+
    ModeLine "1920x1080@29.97" 74.175 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
+
+
    # 1920x1080p @ 30Hz (EIA/CEA-861B)
+
    ModeLine "1920x1080@30" 74.250 1920 2008 2052 2200 1080 1084 1089 1125 +hsync
+
EndSection
+
+
Section "Extensions"
+
    Option "Composite" "Disable"
+
 
  EndSection
 
  EndSection
 
   
 
   
Zeile 133: Zeile 107:
 
     Driver        "nvidia"
 
     Driver        "nvidia"
 
     VendorName    "NVIDIA Corporation"
 
     VendorName    "NVIDIA Corporation"
     BoardName      "GeForce 8300"
+
     BoardName      "ION"
 +
    Option        "Coolbits" "1"
 +
    Option        "NoLogo" "True"
 +
    Option        "UseEDIDDpi" "False"
 +
    Option        "CustomEdid" "DFP-0:/etc/X11/edid.bin"
 +
    Option        "ConnectedMonitor" "DFP-0"
 +
    Option   "UseDisplayDevice" "DFP-0"
 +
    Option        "ExactModeTimingsDVI" "True"
 +
    Option        "ModeValidation" "DFP-0: AllowNon60HzDFPModes,NoEdidModes,NoVesaModes,NoXServerModes,NoPredefinedModes,NoDFPNativeResolutionCheck,NoHorizSyncCheck,NoVertRefreshCheck"
 
  EndSection
 
  EndSection
+
 
 
  Section "Screen"
 
  Section "Screen"
 
     Identifier    "Screen0"
 
     Identifier    "Screen0"
Zeile 142: Zeile 124:
 
     DefaultDepth    24
 
     DefaultDepth    24
 
     Option        "TwinView" "0"
 
     Option        "TwinView" "0"
     Option        "metamodes" "nvidia-auto-select +0+0"
+
     Option        "metamodes" "1920x1080_50 +0+0; nvidia-auto-select +0+0"
 
     SubSection    "Display"
 
     SubSection    "Display"
 
         Depth      24
 
         Depth      24
 
     EndSubSection
 
     EndSubSection
 
  EndSection
 
  EndSection
 +
 +
==System neu starten==
 +
sudo init 6
 +
 +
==Prüfen ob der Bildschirm richtig angesteuert wird==
 +
Es ist wichtig das euer LCD Bildschirm mit 50 Hz angesteuert wird. Es kann folgendermaßen geprüft werden:
 +
 +
DISPLAY=:0 nvidia-settings --query RefreshRate
 +
 +
Attribute 'RefreshRate' (vdr:0.0; display device: DFP-1): 50,00 Hz.
 +
'RefreshRate' is an integer attribute.
 +
'RefreshRate' is a read-only attribute.
 +
'RefreshRate' is display device specific.
 +
'RefreshRate' can use the following target types: X Screen, GPU.
 +
 +
==Leistungsdaten der Grafikkarte ermitteln==
 +
Mit dem Benchmarktool "qvdpautest" können die Leistungsdaten der Grafikkarte ermittelt werden.
 +
 +
===Downloadverzeichnis vorbereiten===
 +
mkdir -p /data/installfiles/qvdpautest
 +
 +
===Download qvdpautest und benötigter Pakete===
 +
apt-get update
 +
apt-get install qt4-qmake qt4-dev-tools libvdpau-dev libvdpau1
 +
 +
cd /data/installfiles/qvdpautest
 +
wget http://hftom.free.fr/qvdpautest-0.5.1.tar.gz
 +
 +
===Installation von qvdpautest===
 +
cd /tmp
 +
tar -xzf /data/installfiles/qvdpautest/qvdpautest-0.5.1.tar.gz
 +
cd qvdpautest-0.5.1/
 +
qmake
 +
make
 +
 +
===qvdpautest starten===
 +
'''Achtung!''' Das Programm muss auf der grafischen Oberfläche (X-Server) gestartet werden.
 +
 +
cd /tmp/qvdpautest/
 +
./qvdpautest
 +
 +
===ermittelte Leistungsdaten===
 +
qvdpautest 0.5.1
 +
Intel(R) Atom(TM) CPU  330  @ 1.60GHz
 +
NVIDIA GPU ION (C79) at PCI:3:0:0 (GPU-0)
 +
 +
VDPAU API version : 1
 +
VDPAU implementation : NVIDIA VDPAU Driver Shared Library  260.19.06  Mon Sep 13 04:58:44 PDT 2010
 +
 +
SURFACE GET BITS: 227.721 M/s
 +
SURFACE PUT BITS: 176.326 M/s
 +
 +
MPEG DECODING (1920x1080): 57 frames/s
 +
MPEG DECODING (1280x720): 135 frames/s
 +
H264 DECODING (1920x1080): 53 frames/s
 +
H264 DECODING (1280x720): 106 frames/s
 +
VC1 DECODING (1440x1080): 69 frames/s
 +
 +
MIXER WEAVE (1920x1080): 315 frames/s
 +
MIXER BOB (1920x1080): 417 fields/s
 +
MIXER TEMPORAL (1920x1080): 119 fields/s
 +
MIXER TEMPORAL + IVTC (1920x1080): 76 fields/s
 +
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 162 fields/s
 +
MIXER TEMPORAL_SPATIAL (1920x1080): 34 fields/s
 +
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 28 fields/s
 +
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 38 fields/s
 +
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 128 fields/s
 +
 +
MULTITHREADED MPEG DECODING (1920x1080): 59 frames/s
 +
MULTITHREADED MIXER TEMPORAL (1920x1080): 100 fields/s
  
 
==Links==
 
==Links==
Zeile 152: Zeile 204:
 
# [ftp://download.nvidia.com/XFree86/ NVIDIA FTP-Server]
 
# [ftp://download.nvidia.com/XFree86/ NVIDIA FTP-Server]
  
[[Kategorie:Ubuntu]]
+
[[Kategorie:Ubuntu HD VDR mittels Xine und VDPAU]]

Aktuelle Version vom 5. Januar 2012, 16:54 Uhr

Inhaltsverzeichnis

[Bearbeiten] Vorwort

Es wird der in Ubuntu mitgelieferte NVIDIA Grafikkartentreiber verwendet.

[Bearbeiten] Prüfen der Grafikkarte

lspci -v

03:00.0 VGA compatible controller: nVidia Corporation ION VGA (rev b1)
	Subsystem: ASUSTeK Computer Inc. Device 83e2
	Flags: bus master, fast devsel, latency 0, IRQ 20
	Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f6000000 (64-bit, prefetchable) [size=32M]
	I/O ports at dc00 [size=128]
	Expansion ROM at fbee0000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nvidiafb, nouveau

[Bearbeiten] libvdpau installieren

sudo apt-get install libvdpau1 libvdpau-dev

[Bearbeiten] NVIDIA Treiber installieren

sudo apt-get install nvidia-current
sudo init 6

[Bearbeiten] xorg.conf erstellen

sudo nvidia-xconfig

[Bearbeiten] System neu starten

sudo init 6

YMMD with that awnser! TX

[Bearbeiten] edid.bin erstellen

Nachdem das System neu gestartet wurde kann unter der grafischen Oberfläche das NVIDIA Konfigurationsmenü aufgerufen werden.

  • Anwendungen -> Zubehör -> Terminal
sudo nvidia-settings
GPU-0 -> DFP-0 -> Acquire EDID...

Die erstellte Datei unter folgendem Pfad ablegen:

/etc/X11/edid.bin

Falls Ihr die edid.bin nicht direkt unter /etc/X11 abspeichern könnt speichert diese vorerst unter /tmp und kopiert diese dann manuell nach /etc/X11:

sudo cp /tmp/edid.bin /etc/X11

[Bearbeiten] xorg.conf anpassen

Gegebenfalls müsst Ihr eure xorg.conf auf eure Grafikkarte und TV anpassen. Anbei findet Ihr meine xorg.conf.

Zu finden unter:

cd /etc/X11
sudo vi xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@yellow)  Fri Apr  9 11:51:21 UTC 2010

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

Section "Files"
EndSection

Section "Extensions"
    Option "Composite" "Disable"
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"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DON DENON-AVAMP"
    HorizSync       15.0 - 68.0
    VertRefresh     23.0 - 61.0
    Option         "DPMS"
    ModeLine       "1920x1080@50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    ModeLine       "1920x1080@60" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "ION"
    Option         "Coolbits" "1"
    Option         "NoLogo" "True"
    Option         "UseEDIDDpi" "False"
    Option         "CustomEdid" "DFP-0:/etc/X11/edid.bin"
    Option         "ConnectedMonitor" "DFP-0"
    Option	   "UseDisplayDevice" "DFP-0"
    Option         "ExactModeTimingsDVI" "True"
    Option         "ModeValidation" "DFP-0: AllowNon60HzDFPModes,NoEdidModes,NoVesaModes,NoXServerModes,NoPredefinedModes,NoDFPNativeResolutionCheck,NoHorizSyncCheck,NoVertRefreshCheck"
EndSection
 
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1920x1080_50 +0+0; nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

[Bearbeiten] System neu starten

sudo init 6

[Bearbeiten] Prüfen ob der Bildschirm richtig angesteuert wird

Es ist wichtig das euer LCD Bildschirm mit 50 Hz angesteuert wird. Es kann folgendermaßen geprüft werden:

DISPLAY=:0 nvidia-settings --query RefreshRate

Attribute 'RefreshRate' (vdr:0.0; display device: DFP-1): 50,00 Hz.
'RefreshRate' is an integer attribute.
'RefreshRate' is a read-only attribute.
'RefreshRate' is display device specific.
'RefreshRate' can use the following target types: X Screen, GPU.

[Bearbeiten] Leistungsdaten der Grafikkarte ermitteln

Mit dem Benchmarktool "qvdpautest" können die Leistungsdaten der Grafikkarte ermittelt werden.

[Bearbeiten] Downloadverzeichnis vorbereiten

mkdir -p /data/installfiles/qvdpautest

[Bearbeiten] Download qvdpautest und benötigter Pakete

apt-get update
apt-get install qt4-qmake qt4-dev-tools libvdpau-dev libvdpau1
cd /data/installfiles/qvdpautest
wget http://hftom.free.fr/qvdpautest-0.5.1.tar.gz

[Bearbeiten] Installation von qvdpautest

cd /tmp
tar -xzf /data/installfiles/qvdpautest/qvdpautest-0.5.1.tar.gz
cd qvdpautest-0.5.1/
qmake
make

[Bearbeiten] qvdpautest starten

Achtung! Das Programm muss auf der grafischen Oberfläche (X-Server) gestartet werden.

cd /tmp/qvdpautest/
./qvdpautest

[Bearbeiten] ermittelte Leistungsdaten

qvdpautest 0.5.1
Intel(R) Atom(TM) CPU  330   @ 1.60GHz
NVIDIA GPU ION (C79) at PCI:3:0:0 (GPU-0)

VDPAU API version : 1
VDPAU implementation : NVIDIA VDPAU Driver Shared Library  260.19.06  Mon Sep 13 04:58:44 PDT 2010

SURFACE GET BITS: 227.721 M/s
SURFACE PUT BITS: 176.326 M/s

MPEG DECODING (1920x1080): 57 frames/s
MPEG DECODING (1280x720): 135 frames/s
H264 DECODING (1920x1080): 53 frames/s
H264 DECODING (1280x720): 106 frames/s
VC1 DECODING (1440x1080): 69 frames/s

MIXER WEAVE (1920x1080): 315 frames/s
MIXER BOB (1920x1080): 417 fields/s
MIXER TEMPORAL (1920x1080): 119 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 76 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 162 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 34 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 28 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 38 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 128 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 59 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 100 fields/s

[Bearbeiten] Links

  1. NVIDIA
  2. NVIDIA FTP-Server