Full screen Flash EXTREMELY slow with Intel, and I fixed it by sheer luck...

I was going all over the place trying to fix a major problem. Flash in full screen on just 360p was super sluggish (like a really poor slideshow) and it would nearly freeze the system, plus the video controls were unresponsive. This was under a fully updated openSUSE 11.4 system for a new laptop using the i915 Intel driver.

Out of curiosity, I decided to see how it would perform with another distro. I booted from a Fedora 16 live CD, and I could play full screen Flash at even 720p smoothly, and the controls were very responsive.

Odd.

So I booted from an openSUSE 12.1 RC live CD. However, full screen Flash was extremely choppy, just like on 11.4! I tried all combinations of xorg.conf.d options and extensions. Nothing made a difference.

Fedora 16:

  • Flash: 11.1
  • Smoothly plays full screen at 720p; controls are responsive

openSUSE 11.4:

  • Flash 11.1
  • Chokes and nearly freezes the system at only 360p in full screen; controls are unresponsive

openSUSE 12.1:

  • Flash 11.1
  • Chokes and nearly freezes the system at only 360p in full screen; controls are unresponsive

After nearly giving up on trying to change driver options and messing with X.org, I reverted everything on the openSUSE 11.4 back to the defaults. Then I changed one thing, out of curiousity:

I removed the vga=0x317 from the boot options, rebooted, and like magic I can play full screen Flash in 720p smoothly with responsive controls, just like on Fedora 16! Another thing I noticed is that Firefox’s tab animations, among other UI elements, were also smoother now.

My question is, since I’m not a technical guy: Why does this make a difference? I noticed I lost the fancy boot splash, but what else is affected? Is it possible to keep the boot splash without losing the benefits of smoother video playback? All I know is that it has something to do with the framebuffer resolution. Why would that matter after I login to an X session?

If openSUSE uses this boot option by default, it could potentionally cause a new user to leave out of frustration. I’ve been using openSUSE since 11.0, and I was nearly ready to give up. A new user would not have taken nearly as much time as I did in order to find a solution.

What type of intel chipset and graphics do you have? If you don’t know, in a terminal as root (su) run command:

lspci -nnk

Post back with the appropriate lines near the beginning of the results, using CODE tags.

Also, were you at any stage booting with “nomodeset”?

If I use “nomodeset”, then regardless of whether or not I use vga=0x317, Flash will perform better than the default boot options, but not as well as when I removed vga=0x317 and did not add “nomodeset”. Confusing, huh? I noticed that the only way to get a boot splash is to use “vga=something”, because without, even with “splash=silent”, I see only text.

In short:

  • Removing “vga=” gives me: No boot splash; Best Flash performance
  • Using “nomodeset” gives me: Boot splash (unless I remove “vga=”); Adequate Flash performance
  • Using default (“vga=0x317” witout “nomodeset”) gives me: Boot splash; Horrendous Flash performance

I won’t have this laptop for much longer, but here is the output you requested:

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
	Subsystem: Toshiba America Info Systems Device [1179:fce0]
	Kernel driver in use: i915

This sounds like a kernel mode setting (KMS) issue that would probably need a bug report to openSUSE’s Bugzilla. In some circumstances (I don’t recall previous hardware affected - you would need to search the forum or google), the vga parameter has caused problems for KMS and removing it has been a workaround.

You can confirm which graphics driver is loaded and utilized by inspecting the log file /var/log/Xorg.0.log that is rewritten on each startup of X or reboot. The driver’s name appears on the left side of each log entry.

When you boot with “nomodeset”, KMS is disabled. The “intel” driver (i915 is the kernel module) only works with KMS, so in this case a basic graphics driver called “fbdev” will be used by xorg, giving inferior performance and limited resolution (probably 1024x768). You probably noticed that, and the use of “vga=” won’t adversely affect it. Again, look for “FBDEV” in the appropriate Xorg.0.log for that test.

Another option is to load the old “intellegacy” driver by configuring the appropriate file in xorg.conf.d, but it’s unlikely to support your newer graphics chipset (Sandybridge?).

Unfortunately, the laptop is not in my possesion anymore, since I was initially setting it up for someone else. He doesn’t mind the white-on-black text boot, so at least in this case it was acceptable. The best I can do for a bug report is essentially what I already mentioned here, but I would not be able to follow through, since I don’t have the laptop with me.

I believe version 2.9.1 was the last intel driver to support non-KMS. Whenever I booted with “nomodeset” on this laptop, the resolution was 1024x768, yet full screen Flash ironically peformed better than without “nomodeset” (using vga=0x317). “Fbdev” performing better than “intel”? I had tried using the intellegacy driver during my back and forth tests, and the system would not start X. Like you mentioned, the chipset is too new for intellegacy. Yes, it is Sandybridge.

I will also mention one more thing I remembered. With the default (vga=0x317 without nomodeset), switching between TTYs was slow to draw the screen. I could feel a bit of a lag. Upon removing vga=0x317 (still, without nomodeset), switching between TTYs was quick and snappy.

Yes, “intellegacy” is that 2.9.1 driver and is non-KMS. “Fbdev” better than “intel”? Yes because “intel”/KMS support for that laptop’s chipset is either broken or not there! Unfortunately, from your testing, 12.1 doesn’t appear to offer a solution either.

BTW, my somewhat older intel GM45 chipset is properly supported by “intel”/KMS on both 11.4 and Tumbleweed. The “vga=” boot option is present here [by default] without problems.

Just for acuaracy
I wasn’t aware that either Fedora or openSUSE have Flash in the LiveCD, which is how this reads.
What are we to conclude then, that you put flash in place manually?

:smiley: Just for accuracy

However, your query deserves an answer. :slight_smile:

Yes. Adobe’s web site has the latest version (11.1) of Flash in .tar.gz format. You simply extract it into ~/.mozilla/plugins/

But I believe the performance of Flash was just a symptom of a larger problem, since I noticed other things performed better upon removing vga=0x317, such as UI elements and animations, switching TTYs, and less CPU usage by Xorg (quieter fans too.) So I think full screen Flash just made it really obvious that a larger underlying problem was occuring. If one scenario chokes at full screen 360p and the other scenario smoothly plays full screen 720p, then I couldn’t ignore that something was drastically different.

This week-end i upgraded my Opensuse 11.4 to the lastest 12.1

And i also noticed a considerable downgrade in display performances after the upgrade. The most noticeable was using plasma widgets like networkmanager or simply the menu. The widgets popped-up slowly (black screen section for on or two second before displaying the widget), and browsing (in the widgets) was also slow. Opening new windows and browsing in dolphin also showed these kind of slowness.

My graphic card is also an intel : Intel Corporation Mobile GM965/GL960

So i’ve just tried your trick, and indeed everything is much more smooth now.

One thing is different in my case : since the update i don’t have any bootsplash screen, only black screen before kde splash. Removing the vga setting doesn’t help.

Glad it helped!

It’s not different than what happened with me, I also lost the graphical boot splash, which I mentioned in the first post:

Removing “vga=XXX” is the reason we lost the boot splash, but it’s a small price to pay (my opinion) for better overall performance. I believe Fedora and Ubuntu use Plymouth for a graphical splash, but it only works best with open source video drivers and KMS (kernel modeset). If you want to see more text, you can try removing the “quiet” option.

FLANSUSE…

you just made my day, it works like a charm…THANKS!!!

Works for me also! Many thanks.

It is good news that this workaround has been found to work for some Intel graphics hardware, but as consused has already mentioned, a bug report should still be submitted, because this is a regression of the intel driver.

openSUSE:Submitting bug reports - openSUSE

OpenSUSE 12.1 user here, stumbled across this thread.

I wanted to add my two cents, because removing the vga option from GRUB has drastically increased video performance for my entire setup. Flash performance is still not where it was in 11.4 (I’ve read another thread that Adobe has disabled hardware acceleration all together for Flash Player 11) but I can say that everything about my video appears to be super smooth. Even the mouse cursor looks and feels just a little bit different.

Apart from Flash (and frequently ~ 10% xorg cpu usage) I didn’t think I had much trouble at all with video in 12.1, but now I can clearly see a difference.

VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) (On a ThinkPad T410s)

These posts were remarkably helpful. I tried all variations described in the earlier posts and removing the vga= parameter from boot improved flash performance tremendously.

My video card is VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03).

From another Google find, I have also created the following file and inserted a single line. This also seemed to improve flash performance. With all these changes, my linux flash performance is finally better than my Windows7 flash performance (which makes a big difference watching live sports videos on espn3).

/etc/adobe/mms.cfg

OverrideGPUValidation=true

I experience the same not only with flash but for example kaffeine too, while trying to play any video. i use the 12.1 release

Post some spec info about your system
Disable desktop effects if they are on.

Post result of

/sbin/lspci -nnk

00:00.0 Host bridge [0600]: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller [8086:29c0] (rev 10)
Subsystem: ASRock Incorporation Device [1849:29c0]
Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller [0300]: Intel Corporation 82G33/G31 Express Integrated Graphics Controller [8086:29c2] (rev 10)
Subsystem: ASRock Incorporation Device [1849:29c2]
Kernel driver in use: i915
00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)
Subsystem: ASRock Incorporation Device [1849:3662]
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 1 [8086:27d0] (rev 01)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 2 [8086:27d2] (rev 01)
Kernel driver in use: pcieport
00:1d.0 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 [8086:27c8] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27c8]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 [8086:27c9] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27c9]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 [8086:27ca] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27ca]
Kernel driver in use: uhci_hcd
00:1d.3 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 [8086:27cb] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27cb]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller [8086:27cc] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27cc]
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev e1)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27b8]
00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27df]
Kernel driver in use: ata_piix
00:1f.2 IDE interface [0101]: Intel Corporation N10/ICH7 Family SATA IDE Controller [8086:27c0] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27c0]
Kernel driver in use: ata_piix
00:1f.3 SMBus [0c05]: Intel Corporation N10/ICH 7 Family SMBus Controller [8086:27da] (rev 01)
Subsystem: ASRock Incorporation Device [1849:27da]
Kernel driver in use: i801_smbus
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)
Subsystem: ASRock Incorporation Device [1849:8136]
Kernel driver in use: r8169
03:02.0 Network controller [0280]: Ralink corp. RT2561/RT61 802.11g PCI [1814:0301]
Subsystem: Linksys WMP54G ver 4.1 [1737:0055]
Kernel driver in use: rt61pci

I anyway have made like described here, and i don’t experience the problem anymore. however, like the others, the splashscreen is gone at the boot.

I’m not sure what you need now?
I wouldn’t worry about the splash

But if you post the result of this

su -
hwinfo --framebuffer

and

cat /boot/grub/menu.lst

I’ll see if I can help