Unix & Linux Asked by MikeV on December 13, 2020
I have CentOS 7 running the 4.7.1 kernel (elrepo-ml) on an Intel NUC with Intel HD Graphics i915.
I’m trying to run Chrome in full screen mode google-chrome --full-screen --kiosk http:192.168.2.20
(just a local server with the default Apache2 page) and it works most of the time, but randomly (every second to fifth time) it doesn’t fully display the page and looks like this:
You can see that chrome "thinks" it’s full screen because of the way that the page is rendered.
One interesting behavior is that if I Alt+Tab to another window (hidden in the screen shot), then the page will render full screen under the window just brought to the front.
There is nothing interesting in X.org logs – the same lines are repeated in both successful and unsuccessful full-screen attempts. (The same lines are logged in /var/log/gdm/ when gdm is in debug mode).
[352467.250] GetModeLine - scrn: 0 clock: 148500
[352467.250] GetModeLine - hdsp: 1920 hbeg: 2008 hend: 2052 httl: 2200
[352467.250] vdsp: 1080 vbeg: 1084 vend: 1089 vttl: 1125 flags: 5
I’ve tried to force a refresh (which may be what Alt+Tab) programmatically with xrefresh, but that doesn’t make any difference.
What could be causing this behavior and what can I do to consistently get a full screen image?
Edited to add more system details:
Driver:
$ modinfo i915 | grep version
srcversion: 4F4A9108A6D94B8919E3154
vermagic: 4.7.1-1.el7.elrepo.x86_64 SMP mod_unload modversions
Hardware:
$ dmesg | egrep "i915|[Gg]raphic"
[ 0.000000] Reserving Intel graphics stolen memory at 0x7cf00000-0x7eefffff
[ 2.356158] [drm] Memory usable by graphics device = 2048M
[ 2.498705] [drm] Initialized i915 1.6.0 20160425 for 0000:00:02.0 on minor 0
[ 3.284294] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 6.301736] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
I've been hitting this when maximizing/fullscreening Chrome windows, and while I don't have a solution, I do have a couple of workarounds that appearto work for me:
Simplest: Right-click on a Chrome window's titlebar, and select "Use system title bar and borders". This seems to help for me, but does introduce some ugliness in the form of odd decorators that seem out of place.
Alternative if that's not helpful:
xrandr -s '1280x720'
)xrandr -s '1920x1080'
)At that point, my maximized/full-screen windows render properly. I can also take a maximized window, and switch it in and out of fullscreen mode without a problem. However, if I unmaximize/"restore" the window to a floating mode, and then maximize/full-screen it again, the problem reoccurs.
Switching to another window manager (xfce's xfwm4 for example) also seems to help. With that in mind, I'll sometimes switch to it (running: xfwm4 --replace
), and switch back to gnome-shell when I'm done something that needs full-screen mode (running: gnome-shell --replace
).
Answered by atrus on December 13, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP