Bug 450868 - Don't play (un)plugged power cable sound after resume
Summary: Don't play (un)plugged power cable sound after resume
Status: RESOLVED DUPLICATE of bug 407114
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-26 09:24 UTC by Raphaël Jakse
Modified: 2022-03-20 13:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Jakse 2022-02-26 09:24:26 UTC
SUMMARY

I want to make sure my computer when waking it up.

When the power cable is removed or plugged in while the computer is on, a sound is played, which is especially useful to notice that one has removed the cable inadvertently, or to make sure that the cable is correctly connected. That's good.

However, the sound is also played after resume if the cable has been (un)plugged during suspend. This is often undesirable if one wants to wake up the computer quietly without annoying surrounding people. This sound is potentially loud, depending on the sound volume before suspend. You might remember you left the volume level high, and now if you need to quietly wake up the computer, you have no solution short of plugging a jack cable if you happen to have one nearby.

A workaround is to make sure the volume is muted before suspend, but now you need to remember to do it, and sometimes you don't have time for this when suspending the computer.

Another workaround is to remove the sounds for power-cable related notifications, but they are valuable, especially if you have a somewhat faulty cable or can't help disconnecting it while using the laptop by being clumsy.

I'd like either:
 - the power-related sounds not to be played right after resume. If one would like to make sure the cable is (un)plugged, they can look at the battery icon
 - have the option to disable the sounds after resume.

If a parameter is added, I think that should be the default. Depending on how one uses the computer, a state change is likely to occur anyway and one is definitely getting a potentially undesirable sound each time the computer is woken up.  As a result, these sounds really feel like they mean "you woke me up". Resuming the computer is not an external event that can happen any time, it is a deliberate action from the user and notifying this action back to the user does not make much sense.

STEPS TO REPRODUCE

On a laptop:
1. make sure sounds are enabled, and notifications about the power cable being (un)plugged
2. suspend the computer
3. (un)plug it
4. wake it up

OBSERVED RESULT

A sound is played on resume

EXPECTED RESULT

The computer is quiet on resume.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

X11

ADDITIONAL INFORMATION
Comment 1 Raphaël Jakse 2022-02-26 09:25:22 UTC
> I want to make sure my computer when waking it up.

is quiet. (sorry)
Comment 2 Nate Graham 2022-03-20 13:45:45 UTC
*** This bug has been marked as a duplicate of bug 407114 ***