View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 41 posts ] 
Go to page Previous  1, 2, 3

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Tue May 01, 2007 9:02 pm 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
I'm getting the a stuttering dvd playback that wasn't fixed when i turned on dma.

I'm using the internal player. I leave the settings the same as the ones that work for hdtv.
My machines are around 2ghz athalon, but since hd is smooth using xvmc i thought dvd's should be easy.

I haven't tried xine yet.

I had to add symbolic links to dvd from hdc
hdc is also mapped to cdrom in my fstab. (does that matter?)


I think dvd was smooth a few releases ago but that was with

edit
found tjc post (just before you replied! thanks)

the following for your dvd player command:
Code:
xine -pfhq --no-splash --no-logo --auto-scan dvd


and now its smooth as butter.
Only now there is no sound but i'm sure i can figure that out pretty easiliy

can't get xine to use alsa device /dev/adsp for ac3 passthrough

Fixed sound by changing /home/mythtv/.xine/config to use alsa device instead of oss


Last edited by randomhtpcguy on Wed May 02, 2007 9:36 am, edited 3 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 01, 2007 9:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
So switch back to xine... I've posted directions a couple times in the last few months, so a quick search should turn them up.


Top
 Profile  
 
 Post subject: bootmisc.sh
PostPosted: Sat May 26, 2007 8:47 am 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
tjc wrote:
You can always add those commands to /etc/init.d/bootmisc.sh if nothing else works.


The "hdparm -d1 /dev/hdc" command enables DMA, but forgets it on reboot. My attempts to fix this have failed. Here is an excerpt from my bootmisc.sh file. Even after reboot, my DVD player had DMA turned OFF. Any thoughts? Is my code incorrect below?

Code:
:
# enable DMA
 /sbin/hdparm -qd1 /dev/hda
 /sbin/hdparm -qd1 /dev/hdc
#


_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 26, 2007 10:23 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
If the CD/DVD drive is old enough or the controller odd enough Linux will ignore requests to enable DMA (for instance it did this on my old Dell box because of known bugs in the controller). You may want to try running the commnd by hand then checking that it took. You may also want to use the -I flag and see what the drives capabilities are.

OBTW - What version of KnoppMyth are you running?


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 26, 2007 12:29 pm 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
The following command actually does enable DMA...until reboot. Then, DMA is off.

Code:
hdparm -d1 /dev/dvd


I'm using R5E50. What is the "-I flag"?

_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 26, 2007 1:16 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Code:
man hdparm


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 26, 2007 3:39 pm 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
tjc wrote:
Code:
man hdparm


Ah. Here is the result:

Code:
root@mythtv:/home/mythtv# hdparm -I /dev/dvd

/dev/dvd:

ATAPI CD-ROM, with removable media
        Model Number:       PIONEER DVD-RW  DVR-111D
        Serial Number:      FHDP310334WL
        Firmware Revision:  1.23
Standards:
        Likely used CD-ROM ATAPI-1
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
Capabilities:
        LBA, IORDY(can be disabled)
        Buffer size: 64.0kB
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=240ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    Power Management feature set
           *    PACKET command feature set
           *    DEVICE_RESET command
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper


Suggestions?

_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 26, 2007 5:23 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Well the drive certainly looks capable. You may still want to google that model number along with "linux" and "dma" to see if it's blacklisted or something.

Other than that...

- Run "lspci | grep IDE" and do the same type of search for that controller model. Dell does some amazingly cheesey stuff to their components to save fractions of a cent. On the last Dell I'll ever buy they saved ~$0.02 by using a below spec line driver for the serial ports which wouldn't run at full speed as a result.

- Check to see if the /etc/init.d/hdparm script is being run at boot time (generally it's not) since it could overide whatever bootmisc.sh sets. Running "locate hdparm | grep /etc/rc" and not getting any hits means it's not enabled.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 8:21 am 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
tjc wrote:
Well the drive certainly looks capable. You may still want to google that model number along with "linux" and "dma" to see if it's blacklisted or something.

RESULT: Working on that...seems some people share my problem. I will edit this post, once I learn more. Update: it appears that some people have motherboard/drive problems which affect DMA. I doubt this was root cause for my (now) solved problem, but I replaced the IDE cable for good luck.

tjc wrote:
- Run "lspci | grep IDE" and do the same type of search for that controller model. Dell does some amazingly cheesey stuff to their components to save fractions of a cent. On the last Dell I'll ever buy they saved ~$0.02 by using a below spec line driver for the serial ports which wouldn't run at full speed as a result.

RESULT:
Code:
root@mythtv:/home/mythtv# lspci | grep IDE
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 12)

tjc wrote:
- Check to see if the /etc/init.d/hdparm script is being run at boot time (generally it's not) since it could overide whatever bootmisc.sh sets. Running "locate hdparm | grep /etc/rc" and not getting any hits means it's not enabled.

RESULT:
Code:
root@mythtv:/home/mythtv# locate hdparm | grep /etc/rc
/etc/rc0.d/K80hdparm
/etc/rc1.d/K80hdparm
/etc/rc2.d/S80hdparm
/etc/rc3.d/S80hdparm
/etc/rc4.d/S80hdparm
/etc/rc5.d/S80hdparm
/etc/rc6.d/K80hdparm

_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Last edited by ihatetivo on Sun May 27, 2007 11:23 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 8:58 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Aha!

OK, if the /etc/init.d/hdparm script is being run you need to either disable it or enable the DVDs DMA using that. It's probably overriding whatever you set in bootmisc.sh.

The settings file for that init script are "/etc/hdparm.conf" and "/etc/default/hdparm". I think you want to work with the first one.


Top
 Profile  
 
 Post subject: SOLVED
PostPosted: Sun May 27, 2007 11:15 am 
Offline
Joined: Tue Jun 27, 2006 5:19 pm
Posts: 100
Location: Naptown, Indiana; USA
tjc wrote:
Aha!

OK, if the /etc/init.d/hdparm script is being run you need to either disable it or enable the DVDs DMA using that. It's probably overriding whatever you set in bootmisc.sh.

The settings file for that init script are "/etc/hdparm.conf" and "/etc/default/hdparm". I think you want to work with the first one.


Many thanks! DMA is remembered after reboot! I changed 2 things:
1. Replaced my IDE cable to the DVD drive
2. Added the following 3 lines to the hdparm.conf:


Code:
/dev/hdc {
       dma = on
}

_________________
R5.5; PVR-250; FX5200; Dell 4300 with Intel Pentium 4 (1.5 GHz);
BIOS Revision A02; 512MB RAM; 500GB PATA HDD


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ] 
Go to page Previous  1, 2, 3



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu