You are not logged in.

#1 2014-02-17 16:05:34

mir91
Banned
Registered: 2013-11-17
Posts: 143

Leaving youtube fullscreen will cause black screen

Whenever I leave a fullscreen youtube video, the screen will turn completely black, not even the mouse cursor is visible anymore.
To "fix" it, I have to switch to a VT via CTRL+ALT+F1 and then back to X via ALT+F7, then everything is back to normal.

Offline

#2 2014-02-17 19:18:33

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Leaving youtube fullscreen will cause black screen

Which graphics card, drivers are you using? Does using xrandr, either switching between two resolutions or just resetting to same resolution, bring your screen back? (Tip: use shortcuts or aliases if you have trouble "typing in dark".)

Offline

#3 2014-02-17 19:49:40

mir91
Banned
Registered: 2013-11-17
Posts: 143

Re: Leaving youtube fullscreen will cause black screen

emeres wrote:

Which graphics card, drivers are you using? Does using xrandr, either switching between two resolutions or just resetting to same resolution, bring your screen back? (Tip: use shortcuts or aliases if you have trouble "typing in dark".)

I'm using intel graphics driver, 915 or 965 (both appears in Xorg.0.log).
I noticed that the black screen thing is somewhat random. It doesn't happen everytime, but it seems random enough that I cannot see any pattern.
Using xrandr to set the currently used resolution (1920x1080) again does not help. However, calling it twice like

xrandr -s 1280x1024 && xrandr -s 1920x1080

will actually work to "fix" the problem.

Edit, more information:
This only happens with flash player, not with html5 player.
Disabling/enabling hardware acceleration in flash settings does not help.

Even more stuff, played with about:config. Modifying these didn't help either though.
layers.acceleration.disabled;true
layers.bufferrotation.enabled;false
layers.componentalpha.enabled;false


What the heck is this site?
http://wyldeplayground.net/leaving-yout … ck-screen/
It just copies the bbs.archlinux.org content or something? Is that even legal..

Last edited by mir91 (2014-02-17 21:38:46)

Offline

#4 2014-02-17 21:34:23

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Leaving youtube fullscreen will cause black screen

I noticed that the black screen thing is somewhat random.

What does stdout/stderr of your browser (I assume firefox) say? Have your tried using packages from AUR (precompiled packages may interfere with your specific setup)? I would especially look into flashplugin, firefox, composite manager, (maybe window manager,) xorg and drivers in that order. From what you wrote, it looks like a problem between xorg and drivers. I experienced something similar a long time ago, so long that I can not remember how it was solved, but I was forced to use same "fixes".

Offline

#5 2014-02-17 21:41:42

mir91
Banned
Registered: 2013-11-17
Posts: 143

Re: Leaving youtube fullscreen will cause black screen

I'm using stock packages, nothing modified.
I'm on xfce4 by the way, graphics is the integrated one in Intel i7 CPU.
Compositing is disabled (it caused some visual problems with some other programs I used).

Terminal starts with

(process:13305): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

right off the bat when I actually start Firefox up.
That's it though, there is no further output when I call youtube or when that fullscreen bug occurs.
Just when I quit Firefox, there is a last message

NOTE: child process received `Goodbye', closing down

I just tried Chromium, but it happens too there.
However, I noticed that Chromium is able to play 1080p in its HTML5 player, while Firefox can only handle up to 720p (1080p is simply not offered by its HTML5 player), so I guess I'll force HTML5 player in Chromium and use that one.

Last edited by mir91 (2014-02-17 21:53:34)

Offline

#6 2014-02-17 22:03:45

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Leaving youtube fullscreen will cause black screen

I never used Intel graphics so I can not help you from the drivers side. Either try to isolate further or try AURs equivalent packages. One thing you should look into is your xorg.conf. Problem may be related to acceleration method, so try changing it to uxa, like suggested in the wiki.

Offline

#7 2014-02-17 22:31:41

mir91
Banned
Registered: 2013-11-17
Posts: 143

Re: Leaving youtube fullscreen will cause black screen

Oh I don't have an xorg.conf file. I'll look at your link I guess, thanks.

Oh nice, changing sna to uxa seems to have worked! I've zapped in and out of fullscreen mode a considerable amount of times and it remains cool smile

Edit: Arrrgh, I think I just remembered why I had it set to sna.. with uxa I get some screen tearing when playing videos in normal video players!
That is despite having set

Option      "TearFree" "true"

It's even visible when scrolling websites in the browser!

Quoting from http://www.reddit.com/r/archlinux/comme … xa_vs_sna/

... try if XNA works, because it enables some features UXA can't do (like tearing-free video) ...

Strange that XNA isn't even mentioned on the Arch wiki page though.

Ok, I tested XNA and unfortunately it also causes the black screen bug. But I can't really go with uxa because of screen tearing, that's a no-go. What a load of annoying problems, really, just to have simple, working video, lol.
Edit: I think that person meant to write SNA, not XNA, since from what I can see XNA is an application and not an acceleration method, so probably a typo. Not that it matters much..

Last edited by mir91 (2014-02-18 10:45:39)

Offline

Board footer

Powered by FluxBB