You are not logged in.

#1 2008-12-24 17:40:38

sinister99
Member
Registered: 2007-04-10
Posts: 136

[SOLVED] Flash freezes at 2-3 seconds

Most flash videos I try to watch freeze at 2 or 3 seconds, and stop.  They keep loading, but I can't watch them.  This has been a problem for a while, but lately it is happening with about half the videos I watch.  Sometimes it even freezes firefox and I have to terminate it.

Old laptop:
Radeon Xpress 200M - was using fglrx for a long time, and switched to the radeon driver which seems to be better.

Section "Device"
Identifier "Card0"                     # your alias
Driver "radeon"
# Option "XAANoOffscreenPixmaps" "true" #needed for aiglx
Option "AGPMode" "1"
Option "ColorTiling" "on"
Option "EnablePageFlip" "on"

EndSection

I've added all the options recently, and tried AGP mode 1-4.  No change with or without the options.

Composite is disabled in xorg, and I don't use compiz or any of that stuff.

Anyone else getting this?

Last edited by sinister99 (2009-02-02 18:55:11)

Offline

#2 2008-12-28 08:13:29

xia0er
Member
Registered: 2008-03-24
Posts: 9

Re: [SOLVED] Flash freezes at 2-3 seconds

Have you noticed whether the flash video can play sound correct?  I encountered similar problem of flash video stopping after 3 seconds, resetting system sound solved mine (I'm using oss):

sudo /etc/rc.d/oss restart

Offline

#3 2008-12-28 20:00:05

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

Sound is usually messed up for me, its like a broken record, just a blip repeating over and over again.  I'm using alsa.  I'll mess around with sound and see if I get anywhere.

Offline

#4 2008-12-30 23:06:14

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

After messing around with it a bit, I'm almost certain you're right about it being linked to sound.  Whenever it happens, the sound skips.

Can alsa be reset?  /etc/rc.d/alsa restart just saves the levels and reapplies them.

Offline

#5 2009-01-01 21:41:26

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

I've tried manually unloading the sound modules, but some of them can't be removed, even with rmmod -f

Is there anything else I can do to reset alsa?

Offline

#6 2009-01-05 17:28:01

gejr
Member
Registered: 2007-05-23
Posts: 92

Re: [SOLVED] Flash freezes at 2-3 seconds

I have your exact problem too. Did you find a solution?

I have stuttering sound, and the video plays 1-3 seconds then stops. (I'm also pretty sure it's related to sound/alsa problems)

Here's some info, I'll be happy for all suggestions:

[root@machine ~]# lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
Card: HDA Intel
Chip: Generic 10de ID 3
[root@machine ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[root@machine ~]# lsmod | grep snd
snd_seq_oss            31872  0 
snd_seq_midi_event      8192  1 snd_seq_oss
snd_seq                49968  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8332  2 snd_seq_oss,snd_seq
snd_hda_intel         370736  0 
snd_hwdep               8964  1 snd_hda_intel
snd_pcm_oss            40192  0 
snd_pcm                69636  2 snd_hda_intel,snd_pcm_oss
snd_timer              21384  2 snd_seq,snd_pcm
snd_page_alloc          9224  2 snd_hda_intel,snd_pcm
snd_mixer_oss          16512  1 snd_pcm_oss
snd                    50724  9 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8160  1 snd
[root@machine ~]# pacman -Q flashplugin firefox alsa-utils kernel26 alsa-lib libflashsupport
flashplugin 10.0.15.3-1
firefox 3.0.5-1
alsa-utils 1.0.18-1
kernel26 2.6.27.10-1
alsa-lib 1.0.18-1
libflashsupport 9.0.21.78-4

Offline

#7 2009-01-05 17:35:36

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

I haven't found a solution yet.  I'm convinced I just have to reset my sound system (alsa), but I can't unload all my sound modules with rmmod -f.

I've tried downgrading to flash9 in aur, but that didn't help, and also changec my video driver from fglrx to radeon, and that didn't help.

My computer is a laptop with:

**** List of PLAYBACK Hardware Devices ****
card 0: IXP [ATI IXP], device 0: ATI IXP AC97 [ATI IXP AC97]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I've considered switching to oss, but that would mean compiling stuff...

Offline

#8 2009-01-07 01:08:00

xia0er
Member
Registered: 2008-03-24
Posts: 9

Re: [SOLVED] Flash freezes at 2-3 seconds

Sorry I won't be of much help with alsa here.  If you decide to switch to oss it may not be that hard.  The packages I installed are:

alsa-oss 1.0.17-1
gstreamer0.10-good-plugins-ossv4 0.10.8-1 (for volumn control in gnome)
libflashsupport-oss 4.1_1050-1
oss 4.1_1051-1
skype-oss 2.0.0.72-1

There are wiki pages and forum topics on how to get volumn control and suspend/hibernate working with OSS.

Offline

#9 2009-01-07 01:22:40

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

xia0er wrote:

Sorry I won't be of much help with alsa here.  If you decide to switch to oss it may not be that hard.  The packages I installed are:

alsa-oss 1.0.17-1
gstreamer0.10-good-plugins-ossv4 0.10.8-1 (for volumn control in gnome)
libflashsupport-oss 4.1_1050-1
oss 4.1_1051-1
skype-oss 2.0.0.72-1

There are wiki pages and forum topics on how to get volumn control and suspend/hibernate working with OSS.

Question: what exactly does "alsa-oss" do?  Does it let you use alsa apps with oss without them being compiled to do so?

I've looked into oss, but I am hesitant to recompile every program for it.

rant
I just hate to do all this stuff because flash is messing up
/rant

Offline

#10 2009-01-07 08:19:09

gejr
Member
Registered: 2007-05-23
Posts: 92

Re: [SOLVED] Flash freezes at 2-3 seconds

For some reason it works here now. I went to 2.6.28 which didn't play sound at all.. I tried a lot of options in /etc/modprobe.d/sound, but none of them made sound work. Then I rolled back to 2.6.27, and for some unknown reason it works fine now. With flash and sound and everything.

I added this to /etc/modprobe.d/sound, but i really think i've tried that before:

options snd-hda-intel enable_msi=1

Let me know if it works for you too.

Last edited by gejr (2009-01-07 08:20:00)

Offline

#11 2009-01-08 19:54:36

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

I just tried oss, and while I think the sound quality was better, and the volume was louder, it once again started freezing flash on the first flash video :-(

Back to alsa unfortunately.

Offline

#12 2009-01-15 21:26:24

thepanu
Member
Registered: 2009-01-15
Posts: 45

Re: [SOLVED] Flash freezes at 2-3 seconds

Exactly the same problem here so all info that leads to solving this is much appreciated.


What kind of info on my machine I can provide that could be helpful?

Offline

#13 2009-01-15 22:34:01

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

I still haven't solved anything.  Its either an alsa issue or kernel driver issue, but haven't done much more research on it.  It happened to me once when I wasn't using flash.

Offline

#14 2009-01-23 21:55:40

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

This problem is kernel driver related, not flash related.  I did a bunch of searching for my driver snd_atiixp and changed some driver options which make the system last a lot longer before it freezes.  Not a fix, but it is much better now (knock on wood)

Just google your driver and see if anything comes up.

Offline

#15 2009-01-29 15:14:18

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

*Sigh*  I've had this problem in varying degrees since I started using linux on this computer 3 years ago.  After days of searching, compiling kernels, recompiling applications, changing configuration files, trying different sound systems, etc, I'm not debating switching back to windows.  I really don't want to, but that may be better than rebooting the computer every couple hours.

Anyone have any other suggestions first?

I never see any errors in the logs when it happens, is there any way I can debug the problem and send it off to the kernel devs?

Last edited by sinister99 (2009-01-29 15:16:45)

Offline

#16 2009-02-02 18:54:52

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: [SOLVED] Flash freezes at 2-3 seconds

I think I finally solved this.  Here is the pertinent info:

You have to compile your own kernel (I just used kernel26-ice off aur, its easier)
make menuconfig or gconfig or whatever and COMPILE ALSA DIRECTLY INTO THE KERNEL.
Compile your sound module into the kernel
Make sure these are enabled, at least as modules: CONFIG_SND_SEQUENCER CONFIG_SND_SEQUENCER_OSS

If that doesn't work, take a look at this thread, and make sure your kernel is configured like he has it in after http://forums.gentoo.org/viewtopic-p-39 … ml#3956131

It works great for me.  Sometimes after firefox has been open for a day or so it might pop up again, but just restart the browser and it is fine.

Offline

Board footer

Powered by FluxBB