LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-24-2007, 08:35 PM   #1
JDM7480
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Rep: Reputation: 0
dvd playback issues


Dvds are runnign choppy in xine. I am running fc7, and I need to enable direct memory access to fix that . . .thing is I dont know how. Any kind users out their in forum land that can give me a hand?

Last edited by JDM7480; 07-24-2007 at 08:38 PM.
 
Old 07-24-2007, 08:43 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You usually set that with hdparm. As root run:

# /sbin/hdparm -d1 /dev/hdx

where the 'x' corresponds to the device file for your dvd drive.
 
Old 07-24-2007, 08:49 PM   #3
JDM7480
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Tried that, and it didn't work.

[root@localhost ~]# /sbin/hdparm -d1 /dev/dvd

/dev/dvd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device
 
Old 07-24-2007, 09:58 PM   #4
JDM7480
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I tried adding libata.atapi_enabled=1 to /boot/grub/menu.lst and no help there. Removing it and going back to the drawing board
 
Old 07-25-2007, 11:10 AM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Is that a sata dvd drive? If so, hdparm will refuse to set it in dma mode; at least that was true in the past. Don't know if there's any fix for it; there have been so many changes in libata and how sata is handled that it's hard to keep track.
 
Old 07-26-2007, 12:01 AM   #6
JDM7480
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kilgoretrout
Is that a sata dvd drive? If so, hdparm will refuse to set it in dma mode; at least that was true in the past. Don't know if there's any fix for it; there have been so many changes in libata and how sata is handled that it's hard to keep track.
its an ide drive. Why everything is coming up sdx instead of hdx I have no clue. I checked the dvd link is /dev and it points to scd0 if that helps.

heres some output from hdparm is it helps

# hdparm -i /dev/scd0

/dev/scd0:

Model=DVDRW USB1008UI , FwRev=VER 0159, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4
AdvancedPM=no

* signifies the current active mode
# /sbin/hdparm -d1 /dev/dvd

/dev/dvd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device

Any kind users out their in forum land that can give me a hand?

EDIT

I tried # hdparm -I /dev/dvd

/dev/dvd:
HDIO_DRIVE_CMD(identify) failed: Input/output error

so I might have some deepet issue
 
Old 07-26-2007, 03:08 AM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
In the most recent kernels, ide is being handled by libata and, at least for hard drives, the device file is of form sdx and scsi protocol is being used like for sata. Apparently, this also applies to ide optical drives as well. Checked my fc7 box at home and have the same scd0 designation but my dvds play fine without dma enabled. It's not possible or necessary to set dma on devices handled by libata AFAIK. For example, I can't set dma on my sata hard drives but they run faster than my ide drives with dma enabled.

Don't really know where you can go from here. It might be something specific to your hardware. Try checking your motherboard chipset for issues with the most recent kernels.
 
Old 07-26-2007, 01:17 PM   #8
JDM7480
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
The drive ran fine with fc 5 and 6. Looks like somthing I'm going to have to do alot of looking into.
 
Old 08-28-2007, 01:30 PM   #9
JDM7480
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I just wanted to pop by and report in it seems the last round of updates fixed the issue.
 
  


Reply


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
DVD Playback Xswitch SUSE / openSUSE 10 04-05-2006 06:38 AM
DVD Playback Issues - DMA Problem? rnmartinez Linux - Software 1 06-14-2004 12:58 AM
Automount DVD and playback when DVD installed khurtwilliams Linux - Software 2 05-28-2004 01:28 PM
dvd playback pirozzi Fedora 3 04-05-2004 05:25 AM
dvd playback mbegovic Mandriva 2 01-12-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:47 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