Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-16-2004, 11:54 AM   #1
Iron Monkey
LQ Newbie
Registered: Jul 2004
Location: Someplace cold and squishy
Distribution: Suse 9.1 Pro
Posts: 3

Rep: Reputation: 0
Unhappy Setting DMA for DVD on startup? Script?

Very much a newbie, playing with my new Suse 9.1 install and loving it...

After much board hopping and FAQ reading, I finally got my DVD drive to play movies under Xine, with one catch...

Every time I log in as a user, I have to manually go into the console, log in as root, and do a "hdparm -d 1 /dev/dvd" for my dvd drive to set DMA to 1 to cure it of choppy playback.

Can I write a little script and drop it somewhere so it will automatically set the DMA when I log in as a user? I've googled for the answer but either get an unhelpfully vague "just drop it in your startup scripts" or get buried in information overload.

Old 07-16-2004, 12:50 PM   #2
bruno buys
Senior Member
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Yes you can and its easy. But its yet easier to open yast2 > system > runlevel editor, choose expert mode and set the dma script (read the description at right) to run at boot time, say in runlevel 3.
Old 07-17-2004, 10:05 PM   #3
Iron Monkey
LQ Newbie
Registered: Jul 2004
Location: Someplace cold and squishy
Distribution: Suse 9.1 Pro
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks! Checking back in to say it worked!

Well, the real story is that it worked eventually. Like the newbie that I am, I accidentally was exploring yast and apparently blew away my symbolic links to my cd and dvd drives before finding the DMA setting. Of course, nothing worked when I tried to run xine, and I got many mysterious errors as my dvd failed to work in xine (could not find dev/dvd, driver errors, stuff like that).

I thought I'd killed my machine.

Well, many hours of googling and konsole experimenting later, I got my symbolic links established again (yikes, don't want to go thru that ever again)

Finally, I carefully paid attention while I was in Yast, set the DMA to on, and everything works perfectly now.

Sheesh. Takes me back to the days of config.sys and autoexec.bat tweaking. Linux is a lot like my fiance, wonderful and amazing, but just don't screw up or you'll have many late nights alone


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DMA not enabled during linux startup premsaggar Linux - Hardware 3 12-11-2003 02:31 PM
Setting volume in a startup script Twigathy Mandriva 3 08-25-2003 08:25 AM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 05:58 AM
dma and dvd MightyKC Linux - General 11 07-04-2003 09:29 AM
DVD DMA Dillema bennyp Linux - Software 2 05-01-2003 10:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 AM.

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