From 456fb282e8573f8abb8cf109652e248833936df2 Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Sat, 16 May 2026 17:58:44 -0300 Subject: [PATCH 1/2] remove comment --- etc/X11/xorg.conf.d/20-modesetting.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/X11/xorg.conf.d/20-modesetting.conf b/etc/X11/xorg.conf.d/20-modesetting.conf index 1296f55..da8f040 100644 --- a/etc/X11/xorg.conf.d/20-modesetting.conf +++ b/etc/X11/xorg.conf.d/20-modesetting.conf @@ -3,5 +3,5 @@ Section "Device" Driver "modesetting" Option "ShadowFB" "false" # you don't need on recent hardware Option "Atomic" "true" #only effective on Xlibre, or Xorg-git with a special patch - Option "TearFree" "true" # We will be using compositor, so TearFree (extra buffer) in the driver is not necessary + Option "TearFree" "true" EndSection From 94f0906f9d395ebb987531fedd5818ae898be0c2 Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Sat, 16 May 2026 18:01:46 -0300 Subject: [PATCH 2/2] remove custom chromium config --- Dockerfile | 3 -- etc/chromium/chromium.conf | 76 -------------------------------------- 2 files changed, 79 deletions(-) delete mode 100644 etc/chromium/chromium.conf diff --git a/Dockerfile b/Dockerfile index 57eb365..3bad7a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,9 +49,6 @@ RUN dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docke RUN dnf install xorg-x11-xinit xkbcomp xinput xlibre-xserver-Xorg xlibre-xf86-input-libinput -y -# Delete default Chromium config so it can be replaced by my own -RUN rm -f /etc/chromium/chromium.conf - # Add rule to SELinux allowing modules to be loaded into custom kernel RUN setsebool -P domain_kernel_load_modules on diff --git a/etc/chromium/chromium.conf b/etc/chromium/chromium.conf deleted file mode 100644 index f6cbbbc..0000000 --- a/etc/chromium/chromium.conf +++ /dev/null @@ -1,76 +0,0 @@ -# system wide chromium flags - -ARCH="$(arch)" -MODE="$(systemd-detect-virt)" - -# GRAPHIC_DRIVER=[amd|intel|nvidia|default] -GRAPHIC_DRIVER=intel - -# WEB_DARKMODE=[on|off] -WEB_DARKMODE=off - -# NATIVE_WAYLAND=[on|off] -# chromium >=141 switched to --ozone-platform-hint=auto -if [ ! -z "$WAYLAND_DISPLAY" ]; then - NATIVE_WAYLAND=on -else - NATIVE_WAYLAND=off -fi - -DISABLE_FEATURES="LensOverlay,ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled" -ENABLE_FEATURES="AllowQt" -CHROMIUM_FLAGS=" --enable-chrome-browser-cloud-management" -if [ "$NATIVE_WAYLAND" == "on" ] ; then - ENABLE_FEATURES+=",WaylandLinuxDrmSyncobj,WaylandPerSurfaceScale,WaylandUiScale" - CHROMIUM_FLAGS+=" --ozone-platform=wayland" -else - CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" - CHROMIUM_FLAGS+=" --enable-zero-copy" - CHROMIUM_FLAGS+=" --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround" - CHROMIUM_FLAGS+=" --enable-gpu-rasterization" -fi - -ENABLE_FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" - -case "$GRAPHIC_DRIVER" in - amd|intel) - # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) - # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 - CHROMIUM_FLAGS+=" --enable-accelerated-video-decode" - ENABLE_FEATURES+=",VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" - ;; - nvidia) - # The NVIDIA VaAPI drivers are known to not support Chromium - # see https://crbug.com/1492880. This feature switch is - # provided for developers to test VaAPI drivers on NVIDIA GPUs - ENABLE_FEATURES+=",VaapiOnNvidiaGPUs" - export CUDA_DISABLE_PERF_BOOST=1 - ;; - *) - ENABLE_FEATURES+=",AcceleratedVideoEncoder" - ;; -esac - -if [ "$MODE" != "none" ] ; then - # chromium in VM, running with standard setting - CHROMIUM_FLAGS="" - DISABLE_FEATURES="" - ENABLE_FEATURES="" -fi - -# Set gtk version to 3 by default -# todo: switch to gtk4 in the future -CHROMIUM_FLAGS+=" --gtk-version=3" - -# Web Dark mode -if [ "$WEB_DARKMODE" == "on" ] ; then - darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" - if [ -z "$ENABLE_FEATURES" ] ; then - ENABLE_FEATURES+="$darktype" - else - ENABLE_FEATURES+=",$darktype" - fi -fi - -[ -z "$DISABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --disable-features=$DISABLE_FEATURES" -[ -z "$ENABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$ENABLE_FEATURES"