Ubuntu – How to prevent the screen lock while watching video (Netflix, Youtube, Amazon Prime) in Ubuntu 17.10

17.10lock-screenscreenvideowayland

In earlier Ubuntu versions like 16.04 and 17.04 while watching YouTube videos in full-screen mode, the screen would not get locked automatically.

In Ubuntu 17.10 while watching videos in browser, system is getting locked. So Ubuntu 17.10 is considering this scenario as user is not doing anything.

Kindly suggest a solution for that.

Best Answer

The reason that this does not work any more is because 17.10 is the first ubuntu release that uses wayland as its display server. It looks like preventing screen lock is an entirely missing feature in Xwayland.

It has been filed as a bug in Ubuntu and hopefully will be fixed soon. If you're affected by this bug, please click the launchpad link below and click "Does this bug affect you?" to increase the bug priority.

https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1697373

As a workaround, you could also select "GNOME on X.org" as your session type when logging on.

There is also a bug in chromium, but it seems to apply only for google hangouts sessions:

https://bugs.chromium.org/p/chromium/issues/detail?id=783737

Related Question