Supportnet Computer
Planet of Tech

Supportnet / Forum / Linux

DMA über hdparm aktivieren





Frage

Hallo... ich versuche bei meinem Fedora endlich DVD abspielen zu können. Leider funkt das nicht so wirklich. Die ersten 5 Sek funktionieren Taddelos... dann sagt er mir "The Source can be read". dann macht ich folgendes # xine-check ausgabe war [ good ] you´re using Linux, doing specific tests [ good ] looks like you have a /proc filesystem mounted. [ good ] You seem to have a reasonable kernel version (2.6.12-1.1398_FC4) [ good ] intel compatible processor, checking MTRR support [ good ] you have MTRR support and there are some ranges set. [ good ] found the player at /usr/bin/xine [ good ] /usr/bin/xine is in your PATH [ hint ] No xine-config found. Assuming xine from RPMs The xine-config script can be used to deternime some file locations used by xine-lib, but you don´t have such a script on your system. However, it looks like you installed xine from the RedHat packages. So I´ll just guess that you are using the standard locations. If you want me to be sure about those file locations, you can install the ´xine-lib-devel´ package (or ´xine-devel´, depend on what packages you´re using, which contains xine-config. However, this package is not really needed to run xine... press <enter> to continue... q [ good ] plugin directory /usr/lib/xine/plugins exists. [ good ] found unknown plugin: *.so [OUCH!!] There are no input plugins. xine needs at least one input plugin, but none is installed. You should probably reinstall xine-lib... press <enter> to continue... [OUCH!!] There are no demux plugins. xine needs at least one demux plugin, but none is installed. You should probably reinstall xine-lib... press <enter> to continue... [OUCH!!] There are no decoder plugins. xine needs at least one decoder plugin, but none is installed. You should probably reinstall xine-lib... press <enter> to continue... [OUCH!!] There are no video_out plugins. xine needs at least one video_out plugin, but none is installed. You should probably reinstall xine-lib... press <enter> to continue... [OUCH!!] There are no audio_out plugins. xine needs at least one audio_out plugin, but none is installed. You should probably reinstall xine-lib... press <enter> to continue... [ good ] skin directory /usr/share/xine/skins exists. [ good ] found logo in /usr/share/xine/skins [ good ] I even found some skins. [ good ] /dev/cdrom points to /dev/hdb [ good ] /dev/dvd points to /dev/hdd [ hint ] DMA is disabled for your DVD interface. This will probably result in a serious performance hit when playing DVDs. You can issue the command hdparm -d1 /dev/hdd as root to enable DMA. It would be wise to add this command to some script that is executed executed at boot time. Note that you probably have to set the DMA mode for your drive as well. Most DVD-ROMs work fine with multiword DMA mode 2. You can use hdparm -d1 -X34 /dev/hdd (as root again) to set this mode. Maybe UDMA2 will give you even better performance, but it only works well with some controllers. You´ll probably need UDMA capable IDE cables for this mode. If you want to try: make backups of your important data and type (as root again) sync hdparm -d1 -X66 /dev/hdd If your System still works fine after this, you probably want to keep these settings (add them to some boot script). If your system hangs or behaves very strangely after a few minutes, you should reboot immediately and never use this setting again on this machine. Good luck ;-) press <enter> to continue... [ good ] found xvinfo: X-Video Extension version 2.2 [ good ] your Xv extension supports YV12 overlays (improves MPEG performance) [ good ] your Xv extension supports YUY2 overlays [ good ] Xv ports: YUY2 UYVY YV12 I420 naja, scheint nicht alles perfekt zu lauffen. Ich bin gerade dabei, DMA zu aktivieren aber funktioniert nicht # hdparm -d1 /dev/hdd bash: hdparm: command not found aber komischerweise "man hdparm" findet er. Müßen alles [Ouches] noch begradigt werden, um DVD´s abspielen zu können? Welche plugins sind elemtar? kann ich die dann über yum install xine-[plugin] name installieren? Würde mich freuen, wenn mir jemand ein paar Lösungsansätze geben könnte. Gruß TicTac

Antwort 1 von WIXP

Fedora ist nicht so der Hit. Wegen solcher und ähnlicher Macken habe ich mich für eine andere Distribution entschieden.
Außerdem kann man hdparm nur als root aktivieren. Steht übrigens auch in der Ausgabe. Oder man startet hdparm für das entsprechende Laufwerk gleich beim booten mit dem Bootmanager.

WIXP

Antwort 2 von TicTac

als root war ich ja angemeldet... deswegen ja die raute #

zu Deinem "Tip" zur Distribution; Jedem das seine

was meinst du hdparm gleich beim booten starten? (Kann mir nichts dazu vorstellen?) Wo beim Bootmanager?

Antwort 3 von stefanix

Du musst die w32codecs installieren und was du sonst noch so an Codecs finden kannst, schau mal bei Fedora auf die Webseite.
hdparm -d1 /dev/hda für die erste Festplatte als root, hdb, hdc, hdd für die folgenden IDE-Geräte
hdparm --help für Hilfe ,-)
Du kannst den Befehl in ein startskript schreiben, welches beim Booten ausgeführt wird, z.B. unter Debian in /etc/init.d/bootmisc.sh. Unter Fedora musst du mal gucken.

Antwort 4 von TicTac

xine-plugins w32

ich kompilier gerade xine selber..... dauert nur leider scheinbar noch etwas. ;-)
Scheinbar werden dann alle notwendigen w32 codecs installiert. (hoffentlich)

hdparm

hdparm --help geht leider nicht. (bash: hdparm: command not found)
aber warum zum Teufel funktioniert aber "man hdparm"?

shell script

/etc/init.d/bootmisc.sh finde ich leider nicht...

aber dafür etwas namens bootparamd (shell script)
ist das, das Fedora Äquivalent zu bootmisc?

noch ne andere Frage!
shell skript = .sh ????

Antwort 5 von WIXP

Schau mal bei dir unter Dienste nach ob da was ist das dir hdparm gleich beim Booten mitstarten kann. Oder gibt es dieses Tool in dem man Dienste starten/stoppen kann bei Fedora nicht mehr? :o

>ich kompilier gerade xine selber.....

Wundere dich aber nicht wenn es vielleicht dann doch nicht geht.

WIXP

Antwort 6 von TicTac

>>ich kompilier gerade xine selber.....

>Wundere dich aber nicht wenn es vielleicht dann doch nicht geht.

hattest recht, ging auch nicht. Die Plugins installier ich jetzt einfach mal per Hand....

hab jetzt rausgefunden warum aber hdparm nicht funktioniert hat. (aber wenn ich ehrlich bin, verstehe ich es nicht)

vorher habe ich mich ganz normal als root angemeldet mit "su".... und es ging nicht.
mit "su -" ging es aufeinmal. Ich weiß nicht wieso, aber es geht.

aber trotzdem danke euch allen!

Antwort 7 von TicTac

Weiß jemand gerade wann man "su -" oder nur " su" nutzen sollte (bzw muß).

Antwort 8 von RTFM

Bei Eingabe von "su -" landest Du im Heimatverzeichnis des Root. Meist nicht sinnvoll.

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: