NixOS / nixos-hardware

A collection of NixOS modules covering hardware quirks.
Creative Commons Zero v1.0 Universal
2.08k stars 641 forks source link

Legion 16irx8h Speaker Issue #1039

Open MAkcanca opened 4 months ago

MAkcanca commented 4 months ago

Using the nixos-hardware/lenovo/legion/16irx8h with latest (6.9.8) linux kernel. Speaker seem to work for a few minutes after boot, then get disabled/shutdown. I could not find any related logs in journalctl -b. I tried the default kernel 6.6 as well, same result. There is a firmware specified in https://forums.lenovo.com/t5/Ubuntu/Ubuntu-and-legion-pro-7-16IRX8H-audio-issues/m-p/5210709?page=22#6155866 firmware-TAS-2781... However this requires copying to /lib/firmware normally. I'm not very familiar with NixOS architecture just yet, any help is appreciated to make the 16irx8h work perfectly.

Another related discussion here https://github.com/clearlinux/distribution/issues/2992

MAkcanca commented 3 months ago

Running this script https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/6/8306.2pa_2D00_byps.sh as root via ./8306.2pa_2D00_byps.sh 13 works after enabling i2c via hardware.i2c.enable = true; on configuration.nix however sound feels a bit janky, almost like it does not enable bass speakers or not enough amps, and when there is no sound for a while, it turns off the speakers again so we have to run the command again.

MAkcanca commented 3 months ago

Another related discussion including several hacks https://forums.lenovo.com/t5/Ubuntu/Ubuntu-and-legion-pro-7-16IRX8H-audio-issues/m-p/5210709?page=32

felipelalli commented 2 months ago

Same issue here with my Lenovo Legion Pro 7 16IRX9H. Maybe related: https://discourse.nixos.org/t/sound-speaker-problem-after-connect-bluetooth-device/52443 (no solution).

nixos-discourse commented 2 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/sound-speaker-problem-after-connect-bluetooth-device/52443/1

felipelalli commented 3 weeks ago

I found a (temporary?) solution at:

New Lenovo Legion 7 Pro (2023) no sound from speakers in Linux (Reddit)

It worked to me.

I added it to my configuration file:

{ config, lib, pkgs, modulesPath, ... }:

{

  boot.extraModprobeConfig = ''
    options snd-hda-intel model=auto
  '';

  boot.blacklistedKernelModules = [ "snd_soc_avs" ];
}

PR: https://github.com/NixOS/nixos-hardware/pull/1227

nixos-discourse commented 3 weeks ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/sound-speaker-problem-after-connect-bluetooth-device/52443/2