dCore Import Debian Packages to Mountable SCE extensions > dCore X86

Getting Alsa / sound working

(1/3) > >>

liam391:
Hello,
I know this has been asked many times before and apologise for my ignorance but I'm struggling to find a solution to get sound working on my Thinkpad T61 with dCore installed.

I initially followed the instructions found in http://tinycorelinux.net/dCore/x86/README/README-alsa-utils.txt . I then went through http://wiki.tinycorelinux.net/wiki:setting_up_sound, and attempted to understand my problem. I will provide the outputs of the relevant tools below, but as far as I can tell:

- amixer and alsamixer will not open with these errors -

--- Code: ---amixer: Mixer attach default error: No such file or directory
cannot open mixer: No such file or directory
--- End code ---
- System can see my sound card but Alsa is not recognising it
- I have the intel driver but am missing the required codec, or Alsa is not looking in the correct place
- when I got alsamixergui to open it showed only 2 sliders, and showed the following:
card:PulseAudio chip:PulseAudio
- conflict with Pulseaudio?
- I could not find 'alsaconf' sce to use it....this was my next port of call and I thought I may take a TCE from tinycore repos and use that?
- I'm not sure which .conf files I should be edting to resolve this as they have different names / locations compared to info I find on the Archwiki etc

I later loaded alsa-base and others in order to use the script which provides relevant info. I will copy and paste all relevant outputs from there and from command line utilities below:

lsmod:


--- Code: ---
tc@box:~$ lsmod | grep snd
snd_seq_dummy          12288  0
snd_pcm_oss            32768  0
snd_seq_oss            24576  0
snd_seq_midi_event     12288  1 snd_seq_oss
snd_seq                32768  5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device         12288  2 snd_seq,snd_seq_oss
snd_mixer_oss          16384  1 snd_pcm_oss
snd_hda_intel          20480  0
snd_hda_codec          53248  1 snd_hda_intel
snd_hwdep              12288  1 snd_hda_codec
snd_hda_core           24576  2 snd_hda_codec,snd_hda_intel
snd_pcm                49152  4 snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer              20480  2 snd_pcm,snd_seq
snd                    36864  10 snd_pcm_oss,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss
soundcore              12288  1 snd
--- End code ---

aplay:

--- Code: ---tc@box:~$ aplay -l
aplay: device_list:268: no soundcards found...
--- End code ---

alsa-base utility:


--- Code: ---!!Script ran on: Fri Mar  2 12:35:20 UTC 2018


!!Linux Distribution
!!------------------




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

Manufacturer:      LENOVO
Product Name:      766311G
Product Version:   ThinkPad T61


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

Kernel release:    4.2.9-tinycore
Operating System:  GNU/Linux
Architecture:      i686
Processor:         i686
SMP Enabled:       No


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

Driver version:     k4.2.9-tinycore
Library version:   
Utilities version:  1.1.0


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



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

Pulseaudio:
      Installed - Yes ()
      Running - No

ESound Daemon:
      Installed - Yes ()
      Running - No

aRts:
      Installed - Yes ()
      Running - No

Jack:
      Installed - Yes ()
      Running - No

No sound servers found.


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

--- no soundcards ---


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

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)


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

00:1b.0 0403: 8086:284b (rev 03)
Subsystem: 17aa:20ac


!!Loaded sound module options
!!--------------------------


!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116,  1 Mar  2 12:00 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Mar  2 12:00 /dev/snd/timer


!!Aplay/Arecord output
!!------------

APLAY

aplay: device_list:268: no soundcards found...

ARECORD

arecord: device_list:268: no soundcards found...

!!Amixer output
!!-------------


!!Alsactl output
!!-------------

--startcollapse--
--endcollapse--


!!All Loaded Modules
!!------------------

Module
snd_seq_dummy
snd_pcm_oss
snd_seq_oss
snd_seq_midi_event
snd_seq
snd_seq_device
snd_mixer_oss
joydev
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_hda_core
snd_pcm
snd_timer
snd
soundcore
drbg
ctr
ccm
cpufreq_stats
cpufreq_conservative
cpufreq_userspace
cpufreq_powersave
iwl4965
iwlegacy
mac80211
cfg80211
ppdev
pcspkr
wmi
ac
battery
8250_fintek
parport_pc
parport
video
backlight
squashfs
lz4_decompress
lpc_ich
acpi_cpufreq
loop
e1000e
ptp
pps_core


!!ALSA/HDA dmesg
!!------------------

[  408.810530] wls3: associated
[ 3745.975472] snd_hda_intel 0000:00:1b.0: probe_mask set to 0x1 for device 17aa:20ac
[ 3745.979603] snd_hda_intel 0000:00:1b.0: no codecs initialized
[ 3749.103202] floppy0: no floppy controllers found
--- End code ---


curaga:
Try modprobing snd-hda-codec-analog, google says that's the codec on t61.

edit: you may also need to give the model=thinkpad option to snd-hda-intel.

liam391:
Thanks for the reply. I tried your suggestions but no joy, the modules don't appear to be loading. lsmod shows the new module. Restarted Alsa and got the following:


--- Code: ---tc@box:/tmp/tcloop/alsa-modules-4.2.9-tinycore/usr$ sudo alsa reload
Unloading ALSA sound driver modules:/sbin/alsa: line 219: sed: not found
/sbin/alsa: line 219: sed: not found
/sbin/alsa: /sbin/alsa: line 219: sed: not found
line 219: sed: not found
.
Loading ALSA sound driver modules: (none to reload).
--- End code ---

dmesg:


--- Code: ---tc@box:/sbin$ dmesg | grep snd
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuzxenial initrd=/boot/dCorePlusxenial.gz tce=sda6 desktop=dwm blacklist=snd_mixer_oss, snd_seq_oss, snd_pcm_oss
[ 3745.975472] snd_hda_intel 0000:00:1b.0: probe_mask set to 0x1 for device 17aa:20ac
[ 3745.979603] snd_hda_intel 0000:00:1b.0: no codecs initialized
--- End code ---


--- Code: ---lsmod tc@box:/sbin$ lsmod | grep snd
snd_hda_codec_analog    12288  0
snd_hda_codec_generic    36864  1 snd_hda_codec_analog
snd_seq_dummy          12288  0
snd_pcm_oss            32768  0
snd_seq_oss            24576  0
snd_seq_midi_event     12288  1 snd_seq_oss
snd_seq                32768  5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device         12288  2 snd_seq,snd_seq_oss
snd_mixer_oss          16384  1 snd_pcm_oss
snd_hda_intel          20480  0
snd_hda_codec          53248  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_analog
snd_hwdep              12288  1 snd_hda_codec
snd_hda_core           24576  4 snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_hda_codec_analog
snd_pcm                49152  4 snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer              20480  2 snd_pcm,snd_seq
snd                    36864  12 snd_pcm_oss,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss,snd_hda_codec_analog
soundcore              12288  1 snd

--- End code ---

Jason W:
Hi liam391.  Re-import alsa-base or whichever SCE contains that package and see if it works now.

It appears sed is missing from the PATH specified in /sbin/alsa.  Our Busybox sed is located as /bb/sed. 

I added sed as a dependency of alsa-base as I tested /sbin/alsa does not work without /bin/sed existing. 

liam391:
Hi Jason, thanks for reply. I loaded the sce, now get the following when reloading alsa:


--- Code: ---tc@box:/sbin$ alsamixer
cannot open mixer: No such file or directory
tc@box:/sbin$ amixer
amixer: Mixer attach default error: No such file or directory
tc@box:/sbin$ sudo alsa reload
Unloading ALSA sound driver modules: snd-hda-codec-analog snd-hda-codec-generic snd-seq-dummy snd-pcm-oss snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-mixer-oss snd-hda-intel snd-hda-codec snd-hwdep snd-hda-core snd-pcm snd-timer.
Loading ALSA sound driver modules: snd-hda-codec-analog snd-hda-codec-generic snd-seq-dummy snd-pcm-oss snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-mixer-oss snd-hda-intel snd-hda-codec snd-hwdep snd-hda-core snd-pcm snd-timermodprobe: bad line 2: 1 tokens found, 2 needed
modprobe: bad line 2: 1 tokens found, 2 needed
modprobe: bad line 2: 1 tokens found, 2 needed
modprobe: bad line 2: 1 tokens found, 2 needed
modprobe: bad line 2: 1 tokens found, 2 needed
--- End code ---

    [EDIT]: Fixed code tag.  Rich

Navigation

[0] Message Index

[#] Next page

Go to full version