trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: May 2020

Re: [trinity-users] Re: Thinkpad X1: FN F1 silence audio, but cannot be activated via the fn keys

From: "Michele Calgaro via trinity-users" <trinity-users@...>
Date: Sun, 24 May 2020 20:42:34 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2020/05/24 06:45 PM, deloptes wrote:
> Uwe Brauer wrote:
>
>> Thanks (so I have to use git to clone the repository I presume, sigh, fortunately there is the hg-git plugin)
>
> Yes true
>
> look at feat/pa-support (kmix)
>
> https://mirror.git.trinitydesktop.org/gitea/TDE/tdemultimedia/pulls/19
>
> and feat/pa-support for the OSD part (kmilo)
>
> https://mirror.git.trinitydesktop.org/gitea/TDE/tdeutils/pulls/26
>
> Michele reported that in some cases it is good to reset to default MM keys or reset custom again. For me it worked
> on the fly.
>
> regards
>

Hi everyone,
I am replying here to all emails in this thread

The problem with mute/unmute is caused by PulseAudio and it is a long standing issue (I found posts from 2011 about
this in internet). Basically this happens when we are muting/unmuting the ALSA master channel instead of PA master
channel. Muting ALSA master will also mute PA master (which may even mute ALSA PCM as a consequence). Unmuting ALSA
master will unmute such channel but not PA master. The correct way is to mute/unmute PA master.

The current KMix/KMilo code in master and R14.0.x does not support PA well and this problem is a consequence of that.
I have recently prepared a full fix that will go in master branch probably tomorrow, but given that it brings along a
significant API change, it won't make it to R14.0.x branch. Anyhow a small section of the fix will be backported to
address some of the issues I found will fixing PA support for R14.1.0.

For the time being (till R14.1.0 is out - possibly end of 2020) you have the following choices:

1) you can mute/unmute from the KMix slider LED, this should work fine with PA already

2) you can open KMix mixer windod -> Settings -> Configure global shortcuts and remap the "toggle mute" keyboard
shortcut to some other key combination. Do not use "XF86AudioMute" key, since this is normally used by KMilo and
therefore may not work

3) you can create a script that calls "dcop kmix Mixer-1 toggleMasterMute", this will mute/unmute the PA master
channel. You can add an input action tied to a keyboard shortcut to call this easy.

4) if you are on debian-like distro, you could switch to Slavek's PTB packages and get the latest R14.1.0-dev packages
at regular intervals. This will bring you the complete fix in a few days

Cheers
  Michele
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEjhl1z5vbYB3YbFTiKnW3yore1c8FAl7KXaYACgkQKnW3yore
1c+0gRAAsE+ZZN01pZHKRzcdUPtcPJZR90rf0kyyupN+DCEDP0f7NRH2ffoM2Os5
TGmw7WzLhCxzDT4ZtdGGJBWwHFbgWPt98FWkOJj6qucx7FeErazWE88eHsw/YzIQ
o8t3bY8MurjUqZRT06rtYwhZ0ErQ+DNdnawyB8zRYJr8Z0hd62toqGk9ea8cvJcj
0Gf+H/sS9iu/+UOVzT19fD7I/2cLE3FrjSnMc4Wky0A2yhsI6G8UpfeNLXN4vujH
C39fv2AyyjZehwc8nLfgmH9ErjT9zkNMfVk2yY8oeOZ/1indMQclpg5nBF83qmjz
5Ky2wA0OL4j0Ay60G4fuh9mq8guTnYw+IHLCAoB7D7SjUf0zrMewFHyVf5lxQK3Y
aIJtIk08r1VtIV3B+69eExoyvDACOkwprEGv+Xv0Xs8X+sacff1tkriaO6oi/4OJ
r5mCoqmscKsxkmS1/NM2mikuirklRy6pFaJX2AHCCYe61VWyPUr+/BA9jwuHuyHo
GF7WXOgr0CxzU6Z78SvvhtEE8mGKqnjTQx0IiPYoC5P3HVw/+KSrUMQp1TCR2E8x
KCguj+6n6HUS2I701hsooGSk1JQ1EYHajWPV8HLDPix3TQrJ15yEIXg+9FAZFyXw
fIuxsHoFsSSewlPiZcy0wA44aKJHwQKiIfYa7+Px32fNpNuzKmo=
=Zu6K
-----END PGP SIGNATURE-----