Closed Siarkowy closed 1 year ago
Originally posted as part of https://github.com/theNizo/linux_rocksmith/issues/31
Using following audio interface:
% lsusb | grep -i 2i2
Bus 001 Device 002: ID 1235:8210 Focusrite-Novation Scarlett 2i2 Camera
Contents of RS_ASIO.ini
:
# for "EnableWasapiOutputs" you can use -1 to have a message prompting
# to use either WASAPI or ASIO for output every time you boot the game
[Config]
EnableWasapiOutputs=0
EnableWasapiInputs=0
EnableAsio=1
[Asio]
; available buffer size modes:
; driver - respect buffer size setting set in the driver
; host - use a buffer size as close as possible as that requested by the host application
; custom - use the buffer size specified in CustomBufferSize field
BufferSizeMode=custom
CustomBufferSize=256
# if your game hangs or crashes on exit, try setting "EnableRefCountHack" to true.
# when blank or invalid, the value of "EnableRefCountHack" will be interpreted as
# true if RS ASIO detects the usage of Asio4All.
# the same applies for all inputs.
[Asio.Output]
Driver=WineASIO
BaseChannel=0
AltBaseChannel=
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100
EnableRefCountHack=
[Asio.Input.0]
Driver=WineASIO
Channel=0
EnableSoftwareEndpointVolumeControl=1
EnableSoftwareMasterVolumeControl=1
SoftwareMasterVolumePercent=100
EnableRefCountHack=
#[Asio.Input.1]
#Driver=
#Channel=1
#EnableSoftwareEndpointVolumeControl=1
#EnableSoftwareMasterVolumeControl=1
#SoftwareMasterVolumePercent=100
#EnableRefCountHack=
#[Asio.Input.Mic]
#Driver=
#Channel=1
#EnableSoftwareEndpointVolumeControl=1
#EnableSoftwareMasterVolumeControl=1
#SoftwareMasterVolumePercent=100
#EnableRefCountHack=
Contents of Rocksmith.ini
:
[Audio]
EnableMicrophone=1
ExclusiveMode=1
LatencyBuffer=4
ForceDefaultPlaybackDevice=
ForceWDM=0
ForceDirectXSink=0
DumpAudioLog=0
MaxOutputBufferSize=0
RealToneCableOnly=0
MonoToStereoChannel=0
Win32UltraLowLatencyMode=1
[Renderer.Win32]
ShowGamepadUI=0
ScreenWidth=0
ScreenHeight=0
Fullscreen=1
VisualQuality=1
RenderingWidth=0
RenderingHeight=0
EnablePostEffects=1
EnableShadows=1
EnableHighResScope=1
EnableDepthOfField=1
EnablePerPixelLighting=1
MsaaSamples=4
DisableBrowser=0
[Net]
UseProxy=1
[Global]
Version=1
Fixed after $USER
is added to realtime
group, and realtime privileges are enabled in /etc/security/limits.d/realtime.conf
or similar. See https://jackaudio.org/faq/linux_rt_config.html for more details.
This should also potentially work with existing pipewire
group mentioned in /etc/security/limits.d/25-pw-rlimits.conf
.
For Fedora 38 Silverblue:
Enable realtime setup.
rpm-ostree install realtime-setup
systemctl reboot
Verify group name in:
cat /etc/security/limits.d/realtime.conf
Add user to realtime group.
grep -E '^realtime:' /usr/lib/group
sh -c "grep -E '^realtime:' /usr/lib/group >> /etc/group"
Now, add yourself to realtime group in /etc/group
, then log out completely or reboot.
After logging in, running groups
should contain realtime
.
Game startup fails with
No audio output device is detected
error, and the following logs are produced.Realtime privileges seem to be misconfigured inside Flatpak container.