4
August
2023
14:33

Solving the problem "when starting chromium зависает - белое окно"

4 August 2023 14:33

Situation: in browser chrome или Chromium при запуске белое окно (белый экран). Браузер зависает.

After replacing the "iron" - the system unit and video cards ceased to be launched.rome и Chromium. More precisely, when starting, a white window occurs and the browser does not react to anything.

Solving the problem

Launch the program chromium или chrome с ключом "--disable-gpu":

chromium --disaBLE-GPU

or

Chrome --disaBLE-GPU

In the settings of the browser chromium (Chrome) Change the "use hardware" parameter:

  • (button "three points") - settings - system - Использовать аппаратное ускорение (при наличии) <<< turn off

P.S. Tips for removing folders ~/.config/chromium и ~/.cache/ неверные. Решение только в отключении аппаратного ускорения или переходе на веб браузер Mozilla Firefox (see below).


In the web browser Mozilla Firefox hardware acceleration works

If the hardware configuration was replaced, you need to check the drivers - so that hardware acceleration works.
For example, I have an ATI Radeon video card, for which the driver is on the AMD.com site page -Linux® D.rivers for AMD Radeon™ and Radeon PRO™ GraPhics.

На The page is drivers for Ubuntu 04/20/5 HWE and Ubuntu 04/22/2. Since OS Linux Mint 21.2 "Victoria", I downloaded the driver for the compatible OS Ubuntu 04.22.2 and installed it (DEB package format).

After installing the driver, ATI Radeon rebooted the PC.
In the terminal I completed the command:

dmesg | grep raDeon

It can be seen that video cards drivers are used:

[3.297139] [Drm] radeon kernel modesetting enaBLED. [3.311026]radeon 0000:04:00.0: vgaarb: deactivate vga console [3.312827]raDeon 0000: 04: 00.0: Vram: 128m 0x000000E8000000 - 0x00000000EFFFFFFF (128M Used) [3.312832]raDeon 0000: 04: 00.0: GTT: 512M 0x000000C8000000 - 0x000000E7FFFFFF [3.312911] [Drm] radeon: 128M of VRAM memory reaDy [3.312915] [Drm] radeon: 512M of GTT memory reaDy. [3.313779] [Drm] radeon: 1 quad pipes, 1 Z pipes initiaLIZED [3.315061]radeon 0000:04:00.0: WB enaBLED [3.315067]radeon 0000:04:00.0: fence driver on ring 0 use gpu addr 0x00000000c8000000 [3.315199]radeon 0000:04:00.0: radeon: MSI limited to 32-bit [3.315261]radeon 0000:04:00.0: raDeon: Using MSI. [3.315285] [Drm] radeon: irq initiaLIZED. [3.315745] [Drm] radeon: ring aT 0x000000C8001000 [3.318287] [Drm] Radeon Display ConnectorS. [3.373269] FBCON:radeondrmfb (fb0) is primarY Device [3.426998]radeon 0000:04:00.0: [drm] fb0: radeondrmfb frame buffer device [3.440176] [Drm] Initialized radeon 2.50.0 20080528 for 0000:04:00.0 on minor 0 Check: on YouTube Video 1080p is played in Firefox with an expansion of H264IFY without loss of personnel. The processor load in the TOP program depends on the number of nuclei and the performance of the processor and video card, but should not exceed 70%. ! ** In the web browser Firefox version 115.0.2 there is no switch for hardware acceleration and everything works initially, the configuration is not required. ** ### Addition from 07.08.2023. New solution to include hardware acceleration in Google Chrome. Hardware acceleration in chromE in Linux is not officially supported. However, for the developers, Google provided launch keys for debugging. These keys: *`--ignore-gpu-blocklist` *`--use-gl=desktop` **Example:** chromium --ignore-gpu-blocklist --use-gl=deskTop After starting with the indicated keys, you can enter the browser settings and include hardware acceleration in the "system" section. Disadvantage of this solution - you have to ** always ** run chromium из терминала с указанными ключами, а не из меню программ, иначе проблема с "белым экраном" возвращается. === Source by the second solution: *[VAAPI](https://chromium.googlesource.com/chromium/src/+/e660b15416b0afc203b71d854dc38e9bb9f7e509/docs/gpu/vaapi.md#verify-driver)

Related publications