Bug 434012

Summary: while playing an audio stream monitor is switched off after a delay
Product: [Plasma] plasmashell Reporter: Philippe ROUBACH <philippe.roubach>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: morisset.hugues, nate, nicolas.fella
Priority: NOR    
Version First Reported In: 5.21.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description Philippe ROUBACH 2021-03-05 14:42:28 UTC
SUMMARY


STEPS TO REPRODUCE
1. play an audio stream using Firefox for example
2. 
3. 

OBSERVED RESULT

after a delay monitor is switched off thus inbuilt speakers are also switched off.


EXPECTED RESULT

After a delay monitor screen is switched off and speakers are not switched off.
or
perhaps easier, as for video don't switch off monitor when listening an audio stream.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

kde apps 20.12.1
Comment 1 Hugues Morisset 2021-03-07 20:17:47 UTC
It seems like it's an intended behavior, if the audio output disappear the audio should not be outputed on it anymore.

If you want the screen to stay on, you can disable automatic sleep in the battery widget.
Comment 2 Philippe ROUBACH 2021-03-07 22:31:39 UTC
there is a misunderstanding. 
The problem is not that switching off the screen leads to switch off sound.
The problem is the screen must not be switched off when listening to an audio stream as when you play a video.

This problem occurs with :
- webkit in akregator
- Firefox
- Chrome
Comment 3 Nicolas Fella 2021-03-08 10:51:16 UTC
It's up to the application to request that the screen will not be turned off.

Firefox does exactly that when I use Spotify Web
Comment 4 Philippe ROUBACH 2021-03-08 11:51:27 UTC
I don't believe that FF, Chrome, webkit gets a bug. It's too much.

Perhaps FF, Chrome, webkit send the request and the request is not transmitted.
Comment 5 Nicolas Fella 2021-03-08 12:42:42 UTC
When power management is inhibited the applet displays that. Please check if this is the case for you
Comment 6 Nicolas Fella 2021-03-08 12:43:01 UTC
Created attachment 136487 [details]
Screenshot
Comment 7 Philippe ROUBACH 2021-03-08 13:07:30 UTC
Today it works. Monitor is not switched off !

It seems this is a random phenomenon.

Yes I got "Firefox : audio playing" in "battery & brightness" applet.