Skip to content

Instantly share code, notes, and snippets.

@Corben78
Corben78 / mangoadjust.sh
Last active February 7, 2021 18:14
Adjust MangoHud json config file for Proton use on Ubuntu, when MangoHud is installed from git.
#!/bin/bash
MANGOHUDJSON=${MANGOHUDJSON:-/usr/share/vulkan/implicit_layer.d/MangoHud.json}
MPATH=$(dirname "$MANGOHUDJSON")
MFILE=$(basename "$MANGOHUDJSON" .json)
MANGOHUD32="$MPATH"/"$MFILE"32.json
if [ ! -e "$MANGOHUDJSON" ]; then
echo "$MANGOHUDJSON file not found"
exit 1
This file has been truncated, but you can view the full file.
======================
Proton: 1612904805 proton-5.13-6
SteamGameId: 1128920
Command: ['/mnt/data/SteamLibrary/steamapps/common/EVERSPACE™ 2/Everspace2.exe']
Options: {'forcelgadd'}
SteamLinuxRuntime: v0.20210114.1-0-g5a1cbb7
pressure-vessel: 0.20210203.0+srt1 scout 0.20210208.0
soldier: 0.20210208.0 soldier 0.20210208.0
======================
ERROR: ld.so: object '/home/krummen/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[15167.463030] NVRM: Xid (PCI:0000:01:00): 13, pid=4294967295, Graphics Exception: Class 0xc7c0 Subchannel 0x0 Mismatch
[15167.463033] NVRM: Xid (PCI:0000:01:00): 13, pid=4294967295, Graphics Exception: ESR 0x4041b0=0x3f28c7c0
[15167.463035] NVRM: Xid (PCI:0000:01:00): 13, pid=4294967295, Graphics Exception: ESR 0x404000=0x80000002
[15167.463075] NVRM: Xid (PCI:0000:01:00): 13, pid=66328, Graphics Exception: ChID 00c9, Class 0000c7c0, Offset 00000000, Data 00000000
[15384.519609] sr 2:0:0:0: [sr0] tag#6 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[15384.519611] sr 2:0:0:0: [sr0] tag#6 Sense Key : Not Ready [current]
[15384.519612] sr 2:0:0:0: [sr0] tag#6 Add. Sense: Medium not present - tray closed
[15384.519613] sr 2:0:0:0: [sr0] tag#6 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[15384.519614] print_req_error: 1 callbacks suppressed
[15384.519615] blk_update_request: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
======================
Proton: 1619554117 experimental-6.3-20210427b
SteamGameId: 1128920
Command: ['/mnt/data/SteamLibrary/steamapps/common/EVERSPACE™ 2/Everspace2.exe', '-dx11']
Options: {'forcelgadd'}
SteamLinuxRuntime: v0.20210317.0-0-ge09b2e6
pressure-vessel: 0.20210415.0+srt1 scout 0.20210415.0
soldier: 0.20210415.0 soldier 0.20210415.0
======================
ERROR: ld.so: object '/home/krummen/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
[0108:010C][2021-04-28T20:38:35]i001: Burn v3.8.1128.0, Windows v6.3 (Build 9600: Service Pack 0), path: Z:\mnt\data\SteamLibrary\steamapps\common\EVERSPACEâ„¢ 2\Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe, cmdline: ''
[0108:010C][2021-04-28T20:38:35]i000: Setting string variable 'WixBundleLog' to value 'C:\users\steamuser\Temp\UE4_Prerequisites_(x64)_20210428203835.log'
[0108:010C][2021-04-28T20:38:35]i000: Setting string variable 'WixBundleOriginalSource' to value 'Z:\mnt\data\SteamLibrary\steamapps\common\EVERSPACEâ„¢ 2\Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe'
[0108:010C][2021-04-28T20:38:35]i000: Setting string variable 'WixBundleName' to value 'UE4 Prerequisites (x64)'
[0108:010C][2021-04-28T20:38:35]i100: Detect begin, 9 packages
[0108:010C][2021-04-28T20:38:35]i000: Setting string variable 'NETFRAMEWORK40' to value '1'
[0108:010C][2021-04-28T20:38:35]i000: Setting string variable 'Netfx20Version' to value '2.2.50727.4927'
[0108:010C][2021-04-28T20:38:35]i000: Registry key not found. Key
@Corben78
Corben78 / toggleVisibility.sh
Created May 12, 2021 15:13
Shell script to use with leafac/obs-cli for toggeling visiblity of a single or a group of items. Needs jq for parsing json.
#!/bin/bash
OBSWSPW=obs-studio
GETPROPERTIES=()
for JSON in "$@"; do
GETPROPERTIES+=("GetSceneItemProperties=${JSON}")
done
# read all given properties, extract visible element, save into array
VISIBILITY=( $(obs-cli-linux -p "$OBSWSPW" "${GETPROPERTIES[@]}" | jq ".[].visible") )
This file has been truncated, but you can view the full file.
SteamVR System Report created Sun Jul 04 14:04:19 2021
<Report>
SteamVR Version: 1.18.5 (1625075617)
SteamVR Date: 2021-06-30
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 5.11.0-22-generic (buildd@lgw01-amd64-033) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #23~20.04.1-Ubuntu SMP Thu Jun 17 12:51:00 UTC 2021
vkdisplayinfo
=============
instance extension VK_KHR_get_display_properties2 is supported
instance extension VK_KHR_surface is supported
instance extension VK_KHR_display is supported
Using vkGetPhysicalDeviceDisplayProperties2KHR
physical device 0 has 2 displays:
Valve Corporation Index HMD (DP-0) (0x564709f9cfc8) 2880x1600
AU Optronics Corporation (DP-2) (0x564709f9dd98) 1920x1080
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
CPU Family: 0x6
This file has been truncated, but you can view the full file.
Mono path[0] = '/mnt/data/games/DDGD-Linux/DDGD_Data/Managed'
Mono config path = '/mnt/data/games/DDGD-Linux/DDGD_Data/MonoBleedingEdge/etc'
Display 0 'C24FG70 24"': 1920x1080 (primary device).
Loading player data from /mnt/data/games/DDGD-Linux/DDGD_Data/data.unity3d
Unable to load player prefs
Desktop is 1920 x 1080 @ 60 Hz
Initialize engine version: 2020.3.14f1 (d0d1bb862f9d)
[Subsystems] Discovering subsystems at path /mnt/data/games/DDGD-Linux/DDGD_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Renderer: NVIDIA GeForce RTX 3070/PCIe/SSE2