@PowerKiKi
@terrymagnusdrever
@gannon1

Just to document this for anyone else that might benefit, attached is
the final script I created.  I reduced the previous list further from
788 to 358 verbs.  There may be a few extra ones left, but probably not
many based on my testing, as removing more tends to lose one speaker or
not generate enough volume or other weird unexpected side effects.  Its
definitely a long sequence of blocks of data that is critical as opposed
to one or two single statements. Anyway this smaller list appears to
achieve the original goal.  If anyone ever wants to reduce further, the
data is broken into many blocks that look something like this (where the
row right after the one that ends with 0x23 appears to be most important
- so in this case its one of the 0x20 blocks):

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x26
sudo hda-verb /dev/snd/hwC0D0 0x20 0xc00 0x0
sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x23
sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x20
sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x0
sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0xc0
sudo hda-verb /dev/snd/hwC0D0 0x20 0x4b0 0x11

Once you learn to work with the data as blocks it gets a lot easier to
sort.

Anyway, as far as what to do with this script....

I was not able to make a kernel patch that worked (maybe Mike can) and I
was not able to get early patching to work (which could be me because I
have never had any success with early patching).  Originally I was just
running the script manually at boot, but I found that just creating a
simple systemd daemon does the trick (steps below).  Now when I boot I
have full sound and it seems to last for a while.  What was most
unexpected was that I also added back the single HDA verb for the
headphones (which I specifically tried and found did not work before as
a stand alone daemon) and now my headphones work along with the speakers
WITHOUT using the custom kernel patch that Mike created.  Bizarre, but
whatever works.

Since my last script worked for PowerKiKi I feel confident this will
work for most Ion owners, but there is nothing in the script that is
truly specific to the Ion laptop.  The Samsung Flex was released on the
same day and appears to have the same audio hardware, so likely this
works for flex users too.  It may also work for pro or always users, I
am just not as sure on the hardware on those.

Steps to create daemon

1) Place the verb script in whatever location you prefer (it needs to
stay in one spot)

2) Make the permissions on the script file 777 and +x

3) Create a new daemon file named ....
/etc/systemd/system/ionsound.service

4) Place this text in your new daemon file

    [Unit]
    After=network.service

    [Service]
    ExecStart={full path to where you placed the file}/TO912.sh

    [Install]
    WantedBy=default.target

5) Update the daemon file permissions to 664

    sudo chmod 664 /etc/systemd/system/ionsound.service

6) Activate the daemon

    sudo systemctl daemon-reload
    sudo systemctl enable ionsound.service

7) Reboot and you should have sound


** Attachment added: "TO912 file"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+attachment/5410529/+files/TO912.sh

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1851518

Title:
  [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound on
  internal speakers, very very quiet on headphones

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  I've been googling this issue for 10's of hours and tried many things.

  Relase of Ubuntu: 19.10

  Expected outcome: Music plays on the internal speakers and headphones.

  Actual outcome: I can barely hear audio using headphones with volume
  turned up to 150%.  Absolutely nothing comes out of the speakers. (The
  speakers sound great under Windows 10.)

  Complete alsa-info output is attached, but here are some snippets:

  !!DMI Information
  !!---------------

  Manufacturer:      SAMSUNG ELECTRONICS CO., LTD.
  Product Name:      950SBE/951SBE
  Product Version:   P06RES
  Firmware Version:  P06RES.075.190529.SP
  Board Vendor:      SAMSUNG ELECTRONICS CO., LTD.
  Board Name:        NP950SBE-K01US

  
  !!Kernel Information
  !!------------------

  Kernel release:    5.3.0-19-generic
  Operating System:  GNU/Linux
  Architecture:      x86_64
  Processor:         x86_64
  SMP Enabled:       Yes


  !!ALSA Version
  !!------------

  Driver version:     k5.3.0-19-generic
  Library version:    1.1.9
  Utilities version:  1.1.9

  
  !!Loaded ALSA modules
  !!-------------------

  snd_hda_intel

  
  !!Sound Servers on this system
  !!----------------------------

  Pulseaudio:
        Installed - Yes (/usr/bin/pulseaudio)
        Running - Yes

  
  !!Soundcards recognised by ALSA
  !!-----------------------------

   0 [PCH            ]: HDA-Intel - HDA Intel PCH
                        HDA Intel PCH at 0x604b118000 irq 177

  
  !!PCI Soundcards installed in the system
  !!--------------------------------------

  00:1f.3 Multimedia audio controller: Intel Corporation Cannon Point-LP
  High Definition Audio Controller (rev 11)

  
  !!Advanced information - PCI Vendor/Device/Subsystem ID's
  !!-------------------------------------------------------

  00:1f.3 0401: 8086:9dc8 (rev 11)
          DeviceName: Onboard - Sound

  
  !!HDA-Intel Codec information
  !!---------------------------
  --startcollapse--

  Codec: Realtek ALC298
  Address: 0
  AFG Function Id: 0x1 (unsol 1)
  Vendor Id: 0x10ec0298
  Subsystem Id: 0x144dc812
  Revision Id: 0x100103
  No Modem Function Group found
  Default PCM:
      rates [0x60]: 44100 48000
      bits [0xe]: 16 20 24
      formats [0x1]: PCM
  Default Amp-In caps: N/A
  Default Amp-Out caps: N/A
  State of AFG node 0x01:
    Power states:  D0 D1 D2 D3 D3cold CLKSTOP EPSS
    Power: setting=D0, actual=D0
  GPIO: io=8, o=0, i=0, unsolicited=1, wake=0
    IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[6]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
    IO[7]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
    Control: name="Headphone Playback Volume", index=0, device=0
      ControlAmp: chs=3, dir=Out, idx=0, ofs=0
    Device: name="ALC298 Analog", type="Audio", device=0
    Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=0
    Amp-Out vals:  [0x00 0x00]
    Converter: stream=1, channel=0
    PCM:
      rates [0x60]: 44100 48000
      bits [0xe]: 16 20 24
      formats [0x1]: PCM
    Power states:  D0 D1 D2 D3 EPSS
    Power: setting=D0, actual=D0
  Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
    Control: name="Speaker Playback Volume", index=0, device=0
      ControlAmp: chs=3, dir=Out, idx=0, ofs=0
    Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x01, mute=0
    Amp-Out vals:  [0x7f 0x7f]
    Converter: stream=1, channel=0

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: alsa-base 1.0.25+dfsg-0ubuntu5
  ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
  Uname: Linux 5.3.0-19-generic x86_64
  ApportVersion: 2.20.11-0ubuntu8.2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  martin     1383 F.... pulseaudio
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Nov  6 06:20:08 2019
  InstallationDate: Installed on 2019-11-03 (3 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
  Symptom_Card: Built-in Audio - HDA Intel PCH
  Symptom_DevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  martin     1383 F.... pulseaudio
  Symptom_Jack: Speaker, Internal
  Symptom_Type: No sound at all
  Title: [950SBE/951SBE, Realtek ALC298, Speaker, Internal] No sound at all
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 05/29/2019
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: P06RES.075.190529.SP
  dmi.board.asset.tag: No Asset Tag
  dmi.board.name: NP950SBE-K01US
  dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
  dmi.board.version: SGL9849A0Q-C01-G003-S0001+10.0.17763
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 31
  dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
  dmi.chassis.version: N/A
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrP06RES.075.190529.SP:bd05/29/2019:svnSAMSUNGELECTRONICSCO.,LTD.:pn950SBE/951SBE:pvrP06RES:rvnSAMSUNGELECTRONICSCO.,LTD.:rnNP950SBE-K01US:rvrSGL9849A0Q-C01-G003-S0001+10.0.17763:cvnSAMSUNGELECTRONICSCO.,LTD.:ct31:cvrN/A:
  dmi.product.family: Notebook 9 Series
  dmi.product.name: 950SBE/951SBE
  dmi.product.sku: SCAI-A5A5-A5A5-A5A5-PRES
  dmi.product.version: P06RES
  dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.
  mtime.conffile..etc.modprobe.d.alsa-base.conf: 2019-11-05T23:13:55.854413

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851518/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to