Hi - When I play DVDs with Xine (v0.9.20) on SuSE 8.1, I get dropped frames and a jerky playback. It also seems jerky with the MPlayer supplied with SuSE 8.1. I have read messages on the mailing list about dropped frames before, and the answer seems to be to enable DMA for the DVD drive. However, I don't know how to do this for a DVD drive running under scsi emulation which is what I think I've got. (/dev/dvd points to /dev/sr1). Can anyone tell me how I fix this? I ran xine-check and it said ================================================== [ hint ] Your DVD drive seems not to be attached via ATAPI. This might be due to the use of an ide-scsi emulation. If you really have a SCSI DVD drive, your SCSI controller is likely to do perfect DMA, so there's no reason to worry about this. However, if you're using ide-scsi, there is a chance that DMA is disabled for the DVD drive. Moreover, I don't know how to enable DMA in that case, so you probably have to live with some performance loss. (FIXME: check for /proc/ide, provide solution) ============================================= which isn't supremely helpful. Regards - Ken
On Sat, 2 Aug 2003 15:03:08 +0100
Kenneth Payne
Can anyone tell me how I fix this?
You might be able to do it by putting the device name in /etc/sysconfig/hardware. Take a look at that file. Charles -- "Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs." (By Dennis Ritchie)
Charles - Thanks for your interest in my problem. I looked at the hardware file and it has this in it # # force dma to "on" for the following ide devices # DEVICES_FORCE_IDE_DMA_ON="" # # force dma to "off" for the following ide devices # DEVICES_FORCE_IDE_DMA_OFF="" Given that it says "ide devices" I don't know whether I'm allowed to put /dev/sr1 in here. Also - does it take a reboot to put the new options into effect or can I run SuSEConfig? Best wishes - Ken On Saturday 02 August 2003 3:11 pm, Charles Philip Chan wrote:
On Sat, 2 Aug 2003 15:03:08 +0100
Kenneth Payne
wrote: Can anyone tell me how I fix this?
You might be able to do it by putting the device name in /etc/sysconfig/hardware. Take a look at that file.
Charles
On Sat, 2 Aug 2003 15:30:59 +0100
Kenneth Payne
Given that it says "ide devices" I don't know whether I'm allowed to put /dev/sr1 in here.
Google is your friend: http://groups.google.com/groups?q=scsi+emulation+dma+turn+on+linux&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=5.1.0.14.1.20020819153832.020ec500%40celine.lucky.linux.newbie&rnum=2 Charles -- "We all know Linux is great...it does infinite loops in 5 seconds." (Linus Torvalds about the superiority of Linux on the Amterdam Linux Symposium)
Charles -- Google is indeed my friend. hparm -d 1 /dev/hdd worked wonders for dvd playback. I'm once again a happy bunny. Thank you once again for all your help. Much appreciated. Best wishes - Ken On Saturday 02 August 2003 3:32 pm, Charles Philip Chan wrote:
On Sat, 2 Aug 2003 15:30:59 +0100
Kenneth Payne
wrote: Given that it says "ide devices" I don't know whether I'm allowed to put /dev/sr1 in here.
Google is your friend:
http://groups.google.com/groups?q=scsi+emulation+dma+turn+on+linux&hl=en&lr =&ie=UTF-8&oe=UTF-8&selm=5.1.0.14.1.20020819153832.020ec500%40celine.lucky.l inux.newbie&rnum=2
Charles
On Sat, 2 Aug 2003 15:52:19 +0100
Kenneth Payne
hparm -d 1 /dev/hdd
You might want to add either the -c 1 or -c 3 switch also. This turns on 32-bit file access. Please refer to the hdparm manpage. Charles -- "The world is beating a path to our door" -- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)
Charles - Thanks. I'll take a look at hdparm again, but DVD playback is great as it is. Best wishes - Ken On Saturday 02 August 2003 3:53 pm, Charles Philip Chan wrote:
On Sat, 2 Aug 2003 15:52:19 +0100
Kenneth Payne
wrote: hparm -d 1 /dev/hdd
You might want to add either the -c 1 or -c 3 switch also. This turns on 32-bit file access. Please refer to the hdparm manpage.
Charles
-----Original Message-----
From: Kenneth Payne
Charles -
Thanks for your interest in my problem. I looked at the hardware file and it has this in it
# # force dma to "on" for the following ide devices # DEVICES_FORCE_IDE_DMA_ON=""
As it states IDE devices go here.
# # force dma to "off" for the following ide devices # DEVICES_FORCE_IDE_DMA_OFF=""
Nothing here unless you want DMA off.
Given that it says "ide devices" I don't know whether I'm allowed to put /dev/sr1 in here.
Also - does it take a reboot to put the new options into effect or can I run SuSEConfig?
Yes to both.
Best wishes
- Ken
On Saturday 02 August 2003 3:11 pm, Charles Philip Chan wrote:
On Sat, 2 Aug 2003 15:03:08 +0100
Kenneth Payne
wrote: Can anyone tell me how I fix this?
You might be able to do it by putting the device name in /etc/sysconfig/hardware. Take a look at that file.
Charles
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Ken - Thanks for your interest in my DVD problem. But I'm glad to say it's solved. I needed to switch on DMA for /dev/hdd. (It was Charles Philip Chan on this mailing list who sorted me out). Thanks again and best wishes. - Ken Payne On Saturday 02 August 2003 6:11 pm, Ken Schneider wrote:
-----Original Message----- From: Kenneth Payne
To: suse-linux-e@suse.com Date: Sat, 2 Aug 2003 15:30:59 +0100 Subject: Re: [SLE] DVD jerky playback Charles -
Thanks for your interest in my problem. I looked at the hardware file and it has this in it
# # force dma to "on" for the following ide devices # DEVICES_FORCE_IDE_DMA_ON=""
As it states IDE devices go here.
# # force dma to "off" for the following ide devices # DEVICES_FORCE_IDE_DMA_OFF=""
Nothing here unless you want DMA off.
Given that it says "ide devices" I don't know whether I'm allowed to put /dev/sr1 in here.
Also - does it take a reboot to put the new options into effect or can I run SuSEConfig?
Yes to both.
Best wishes
- Ken
On Saturday 02 August 2003 3:11 pm, Charles Philip Chan wrote:
On Sat, 2 Aug 2003 15:03:08 +0100
Kenneth Payne
wrote: Can anyone tell me how I fix this?
You might be able to do it by putting the device name in /etc/sysconfig/hardware. Take a look at that file.
Charles
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Ken -
Thanks for your interest in my DVD problem. But I'm glad to say it's solved. I needed to switch on DMA for /dev/hdd. (It was Charles Philip Chan on this mailing list who sorted me out).
Thanks again and best wishes.
- Ken Payne
On Saturday 02 August 2003 6:11 pm, Ken Schneider wrote:
-----Original Message----- From: Kenneth Payne
To: suse-linux-e@suse.com Date: Sat, 2 Aug 2003 15:30:59 +0100 Subject: Re: [SLE] DVD jerky playback Charles -
Thanks for your interest in my problem. I looked at the hardware file and it has this in it
# # force dma to "on" for the following ide devices # DEVICES_FORCE_IDE_DMA_ON=""
As it states IDE devices go here. ================= Kenneth, What Ken was trying to point out in his mail was not so much how to fix your problem as how to make it a permanent fix. If you never reboot, just issuing the command hdparm will get it going, as you found out and it will last, until your next reboot. So if you want it to have DMA turned on with each boot, then go to the file and add /dev/hdd to that
On Saturday 02 August 2003 02:56 pm, Kenneth Payne wrote: line. # # force dma to "on" for the following ide devices # DEVICES_FORCE_IDE_DMA_ON="/dev/hdd" Pat -- --- KMail v1.5.3 --- SuSE Linux Pro v8.2 --- Registered Linux User #225206 On any other day, that might seem strange...
On Sat, 2 Aug 2003 19:55:22 -0400
BandiPat
So if you want it to have DMA turned on with each boot, then go to the file and add/dev/hdd to that line. ...
I prefer dropping the hdparm command into boot.local- that way you can specify more options. Charles -- "All language designers are arrogant. Goes with the territory..." (By Larry Wall)
On Saturday 02 August 2003 10:31 pm, Charles Philip Chan wrote:
On Sat, 2 Aug 2003 19:55:22 -0400
BandiPat
wrote: So if you want it to have DMA turned on with each boot, then go to the file and add/dev/hdd to that line. ...
I prefer dropping the hdparm command into boot.local- that way you can specify more options.
Charles
Well, yes Charles, so do I, but baby steps. Let him learn the system before getting in the deep end of the pool. ;o) Pat -- --- KMail v1.5.3 --- SuSE Linux Pro v8.2 --- Registered Linux User #225206 On any other day, that might seem strange...
Pat - Thanks for the clarification. I'd actually intended to use Yast2 to set the DMA mode so it lasted through reboots. I always knew you could do that for ide devices. My problem was that I wasn't sure of the relationship between scsi emulation and ide devices. I also didn't know which particular device represented /dev/sr1. By the way, what's all this about "reboots" - this is a Linux system. Uptime 72 days and counting! Anyway, thanks to everyone who gave me advice. Best wishes - Ken On Sunday 03 August 2003 12:55 am, BandiPat wrote:
Kenneth, What Ken was trying to point out in his mail was not so much how to fix your problem as how to make it a permanent fix. If you never reboot, just issuing the command hdparm will get it going, as you found out and it will last, until your next reboot. So if you want it to have DMA turned on with each boot, then go to the file and add /dev/hdd to that line.
# # force dma to "on" for the following ide devices # DEVICES_FORCE_IDE_DMA_ON="/dev/hdd"
Pat
participants (4)
-
BandiPat
-
Charles Philip Chan
-
Ken Schneider
-
Kenneth Payne