Overview
Some of Electron apps are flashing on my PC
What I tried
Run them with --enable-features=UseOzonePlatform --ozone-platform=wayland
Environment
System:
Kernel: 6.7.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 clocksource: tsc
available: hpet,acpi_pm parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=36abdf68-bc99-44bf-8297-0742e0db4f3c rw rootflags=subvol=@ quiet loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_wayland vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: Z590 Extreme serial: <superuser required> UEFI: American
Megatrends LLC. v: P2.20 date: 03/30/2023
CPU:
Info: model: Intel Core i7-10700K bits: 64 type: MT MCP arch: Comet Lake gen: core 10 level: v3
note: check built: 2020 process: Intel 14nm family: 6 model-id: 0xA5 (165) stepping: 5
microcode: 0xF8
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 512 KiB
desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 4456 high: 4704 min/max: 800/5100 scaling: driver: intel_pstate
governor: powersave cores: 1: 4700 2: 4700 3: 4700 4: 4700 5: 4704 6: 4700 7: 4700 8: 4700
9: 4700 10: 4698 11: 800 12: 4700 13: 4700 14: 4700 15: 4700 16: 4698 bogomips: 121596
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: Micro-Star MSI driver: nvidia
v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current (as of 2023-10;
EOL~2026-12-xx) arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: none off: DP-1
empty: DP-2,DP-3,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:2504 class-ID: 0300
Device-2: Microdia Dual Mode Camera (8006 VGA) driver: hid-generic,usbhid type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-4:2 chip-ID: 0c45:8006 class-ID: 0301
Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4 compositor: kwin_wayland
driver: X: loaded: nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa gpu: nvidia
display-ID: 0
Monitor-1: DP-1 res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2 drv: swrast gbm:
drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11: drv: zink inactive: device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 545.29.06 glx-v: 1.4
direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2 memory: 11.72 GiB display-ID: :1.0
API: Vulkan v: 1.3.274 layers: 1 device: 0 type: discrete-gpu name: NVIDIA GeForce RTX 3060
driver: nvidia v: 545.29.06 device-ID: 10de:2504 surfaces: xcb,xlib,wayland
Audio:
Device-1: Intel vendor: ASRock driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:f0c8
class-ID: 0403
Device-2: NVIDIA GA106 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.1
chip-ID: 10de:228e class-ID: 0403
Device-3: Mark of the Unicorn M2 driver: cdc_acm,snd-usb-audio type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:10 chip-ID: 07fd:000b class-ID: 0a00
serial: <filter>
API: ALSA v: k6.7.1-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.1 status: active with: 1: pipewire-pulse status: active
2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Ethernet I219-V vendor: ASRock driver: e1000e v: kernel port: N/A bus-ID: 00:1f.6
chip-ID: 8086:15fa class-ID: 0200
IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8125 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Drives:
Local Storage: total: 7.28 TiB used: 764.29 GiB (10.3%)
SMART Message: Unab
le to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:5 vendor: Crucial model: CT1000P2SSD8 size: 931.51 GiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: P2CR048 temp: 34.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB
block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 5B2QGXA7 temp: 30.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST6000DM003-2CY186 size: 5.46 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5425 serial: <filter>
fw-rev: SC11 scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 16.12 GiB (1.7%) fs: btrfs
dev: /dev/nvme0n1p2 maj-min: 259:7
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 584 KiB (0.2%) fs: vfat
dev: /dev/nvme0n1p1 maj-min: 259:6
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 16.12 GiB (1.7%) fs: btrfs
dev: /dev/nvme0n1p2 maj-min: 259:7
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 16.12 GiB (1.7%) fs: btrfs
dev: /dev/nvme0n1p2 maj-min: 259:7
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 16.12 GiB (1.7%) fs: btrfs
dev: /dev/nvme0n1p2 maj-min: 259:7
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 31.33 GiB used: 0 KiB (0.0%) priority: 100 comp: zstd
avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 35.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Processes: 332 Uptime: 10h 48m wakeups: 0 Memory: total: 64 GiB note: est. available: 62.67 GiB
used: 4.64 GiB (7.4%) Init: systemd v: 255 default: graphical tool: systemctl Compilers:
gcc: 13.2.1 Packages: pm: pacman pkgs: 1334 libs: 369 tools: octopi,paru Client: shell wrapper
v: 5.2.26-release inxi: 3.3.31
Garuda (2.6.22-1):
System install date: 2024-01-26
Last full system update: 2024-01-26 ↻
Is partially upgraded: No
Relevant software: snapper NetworkManager dracut nvidia-dkms
Windows dual boot: Probably (Run as root to verify)
Failed units:
Rebooted, but nothing changed
NaN
26 January 2024 05:12
4
Can you try with
--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
See if that changes anything?
Hmm looking on the internet this seems a very common issue with not a lot of great solutions save for frustrated people going back to x11. Electron applications do not redraw properly to reflect latest input (reuse old frames) · Issue #187 · NVIDIA/open-gpu-kernel-modules · GitHub
1 Like
Wow, it makes less flashing! but not completely fixed…
Is Radeon better than GeForce for Linux?
I’m planning to change graphics card.
NaN
26 January 2024 05:19
6
While amd is certainly better compatible I would still first search for the specific card you are buying and see if all it’s drivers are there or not.
Btw, you can also try to switch back to x11 from your sddm screen there should be a small drop down there just below password field which should let you choose between x11 and wayland.
Choose x11 and try launching apps without the flags (since x11 doesn’t need them).
4 Likes
Wow, works fine on X11!
I’ll use X11 for a while.
Thanks for answering my question!
system
Closed
28 January 2024 05:22
9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.