fxsound2 / fxsound-app

FxSound application and DSP source code
GNU General Public License v3.0
1.58k stars 132 forks source link

Issues with Display Off / Standby / Sleep Mode #37

Open doolhoofd opened 10 months ago

doolhoofd commented 10 months ago

Multiple forum members have complained about issues with FxSound while the Display is Off or the machine is in Sleep Mode a.k.a. Standby Mode.

Description: When the Display is turned Off or the computer goes into Sleep Mode,

  1. Playback device is lost or switched;
  2. The audio lags or glitches;
  3. CPU/GPU/RAM usage intensifies;
  4. Battery drain intensifies.

1. Playback device is lost or switched

Possible cause(s): Usually due to lack of support for modern standby power states (S0 low-power idle).

Possible solution(s):

  1. Disable all unneeded devices including hidden ones in Windows Sound Settings;
  2. Disable automatic switching in the General tab of FxSound's Settings;
  3. Change the Power settings to make the computer/display stay on longer;
  4. Check if your computer supports modern standby power states (S0 low-power idle) by running this command: powercfg /a
  5. This workaround suggested by forum member metanoiance:

Using Notepad, I made a text file with the following lines, and saved it as .bat: taskkill /f /im FxSound.exe cd C:\Program Files\FxSound LLC\FxSound start /min FxSound.exe Then I used the default Windows Task Scheduler to run the file on wake-up. Meaning every time the PC wakes up from sleep or hibernation, the FxSound.exe will be restarted. Note that the second line in the .bat file can differ depending on where you installed FxSound.


2. The audio lags or glitches

Possible cause(s): HDMI monitor audio has proven to be prone to glitches, even without FxSound.

Possible solution(s):

  1. See solution 1. above,
  2. See solution 2. above,
  3. Free up space on C:\ drive,
  4. Install the latest Intel Rapid Storage Technology drivers (for Intel users),
  5. Run a scan with LatencyMon for possible latency issues on the machine.

3. CPU/GPU/RAM usage intensifies

Possible cause(s)/solution(s): Unknown.


4. Battery drain intensifies

Possible cause(s)/solution(s): Unknown.

Sarah-Connelli commented 10 months ago

The fact closing FXSound app and then restarting the app 'fixes' the audio, points to a bug that can be remedied in the app itself.

Looking through the code, it seems the app needs code to handle sleep better and HDMI device monitoring logic.

The app was written during a time when actual sound-cards and onboard sound were the main audio devices, however these days HDMI audio has become the norm for many due to the uptake of HDMI screens, thus the app needs an overhaul to support HDMI audio better.

ChaosYoda commented 3 weeks ago

The fact closing FXSound app and then restarting the app 'fixes' the audio, points to a bug that can be remedied in the app itself.

Looking through the code, it seems the app needs code to handle sleep better and HDMI device monitoring logic.

The app was written during a time when actual sound-cards and onboard sound were the main audio devices, however these days HDMI audio has become the norm for many due to the uptake of HDMI screens, thus the app needs an overhaul to support HDMI audio better.

I have all my HDMI audio devices disabled in my sound, so I am curious as to why the screen turning off causes this behaviour. I am using USB audio (since my on board shows up as a USB device), and it still happens that the audio starts to lag, or even stop.