You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then we can install gamescope and mangohud inside the container
# Required to upgrade once, otherwise installation would fail
sudo pacman -Syu
# install
sudo pacman -S gamescope, mangohud
Main problem: cannot detect new controllers. So if a controller is disconnected in game, we need to shutdown game and client and
restart it. For me, this is a major deal breaker, as it makes Steam Input pretty much useless.
obs-vkcapture plugin is already installed, game can be captured properly in OBS running in another container.
Steam flatpak
gamescope won't work unless using a specific flatpak ProtonGE version
If we want to move flatpak data to another partition, we need to make a symlink at ~/.var/app/com.valvesoftware.Steam and point to an empty disk on target partition, then run flatpak Steam to initialize it.
IME
Got Flatpak fcitx working in Flatpak Steam under KDE Wayland by
Set both XMODIFIERS=@im=fcitx and GTK_IM_MODULE=xim via Flatseal
Enroll in Steam Beta client (2025/02/01: Stable works now)
Use the reshade-linux-flatpak.sh script, that would install Reshade dlls and default effects in Steam flatpak folder so Steam flatpak and other game managers like lutris have permissions to read the dll.
Sometimes when closing a flatpak chromium app (Brave, Vesktop, Steam, Chromium)... the app might not exit cleanly and leaving
zombie processes (mostly [bwrap] processes).
The problem with zombie processes is that we cannot rerun the app again.
Ideally, we could use https://askubuntu.com/a/1121528 to find the parents and kill them. But it doesn't work here because flatpak apps use bwrap and if we keep trace their parent with
ps -f [pid]
It would goes back to the whole systemd process
UID PID PPID C STIME TTY STAT TIME CMD
fsworld+ 3218 1 0 22:28 ? Ss 0:00 /usr/lib/systemd/systemd --user
and killing this process would crash the entire login session.
amdgpu.dcdebugmask=0x400 to fix freeze caused by adaptive sync
2025/01/14
journalctl log before screen freeze
Jan 14 22:45:33 fsworld009-fw16 flatpak[26798]: [144:0114/224533.829604:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.862669:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.862776:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26798]: [144:0114/224533.862880:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.895953:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.896064:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26798]: [144:0114/224533.896165:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.929357:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.929478:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26798]: [144:0114/224533.929595:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.962687:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.962814:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26798]: [144:0114/224533.962929:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.996026:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:33 fsworld009-fw16 flatpak[26697]: [54:0114/224533.996173:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:33 fsworld009-fw16 flatpak[26798]: [144:0114/224533.996317:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.029403:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.029582:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26798]: [144:0114/224534.029750:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.062658:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.062761:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26798]: [144:0114/224534.062878:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.095987:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.096117:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26798]: [144:0114/224534.096225:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.129347:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.129482:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26798]: [144:0114/224534.129613:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.162700:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.162890:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26798]: [144:0114/224534.163058:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.196008:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= YUV_420_BIPLANAR and usage=SCANOUT_CPU_READ_WRITE
Jan 14 22:45:34 fsworld009-fw16 flatpak[26697]: [54:0114/224534.196152:ERROR:gpu_channel.cc(503)] Buffer Handle is null.
Jan 14 22:45:34 fsworld009-fw16 flatpak[26798]: [144:0114/224534.196273:ERROR:shared_image_interface_proxy.cc(134)] Buffer handle is null. Not creating a mailbox from it.
2025/02/03
Spotify core dump caused the entire laptop to crash
Feb 03 20:54:45 fsworld009-fw16 systemd-coredump[35996]: Process 35990 (spotify) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Feb 03 20:54:45 fsworld009-fw16 audit[35996]: AVC avc: denied { sys_admin } for pid=35996 comm="systemd-coredum" capability=21 scontext=system_u:system_r:systemd_coredump_t:s0 tcontext=system_u:system_r:systemd_coredump_t:s0 tclass=capability permissive=0
Feb 03 20:54:45 fsworld009-fw16 com.spotify.Client.desktop[35997]: *** stack smashing detected ***: terminated
Feb 03 20:54:45 fsworld009-fw16 audit[35997]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=35997 comm="spotify" exe="/app/extra/share/spotify/spotify" sig=6 res=1
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=115 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=116 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=117 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 systemd-coredump[36003]: Process 35997 (spotify) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Feb 03 20:54:45 fsworld009-fw16 audit[36003]: AVC avc: denied { sys_admin } for pid=36003 comm="systemd-coredum" capability=21 scontext=system_u:system_r:systemd_coredump_t:s0 tcontext=system_u:system_r:systemd_coredump_t:s0 tclass=capability permissive=0
Feb 03 20:54:45 fsworld009-fw16 systemd[1]: Started [email protected] - Process Core Dump (PID 35996/UID 0).
Feb 03 20:54:45 fsworld009-fw16 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@2-35996-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=118 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=119 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=120 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 systemd[1]: Started [email protected] - Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Feb 03 20:54:45 fsworld009-fw16 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=drkonqi-coredump-processor@2-35996-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=121 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=122 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=123 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 systemd[1]: Started [email protected] - Process Core Dump (PID 36003/UID 0).
Feb 03 20:54:45 fsworld009-fw16 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@3-36003-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=124 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=125 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 audit: BPF prog-id=126 op=LOAD
Feb 03 20:54:45 fsworld009-fw16 systemd[1]: Started [email protected] - Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Feb 03 20:54:45 fsworld009-fw16 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=drkonqi-coredump-processor@3-36003-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 03 20:54:46 fsworld009-fw16 systemd-coredump[36004]: [🡕] Process 35990 (spotify) of user 1000 dumped core.
Stack trace of thread 241:
#0 0x00007f7bf99a4db4 n/a (n/a + 0x0)
#1 0x00007f7bf994c08e n/a (n/a + 0x0)
#2 0x00007f7bf9933882 n/a (n/a + 0x0)
#3 0x00007f7bf99346e7 n/a (n/a + 0x0)
#4 0x00007f7bf9a33c29 n/a (n/a + 0x0)
#5 0x00007f7bf9a34ed4 n/a (n/a + 0x0)
#6 0x00005650ae7710e9 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64
Feb 03 20:54:46 fsworld009-fw16 systemd-coredump[36006]: [🡕] Process 35997 (spotify) of user 1000 dumped core.
Stack trace of thread 247:
#0 0x00007f7bf99a4db4 n/a (n/a + 0x0)
#1 0x00007f7bf994c08e n/a (n/a + 0x0)
#2 0x00007f7bf9933882 n/a (n/a + 0x0)
#3 0x00007f7bf99346e7 n/a (n/a + 0x0)
#4 0x00007f7bf9a33c29 n/a (n/a + 0x0)
#5 0x00007f7bf9a34ed4 n/a (n/a + 0x0)
#6 0x00005650ae7710e9 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64
Feb 03 20:54:46 fsworld009-fw16 systemd[1]: [email protected]: Deactivated successfully.
Feb 03 20:54:46 fsworld009-fw16 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@2-35996-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 03 20:54:46 fsworld009-fw16 systemd[1]: [email protected]: Consumed 283ms CPU time, 126.8M memory peak.
Feb 03 20:54:46 fsworld009-fw16 systemd[1]: [email protected]: Deactivated successfully.
Feb 03 20:54:46 fsworld009-fw16 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@3-36003-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 03 20:54:46 fsworld009-fw16 systemd[1]: [email protected]: Consumed 281ms CPU time, 126.6M memory peak.
Feb 03 20:54:46 fsworld009-fw16 audit: BPF prog-id=117 op=UNLOAD
flatpak install --user https://dl.flathub.org/build-repo/166117/com.discordapp.Discord.flatpakref
flatpak run com.discordapp.Discord//test
file chooser bug and permission
flathub/com.discordapp.Discord#483
Required host system to bump to xdg-desktop-portal 1.20, in the meanwhile, if some files are not accessible, configure
file access override in Flatseal as a workaround.
(TODO later)
Based on flathub/com.discordapp.Discord#483 (comment) Flatpak version shold be bumped
with Wayland screenshare support in stable branch. We should be able to use this version once it's released in flathub.
flatpak run com.vivaldi.Vivaldi --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE
Note: --ozone-platform=wayland seems not needed under Wayland. Also DON'T touch any flags in chrome://flags like Override software rendering list, seems breaking the enable-features flag we pass in.
Default browser view is not smooth and has no audio / clipboard support.
Use Remmina from Flatpak
Windows: Group policy editor:
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection
Set the policy Limit audio playback quality to enabled and high and then reboot.
Dec 16 15:39:17 fsworld009-fw16 systemd[2987]: app-flatpak-com.brave.Browser-32946.scope: Consumed 2h 33min 40.244s CPU time, 14G memory peak.
Dec 16 15:39:19 fsworld009-fw16 systemd[2987]: app-flatpak-com.brave.Browser-32906.scope: Consumed 59min 52.281s CPU time, 2.3G memory peak.
Launch the game again while keeping previously generated precaches, it should re compile again at first run
The game works on first run
On second run, it won't recompile and it seems still working
Note that I also have VKD3D_VULKAN_DEVICE=1 set to enforce using dGPU, but this is probably not needed, as the game already detected dGPU without it. Still fail after some days.
Enable fcitx, game capture, and Reframework, and be able to type CHT:
Most suggestions were proton experimental (bleeding edge). However, with this Proton version, the prefix will be recreated on every launch, and Denuvo would treat every new prefixes as new machine, eventually lock you out of the game for 24HR since you authorized more than 5 machines in short period.
Use proton-GE 9-26 up instead. 9-26 is released on 3/12/2025, and should have most hot fixes from vkd3d-proton since game is launched.
Press Home to bring up ReShade window, go to settings, add a new Textures path /path/to/mod/reshade-shaders/Textures/. Make sure this path is on top of all other textures path.
VKD3D_DISABLE_EXTENSIONS=VK_NV_low_latency2 seems resolve random crash, HOST_LC_ALL is required to input Chinese after enabling reframework, use mangohud to limit fps because the in game fps limiter seems broken (source)
sudo btrfs subvolume create vmdisks
sudo chown -R fsworld009:fsworld009 vmdisks
# apply no cow attribute to avoid bad performance for disk image files
chtttr +C vmdisks
# try to create a file in this folder
lsattr vmdisks # should have 'C' property to files in the output
Permission denied when using disk images on external mounts / disks
Download x86_64-linux-gnu.deb version and extract data.tar
Copy usr/lib/x86_64-linux-gnu/obs-plugins/osi-branch-output.so to ~/.var/app/com.obsproject.Studio/config/obs-studio/plugins/osi-branch-output/bin/64bit/
Copy usr/share/obs/obs-plugins/osi-branch-output/locale to ~/.var/app/com.obsproject.Studio/config/obs-studio/plugins/osi-branch-output/data/locale