You are not logged in.

#1 2005-06-13 13:58:42

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

So I've been using Linux (Mandriva, Ubuntu & Knoppix) since 2001 and have been playing / configuring it a bit since then. Now i'm getting into Arch Linux, for it is very evident that I have a lot to learn if I am to succeed in my latest Linux mission, that is configuring it to work smoothly for different people's needs (yeah, that's it)

My main problems on Arch Linux is getting the pesky CS4281 sound module working on my Dell Latitude L400, then configuring a Router/firewall + Zope/Plone server running on an old PII 350 MHz (which i will not talk about today smile )

***********************************************************

The Mission

Subject - Dell Latitude L400 (PIII 700MHz w/speedstep, 256 RAM, 20 GB, Ubuntu & WinXP multiboot ; see lspci @ the foot of this message)
Purpose - Desktop and basic network demo for my Linux's newbies clients

and Arch is to be my weapon of choice.

Tasks

1) Get that damnable sound card working!!!
2) install & config on that old PII --> that'll be for later

***********************************************************

Here's what I've done so far

Checked Sound on the Win XP OS running on this PC : fine.

Checked the BIOS --> it appears that sound will not work after I unactivated the Lucent modem (more or less a shared IRQ)

Got alsa stuff :
# pacman -S alsa-driver, ~-lib, ~-utils, ~-oss

Configure Alsa following Arch wiki Alsa setup

   1. Locate the module for my soundcard: snd-cs4281 for that Cyrus Logic Crystal CS4281 PCI Audio (Rev 01)

Note: lsmod just after boot shows no "snd-..." module, therewhile i launched
# alsaconf

alsaconf :
- found 2 cards :
cs4281 Cirrus Logic Crystal CS4281 PCI Audio (rev 01)
legacy Probe legacy ISA (non-PnP) chips
- Modify /etc/moprobe.conf, then says: "OK sound driver configured. ALSA CONFIGURATOR will prepare the card for playing now.

   2. Load modules:
# modprobe snd-cs4281
# modprobe snd-pcm-oss
# modprobe snd-mixer-oss
# modprobe snd-seq-oss

Then I still have no /dev/dsp, /dev/mixer, /dev/sequencer neither /dev/midi !??

   2.1. Same stuff after compiling Alsa
Removed alsa-~ packages and compiled it from source --> showed just the same messages.

   2.2. Uninstall Alsa-~ sources and re-install it from packages
--> showed just the same messages.
Now I gave it another try this morning, and alsaconf doesn't find any PCI/p&p neither ISA devices !??


   3. Unmute Soundcard
# amixer set Master 100 unmute
# amixer set PCM 100 unmute
amixer: Mixer attach default error: No such device

# alsamixer
alsamixer: function snd_ctl_open failed for default: No such device

   4. Test on a wave file on your system:
Of course it didn't work neither
# aplay mywav.wav
See alsaplayer confirme l'absence de périphérique (?) : alsaplayer :
Failed to load output plugin "alsa". Trying defaults.
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
snd_pcm_open: Permission denied (default)
Failed to initialize plugin!
/usr/lib/alsaplayer/output/libalsa_out.so failed to load
JACK compiled with System V SHM support
jack: server not running?
/usr/lib/alsaplayer/output/libjack_out.so failed to load
error opening /dev/dsp
Failed to initialize plugin!
/usr/lib/alsaplayer/output/liboss_out.so failed to load
NOTE: THIS IS THE NULL PLUGIN. YOU WILL NOT HEAR SOUND!!


Searching bbs I also tried this :

alsa mixer problem

Add "snd-cs4236" to your modules array in rc.conf.... that way it loads on boot... then just "modprobe snd-cs4236" and try alsamixer again

> does not work for me.
# modinfo snd-cs4281 : "could not find module snd-cs4281" neither 'snd_cs4281' nor 'cs4281'

Module not loaded @ LinuxQuestions.org > Forums > Linux - Newbie > alsamixer = big problem didn't help neither

******************************************************
Conf files from Knoppix 3.8.2 (Kaella-2.01 is a french version of Knoppix with man-pages FR etc.) :
- amixer shows all levels at 0 (kaella-2.01)
- lsmod  (kaella-2.01)
- lspci  (kaella-2.01)
- modules.conf  (kaella-2.01)
- modprobe.d/sound  (kaella-2.01)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2005-06-13 14:08:55

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

Also tried others distros, looking for conf files exemples :

1) Knoppix-3.6 showed exactly the same results that Arch
xmms "open" a mp3 file (with OSS configured as output) with not a single decibel
audacity says

There was an error initializing the audio i/o layer.
You will not be able to play or record audio

# lsmod :

snd,snd_mixer_oss,cs4281

2) Ubuntu Hoary 5.04 was in no ways different

3) I downloaded Knoppix-3.8.2 and gave it a try :
# alsaconf then alsamixer worked, so i was expected to hear something, from integrated speakers or jack --> n.o w.a.y.  :!:


Now i just don't know what to do :?:

Shall I compile the kernel to hear music on that Dell ?
linux-laptop users doesn't mention that

but others got their sound card working after compiling their kernel, as here on Arch bbs or there on linuxquestions.


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#3 2005-06-13 14:25:56

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

after loading the modules, look in dmesg for any error message u might be getting. also, just to make sure u use the correct modules, i would suggest checking with lshwd for the approp module (lshwd -cc -a).

Offline

#4 2005-06-13 14:43:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

AFAICS, this is the problem:

kozaki wrote:

# modinfo snd-cs4281 : "could not find module snd-cs4281"

If I do modinfo snd_cs4281 on my system, I also get the "could not find module" response, but in my case that is correct, as I have compiled my kernel without that module. As you haven't said otherwise, I'm assuming you're using the stock Arch kernel, so you should have that module. Have a look in /lib/modules/2.6.11.10-ARCH/sound/pci - that's where it should be. If it's not, your kernel install got screwed up for some reason - reinstall it and try again.

Offline

#5 2005-06-13 23:05:41

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

tomk > i just checked and found there's no "*cs4281*" in /lib/modules/2.6.11.10-ARCH/, despite there's one into /lib/modules/2.4.30/kernel/sound/pci/snd-cs4281.o  :!:
But there's /usr/src/linux-2.6.11-10-ARCH/include/config/snd-cs4281, which sounds good if i recompile the kernel-2.6.10 (but see below)

Well, before I proceed with reinstalling the linux-2.6, i'd like to know how that's is possible, and was it possibly caused when I removed Alsa-~ pckgs then compiled it from sources ?

Second, did you notice that module showed correctly on Knoppix-3.8.2 (5/5/2005), i had no sound workin' ?

So I'd try to recompile the kernel-2.6 & see what it produces if I had spare time, but i'm presently workin' on configuring a Linux MDK w/crossoverOffice for a client of mine + building a Zope/Plone Chinese/French portal (& i've got a brand new girlfriend wink ).
That's why i'm still seekin' to find if there's been a guy that went trough a  no-sound situation like this one, who'd say how he succeeded to get it workin. Well, if i can find that, that'll be great !

z4ziggy > dmesg does not show any 'ERROR', "snd" nor "sound" related entries.
Here's tonight lshwd -cc -a (nice tool smile ) :

IDE interface
  ata_piix        : Intel Corp.|82371AB PIIX4 IDE
Ethernet controller
  3c59x           : 3Com Corp.|3c905C-TX [Fast Etherlink]
VGA compatible controller
  ati             : ATI|Rage Mobility P/M AGP 2x
Multimedia audio controller
  cs4281          : Cirrus Logic|Crystal CS4281 PCI Audio
Host bridge
  intel-agp       : Intel Corp.|440BX/ZX - 82443BX/ZX Host bridge
