English Community

Linux Operating SystemsUbuntu
All Forum Topics
Options

3 Posts

09-29-2019

US

9 Signins

80 Page Views

  • Posts: 3
  • Registered: ‎09-29-2019
  • Location: US
  • Views: 80
  • Message 51 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-29, 12:51 PM

FWIW, when I roll back all of my manual changes and then, in the pavucontrol GUI, change 'Configuration -> Built-in Audio -> Profile' to Analog Surround 4.0 Output + Analog Stereo Input' I can test all 4 speakers using the Sound GUI, but the volume keys don't work at all other than to mute when I reduce the sound completely.

Reply
Options

4 Posts

08-13-2019

GB

5 Signins

65 Page Views

  • Posts: 4
  • Registered: ‎08-13-2019
  • Location: GB
  • Views: 65
  • Message 52 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-29, 13:42 PM

Hey Akvadrako did you get anything working with SOF?  I've just done a dist upgrade to 19.10 and I'm now on Kernel 5.3.0.13.14.  Still no Mic, and no top firing speakers.  Has anyone had any confirmed success with this?

Reply
Options

24 Posts

06-23-2019

CA

78 Signins

353 Page Views

  • Posts: 24
  • Registered: ‎06-23-2019
  • Location: CA
  • Views: 353
  • Message 53 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-29, 14:02 PM

For everyone having sound issues, make sure you follow Dave's instructions in this post: https://forums.lenovo.com/t5/Ubuntu/Guide-X1-Carbon-7th-Generation-Ubuntu-compatability/m-p/4503771/highlight/true#M2849

 

Once I compiled my own kernel and followed those instructions I got fully working speakers and internal mic.

Reply
Options

21 Posts

07-12-2019

AU

45 Signins

252 Page Views

  • Posts: 21
  • Registered: ‎07-12-2019
  • Location: AU
  • Views: 252
  • Message 54 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-29, 14:20 PM

 wrote:

Hey Akvadrako did you get anything working with SOF?  I've just done a dist upgrade to 19.10 and I'm now on Kernel 5.3.0.13.14.  Still no Mic, and no top firing speakers.  Has anyone had any confirmed success with this?


Yes with Fedora 31, definitely recommend it, mic and all speakers working, although top speaker volume is quite low. Sounds much better than 5.2 with legacy HDA driver though. Have spoken to Intel devs about this who suggest it is a codec issue unrelated to SOF  - https://github.com/thesofproject/sof/issues/1885#issuecomment-536109894

Reply
Options

9 Posts

01-21-2010

NL

23 Signins

154 Page Views

  • Posts: 9
  • Registered: ‎01-21-2010
  • Location: NL
  • Views: 154
  • Message 55 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-29, 15:18 PM
No, I haven't tried anything else. I'm not really sure how this SOF driver stuff is supposed to work and I can't find any documentation. It seems like the nocodec module is causing issues, based on another post in this thread. But blacklisting it doesn't help, so I'm not sure what to do.
Reply
Options

3 Posts

09-29-2019

US

9 Signins

80 Page Views

  • Posts: 3
  • Registered: ‎09-29-2019
  • Location: US
  • Views: 80
  • Message 56 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-29, 17:29 PM

Building the 5.3 kernel didn't work. pulseaudio still fails to initialize.

 

I followed the instructions, including following the comment from @DaveOber to "generic tplg firmware  available here put in the sof-tglg directory." I used the 5.3 stable tree from kernel.org.

 

There were two problems with the instructions:

1) Instructions say to create/modify alsa_base.conf, but the system had a alsa-base.conf file. I assumed the instrutions had a typo and I went with alsa-base.conf

2) There was no '-q' option to 'update-initramfs' so I went with '-u' to update the initramfs.

 

$ sudo make -j 9
$ sudo make -j 9 modules
$ sudo make -j 9 modules_install
$ sudo make -j 9 install
rwlove@nomad:~$ ls -l /lib/firmware/intel/sof/*
-rw-rw-r-- 1 rwlove rwlove 278528 Sep 29 08:57 /lib/firmware/intel/sof/sof-cnl.ri
-rw-r--r-- 1 root   root   274432 Jul 12 05:30 /lib/firmware/intel/sof/sof-cnl.ri.orig_rwl

rwlove@nomad:~$ ls -l /etc/modprobe.d/alsa-base.conf*
-rw-r--r-- 1 root root 2506 Sep 29 07:18 /etc/modprobe.d/alsa-base.conf
-rw-r--r-- 1 root root 2507 Jul 30  2015 /etc/modprobe.d/alsa-base.conf.orig_rwl

rwlove@nomad:~$ ls -l /lib/firmware/intel/sof-tplg/*
-rw-rw-r-- 1 rwlove rwlove 42843 Sep 29 09:55 /lib/firmware/intel/sof-tplg/sof-hda-generic.tplg
-rw-r--r-- 1 root   root   42843 Jul 12 05:30 /lib/firmware/intel/sof-tplg/sof-hda-generic.tplg.orig_rwl

rwlove@nomad:~$ ls -l /etc/modprobe.d/blacklist.conf*
-rw-r--r-- 1 root root   45 Sep 29 07:19 /etc/modprobe.d/blacklist.conf
-rw-r--r-- 1 root root 1667 Nov 12  2018 /etc/modprobe.d/blacklist.conf.orig_rwl

rwlove@nomad:~$ ls -l /usr/share/alsa/ucm/sof-skl_hda_card/HiFi*
-rw-r--r-- 1 root root 5164 Sep 29 07:20 /usr/share/alsa/ucm/sof-skl_hda_card/HiFi

rwlove@nomad:~$ ls -l usr/share/alsa/ucm/sof-skl_hda_card/sof-skl_hda_card.conf*
-rw-r--r-- 1 root root 73 Sep 29 10:19 usr/share/alsa/ucm/sof-skl_hda_card/sof-skl_hda_card.conf

 

$ sudo update-initramfs -u

 

The kerenel boots, but pulseaudio fails with:

 

Sep 29 10:05:19 nomad pulseaudio[4107]: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=hw:0,0"): initializatio\
n failed.
Sep 29 10:05:19 nomad pulseaudio[4107]: [pulseaudio] main.c: Module load failed.
Sep 29 10:05:19 nomad pulseaudio[4107]: [pulseaudio] main.c: Failed to initialize daemon.
Sep 29 10:05:19 nomad pulseaudio[4104]: [pulseaudio] main.c: Daemon startup failed.
rwlove@nomad:~$ aplay -l
aplay: device_list:270: no soundcards found...

 

Any thoughts?

 

One thing I noticed was that my CPU microarchitecture is Whiskey Lake. The instructions had me turn on 'SOF support for Cannonlake." There are no entries for Whiskey Lake so maybe this microarchitecture isn't supported upstream or maybe the Cannonlake code is the same for Whiskey Lake. 

 

rwlove@nomad:~$ sudo dmidecode | grep Version | grep Intel
	Version: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz

syslog:

Sep 29 09:54:17 nomad kernel: [   13.864335] sof-audio-pci 0000:00:1f.3: warning: No matching ASoC machine driver found
Sep 29 09:54:17 nomad kernel: [   13.864341] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040380
Sep 29 09:54:17 nomad bluetoothd[934]: Bluetooth management interface 1.14 initialized
Sep 29 09:54:17 nomad kernel: [   13.864469] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
Sep 29 09:54:17 nomad kernel: [   13.867481] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Sep 29 09:54:17 nomad kernel: [   13.877336] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
Sep 29 09:54:17 nomad kernel: [   13.877338] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now 

 

 

Reply
Options

2 Posts

09-30-2019

RO

9 Signins

140 Page Views

  • Posts: 2
  • Registered: ‎09-30-2019
  • Location: RO
  • Views: 140
  • Message 57 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-09-30, 20:48 PM

I'll just leave this here, it helped me fix my sound volume issues.

 

https://qiita.com/thermes/items/d106ddaff103170bf963

 

Basically all he's doin for the sound fix he's adding

 

[Element Master]
switch = mute
volume = ignore

 

to the file 

 

/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common

 

"Since no 'Master' element is in this file, it seems as if the Master is the preferred slave for the volume control, and although PCM is set to 'merge' (thus, it is another volume slave), it takes not the desired effect. So, just insert the following block before the PCM-block:" from https://forums.linuxmint.com/viewtopic.php?t=91453

 

Hope it helps you guys! 

Reply
Options

2 Posts

10-12-2019

GB

5 Signins

42 Page Views

  • Posts: 2
  • Registered: ‎10-12-2019
  • Location: GB
  • Views: 42
  • Message 58 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-10-12, 20:26 PM

Hi

 

There were a few things I had to do differently to get mine working so I slightly edited the instructions. I'm on Arch Linux so I just installed the latest kernel from the repos instead of building it and it has all the necessary modules. Just in case someone else gets stuck I felt I should share my version of the instructions.

 

Huge thanks to Dave for the original contribution!

Reply
Options

19 Posts

05-19-2016

US

40 Signins

266 Page Views

  • Posts: 19
  • Registered: ‎05-19-2016
  • Location: US
  • Views: 266
  • Message 59 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-10-12, 22:48 PM
Tried this but sound disappeared entirely. What setting should I be using in pavucontrol? Also, where would you paste that line in the default.pa file?

Thanks.
Reply
Options

2 Posts

10-12-2019

GB

5 Signins

42 Page Views

  • Posts: 2
  • Registered: ‎10-12-2019
  • Location: GB
  • Views: 42
  • Message 60 of 157

Re: [Guide] X1 Carbon 7th Generation Ubuntu compatability

2019-10-12, 22:58 PM

 wrote:
Tried this but sound disappeared entirely. What setting should I be using in pavucontrol? Also, where would you paste that line in the default.pa file?

Thanks.

When you run   dmesg | grep sof   do you get something like


[ 20.169699] sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof-tplg/sof-hda-generic.tplg failed with error -2

 

That's what was wrong for me, you need to put the tplg file it tells you you're missing (correctly named) into /lib/firmware/intel/sof-tplg/

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete