On 11/1/24 09:18, Takashi Iwai wrote:
>> Well, to what I recall - my (current) Thinkpad has never beeped on
>> shutdown, other than that - without your "extra muting" patch - yes -
>> beeping in every other circumstances works no matter if HDA controller
>> is in PM suspend or not; this is what I've got used to for many years of
>> using Thinkpads.
>
> Do you mean about the beep emitted via thinkpad_acpi stuff or the
> normal beep via terminal etc? The latter must work even with the
> patch, but the question is only about the former. And that's the case
> for the shutdown beep tone.
Yes, I meant beeps emitted by ACPI firmware and I'm not confusing them
with beeps generated by linux console - as you said - the latter work
fine no matter if your patch is applied or not, the former only work
fine if that patch is reverted.
BTW. The ACPI beeps we are talking about are not emitted by
thinkapd_acpi module, but by ACPI firmware; you can take a look at how
thinpad_acpi handles writes to /proc/acpi/ibm/beep - it doesn't make any
beep itself, it just injects some "fake" ACPI event - and beep is
generated by laptop's firmware in response to that event (the
terminology here might not be too good, because my knowledge of ACPI is
rather modest).
Anyway - with that being said - when it comes to the lack of beep on
shutdown on *my* laptop - this must be because of *my* laptop's APCI
firmware just doesn't emit beep for this specific event.
> You can pass snd_hda_intel.beep_mode=0 option to disable HD-audio
> beep, verify the device being runtime-suspended, and check whether the
> beep via thinkpad_acpi still works (after reverting).
Yes, that works.
I've even had another test - with patch applied I increased power_save
param in this module to 3 seconds and now:
- when I unplug AC - there is no beep, because device is PM suspended
- now I hit Tab in bash on linux console, kernel emits beep and keeps
device awaken for 3 more seconds - so I quickly unplug AC - there is a
beep, then wait ~3 seconds and plug it back - no beep now. That shall
prove that our understanding of what's going on is OK.
--
Regards
Jarosław Janik
[Index of Archives]
[Pulseaudio]
[Linux Audio Users]
[ALSA Devel]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]