Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 monitors, and I am using google chrome. When I watch a video in full screen on one monitor and then click on the other monitor it minimizes youtube to the embedded playback.

I will not be able to use the other flash player found in chrome://plugins/ So it definitely has to be done through /opt/google/chrome/PepperFlash/ How can I make it stay in full screen mode? I should note that I am using Compiz.

What is the action that tells youtube that is not the active app when you click on somethign outside of it.? I want to find it and break it.

share|improve this question
up vote 5 down vote accepted

There is a hack at that works for pepper flash also. It works by hooking into the system calls that flash uses to get the monitor/geometry info and property changes.

It's pretty simple to use:

First Download the github and extract it (does not matter where). Open a terminal and navigate to the directory.

  1. Install dependencies: sudo apt-get install build-essential libx11-dev libxinerama-dev libxrandr-dev

  2. Build it: make

  3. Run chrome with LD_PRELOAD: env LD_PRELOAD="/path/to/" google-chrome %u

  4. Profit!

That being said, I've used the Maximize Flash extension for chromium and making the browser full screen via F11 with great results, however the Maximize Flash extension has ceased working for me.

Finally the code for step 3 should look something like this: env LD_PRELOAD="/home/jan/Downloads/fullscreenhack-master/" google-chrome %u

share|improve this answer
please make the commands that I need to enter more clear – user194862 Oct 20 '13 at 23:24
I've formatted them as code so it should be more clear. – Li Lo Oct 20 '13 at 23:34
I just ran the code from 1) and then make but it says No targets specified and no makefile found. Stop. Do I need to download anything from that link or just run the commands? – user194862 Oct 20 '13 at 23:44
Yes, you need to download the code from github. – Li Lo Oct 21 '13 at 9:07
For the life of me, I can't get this command to work via .desktop file. The code works great when launching via CLI, but for some reason doesn't work from the desktop launcher. Any ideas? – jat255 Feb 20 '14 at 17:53

I solved this problem myself by following this guide.

The guide provides solutions to:

  1. Get full screen flash videos to be displayed on any monitor
  2. Get flash videos to remain full screen while working in the other desktop
  3. A tweak to move windows to a different display using keyboard shortcuts
  4. How to extend the wallpaper across monitors or use a different wallpaper for each monitor


share|improve this answer
I aware of this guide but it does not cover pepper flash. Adobe flash is no longer supported and will be out-dated soon. Also the addons are not proper fixes – user194862 Oct 18 '13 at 17:32
It is a great article containing a solution to the problem, but please include the excerpt of the solution into the answer. Just in case the article went down, your answer will still contain the proper instructions. This would make it really valuable. – lgarzo Oct 18 '13 at 17:36
@Igarzo, no it would not, the guide is for adobe flash, I need pepper flash – user194862 Oct 18 '13 at 23:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.