Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make Flash run regular-speed on GTK2 Mozilla
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Gibberx
Apprentice
Apprentice


Joined: 20 Oct 2002
Posts: 217
Location: UMBC

PostPosted: Sat May 22, 2004 12:35 am    Post subject: Make Flash run regular-speed on GTK2 Mozilla Reply with quote

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
View user's profile Send private message
e980238
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2004
Posts: 89

PostPosted: Sat May 22, 2004 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
grzewho
l33t
l33t


Joined: 31 Dec 2002
Posts: 626
Location: /home/g

PostPosted: Sun May 23, 2004 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Selecter
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2004
Posts: 128
Location: Estonia

PostPosted: Sun May 23, 2004 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Sun May 23, 2004 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Sun May 23, 2004 5:46 pm    Post subject: Reply with quote

thanks - worked like a charm :wink:
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Sun May 23, 2004 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon May 24, 2004 8:12 pm    Post subject: Reply with quote

Wow. Just... wow. That makes an incredible difference.
We have GOT to get the word out on this...
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon May 24, 2004 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Assgier
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2003
Posts: 127
Location: Europe -> Netherlands -> Utrecht -> Amersfoort

PostPosted: Tue May 25, 2004 1:30 pm    Post subject: Reply with quote

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) :P
_________________
8)
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Tue May 25, 2004 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue May 25, 2004 4:08 pm    Post subject: Reply with quote

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) :P
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
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Tue May 25, 2004 6:51 pm    Post subject: Reply with quote

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) :P
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
View user's profile Send private message
slougi
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 222
Location: Oulu, Finland

PostPosted: Tue May 25, 2004 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue May 25, 2004 8:40 pm    Post subject: Reply with quote

Ah yes... indeed, libgtk-x11-2.0.so also links to the same lib and will be valid for longer through the progression of gtk versions.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
znerd
n00b
n00b


Joined: 05 May 2004
Posts: 10
Location: Netherlands

PostPosted: Wed May 26, 2004 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Wed May 26, 2004 10:06 pm    Post subject: Reply with quote

I would say not; it should be an env.d setting in the netscape-flash ebuild, perhaps controlled by the gtk2 USE flag. But by all means file a bug.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
zero0w
n00b
n00b


Joined: 28 May 2004
Posts: 5

PostPosted: Fri May 28, 2004 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
cbr
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 285
Location: Tallinn/Rakvere, Estonia

PostPosted: Fri May 28, 2004 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Fri May 28, 2004 8:55 am    Post subject: Reply with quote

flash7 does not seem to fix the problem for me.
Back to top
View user's profile Send private message
airhead
n00b
n00b


Joined: 01 Jul 2002
Posts: 33
Location: Auckland, New Zealand

PostPosted: Fri May 28, 2004 12:45 pm    Post subject: Reply with quote

Thanks!!!! Thats *so* much better! :lol:
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Dec 25, 2004 3:06 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=158200&highlight=flash+gtk
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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