mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 08:07:22 +00:00
- Gamepad sensors are now disabled by default - Added a small deadzone to limit excess gamepad input reports
23 lines
768 B
Bash
23 lines
768 B
Bash
#!/bin/sh
|
|
|
|
# The default HOME is not persistent, so override
|
|
# it to a path on the onboard flash. Otherwise our
|
|
# pairing data will be lost each reboot.
|
|
HOME=/usr/local/moonlight
|
|
|
|
# Enable Steam Controller detection in SDL
|
|
# https://github.com/moonlight-stream/moonlight-qt/issues/697
|
|
export SDL_ENABLE_STEAM_CONTROLLERS=1
|
|
|
|
# Disable gamepad sensors by default to avoid excessive CPU
|
|
# usage that can cause audio glitches. Remove the following
|
|
# line to enable gamepad sensors.
|
|
export SENSOR_REPORT_RATE_LIMIT_HZ=0
|
|
|
|
# Renice PE_Single_CPU which seems to host A/V stuff
|
|
renice -10 -p $(pidof PE_Single_CPU)
|
|
|
|
# Renice Moonlight itself to avoid preemption by background tasks
|
|
# Write output to a logfile in /tmp
|
|
exec nice -n -10 ./bin/moonlight > /tmp/moonlight.log 2>&1
|