LinuxQuestions.org
Review your favorite Linux distribution.
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 02-27-2004, 06:00 AM   #16
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Original Poster
Rep: Reputation: 31

Thanks megaspaz, it's much better since I enabled dma.
 
Old 05-09-2005, 10:12 AM   #17
aes canis
Member
 
Registered: May 2005
Location: Finland
Distribution: Slackware 13.37, Ubuntu 10.10
Posts: 123

Rep: Reputation: 15
I read through this (and a few other related topics) because of jerky DVD video playback.
I tried several of megaspaz's tips, and things are a bit better - the picture is clearer (no horizontal lines) but it still freezes every second or so.

I tried -a1 -c1 /dev/dvd, and got:
Code:
/dev/dvd:
 setting fs readahead to 1
 setting 32-bit IO_support flag to 1
 IO_support   =  1 (32-bit)
 readahead    =  0 (off)
:~ # hdparm -a1 /dev/dvd
then hdparm -a1 /dev/dvd, but still get:
Code:
/dev/dvd:
 setting fs readahead to 1
 readahead    =  0 (off)
:~ # hdparm -a1 /dev/dvd
Does this mean that 'readahead' is not being enabled?

The overall system specs are:
AMD K6-2 450MHz o/ced to 500MHz
512MB RAM
ATi Radeon 7500 with 3D Acc enabled
Toshiba DVD-ROM SD-M1202 with DMA enabled.

I know it's nothing close to modern, but it played DVDs OK when running Windows 98, had an 8MB graphics card and was at 450MHz.
 
Old 05-09-2005, 07:38 PM   #18
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Did you enable DMA with the "-d" option?
 
Old 05-10-2005, 11:32 PM   #19
aes canis
Member
 
Registered: May 2005
Location: Finland
Distribution: Slackware 13.37, Ubuntu 10.10
Posts: 123

Rep: Reputation: 15
Yes, but DMA is already enabled (through YaST) from boot up on all drives.

I now get readahead enabled, and the picture quality is better, that is, no ghosting, but it is still jerky.

before running Xine, in a terminal I type:
hdparm -a1 -b1 -c1 -d1 /dev/dvd

This ensures that readahead, 32 bit IO support, DMA and something else (not sure what the "bus state" is...)

One other question, how do I set readahead to be enabled by default at boot up?
What file do I need to edit?
 
Old 05-15-2005, 08:48 PM   #20
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Can't set DMA on either

I've been following this thread because I can't set DMA for my new DVD ROM /dev/hdc. I also have an /dev/hdd which is a CDRW and am running SuSE 9.3. Command line konsole outputs for the commands outlined in the thread follow:

fragos@linux:~> su
Password:
linux:/home/fragos # hdparm -d1 /dev/hdc

/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
linux:/home/fragos # hdparm -d1 /dev/hdd

/dev/hdd:
setting using_dma to 1 (on)
using_dma = 1 (on)
linux:/home/fragos #

linux:/home/fragos # hdparm -I /dev/hdc

/dev/hdc:

ATAPI CD-ROM, with removable media
Model Number: LITE-ON DVD SOHD-16P9S
Serial Number:
Firmware Revision: FS07
Standards:
Used: ATAPI for CD-ROMs, SFF-8020i, r2.5
Supported: CD-ROM ATAPI-2
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(cannot be disabled)
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=227ns IORDY flow control=120ns
linux:/home/fragos #

linux:/home/fragos # hdparm -tT /dev/hdc

/dev/hdc:
Timing cached reads: 704 MB in 2.00 seconds = 351.53 MB/sec
Timing buffered disk reads: 4 MB in 3.70 seconds = 1.08 MB/sec
linux:/home/fragos #

linux:/home/fragos # hdparm -v /dev/hdc

/dev/hdc:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument
linux:/home/fragos #
 
Old 05-16-2005, 09:45 AM   #21
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well I'm out of ideas. I did have jerky playback once after I fried my power supply. Never solved it but I didn't know about hdparm back then... So I guess I just don't know.
 
Old 06-05-2005, 03:52 AM   #22
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
One the command below is run, is it set forever as such or is there a file I will need to edit to make the change permanent

Code:
/sbin/hdparm -d1 /dev/hdb
 
Old 06-05-2005, 10:23 AM   #23
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
you need to add it to a script, reboot will reset the change
 
Old 06-05-2005, 07:01 PM   #24
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
If you use YaST to turn DMA on it will be a permanent change. For me, I find command line great for diagnosis but since I often have to ask where to make things permanent -- I use YaST for most configuration tasks. By the way, my problem turned out to be two fold. First the replacement drive I bought had a hardware problem. The second was a configuration issue which I solved by using mplayer and kmplayer. Kmplayer sets up xine and mplayer with an easy to use GUI. I'm back to my older DVD-ROM and all works well.
 
Old 06-06-2005, 09:28 AM   #25
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Oh yeah I figured that YaST would solve all
 
  


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
Video Playback-speeded up audio & video howone SUSE / openSUSE 1 10-20-2005 01:24 AM
A solution for vpd keys error and jerky video fraz Linux - Hardware 5 09-27-2005 07:20 PM
GnomeMeeting Jerky Video - Can You Help? mac57 Mandriva 1 02-08-2005 02:52 PM
GnomeMeeting Jerky Video - Can You Help? mac57 Linux - Software 1 02-08-2005 12:26 PM
video playback evil_lafta Linux - Software 2 12-02-2002 06:40 AM

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

All times are GMT -5. The time now is 01:42 PM.

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