PCI bridge
  agpgart         : Intel Corp.|440BX/ZX - 82443BX/ZX AGP bridge
CardBus bridge
  yenta_socket    : Texas Instruments|PCI1410 PC card Cardbus Controller
Bridge
  sonypi          : Intel Corp.|82371AB PIIX4 ACPI - Bus Master IDE Controller
  unknown         : Intel Corp.|82371AB PIIX4 ISA
Communication controller
  LT:www.linmodems.org: Lucent Microelectronics|WinModem 56k
USB Controller
  uhci_hcd        : Intel Corp.|82371AB PIIX4 USB
USB Mass Storage
  usb-storage     : Store 'n' Go
USB Hub
  hub             : Virtual|Hub
USB Vendor Specific Class
  unknown         : Z-Star Microelectronics Corp.|Sansun SN-510 WebCam [hv713d]
Mouse
  msintellips/2   : Generic PS/2 Wheel Mouse [/dev/psaux]

Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#6 2005-06-14 10:59:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

You don't need to recompile your kernel - you just need to make sure it's installed correctly, as it obviously is not at the moment. Update pacman, and do Pacman -S kernel26. Check again for the module in /lib/modules. If it's there, that's progress - if it's not, there's something much more fundamental wrong with your machine.

I've no idea why Knoppix didn't produce any sound, even with the right module - I'm just trying to point out the futility of persisting with your current configuration, as it's obviously borked.

Offline

#7 2005-06-14 23:23:24

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

Sir yes Sir

aow! just kinding you, as it's a bit late over here wink

"updated" kernel-2.6 and 'snd-cs4281.ko' is back in /lib smile

so i typed
# modprobe snd-cs4281 (ok)
# modprobe snd-oss-pcm (ok)

and then alsaconf (ok)

but Alsa is just not workin on that machine :

# amixer set Master 100 unmute
# amixer set PCM 100 unmute
amixer: Mixer attach default error: No such device

# alsamixer
alsamixer: function snd_ctl_open failed for default: No such device

4. Test on a wave file on your system:
Of course it didn't work neither
# aplay mywav.wav
See alsaplayer confirme l'absence de périphérique (?) : alsaplayer :
Failed to load output plugin "alsa". Trying defaults.
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0plains
... etc. etc.

I'm happy you tried to help tomk smile
and I now believe I have not enough time to go further on that damnable sound card workin' :-|


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#8 2005-06-15 01:06:51

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

Try to modprobe snd-mixer-oss

Also, is your user in the audio group?

Offline

#9 2005-06-15 09:27:25

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

Thank you Snowman,

I tried to load that module xhen i first tried on Arch (and Ubuntu & Knoppix), See my first post under "Configure Alsa following Arch wiki Alsa setup" > 2. Load modules

I dunno why Alsa won't find the audio device even after loading all 4 modules.

My user is not in the 'audio' group, as I first try to test sound on that pesky Cyrus Logic Crystal CS4281 PCI Audio (Rev 01) with root user. So when it works with root, I'll put users in to the audio group.
Should I proceed in a different way ?


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#10 2005-06-15 17:30:32

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

After modprobing the modules, you might need to restart udev to create the device:
/etc/start_udev
mount /dev/pts
mount /dev/shm

Offline

#11 2005-06-15 20:25:19

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: how 2 get Dell Latitude L400 (Crystal sound cs4281) works ?

you don't have to restart udev for new devices to appear, this is only required if udev has been updated.

Try installing and running hotplug (/etc/rc.d/hotplug start), it should recognize most of your hardware and modprobe all required modules (it works for my TV card also tongue).

I have a cs4624 soundcard on my desk, unused, because the fucky manufacturer doesn't give away specs. Alsa produces no sound with it, though it used to work in old releases. Drivers for cirrus/crystal chips never have been good, not even on windows. Looks like the current alsa drivers don't even work anymore with these cards.

Offline

Board footer

Powered by FluxBB