LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DMA for a DVD Drive? (https://www.linuxquestions.org/questions/linux-newbie-8/dma-for-a-dvd-drive-26997/)

Morpheusman 08-01-2002 03:00 PM

DMA for a DVD Drive?
 
How do I configure Linux to enable DMA on start-up for a DVD drive.

I've installed Ogle so that I can use my computer to watch DVDs, however, the playback stutters terribly. From some searches I've done on the web it looks like I need to use a "hdparm" command, but I don't know how or where to input the command to enable DMA at start-up.

Operating System: Red Hat 7.3
Processor: Celeron 566@850
Memory: 96MB of Junk Memory
Video Card: Radeon 32MB DDR LE
DVD: ASUS E616 (capable of UDMA100)
Hard Drive: IBM GXP75 - 45GB

webtoe 08-01-2002 03:22 PM

read man hdparm for the correct parameters to use.

WARNING: I am no expert at this and only use hdparm on my hard drives with no obvious speed boost. This may not fix your prob and may rodger things in a good and proper fashion. Read the texts first so you can decide on the safety of the procedure yourself.

from my reading this is what you need. you'll need to be root by typing su and then the root password (this is all done at the command line)
Code:

hdparm -x34 d1 /dev/yourdvddrive
If that work ok then put it in your start up script rc.local. I don't use red hat so only know that this file is somewhere in /etc/rc.d/

to check it is working use the following commands before and then after the previous command (not sure whether this works with DVD drives [not sure any of this does] but you'll definately need a data cd in it of some description).

Code:

hdparm -tT /dev/DVDdevice
This will give you information about the throughput of the ide device.

That may work though that last command will need to be done several times to get an average (preferably with as few processes running as possible) of the speed of your drive interface.

On a side note, what may make things wizz a long at a better pace would be to make sure that your ide bus is nipping along at its fastest capable speed. ask if you need more help on how to do this (if not dfone already).

Alex

P.S. wow, 300 posts now......

Morpheusman 08-01-2002 04:58 PM

Thanks Webtoe, I'll try it.

Morpheusman 08-02-2002 04:56 PM

Got it working last night. If anyone is interested, the actual command for my system was:

hdparm -d1 /dev/cdrom

(Red Hat sees my DVD as a cdrom, although it still plays DVDs)

Thanks again Webtoe!


All times are GMT -5. The time now is 04:12 PM.