View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Choppy DVD playback
PostPosted: Mon May 28, 2007 9:42 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
I recently had a problem with choppy DVD playback on DVD movies. I found out that I need to enable DMA to make it stop. I did that by typing the following in the terminal.................
"hdparm -d1 /dev/dvd"
That seemed to fix the problem, but now every time I reboot the system its turned off again.

I searched the forums and found something about editing the "/etc/hdparm.conf" file to do that, but it did not say how I go about editing it or even what I'm supposed to type into it once I do figure out how to edit it.

I am very new to linux so I don't really know how to do even the most basic things in linux, so could somebody please tell me is there any way to make the setting stay on after a reboot?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 10:19 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
See the http://www.knoppmythwiki.org/index.php?page=LinuxTips page on the wiki for some basics on editing files and the like.

As for how to make get the settings applied automatically everytime you reboot see this thread http://mysettopbox.tv/phpBB2/viewtopic.php?t=13089 The bootmisc.sh technique is the simplest if your system isn't running the hdparm init script. There are example commands in the thread for determining if that is the case or not.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 11:24 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Thanks for the guide on basic linux usage....handy.
I'm sure I'm doing something wrong, but I tried adding the following line to the file "/etc/init.d/bootmisc.sh"
"/sbin/hdparm -d1 /dev/dvd"
After rebooting it had no effect....DVD playback was still choppy.

Then I deleted those changes and tried adding the following to the same file.
"
/dev/hda {
dma = on
}

/dev/hdc {
dma = on
}
"
Again after rebooting it had no effect.

After poking through the script I'm guessing that a "#" in the scripts are the same as a "REM" staement in Basic, or a "//Comment//" in C and are ignored by the computer. Is this correct?

I'm sure it something stupid, but I don't know enough about linux to figure out what. Could you please tell me exactly what I have to type and where in order to fix this problem?

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 12:08 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You're thrashing around blindly playing poke and hope and that's generally doomed.

Do the diagnostics. If links to /etc/init.d/hdparm don't show up in the /etc/rc?.d directories when you run the following as root:
Code:
ls -al /etc/rc?.d/ | grep hdparm

Then making changes to /etc/hdparm.conf isn't going to accomplish anything. Once you know if it is or isn't _then_ you can start editing files.

As the old saying goes "measure twice, cut once". If you don't measure at all your chances of getting it right are almost exactly zero.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 7:41 pm 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Thanks for the pointers....especially for the basic linux usage guide....thats gonna come in really handy for me in the future and it explains a lot.
I just got the problem licked it seems, but in case anybody else has the same issues later, I'm gonna post what I did as best as I can remember it here for future reference.

Overview
You need to add the command to enable DMA on the DVD driver to the file "/etc/hdparm.conf" and update the startup file to boot these changes by default. This worked for me so I hope it works for anybody else having the same problem.
These are the steps I took as best as I can remember them.

1 = First open up the console by pressing CTRL+ALT+F1 then login as "root"
2 = At the console type in "nano /etc/hdparm.conf" to open the file with the nano text editor.
3 = At the very bottom of the file add the command to enable DMA by typing in the following..................................
Code:
command_line {
   hdparm -d1 /dev/dvd
}

4 = Then save the file by pressing CTRL+O and exit by pressing CTRL+X
5 = Then make the file update by typing in "update-rc.d hdparm defaults"
6 = Then restart the file to make the settings take effect by typing in "/etc/init.d/hdparm restart"


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu