User Tools

Site Tools


linux:notes:wine

This is an old revision of the document!


Tweaks

  • DXVK_STATE_CACHE is older DXVK/1.10.3
sudo -e '/etc/profile.d/wine-tweaks.sh'
# Staging
export WINE_LARGE_ADDRESS_AWARE='1'
export STAGING_SHARED_MEMORY='1'
export STAGING_WRITECOPY='1'

# Logging
export WINEDEBUG='-all'
export VKD3D_DEBUG='none'
export VKD3D_SHADER_DEBUG='none'
export DXVK_LOG_LEVEL='none'

# DXVK
#export DXVK_SHADER_CACHE='0'
#export DXVK_STATE_CACHE='0'

# End

Resources

Environment Variables

Windows Versions

nt351|nt40|vista|win10|win11|win20|win2k|win30|win31|win7|win8|win81|win95|win98|winme|winxp|winxp64

TODO

DXVK

D3D11 1.10.3

# D3D11
d3d11.cachedDynamicResources = "a"
d3d11.maxImplicitDiscardSize = "-1"
d3d11.disableMsaa = "True"
d3d11.invariantPosition = "False"
d3d11.samplerAnisotropy = "0"
d3d11.ignoreGraphicsBarriers = "True"
d3d11.relaxedBarriers = "True"
dxgi.tearFree = "False"
dxgi.syncInterval = "0"
dxgi.nvapiHack = "False"
dxgi.maxFrameRate = "0"
dxgi.maxFrameLatency = "1"
dxgi.deferSurfaceCreation = "True"

Etc

winetricks sandbox
WINEDLLOVERRIDES='dsound=n'
lsof '/dev/ntsync'
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Drivers' /v 'Graphics' /t 'REG_SZ' /d 'wayland' /f
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Drivers' /v 'Graphics' /t 'REG_SZ' /d 'x11' /f
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Direct3D' /v 'renderer' /t 'REG_SZ' /d 'vulkan' /f
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Direct3D' /v 'renderer' /t 'REG_SZ' /d 'gdi' /f
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Direct3D' /v 'csmt' /t 'REG_DWORD' /d '3' /f
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\X11 Driver' /v 'UseEGL' /t 'REG_SZ' /d 'N' /f
WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Drivers' /v 'Audio' /t 'REG_SZ' /d 'alsa' /f

AoE MIDI

fluidsynth -is '/home/espionage724/Downloads/SC55_zzdenis_v0.5.sf2' 
  • REG_SZ
CurrentInstrument #0
  • fluidsynth running; AoE not running:
aconnect -l
client 0: 'System' [type=kernel]
    0 'Timer           '
	Connecting To: 144:0
    1 'Announce        '
	Connecting To: 144:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 128: 'FLUID Synth (28675)' [type=user,pid=28675]
    0 'Synth input port (28675:0)'
client 144: 'PipeWire-System' [type=user,UMP-MIDI2,pid=2828]
    0 'input           '
	Connected From: 0:1, 0:0
client 145: 'PipeWire-RT-Event' [type=user,UMP-MIDI2,pid=2828]
    0 'input
  • TODO: (win95 with working MIDI)
  • NT 4.0 in winecfg has working MIDI and doesn't show that message (box art says win95-minimal)
00e8:fixme:vxd:__wine_vxd_open Unknown/unsupported VxD L"d:.vxd". Try setting Windows version to 'nt40' or 'win31'.

AoE running:

client 0: 'System' [type=kernel]
    0 'Timer           '
	Connecting To: 144:0
    1 'Announce        '
	Connecting To: 144:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 128: 'FLUID Synth (28675)' [type=user,pid=28675]
    0 'Synth input port (28675:0)'
	Connected From: 129:0
client 129: 'WINE midi driver' [type=user,pid=29314]
    0 'WINE ALSA Output'
	Connecting To: 128:0
client 144: 'PipeWire-System' [type=user,UMP-MIDI2,pid=2828]
    0 'input           '
	Connected From: 0:1, 0:0
client 145: 'PipeWire-RT-Event' [type=user,UMP-MIDI2,pid=2828]
    0 'input           '

Vulkan

winetricks renderer=vulkan

Wayland

dxvk.conf

Version Info

  • 1.10.3: Before Graphics Pipeline Library; also has d3d9.evictManagedOnUnlock
  • 2.6.2: 2.7+ requires Vulkan 1.3 (notable Windows Intel iGPU)

Icons

- Get raw icon files (check for png/ico large size)

mkdir -p '/tmp/icons' && wrestool --extract --all --raw --output='/tmp/icons' x

gio open '/tmp/icons'

- Icon name (match name with icon size above)

wrestool --list --all --raw x

- Etc below

mkdir -p ~/'.wine/Icons'

wrestool --list --all --raw x

mkdir -p ~/'.wine/Icons' && wrestool --output=$HOME/'.wine/Icons/IW4x-256.png' --extract --raw --type='3' --name='6' ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/iw4x.exe'

wrestool --output='GW2-256.ico' --extract --type='14' --name='1' ~/'.wine/Guild Wars 2/drive_c/Program Files/Guild Wars 2/Gw2-64.exe'

icotool --extract --icon --index='1' --width='256' --height='256' --bit-depth='32' --palette-size='0' --output=$HOME/'.wine/Icons/GW2-256.png' '/tmp/icons/GW2-256.ico'

cd ~ && rm -Rf '/tmp/icons'

# End
1)
does immediate fine with display at x11 or on Xfce
/srv/www/wiki/data/attic/linux/notes/wine.1780716564.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki