LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2003, 09:31 AM   #1
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Rep: Reputation: 30
keyboard;alsa


i've installed mandrake 9.1 (dual boot with win98se) couple of days ago, and i'm trying to understand it and personalize it.
i'd like to use keyboard shortcuts (like backspace for back in mozilla,etc.)...i've found some osrt of "keyb. shortcuts control center" and changed some of them, but it didn't have any effect...

but there's another thing: i can't find alsamixer, and i need it desperatelly! where is it?

thanx
 
Old 09-26-2003, 10:54 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If Mandrake is using KDE then it may be that the Control Centre will only affect KDE apps (even if you set in 'Global Shortcuts').

Is ALSA the default sound system for Mandrake? If ALSA is not installed then probably neither is alsamixer. As it is a text-mode app you normally open an xterm window and start it from the command line in the window.
 
Old 09-26-2003, 11:36 AM   #3
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Original Poster
Rep: Reputation: 30
wrong install?

i've installed alsa-driver-0.9.6 in home/alsa-driver-0.9.6 dir, but there's no file named alsamixer or similar...
im not sure if it's default for mandrake, but i had to use it because i've got the famous AC'97 intel 8x0 sound card.
installing alsa driver and unmuting surround (don't now why, but...) in alsamixer...

it might be even that i didn't install it properly because after ./configure --with-cards=intel8x0 it responded:
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/nechos/alsa-driver-0.9.6
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

doesn't seem right...?
 
Old 09-26-2003, 11:45 PM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
The sound card drivers for ALSA are kernel modules, and share a certain amount of code with the kernel itself. In particular they need the 'include files' from whatever source the kernel itself was compiled from. These contain definitions and data which are needed to make the module compatible with the kernel that loads it.

If you are running a standard Mandrake kernel you need to install the corresponding 'kernel source package' which contains all the source code used to compile that kernel.

If you compiled your own kernel, ALSA needs to know where the source code is that you used.

Note there are 4 separate pieces to ALSA: drivers, libraries, utilities and tools. I think alsamixer is probably in utilities.
 
Old 09-27-2003, 05:26 AM   #5
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Original Poster
Rep: Reputation: 30
thanx for the advice, i haven't tried it yet because i think i screwed up kernel totally (when loading it finds error in hda8 that needs to be fixed, and so on...)
since i'm still too M$-minded (i'm learning, tough!!) i think i'll reinstall the whole os - i won't loose any vital info since i installed it primarilly to learn it...
but if I get kde running, i'll try to download kernel + kernel source and recompile it.
now that you've told me, it's quite probable that my sound driver worked well, but that some components in alsamixer were set to mute...is it possible?
because there are no indications of error with sound (other than no sound at all...)
 
Old 09-27-2003, 05:35 AM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I'm not a mandrake user, so I'm partly guessing. But I don't think Mandrake uses ALSA by default (although they may provide packages).

The first thing to try is whatever Mandrake provides in the distro. Usually there is some configuration tool accessible from the desktop and if you have fairly standard hardware, not too new, there is a good chance that will work.

Also search google, these forums for Mandrake + <sound card model>

Next thing is probably to look for ALSA packages that match the kernel.

Last resort is probably to compile ALSA. In this case you do not have to recompile the kernel. Just have the source available so that ALSA can share the necessary include files.
 
Old 09-27-2003, 09:09 AM   #7
drprezume
LQ Newbie
 
Registered: Sep 2003
Location: Ottawa, Ontario
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
Yeah, I'm playing with ALSA in Mandrake 9.1 too, and I'm no expert by any stretch, but it looks as though lots of alsa packages were included but no alsa drivers.

From looking at alsa-project.org it looks as though there should be some sort of alsa-driver-xxx.rpm package but I'm not seeing one. What really confuses me is that there's even an alsa service listed in the Mandrake DrakXServices utilitiy. When I restart it it just says 'ALSA driver not running.' Has anyone gotten ALSA to work with Mandrake 9.1? (I've got the Intel i8x0 AC '97 too)

Dr. P
 
Old 09-27-2003, 09:35 AM   #8
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Original Poster
Rep: Reputation: 30
i'll reinstall mdk, include kernel source, and try to resolve the problem:
first I'll try to configure sound without downloading any drivers. if i fail(wich is EXTREMLY probable!!) i'll downoload alsa-driver-0.9.6.tar.gz (the one i already downoladed, but couldn't install because it needs kernel source), and hope for the best.
the intel8x0 ac'97 , asus P4PE/p800e mbo and mdk9.1 are the worst possible - there are dozens of threads on the theme - but those with p800 have resolved the problem using alsamixer (i couldn't find it...) and unmuting surround (don't ask why surround - no one knows...)
so, these are the options:
1) find and/or install alsamixer and see wether unmuting surround helps
2) downloading and installing alsa-driver(-0.9.6) with previously installed kernel source and see if that helped
3) buying a pci soundcard (they're better,anyway) and disabling the onboard one (in BIOS - it's quite simple)

i'll try all of them, but i preddict only the third one will work

if i succesed with 1) or 2) i'll write the solution and suggest making it NEWS - it would make moderators' job easier
 
Old 09-27-2003, 10:07 AM   #9
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Yeah, I got an Asus p4p800-vm a few months ago and it took me a while to find the sound was getting sent to the surround channels. Non-ALSA mixers don't show those channels.

Doing a bit of RPM searching, I get the impression that mandrake kernels must include ALSA. Also there are RPM packages 'alsa-utils' and 'alsamixergui' for mdk9.1. Any ALSA-aware mixer should do the job.

But your m/b is new, so you might still need a more recent ALSA version to work with the sound chip.

Do you know 'tab-completion'. If you type a few letters at the command line and hit <TAB> you get a list of all commands starting with those letters. Try alsa<TAB> to see what's there already.
 
Old 09-27-2003, 11:57 AM   #10
drprezume
LQ Newbie
 
Registered: Sep 2003
Location: Ottawa, Ontario
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
I dunno. Every time I run an ALSA program or a program with an ALSA output plugin I get the error that it "can't find snd_ctl_open" in some form or another. I presume that means that the driver isn't running for some reason although I too think that the drivers are precompiled into the kernel. Oh well, OSS works on my sound chip and ESD does a nice job of mixing channels.
 
Old 09-27-2003, 12:26 PM   #11
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Original Poster
Rep: Reputation: 30
i've reinstalled linux and now i've got kernel source too...but still no sound

so, i've found the alsa-utils file, but no alsamixergui...anyway, what do i do with alsa-utils? i tried ./ but it said Permission denied...there's also alsa.conf file
using al and then tab it found only alias (nothing similar to alsa...), so should i downoald the mixer?
and another question: can i use rpm files with mdk? how to "untar" them? or there are .tar or tar.gz alsa-mixer files?
 
Old 09-27-2003, 06:16 PM   #12
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
RPM is a package management system designed by Redhat, and adopted by MDK and some other distros. The packages typically have various interdependencies so (esp for something like ALSA) you have to use packages (the .rpm files) that match your current setup. If you browse www.rpmfind.net you should find a whole section for MDK9.1.

You install them from the command line by doing something like

% rpm -i somepackage.rpm

(There are dozens of options to the rpm command, and I'm guessing a bit here. Debian uses a completely different system). The advantage of .rpm over .tar and .tar.gz is that they are supposed to completetely automate the installation procedure, including checking dependencies.

So no harm in trying to install an rpm. It can only say no.

But -- no point in playing with alsamixer until you have a driver installed and running. For AC97 and ALSA this usually means the presence of the snd-intel8x0 driver in the output of the 'lsmod' command.
 
Old 09-27-2003, 07:40 PM   #13
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Original Poster
Rep: Reputation: 30
i went to the page and found out there are alsa rpms only for SuSe...no mdk...
i installed alsa-driver, alsa-utils & alsa-libs from .tar.bz files on alsa homepage
it went on quite nice, i did
./configure
./make install
for all 3 of them, but then i had to add lines to modules.conf - i "copy-paste"d lines and tried to save and exit but the screen remained the same, with "recording" written in the bottom of console window...did i do something wrong?
i've got the alsamixer command (finally...) but when i try to execute it it says something couldn't execut it. i think that's due to non-changing modules.conf
 
Old 09-27-2003, 08:15 PM   #14
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
You may be able to bypass modules.conf by just doing 'modprobe snd-intel8x0' (as root) followed by 'lsmod' to see what happened.

What are you using to edit modules.conf? Sounds like something strange happening there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
alsa and keyboard shortcuts under_ground2019 Linux - Software 6 06-19-2005 06:18 PM
usb keyboard and soundcard conflict (sound set to keyboard?) netsurf Linux - Hardware 2 04-09-2005 07:08 AM
Alsa on games makes the keyboard and mouse respond with a 15 sec. delay Ac1db0rN Linux - Hardware 4 03-24-2005 03:13 PM
MIDI Keyboard with SBLive!, ALSA + Wine DavW Linux - Hardware 2 08-29-2004 12:57 AM


All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration