View previous topic :: View next topic |
Author |
Message |
Gibberx Apprentice
Joined: 20 Oct 2002 Posts: 217 Location: UMBC
|
Posted: Sat May 22, 2004 12:35 am Post subject: Make Flash run regular-speed on GTK2 Mozilla |
|
|
I caught this great tidbit after googling around yesterday. If you run this command before Mozilla/Firefox/Epiphany, you'll get Flash running at full-speed, rather than the slow crap that I had gotten used to. I can't believe I didn't find this earlier!
I stuck this near the beginning of my /usr/bin/firefox script: Code: | # Tweak for Flash, found on linuxcompatible.org
export FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0 | Of course, you don't need that first line, it's a comment I added so I would know what the heck it was in a week.
Sorry if this has been mentioned before, I didn't search this time, but I've never heard of it on the forums. |
|
Back to top |
|
|
e980238 Tux's lil' helper
Joined: 13 Apr 2004 Posts: 89
|
Posted: Sat May 22, 2004 5:03 am Post subject: |
|
|
Is there a way to test this to see how much performace is really gained? (other than the obvious of looking at it) _________________ Theres no place like ::1 |
|
Back to top |
|
|
grzewho l33t
Joined: 31 Dec 2002 Posts: 626 Location: /home/g
|
Posted: Sun May 23, 2004 11:09 am Post subject: |
|
|
how about adding the line to /etc/env.d/10mozilla :
Code: | FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0 |
?
does it make a difference ? _________________
Code: | USE="freedom -software_patents" emerge --deep --update world |
|
|
Back to top |
|
|
Selecter Tux's lil' helper
Joined: 12 Jan 2004 Posts: 128 Location: Estonia
|
Posted: Sun May 23, 2004 4:54 pm Post subject: |
|
|
Thank you for sharing with us. I have added this line to /usr/bin/epiphany and /usr/bin/mozilla files. I really see the difference in speed. It works.
Code: | export FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0 |
|
|
Back to top |
|
|
Keffin Apprentice
Joined: 14 Feb 2004 Posts: 202 Location: England
|
Posted: Sun May 23, 2004 5:11 pm Post subject: |
|
|
grzewho wrote: | how about adding the line to /etc/env.d/10mozilla :
Code: | FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0 |
?
does it make a difference ? |
That's what I've done (actually I called it 99ISetThis or something equally dumb), it does work. _________________ Always cut the deck if it ups your odds. |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Sun May 23, 2004 5:46 pm Post subject: |
|
|
thanks - worked like a charm |
|
Back to top |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Sun May 23, 2004 11:23 pm Post subject: |
|
|
for all you firefoxusers:
Code: |
echo FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0 >> etc/env.d/10MozillaFirefox
|
wonderful. now flash runs nearly as fast as it used to on windows. i *think* i noticed that the cpu-usage went up, but id rather use more cpu and have the damn things displayed correctly than as it was before. _________________ If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon May 24, 2004 8:58 pm Post subject: |
|
|
ecatmur wrote: | Wow. Just... wow. That makes an incredible difference.
We have GOT to get the word out on this... |
yea. athough... i mentioned it in a couple channels... the interest wasnt exactly staggering. _________________ If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word |
|
Back to top |
|
|
Assgier Tux's lil' helper
Joined: 28 May 2003 Posts: 127 Location: Europe -> Netherlands -> Utrecht -> Amersfoort
|
Posted: Tue May 25, 2004 1:30 pm Post subject: |
|
|
lol... i allways tought that it had to do with Flash' own player... well anyways, thanks a lot dude
i hope they'll tweak this in the ebuilds too (don't want to re"patch" my /usr/bin/mozilla each time i upgrade it) _________________
|
|
Back to top |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Tue May 25, 2004 2:06 pm Post subject: |
|
|
I will try to make a new ebuild or distfile for firefox. Unfortunately I think that the problem with this is that the library name will change over time, and might not remain as "libgtk-x11-2.0.so.0" forever. Does anybody have an idea about this? _________________ The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c
God is dead! - Nietzsche
Nietzsche is dead! -God |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Tue May 25, 2004 4:08 pm Post subject: |
|
|
Assgier wrote: | lol... i allways tought that it had to do with Flash' own player... well anyways, thanks a lot dude
i hope they'll tweak this in the ebuilds too (don't want to re"patch" my /usr/bin/mozilla each time i upgrade it) | Better to put it in /etc/env.d/10mozilla, then it won't get overwritten. _________________ No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS? |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Tue May 25, 2004 6:51 pm Post subject: |
|
|
ecatmur wrote: | Assgier wrote: | lol... i allways tought that it had to do with Flash' own player... well anyways, thanks a lot dude
i hope they'll tweak this in the ebuilds too (don't want to re"patch" my /usr/bin/mozilla each time i upgrade it) | Better to put it in /etc/env.d/10mozilla, then it won't get overwritten. |
Or in /etc/profile
...or in ~/.profile
...or in the 101 other places that it'll get fired. _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Tue May 25, 2004 8:24 pm Post subject: |
|
|
etnoy wrote: | I will try to make a new ebuild or distfile for firefox. Unfortunately I think that the problem with this is that the library name will change over time, and might not remain as "libgtk-x11-2.0.so.0" forever. Does anybody have an idea about this? |
Code: | slougi@Gondolin slougi =) $ ls -l `locate libgtk-x11-2.0.so.0`
lrwxrwxrwx 1 root root 25 May 8 11:49 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.400.1
-rwxr-xr-x 1 root root 2879068 May 8 11:48 /usr/lib/libgtk-x11-2.0.so.0.400.1 |
It is already a symlink. Generally such library names do not change on *nix, they are symlinked to upward compatible libs. |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
znerd n00b
Joined: 05 May 2004 Posts: 10 Location: Netherlands
|
Posted: Wed May 26, 2004 9:09 pm Post subject: |
|
|
This works on Gentoo 2004.1, kernel 2.6.5, Mozilla 1.6, GTK 2.4.0 too! It indeed improves the performance a great deal!
Now the only question is: What is the preferred way to set this variable? I assume it should be in the ebuilds for mozilla and firefox, correct? Should I file a bug report? |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
zero0w n00b
Joined: 28 May 2004 Posts: 5
|
Posted: Fri May 28, 2004 7:37 am Post subject: |
|
|
As FlashPlayer for Linux 7.0 r25 is released today, with the new plugin this speedup trick is no longer needed:
You can get it here:
http://macromedia.mplug.org/ |
|
Back to top |
|
|
cbr Apprentice
Joined: 05 Jan 2004 Posts: 285 Location: Tallinn/Rakvere, Estonia
|
Posted: Fri May 28, 2004 8:45 am Post subject: |
|
|
If this fixes everything, then surfing the web in Linux is again a little better. Can't wait for it to reach portage. |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Fri May 28, 2004 8:55 am Post subject: |
|
|
flash7 does not seem to fix the problem for me. |
|
Back to top |
|
|
airhead n00b
Joined: 01 Jul 2002 Posts: 33 Location: Auckland, New Zealand
|
Posted: Fri May 28, 2004 12:45 pm Post subject: |
|
|
Thanks!!!! Thats *so* much better! |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
|
Back to top |
|
|
|