Re: Lenovo Thinkpad P16s Gen3 espeakup support (Was: Heads-up: please look at the proposed fix, Was: No speech in the alpha Installer, and speech freeze in Bookworm)

Roland Clobus <[email protected]> Sat, 24 May 2025 11:51:57 +0200
Newsgroups gmane.linux.debian.devel.boot,gmane.linux.debian.devel.cd
Message-ID <[email protected]>
Hello,

On 23/05/2025 17:26, Cyril Brulebois wrote:
> Roland Clobus <[email protected]> (2025-05-23):
>> I've prepared a patch for the live images, which will be merged soon:
>> https://salsa.debian.org/live-team/live-build/-/merge_requests/424
>>
>> The ugly thing is that I need the kernel modules 'drm' and 'i915' and their
>> dependencies in addition to the firmware to enable sound for espeakup on the
>> Lenovo Thinkpad.
>>
>> Would it be OK to stuff so much extras in the initrd of the installer?
> 
> We already have drm.ko (and a few others, for other reasons). Do you
> have a full list of required modules? I can only see a grep call, and at
> least drm seems like a HUGE hammer:
>   - a current gtk initrd's /kernel/drivers/gpu/drm is 560K
>   - a current linux-image's /kernel/drivers/gpu/drm is 9.5M

With the big hammer I got the espeakup module working on a Lenovo 
Thinkpad P16s Gen3.

Now I did a few loops with incrementally adding kernel modules to find 
out the minimal requirement:
* drm needs i915
* i915 needs cec, drm_display_helper and drm_buddy
* cec needs rc-core

> Also, how does firmware-intel-graphics fit in this picture?

When loading the i915 module, it requests several firmware files from 
firmware-intel-graphics (mtl_dmc.bin, mtl_guc_70.bin, mtl_huc_gsc.bin, 
mtl_gsc_1.bin). It turn out that these firmware files are not required 
for the espeakup module (even though dmesg complains about them)

So overall we (only) need 5 additional kernel modules:
i915, drm_buddy, drm_display_helper, cec, rc-core

With kind regards,
Roland Clobus

PS: The filename is rc-core.ko.xz, the module name is rc_core
OpenPGP_signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUFVLM5Bdj7GSJEb+YsV8aqYUlb0FAmgxlr0ACgkQYsV8aqYU
lb23Wg//fod3HC7BYPuQUSfY7VlsGpfsUVsFQ/pGviNn0yJplsoJ6rLTkLtdF6XH
grC0TBFEoDzQlYALmKEPddda129xwOMDQoejKEGmu2LUy/pglcyXbpIm9dhlvEI4
O//nQ7Gys57U+l5OoOHpkjmEAAboxiC65F5f5zdoGZkn5D1V84X8xdRKWwH+1OQv
hmdRU34uZKHPp4Ay/uwXCQEoekv/mxUhcbbAlt0rJGkVuU8zf8ywFlTa5WZvsED+
4fMg5tN0pin1tl3jMT940hrG2COPzPN4sYauJRLH7v2uPixPf8lVnz+kAg4Sx+dT
sERjjA1BfZL4O10zFHb8XkOZputZm8bpXFY6t88Ap1H7UMb8WAqUHXjguwBb0qfH
dP3E6Vl3BqgAO0T18viTwjGIdDntpCQpOz6d3YH3/nH1fx/6NuXMasXgtU5/yRjl
IPrprjaRt+aozhNoiMpHBD3deQ/sGuALpUlUSIDLU/jkidnYR94OXZKiBwyEnu85
QxIFuspDpzwgxX/PNjZXTD0w44tWXCHeG0Vp+8i0s2GPYSD05TOVALZx2QTPm4PG
HdNw3k4VXyQxZQKtE1r/LOP56EAre8W91n7vBm7Er4undu9DQWc78Uauh0hDqpg6
3KsHTiDRJWsCmHg02LRc292BV1uI3CbRbeP/980qZoDuvdAfmKY=
=Jiyh
-----END PGP SIGNATURE-----