Closed Riebeck-one closed 2 months ago
The setting takes a path to a file, not a set of command line args. Create a bash script and put your command + args in here.
also see audio-setup.sh which is the script that is being used when you set up audio via the setup wizard.
I created a small script that accomplishes what I want:
#!/bin/bash
qpwgraph -a -m '/home/david/Documents/Qpwgraph Profiles/VR.qpwgraph'
I gave it all necessary permissions and it works well when I double-click on it or run it in the terminal.
However, when used in ALVR, it doesn't work correctly, even though ALVR doesn't show me any error loading the scripts:
5:08:37.541261408 INFO Client disconnected. Cause: Broken pipe (os error 32)
15:08:37.541755223 INFO Running on disconnect script (disconnect): /home/david/scripts/ALVR_sound_off.sh
15:08:38.880622033 INFO Initial socket buffer size: send: 130560B, recv: 131072B
15:08:38.910286795 INFO Initial socket buffer size: send: 130560B, recv: 131072B
15:08:38.910303615 INFO Set socket send buffer succeeded: 425984
15:08:38.910306205 INFO Set socket recv buffer succeeded: 425984
15:08:38.947598581 INFO Running on connect script (connect): /home/david/scripts/ALVR_sound_on.sh
15:08:38.948045826 INFO Render Target: 4032 2208
15:08:38.948051336 INFO Refresh Rate: 120
15:08:38.956980914 INFO Received new playspace with size: [1.2, 1.2]
15:08:39.397735366 INFO Audio recovered
15:09:05.319368675 INFO Audio recovered
15:09:05.454951238 INFO Audio recovered
15:09:05.466521782 INFO Audio buffer overflow! size: 4959
15:09:14.617993029 INFO Audio recovered
15:09:41.957070527 INFO Audio recovered
15:09:41.960796124 INFO Audio buffer overflow! size: 5145
15:09:41.973727381 INFO Audio buffer overflow! size: 5085
15:09:41.985792529 INFO Audio buffer overflow! size: 5085
15:09:42.014586893 INFO Audio buffer overflow! size: 5682
15:09:42.078636902 INFO Audio buffer overflow! size: 4878
15:09:42.078645332 WARN Desync detected. Attempting recovery.
15:09:42.163023171 INFO Audio recovered
15:09:58.106886274 INFO Received new playspace with size: [1.2, 1.2]
15:10:05.281369040 INFO Audio recovered
15:10:05.334168279 INFO Audio buffer overflow! size: 5247
15:10:05.464012214 INFO Audio recovered
15:10:05.470397277 INFO Audio buffer overflow! size: 4878
15:10:05.614697535 INFO Audio recovered
15:10:13.775554488 INFO Client disconnected. Cause: Connection reset by peer (os error 104)
15:10:13.776210215 INFO Running on disconnect script (disconnect): /home/david/scripts/ALVR_sound_off.sh
hard to say. maybe log what qpwgraph outputs by piping its stdout and stderr to a file?
I've tried with another very simple script :
#!/bin/bash
kate &
And I have the exact same behaviour. ALVR doesn't seem to be able to start any of my scripts. Could this be related to user or group permissions?
i doubt it gets the env passed as is, so graphical programs likely won't find your wayland socket, etc
Ok that might explain my problem.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Description
The connect and disconnect scripts are not working properly on Linux. The scripts fail to execute and error messages are shown. Please see the logs below for more information.
Environment
Hardware
Installation
ALVR Version: ALVR Version: 20.7.1
ALVR Settings File:
SteamVR Version: 2.4.4
Install Type:
exe
,deb
,rpm
, etc)zip
)OS Name and Version (
winver
on Windows orgrep PRETTY_NAME /etc/os-release
on most Linux distributions): Arch LinuxLogs: