Tiny Core Extensions > TCE Corepure64

[Solved] Sound on ThinkPad T440p

<< < (3/8) > >>

MikeLockmoore:

--- Quote from: aus9 on June 05, 2023, 09:48:49 PM ---delete all modprobes in bootlocal....full reboot to be sure.

post full output for (ignore capital -L at this stage)

--- Code: ---aplay -l
--- End code ---

--- End quote ---

I don't have any modprobe calls in bootlocal:

--- Code: ---tc@box:/opt$ cat bootlocal.sh
#!/bin/sh
# put other system startup commands here
/opt/eth0.sh &
/usr/local/bin/wifi-connect &

--- End code ---


--- Quote ---post full output for (ignore capital -L at this stage)
Code:

aplay -l
--- End quote ---

OK... my aplay -l is

--- Code: ---**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

--- End code ---

Which is what it was before, if I'm not mistaken.

I manually tried (in terminal, not bootlocal.sh):

--- Code: ---modprobe -r  snd_hda_intel
modprobe     snd_hda_intel options  model=tpt440

--- End code ---

But I was not able to get any sound from speaker-test and got the same kind of errors I had before.

The really weird thing is there seems to be no card0...
I dug around a bit in my sys/ filesystem.  i have these:

/sys/module/snd/                                  /sys/module/snd_hda_intel/
/sys/module/snd_ctl_led/                       /sys/module/snd_hwdep/
/sys/module/snd_hda_codec/                /sys/module/snd_intel_dspcfg/
/sys/module/snd_hda_codec_generic/    /sys/module/snd_pcm/
/sys/module/snd_hda_codec_realtek/     /sys/module/snd_timer/
/sys/module/snd_hda_core/

I tried to look around, but I don't see anything that is claiming to be card0.  I do see a rat's nest of symlinks that recurse in a crazy way.   ???

Not getting much further with ALSA, I'm afraid!  Thanks for the links... maybe I can get some more clues from them.


--- Quote from: aus9 on June 05, 2023, 11:26:09 PM ---I forgot to mention, I was focussing on attempting to disable hdmi to give you a result for speaker-test.
but what you are focussing on is to get sound ....and I accept if my method half succeeds, lets not worry about index=0 and instead,
if you like....install pulsaudio and pavucontrol....read their info files.

pavucontrol will allow you to swap your preferred output device. Maxmise the GUI so you can see all the TABS

--- End quote ---

I suppose I can try PulseAudio tomorrow or the next day!
--
Mike

aus9:
Hi
no card0? the hardware data submitter had such so weird!

I have a new link for you to study and curaga hinted at solution too

--- Quote ---have you installed the thinkpad-acpi extension? It's unlikely it affects sound, but being thinkpad-specific would be good anyway.
--- End quote ---
For the moment I think its safe to have this in your boot list if curaga agrees?
to be rude....it NOW must be installed to have relevance below solution to try

2) Do this all by commands---we can sort it out later scripts/boot list and other configs later
so remove all sound packages (except thinkpad) and media players from your boot list please

Read link
https://github.com/xbelanch/Arch4T440P/blob/main/arch_4_t440p_installation.md

Notice that they are loading alsa-utils alsa-plugins alsa-lib pavucontrol
so we will do the same but in a different order due to dependencies

--- Code: ---tce-load -i  alsa-config alsa-plugins pavucontrol
--- End code ---

When you look at our deps...alsa-config contains alsa-utils
alsa-plugins has deps including alsa & libasound plus others
 pavucontrol has dep of pulseaudio

Next  we become root for these comands

--- Code: ---sudo su
modprobe -r  snd_hda_intel
modprobe     snd_hda_intel options enable=0,1 index=0
modprobe -r snd
modprobe snd options slots=snd_hda_intel, thinkpad_acpi
modprobe -r thinkpad_acpi
modprobe  thinkpad_acpi thinkpad_acpi index=1
--- End code ---

Warning I have never done a parameter for snd kernel module so not sure if it works without a removal and modprobe

next run

--- Code: ---aplay -l
--- End code ---

as hinted by curaga, its possible if you had that thinkpad module loaded, it was stealing card0 slot

do we have card0?

MikeLockmoore:

--- Quote from: aus9 on June 06, 2023, 01:22:36 AM ---Hi
no card0? the hardware data submitter had such so weird!

I have a new link for you to study and curaga hinted at solution too
...

--- Code: ---tce-load -i  alsa-config alsa-plugins pavucontrol
--- End code ---

...

Next  we become root for these comands

--- Code: ---sudo su
modprobe -r  snd_hda_intel
modprobe     snd_hda_intel options enable=0,1 index=0
modprobe -r snd
modprobe snd options slots=snd_hda_intel, thinkpad_acpi
modprobe -r thinkpad_acpi
modprobe  thinkpad_acpi thinkpad_acpi index=1
--- End code ---

...


--- Code: ---aplay -l
--- End code ---

...
do we have card0?

--- End quote ---

YES!  There were a few issues in the modprobe commands (see below), but at the end of it, I have a card0 and I could run the 'speaker-test [-Ddefault:1] -c2 -t wav -l1' test and hear sound! Thanks! 

Now, I need to figure out what was necessary in these commands to make it work.  Pulling in PulseAudio or maybe just some of the modprobe commands are needed to sort out the device drivers, or perhaps almost all of it.  I'll study the link you included to understand things a bit better. 

Log of the commands and responses:

--- Code: ---tc@box:~$ tce-load -i alsa-config alsa-plugins pavucontrol
libpci.tcz: OK
pciutils.tcz: OK
alsa-config.tcz: OK
alsa-plugins.tcz not found!
tc@box:~$ tce-load -i alsa-config alsa-plugins pavucontrol
alsa-config is already installed!
ncursesw.tcz: OK
alsa.tcz: OK
alsa-plugins.tcz: OK
libsigc++.tcz: OK
glibmm.tcz: OK
cairomm.tcz: OK
pangomm.tcz: OK
atkmm.tcz: OK
gtkmm.tcz: OK
libavahi.tcz: OK
libltdl.tcz: OK
libogg.tcz: OK
speex.tcz: OK
speexdsp.tcz: OK
libvorbis.tcz: OK
flac.tcz: OK
libsndfile.tcz: OK
libpulseaudio.tcz: OK
pulseaudio.tcz: OK
libcanberra.tcz: OK
pavucontrol.tcz: OK

tc@box:~$ sudo su
root@box:/home/tc# modprobe -r snd_hda_intel
root@box:/home/tc# modprobe snd_hda_intel options enable=0,1 index=0
root@box:/home/tc# modprobe -r snd
modprobe: can't unload module 'snd': Resource temporarily unavailable
root@box:/home/tc# modprobe snd options slots=snd_hda_intel, thinkpad_acpi
root@box:/home/tc# modprobe -r thinkpad_acpi
root@box:/home/tc# modprobe thinkpad_acpi thinkpad_acpi index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
root@box:/home/tc# modprobe -r thinkpad_acpi
root@box:/home/tc# modprobe thinkpad_acpi thinkpad_acpi index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter

root@box:/home/tc# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@box:/home/tc# speaker-test [-Ddefault:1] -c2 -t wav -l1

speaker-test 1.2.1

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 2.685371

--- End code ---

Rich:
Hi MikeLockmoore

--- Quote from: MikeLockmoore on June 06, 2023, 11:00:42 PM --- ...
--- Code: ---root@box:/home/tc# modprobe thinkpad_acpi thinkpad_acpi index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
--- End code ---
...
--- End quote ---
I suspect that may be a typo. I think it should probably be:

--- Code: ---root@box:/home/tc# modprobe thinkpad_acpi index=1
--- End code ---

MikeLockmoore:

--- Quote from: Rich on June 06, 2023, 11:40:15 PM ---Hi MikeLockmoore
...
I suspect that may be a typo. I think it should probably be:

--- Code: ---root@box:/home/tc# modprobe thinkpad_acpi index=1
--- End code ---

--- End quote ---

Ahh, that makes more sense, especially now that I've skimmed the linked blog for an Arch install on a T440p.  The typo must not be fatal, but perhaps setting that correctly will help with other machine-specific things, so I'll update and set it correctly in my bootlocal.sh script. 

Before this last change, I put the other modprobe commands in my bootlocal.sh script and re-installed alsa-config.tcz, alsa-plugins.tcz, pulseaudio.tcz, and pavucontrol.tcz and set those to be loaded onboot.  I'm able to reboot now and have sound working!  Speaker-test works and I can play Youtube vids in FireFox and hear their audio.  The PulseAudio VU Control app allowed me to change the volume.

So, overall, I think my issue is solved!  Thanks @Rich, @aus9, @curaga, and @vinceASPECT to jumping in to help me!

Can I edit the title of the thread to show SOLVED?  I don't see a way to edit that (so far).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version