Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iBook DVD playback problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
BetterUnborn
n00b
n00b


Joined: 28 Sep 2004
Posts: 57
Location: Germany

PostPosted: Tue Nov 09, 2004 9:10 pm    Post subject: iBook DVD playback problems Reply with quote

Hi.

I have a strange problem with my iBook:
DVD playback is veeeeeeeery slow, it seems that I have only 3-5fps (of course depending on scene motion). The strange thing about that: my system seems to be set up properly, for divx and mpeg playback is smooth, as it should be.

It must be something specific with dvd, not the video output config, because it doesn't get any better using annother vo device, it doesn't even matter if i'm on fs or not!

The hardware should be sufficient for dvd playback, it is a 700MHz G3, graphics is a Radeon Mobility M7. I'm wondering whether the transfer reates for data from the dvd-device are high enough, but the drive is in mdma2-mode and I can use it at full speed (24x) reading CDs. I think its a quad speed DVD.
With (s)vcd things are slightly better, but high-quality svcds won't run smoothly as well.

Oh yes, here's some detail on my system:
gentoo 2004.3 profile
kernel: 2.6.9-gentoo-r1 (but same thing with pegasos-sources)
xorg-x11-6.7.0-r2
opengl-update set to xorg, glxgears gives ~430fps

in xorg.conf:
video driver: radeon
Option UseFBDev True (but this has no effect)
no dualhead enabled
modules drm, dri and glx loaded

So what other reason could there be that playback doesn't work well??

BTW: DVD playback is smooth under MacOSX!! It is some HW configuration problem, but I have no idea what I forgot!!
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Nov 09, 2004 11:07 pm    Post subject: Reply with quote

What program are you using for DVD playback?
Are there any messages in dmesg or on the console when playing DVDs?
Back to top
View user's profile Send private message
BetterUnborn
n00b
n00b


Joined: 28 Sep 2004
Posts: 57
Location: Germany

PostPosted: Wed Nov 10, 2004 3:02 pm    Post subject: Reply with quote

I use mplayer 1.0pre4, but it's the same with xine and vlc.
mplayer gives this warning at startup:
Code:
Linux RTC init error in ioctl (rtc_irqp_set 1024): Das Argument ist ungültig
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startupscripts.
Using usleep() timing

Although I have rtc compiled into the kernel and /dev/rtc exists. But there isn't a /proc/sys/dev/rtc directory!
Apart from that, everything looks fine when starting a playback.
And, of course, I've tried several mplayer options (for caching, pp e.a.) and this brought no solution, too.

dmesg doesn't change when starting dvd playback, it says the following on startup:
Code:
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
hdb: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
hdb: Set MDMA timing for mode 2, reg: 0x0001978c
hdb: Enabling MultiWord DMA 2

looks fine to me.

Just to make it complete: here's my full dmesg:
Code:
b104
IN from bad port 64 at c011b104
IN from bad port 64 at c011b104
i8042.c: i8042 controller self test timeout.
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
IN from bad port 3f9 at c011f67c
IN from bad port 2e9 at c011f67c
pmac_zilog: 0.6 (Benjamin Herrenschmidt <benh@kernel.crashing.org>)
pmac_zilog: Error registering serial device, disabling pmac_zilog.
pmac_zilog: Did another serial driver already claim the minors?
mice: PS/2 mouse device common for all mice
loop: loaded (max 8 devices)
sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com)
eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:93:c0:b6:c0
PHY ID: 4061e4, addr: 17
eth0: Found BCM5221 PHY
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
MacIO PCI driver attached to Pangea chipset
input: Macintosh mouse button emulation
apm_emu: APM Emulation 0.5 initialized.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
adb: starting probe task...
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
Detected ADB keyboard, type ISO, swapping keys.
input: ADB keyboard on adb2:2.c4/input
input: ADB Powerbook buttons on adb7:7.1f/input
ADB mouse at 3, handler set to 4 (trackpad)
input: ADB mouse on adb3:3.01/input
adb: finished probe task...
ide0: Found Apple KeyLargo ATA-4 controller, bus ID 2, irq 19
Probing IDE interface ide0...
hda: TOSHIBA MK3018GAS, ATA DISK drive
hdb: SONY CD-RW CRX800E, ATAPI CD/DVD-ROM drive
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
hdb: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
hdb: Set MDMA timing for mode 2, reg: 0x0001978c
hdb: Enabling MultiWord DMA 2
Using cfq io scheduler
ide0 at 0xe9012000-0xe9012007,0xe9012160 on irq 19
hda: max request size: 128KiB
hda: 58605120 sectors (30005 MB), CHS=58140/16/63, UDMA(33)
hda: cache flushes supported
 /dev/ide/host0/bus0/target0/lun0: [mac] p1 p2 p3 p4 p5 p6
hdb: ATAPI 24X DVD-ROM CD-R/RW drive, 8192kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
PCI: Enabling device 0001:10:18.0 (0000 -> 0002)
ohci_hcd 0001:10:18.0: Apple Computer Inc. KeyLargo/Pangea USB
ohci_hcd 0001:10:18.0: irq 27, pci mem e9022000
ohci_hcd 0001:10:18.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Enabling device 0001:10:19.0 (0000 -> 0002)
ohci_hcd 0001:10:19.0: Apple Computer Inc. KeyLargo/Pangea USB (#2)
ohci_hcd 0001:10:19.0: irq 28, pci mem e9024000
ohci_hcd 0001:10:19.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
Found KeyWest i2c on "uni-n", 2 channels, stepping: 4 bits
Found KeyWest i2c on "mac-io", 1 channel, stepping: 4 bits
NET: Registered protocol family 2
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
NET: Registered protocol family 1
NET: Registered protocol family 17
usb 1-1: new low speed USB device using address 2
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0001:10:18.0-1
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 152k init 4k chrp 32k prep
Adding 655352k swap on /dev/hda5.  Priority:-1 extents:1
EXT3 FS on hda6, internal journal
SCSI subsystem initialized
tas driver [TAS3004 driver V 0.3])
using i2c address: 0x35 from device-tree
Audio jack unplugged, enabling speakers.
AE-Init snapper mixer
PowerMac Snapper  DMA sound driver rev 016 installed
Core driver edition 01.06 : PowerMac Built-in Sound driver edition 00.07
Write will use    4 fragments of   32768 bytes as default
Read  will use    4 fragments of   32768 bytes as default
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
HFS+-fs warning: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended.  mounting read-only.
PHY ID: 4061e4, addr: 7
eth0: Link is up at 10 Mbps, half-duplex.
eth0: Pause is disabled
[drm] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc Radeon Mobility M6 LY
agpgart: Putting AGP V2 device at 0000:00:0b.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:00:0b.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:00:0b.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 1x mode
eth0: suspending, WakeOnLan disabled
radeonfb: suspending to state: 3...
agpgart: Putting AGP V2 device at 0000:00:0b.0 into 0x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 0x mode
radeonfb: switching to D2 state...
cpufreq: resume failed to assert current frequency is what timing core thinks it is.
radeonfb: switching to D0 state...
radeonfb: resumed !
enable_irq(27) unbalanced
enable_irq(28) unbalanced
eth0: resuming
PHY ID: 4061e4, addr: 0
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
hdb: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
hdb: Set MDMA timing for mode 2, reg: 0x0001978c
hdb: Enabling MultiWord DMA 2
adb: starting probe task...
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
ADB mouse at 3, handler set to 4 (trackpad)
adb: finished probe task...
tas: I2C byte write failed
Audio jack unplugged, enabling speakers.
eth0: Link is up at 10 Mbps, half-duplex.
eth0: Pause is disabled
hdb: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdb: drive_cmd: error=0x04Aborted Command
cdrom: open failed.
eth0: suspending, WakeOnLan disabled
radeonfb: suspending to state: 3...
agpgart: Putting AGP V2 device at 0000:00:0b.0 into 0x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 0x mode
radeonfb: switching to D2 state...
cpufreq: resume failed to assert current frequency is what timing core thinks it is.
radeonfb: switching to D0 state...
radeonfb: resumed !
enable_irq(27) unbalanced
enable_irq(28) unbalanced
eth0: resuming
PHY ID: 4061e4, addr: 0
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
hdb: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
hdb: Set MDMA timing for mode 2, reg: 0x0001978c
hdb: Enabling MultiWord DMA 2
adb: starting probe task...
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
ADB mouse at 3, handler set to 4 (trackpad)
adb: finished probe task...
tas: I2C byte write failed
Audio jack unplugged, enabling speakers.
eth0: Link is up at 10 Mbps, half-duplex.
eth0: Pause is disabled
eth0: suspending, WakeOnLan disabled
radeonfb: suspending to state: 3...
agpgart: Putting AGP V2 device at 0000:00:0b.0 into 0x mode
agpgart: Putting AGP V2 device at 0000:00:10.0 into 0x mode
radeonfb: switching to D2 state...
cpufreq: resume failed to assert current frequency is what timing core thinks it is.
radeonfb: switching to D0 state...
radeonfb: resumed !
enable_irq(27) unbalanced
enable_irq(28) unbalanced
eth0: resuming
PHY ID: 4061e4, addr: 0
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: Enabling Ultra DMA 2
hdb: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
hdb: Set MDMA timing for mode 2, reg: 0x0001978c
hdb: Enabling MultiWord DMA 2
adb: starting probe task...
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
ADB mouse at 3, handler set to 4 (trackpad)
adb: finished probe task...
tas: I2C byte write failed
Audio jack unplugged, enabling speakers.
eth0: Link is up at 10 Mbps, half-duplex.
eth0: Pause is disabled


Some things at the bottom do repeat, because I have software suspend enabled and it went for sleep once.
Back to top
View user's profile Send private message
BetterUnborn
n00b
n00b


Joined: 28 Sep 2004
Posts: 57
Location: Germany

PostPosted: Wed Nov 10, 2004 5:05 pm    Post subject: Reply with quote

And I forgot:
The dvd-device is in 16bit mode, when I try to set it to 32bit (hdparm -c1 or -c3) my system imediately dies. I dunno what causes this and where this comes from, but shouldn't the transfer rates be high enough with 16bit, too?
Back to top
View user's profile Send private message
BetterUnborn
n00b
n00b


Joined: 28 Sep 2004
Posts: 57
Location: Germany

PostPosted: Fri Nov 12, 2004 12:38 pm    Post subject: Reply with quote

So, I've spent a lot of time on this issue ... and I've come further!

The problem is neither with graphics, nor with the dvd-device:
Sound is the source of all that trouble!!

If I switch off sound (-nosound option) I get much smoother playback. I switched to mplayr-cvs and became even better; now it's smooth enough to enjoy it. :D

I used oss (module dmasound_pmac), so I've tried switching to alsa ... everything seems fine, playback stays nearly as smooth as before, but sound has somewhat distorted timings (no matter if I use alsa directly, via oss-API or via sdl) mplayer options didn't help as well.
Btw, this isn't just a problem with mplayer-cvs, xmms and alsaplay have problems with timings, too.

Could it be that alsa uses rtc for sample timings and so the startup error message is the critical point?
Is there anything special I must consider about using rtc on ppc?

One funny thing is, that if I use the -hardframedrop option, the whole playback speeds up (not much, just about 40%), but then sound is fine (apart from the speed) and in sync with the video.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum