Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-21-2005, 05:45 AM   #1
Registered: Sep 2003
Location: Manchester UK
Posts: 261

Rep: Reputation: 30
Question DMA Mode won't stay set to "ON".

Hi guys,
I'm having a problem with setting the DMA flag on my dvd drive. I'm running Ubuntu hoary on a Toshiba A30-104 laptop, and I'm experiencing choppy playback from DVD's. I know that the problem is that DMA is not turned on (tested it), and I can turn it on for a single session easily enough using:

me@box:~$ sudo hdparm -d 1 /dev/hdc

 setting using_dma to 1 (on)
 using_dma    =  1 (on)
This turns it on for a single session - it also works if I do the same on /dev/cdrom or /dev/dvd, as these are both symbolic links to /dev/hdc.

I have also tried

me@box:~$ sudo hdparm -d 1 -k 1 /dev/hdc

 setting using_dma to 1 (on)
 setting keep_settings to 1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
From what I've read from "man hdparm" the -k switch should keep the settings after a reset, but it doesn't, or I'm misreading it's usage?

When I run the setup wizard on GXine, I get the following:

FAILED - DMA not turned on for /dev/dvd.

If you are using the ide-cd module ensure that you have the following entry in /etc/modules.conf:
options ide-cd dma=1
Reload ide-cd module
otherwise run hdparm -d 1 on your dvd-device.

I don't have an /etc/modules.conf, but I do have an /etc/modules which looks like:


# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.


I have tried to set dma=1 in here like the GXine wizard says, but it doesn't seem to make a difference.

Does anyone know how I can set dma mode to on permanently so I don't have to run hdparm each time I want to watch a DVD?
Old 09-21-2005, 01:54 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
just put the hdparm command at the end of your boot scripts
Old 09-23-2005, 04:55 AM   #3
Registered: Sep 2003
Location: Manchester UK
Posts: 261

Original Poster
Rep: Reputation: 30
I thought of that but I haven't tried it - is there any script in particular where it belongs? Also, what about requiring root permissions to run hdparm? How will that affect it if I put it in the boot script?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM
Error starting Unreal Tourn. 2004 Demo: "Couldn't set video mode..." Baix Linux - Software 2 06-29-2004 11:23 PM
"Could not set monitor mode" in AirSnort on LinkSys WPC11 v2 WolfBLN Linux - Wireless Networking 0 04-30-2004 06:14 AM
Airsnort Error "could not set monitor mode" evil357 Linux - Wireless Networking 4 04-24-2004 04:21 PM

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration