Giter VIP home page Giter VIP logo

linux-realtek-alc287's People

Contributors

thiagotei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-realtek-alc287's Issues

Did not work for me :( (Lenovo Legion 7 2021)

Tried the main patch, followed the instructions exactly and then rebooted. Opened up Lofi girl but alas. Tested on Ubuntu 20.04.2 with kernel 5.8.0-59-generic. However, it does seem that sound is recognised in Settings -> Sound -> Output (I think it wasn't recognised before this).

As a side note, the alternative 1 also didn't work. (In your instructions, verbs-working.txt is basically verbs-legion.txt right?)

How to make patch of other alc287 laptop

My friends have Legion laptop with same problem. But we found your patch not work for like Legion 7 2022. I know maybe I should make different patch for it. But could you tell me how?

Lenovo Legion 7 methods not working

Are there other requirements? Does this work with Pulse Audio? I'm using Pulse Audio for bluetooth headset compatibility.

Method 1 does nothing.

Method 2 returns an error:

sudo python3 realtek-verb-tools/applyverbs.py verbs-working.txt
Applying verbs...
Traceback (most recent call last):
  File "/home/gavsiu/Downloads/realtek-verb-tools/applyverbs.py", line 39, in <module>
    result = subprocess.run(args, stderr=subprocess.DEVNULL, stdout=subprocess.PIPE).stdout.decode('utf-8')
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'hda-verb'

Legion 7i 15" 81YT0039US
Host: 81YT Lenovo Legion 7 15IMH05

Does not work with my Lenovo Legion Slim 7 15IMH5 82BC006URK

Hi,

thank you for this patch.
I tried to apply it to my machine, it doesn't work at all, though according to dmesg patched is used:

$ dmesg | grep -B 10 -A 10 alc287 
[   32.260507] input: CUST0001:00 06CB:CD3E Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-3/i2c-CUST0001:00/0018:06CB:CD3E.0001/input/input13
[   32.260563] input: CUST0001:00 06CB:CD3E Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-3/i2c-CUST0001:00/0018:06CB:CD3E.0001/input/input14
[   32.260608] hid-multitouch 0018:06CB:CD3E.0001: input,hidraw0: I2C HID v1.00 Mouse [CUST0001:00 06CB:CD3E] on i2c-CUST0001:00
[   32.261322] intel_rapl_common: Found RAPL domain package
[   32.261323] intel_rapl_common: Found RAPL domain core
[   32.261324] intel_rapl_common: Found RAPL domain uncore
[   32.261325] intel_rapl_common: Found RAPL domain dram
[   32.261325] intel_rapl_common: Found RAPL domain psys
[   32.263209] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[   32.263235] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[   32.263819] snd_hda_intel 0000:00:1f.3: Applying patch firmware 'legion-alc287.patch'
[   32.264063] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[   32.264170] snd_hda_intel 0000:01:00.1: Disabling MSI
[   32.264178] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[   32.264263] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   32.265058] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[   32.291814] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC287: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[   32.291819] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   32.291820] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   32.291822] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[   32.291823] snd_hda_codec_realtek hdaudioC0D0:    inputs:

python based patch(sudo python3 realtek-verb-tools/applyverbs.py verbs-legion.txt) fixes my sound but after reboot/suspend/just some amount of time sound disappear again. Any ideas why patched firmware doesn't work?

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC287 Analog [ALC287 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ lspci -v
...
00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS (prog-if 80)
	Subsystem: Lenovo Device 3811
	Flags: bus master, fast devsel, latency 64, IRQ 189
	Memory at 6023218000 (64-bit, non-prefetchable) [size=16K]
	Memory at 6023100000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_sof_pci
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.