Page 1 of 3

Sound Issue

Posted: 04 Apr 2015, 10:22
by ricfer
Hello

I'm just new with this Distro. I've an old laptop:

Pentium M 1,8mhz
1GB Ram
HDD 30GB
Ati Mobility 9700 128MB


The distro detects an intel 82801DB-ICH sound card, but the sound don't works, what can I do? Can Anybody help me?

Re: Sound Issue

Posted: 04 Apr 2015, 11:26
by francois
Try the command alsamixer and see if you can't adjust it with the available toggle switch. Also there is a few good threads on the topic. Try porteus sound problem as keywords for a Google search.

Re: Sound Issue

Posted: 04 Apr 2015, 12:05
by ricfer
Hello

Everyting is amost in maximum. I Have already googled for it. but nothing about :-S

Re: Sound Issue

Posted: 04 Apr 2015, 15:14
by Ed_P

Re: Sound Issue

Posted: 04 Apr 2015, 18:01
by ricfer
I did some test to sound card to give some more info.

Code: Select all

root@porteus:/home/guest/Downloads# lsmod
Module                  Size  Used by
michael_mic             1144  8 
arc4                    1172  4 
ecb                      980  0 
lib80211_crypt_tkip     4828  2 
lib80211_crypt_ccmp     2724  1 
ipv6                  172604  12 
bnep                    5908  2 
bluetooth             164372  7 bnep
wl                   5961508  0 
radeon                921308  3 
snd_intel8x0           18636  2 
snd_ac97_codec         67632  1 snd_intel8x0
ipw2200                97188  0 
libipw                 15400  1 ipw2200
firewire_ohci          20716  0 
pcmcia                 21536  0 
ttm                    35812  1 radeon
8139too                13396  0 
8250_pci               23852  0 
lib80211                1888  4 lib80211_crypt_ccmp,lib80211_crypt_tkip,libipw,ipw2200
snd_pcm                39800  2 snd_ac97_codec,snd_intel8x0
yenta_socket           13728  0 
pcmcia_rsrc             6248  1 yenta_socket
snd_timer              10296  1 snd_pcm
firewire_core          30348  1 firewire_ohci
crc_itu_t                920  1 firewire_core
i2c_i801                6864  0 
mii                     2388  1 8139too
cfg80211              122308  3 wl,libipw,ipw2200
rng_core                2528  0 
pcmcia_core             6976  3 pcmcia,pcmcia_rsrc,yenta_socket
intel_agp               6308  1 
drm_kms_helper         45524  1 radeon
rfkill                  8196  4 cfg80211,bluetooth
firmware_class          3864  4 drm_kms_helper,pcmcia,radeon,ipw2200
shpchp                 16568  0 
8250                   19500  1 8250_pci
ac97_bus                 492  1 snd_ac97_codec
intel_gtt               7092  1 intel_agp
serial_core            11976  1 8250
thermal                 5900  0 
acpi_cpufreq            4412  0

Code: Select all

root@porteus:~# speaker-test -Dplug:front -c2

speaker-test 1.0.28

Playback device is plug:front
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 8 to 16384
Period size range from 8 to 16384
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 5,957579
 0 - Front Left
 1 - Front Right

Code: Select all

root@porteus:/etc# lsmod | grep snd
snd_intel8x0           18636  2 
snd_ac97_codec         67632  1 snd_intel8x0
snd_pcm                39800  2 snd_ac97_codec,snd_intel8x0
snd_timer              10296  1 snd_pcm
ac97_bus                 492  1 snd_ac97_codec
root@porteus:/etc# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel 82801DB-ICH4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 4: Intel ICH - IEC958 [Intel 82801DB-ICH4 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code: Select all

root@porteus:/home/guest/Downloads# aplay -D plughw:0,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
root@porteus:/home/guest/Downloads# aplay -D plughw:0,1 test.wav
aplay: main:722: audio open error: No such file or directory
root@porteus:/home/guest/Downloads# aplay -D plughw:0,1 test.wav 
aplay: main:722: audio open error: No such file or directory
root@porteus:/home/guest/Downloads# aplay -D plughw:1,0 test.wav
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
aplay: main:722: audio open error: No such file or directory

Code: Select all

root@porteus:/home/guest/Downloads# lspci -vv|grep Audio
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
Image

Re: Sound Issue

Posted: 04 Apr 2015, 19:19
by Blaze
Hi ricfer.
Do you use 'volume=' cheatcode?
Please show

Code: Select all

cat /proc/cmdline
Try to update Porteus via Porteus Updater - located in Porteus Settings Centre.

Re: Sound Issue

Posted: 04 Apr 2015, 19:39
by ricfer
Blaze wrote:Hi ricfer.
Do you use 'volume=' cheatcode?
Please show

Code: Select all

cat /proc/cmdline
Try to update Porteus via Porteus Updater - located in Porteus Settings Centre.
I don't Know What do You mean with 'volume='cheatcode. Can You explain please?
I' m not in the laptop now but I Will send You the result later.
I did the update Just after installing the distro.

Re: Sound Issue

Posted: 04 Apr 2015, 22:06
by ricfer
ricfer wrote:
Blaze wrote:Hi ricfer.
Do you use 'volume=' cheatcode?
Please show

Code: Select all

cat /proc/cmdline
Try to update Porteus via Porteus Updater - located in Porteus Settings Centre.
I don't Know What do You mean with 'volume='cheatcode. Can You explain please?
I' m not in the laptop now but I Will send You the result later.
I did the update Just after installing the distro.

Code: Select all

guest@porteus:~$ cat /proc/cmdline
quiet initrd=initrd.xz changes=/porteus timezone=Europe/Lisbon kmap=pt,us BOOT_IMAGE=vmlinuzguest@porteus:~$ cat /proc/cmdline
quiet initrd=initrd.xz changes=/porteus timezone=Europe/Lisbon kmap=pt,us BOOT_IMAGE=vmlinuz

Re: Sound Issue

Posted: 05 Apr 2015, 08:42
by Blaze
Try to open /boot/syslinux/porteus.cfg and edit your porteus.cfg
in line APPEND initrd add this cheatcode

Code: Select all

volume=100%
It's example

Code: Select all

LABEL KDE4
MENU LABEL Graphics mode (KDE4)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/mnt/sda4/porteus timezone=Europe/Moscow utc volume=100% kmap=ru,us login=root
or try Always Fresh mode.

Re: Sound Issue

Posted: 05 Apr 2015, 16:53
by ricfer
Blaze wrote:Try to open /boot/syslinux/porteus.cfg and edit your porteus.cfg
in line APPEND initrd add this cheatcode

Code: Select all

volume=100%
It's example

Code: Select all

LABEL KDE4
MENU LABEL Graphics mode (KDE4)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/mnt/sda4/porteus timezone=Europe/Moscow utc volume=100% kmap=ru,us login=root
or try Always Fresh mode.

Code: Select all

root@porteus:/home/guest# cat /proc/cmdline
quiet initrd=initrd.xz changes=/porteus timezone=Europe/Lisbon volume=100% kmap=pt,us BOOT_IMAGE=vmlinuz
Already done but still no sound in Always fresh mode also :evil:

Re: Sound Issue

Posted: 05 Apr 2015, 17:54
by fanthom
please save following configuration as /etc/asound.conf:

Code: Select all

defaults.pcm.card 0
defaults.pcm.device 4
defaults.ctl.card 0
that should do it.

Re: Sound Issue

Posted: 06 Apr 2015, 03:10
by ricfer
fanthom wrote:please save following configuration as /etc/asound.conf:

Code: Select all

defaults.pcm.card 0
defaults.pcm.device 4
defaults.ctl.card 0
that should do it.

Hello I don't have any /etc/asound.conf the files that I have at /etc are

Code: Select all

guest@porteus:/etc$ ls
ConsoleKit/           cups/          gpm-syn.conf       libnl/                  nsswitch.conf       rc1.d@             smartd.conf                       
DIR_COLORS            cupshelpers/   gpm-twiddler.conf  localtime               nsswitch.conf-mdns  rc2.d@             snmp/                             
HOSTNAME              dbus-1/        group              localtime-copied-from@  obex-data-server/   rc3.d@             ssh/                              
NetworkManager/       default/       gshadow            login.access            openvpn/            rc4.d@             ssl/                              
UPower/               dhcpcd.conf    gtk-2.0/           login.defs              opt/                rc5.d@             syslog.conf                       
X11/                  dhcpcd.duid    hardwareclock      logrotate.conf          os-release          rc6.d@             termcap                           
acpi/                 dialogrc       host.conf          logrotate.d/            pango/              rcS.d@             termcap-Linux                     
adjtime               dnsmasq.conf   hosts              lvm/                    passwd              rc_keymaps/        udev/                             
alsa/                 dnsmasq.d/     hosts.allow        lynx.cfg                pcmcia/             rc_maps.cfg        updatedb.conf                     
apm/                  drirc          hosts.deny         lynx.lss                pm/                 resolv.conf        usb_modeswitch.conf               
asound.state@         esd.conf       hosts.equiv        mc/                     polkit-1/           rmt@               usb_modeswitch.d/
avahi/                exports        hp/                mdadm.conf              polyglot/           rpc                usm/
bash_completion.d/    fb.modes       init.d@            mdns.allow              porteus-version     sane.d/            vdpau_wrapper.cfg
bluetooth/            ffserver.conf  inittab            mediaprm                power/              screenrc           wgetpaste.conf.sample
ca-certificates/      file/          inputrc            misc@                   ppp/                securetty          wgetrc
ca-certificates.conf  filesystems    iproute2/          mke2fs.conf             printcap            sensors.d/         wpa_supplicant.conf
changes-exit.conf     fonts/         issue              modprobe.d/             profile             sensors3.conf      xdg/
cron.d/               foomatic/      issue.net          mplayer/                profile.d/          serial.conf
cron.daily/           fstab          kde/               mtab                    protocols           services
cron.hourly/          gamin/         ksysguarddrc       mtools.conf             radiusclient/       shadow
cron.monthly/         gconf/         laptop-mode/       networks                random-seed         shells
cron.weekly/          gimp/          ld.so.cache        nfsmount.conf           rc.d/               skel/
csh.login             gpm-root.conf  ld.so.conf         nntpserver              rc0.d@              slackware-version
However I created the files just with the lines that you tell to add, and a popup appear telling that the sound card doesn't exists anymore. So I deleted again. What should I do.

I have asound.state with this instructions

Code: Select all

state.I82801DBICH4 {
	control.1 {
		iface MIXER
		name 'Master Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.2 {
		iface MIXER
		name 'Master Playback Volume'
		value.0 23
		value.1 23
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4650
			dbmax 0
			dbvalue.0 -1200
			dbvalue.1 -1200
		}
	}
	control.3 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.4 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 23
		value.1 23
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4650
			dbmax 0
			dbvalue.0 -1200
			dbvalue.1 -1200
		}
	}
	control.5 {
		iface MIXER
		name 'Master Mono Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.6 {
		iface MIXER
		name 'Master Mono Playback Volume'
		value 23
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 31'
			dbmin -4650
			dbmax 0
			dbvalue.0 -1200
		}
	}
	control.7 {
		iface MIXER
		name 'Phone Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.8 {
		iface MIXER
		name 'Phone Playback Volume'
		value 0
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
		}
	}
	control.9 {
		iface MIXER
		name 'Mic Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.10 {
		iface MIXER
		name 'Mic Playback Volume'
		value 0
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
		}
	}
	control.11 {
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.12 {
		iface MIXER
		name 'Line Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.13 {
		iface MIXER
		name 'Line Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.14 {
		iface MIXER
		name 'CD Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.15 {
		iface MIXER
		name 'CD Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.16 {
		iface MIXER
		name 'Aux Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.17 {
		iface MIXER
		name 'Aux Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.18 {
		iface MIXER
		name 'PCM Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.19 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 23
		value.1 23
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.20 {
		iface MIXER
		name 'Capture Source'
		value.0 Mic
		value.1 Mic
		comment {
			access 'read write'
			type ENUMERATED
			count 2
			item.0 Mic
			item.1 CD
			item.2 Video
			item.3 Aux
			item.4 Line
			item.5 Mix
			item.6 'Mix Mono'
			item.7 Phone
		}
	}
	control.21 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.22 {
		iface MIXER
		name 'Capture Volume'
		value.0 8
		value.1 8
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 15'
			dbmin 0
			dbmax 2250
			dbvalue.0 1200
			dbvalue.1 1200
		}
	}
	control.23 {
		iface MIXER
		name 'Mono Output Select'
		value Mix
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Mix
			item.1 Mic
		}
	}
	control.24 {
		iface MIXER
		name 'Mic Select'
		value Mic1
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Mic1
			item.1 Mic2
		}
	}
	control.25 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.26 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value cf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.27 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.28 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.29 {
		iface MIXER
		name 'IEC958 Playback AC97-SPSA'
		value 3
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 3'
		}
	}
	control.30 {
		iface MIXER
		name 'IEC958 Playback Source'
		value AC-Link
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 AC-Link
			item.1 'A/D Converter'
		}
	}
	control.31 {
		iface MIXER
		name 'Stereo Mic'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.32 {
		iface MIXER
		name 'Headphone Jack Sense'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.33 {
		iface MIXER
		name 'Line Jack Sense'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.34 {
		iface MIXER
		name 'External Amplifier'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.35 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
}

Re: Sound Issue

Posted: 06 Apr 2015, 07:43
by fanthom
please boot in 'Always Fresh' mode (to eliminate your other tweaks) and if sound wont work then try my solution.

Re: Sound Issue

Posted: 06 Apr 2015, 11:55
by ricfer
fanthom wrote:please boot in 'Always Fresh' mode (to eliminate your other tweaks) and if sound wont work then try my solution.
Thank you, for you attention. I Started in "Always Fresh Mode" and didn't work. About the "etc/asound.conf" do I create a new file? As I told you, I don't have any file with that name in that location.

sorry, some questions should sound like pathetic to some people, but I'm a dummie in linux script. :unknown:

Re: Sound Issue

Posted: 06 Apr 2015, 16:35
by Blaze
Yes, boot in normal (clear) mode (without your changeas) and create asound.conf file with these lines

Code: Select all

defaults.pcm.card 0
defaults.pcm.device 4
defaults.ctl.card 0
in /etc/ directory. After, reboot Porteus and test the sound.