LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-21-2005, 04:45 AM   #1
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 264

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:

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

/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

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

/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:

Code:
/etc/modules:

# /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.

ide-cd
ide-disk
ide-generic
lp
mousedev
psmouse
sbp2
sr_mod

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, 12:54 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
just put the hdparm command at the end of your boot scripts
 
Old 09-23-2005, 03:55 AM   #3
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 264

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?
 
  


Reply



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 04:40 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
Error starting Unreal Tourn. 2004 Demo: "Couldn't set video mode..." Baix Linux - Software 2 06-29-2004 10:23 PM
"Could not set monitor mode" in AirSnort on LinkSys WPC11 v2 WolfBLN Linux - Wireless Networking 0 04-30-2004 05:14 AM
Airsnort Error "could not set monitor mode" evil357 Linux - Wireless Networking 4 04-24-2004 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:07 AM.

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