LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ancient Thinkpad running Mint 9 cannot get sound to endure re-boot (https://www.linuxquestions.org/questions/linux-newbie-8/ancient-thinkpad-running-mint-9-cannot-get-sound-to-endure-re-boot-848666/)

hexeta 12-06-2010 05:51 PM

I really can't believe that in an operating system that differentiates between upper and lower case, that the use of either hyphen or underscore appears to matter not a jot!

I've just entered "sudo modprobe snd-cs4236"
After that I entered "lsmod | less", and sure enough snd_cs4236 had appeared in the list!
Next, I entered "sudo rmmod snd-cs4236" which had the desired effect of removing "snd_cs4236" from the next listing.

Unbelievable!

GrapefruiTgirl 12-06-2010 05:56 PM

Quote:

Originally Posted by hexeta (Post 4182842)
I really can't believe that in an operating system that differentiates between upper and lower case, that the use of either hyphen or underscore appears to matter not a jot!

I've just entered "sudo modprobe snd-cs4236"
After that I entered "lsmod | less", and sure enough snd_cs4236 had appeared in the list!
Next, I entered "sudo rmmod snd-cs4236" which had the desired effect of removing "snd_cs4236" from the next listing.

Unbelievable!

Unbelievable indeed! :)
You'll find that there are (to my knowledge) no(1) other usage cases where this applies. Only when dealing with kernel modules and `modprobe` or `rmmod` as such, can you interchange the underscore with the dash. Note that `grep` (like everything else) does differentiate, so grepping for a dash will not find you an underscore. ;)

(1) If there are other cases where this is true, I will happily stand corrected.
(2) I seem to remember reading something about the reasoning behind this, but don't know when or what/where.

snowday 12-06-2010 06:07 PM

Oh well, I guess the hyphen/underscore discrepancy was not the issue after all...

I made an additional suggestion in post #20, and I think mlandn made a good suggestion back in #13.

I am still not 100% convinced Mint uses Alsa instead of Pulseaudio... be careful because I have no idea what happens if you try to mix Alsa and Pulse.

hexeta 12-06-2010 06:21 PM

Thanks GrapefruiTgirl,
I'm really struggling with this Linux world, and now I have to look up every other word!!
Had no idea what "Grep" could possibly mean...I'm much wiser now:)
:
definition -

Grep, a UNIX command and also a utility available for Windows and other operating systems, is used to search one or more files for a given character string or pattern and, if desired, replace the character string with another one. For example, a UNIX system user can enter on a command line:

grep html homepage.htm


snowpine, you can't be more disappointed that you were not right than I am mate!!
That was what's known as a bummer! :p

GrapefruiTgirl 12-06-2010 06:25 PM

Quote:

Originally Posted by hexeta (Post 4182870)
"Grep" could possibly mean...I'm much wiser now:)
:
definition -

Grep, a UNIX command and also a utility available for Windows and other operating systems, is used to search one or more files for a given character string or pattern and, if desired, replace the character string with another one. For example, a UNIX system user can enter on a command line:

grep html homepage.htm

:scratch:
I'm a little mixed up, and maybe you are too. Please re-read the grep manpage, and read the sed manpage too. I believe you'll find that sed can find and, if desired, replace/alter the stuff it finds. But grep does not replace anything - it only finds stuff.

hexeta 12-06-2010 06:31 PM

Quote:

Originally Posted by snowpine
I am still not 100% convinced Mint uses Alsa instead of Pulseaudio... be careful because I have no idea what happens if you try to mix Alsa and Pulse.

As my last installation was getting sicker and sicker, at boot-up, I was getting maybe two full screen-fulls of text just repeating the same thing on every line, in essence it was saying over and over again that it was having an "AC97 Read Problem".
AC 97 is, I understand to do with the sound, but I know nothing more.

Even on this install, which is relatively healthy, there is some ref to AC 97 Audio codecs or something, it goes so fast, you just can't read it. :(

mlangdn 12-06-2010 06:40 PM

Type in a terminal:

Code:

# dmesg
You can scroll back to find what it may have said about the codecs.

hexeta 12-06-2010 06:42 PM

Quote:

Originally Posted by GrapefruiTgirl (Post 4182874)
:scratch:
I'm a little mixed up, and maybe you are too. Please re-read the grep manpage, and read the sed manpage too. I believe you'll find that sed can find and, if desired, replace/alter the stuff it finds. But grep does not replace anything - it only finds stuff.

Typical, ya can't even trust wacha' read on google these days!!
I just took the first definition I came across which was here :-
http://searchsoa.techtarget.com/definition/grep

It's a whole new world out here in linux land!.........scary!
grep....I can imagine that it just finds stuff..........it sounds a lot like grope! :eek:

hexeta 12-06-2010 06:47 PM

Quote:

Originally Posted by mlangdn (Post 4182886)
Type in a terminal:

Code:

# dmesg
You can scroll back to find what it may have said about the codecs.

Thanks for that, just tried it now, but pressing "Enter" just returns a new prompt, am I doing something wrong?
Maybe I need to do it soon after booting?
It would certainly be a very handy tool if I could master it!

GrapefruiTgirl 12-06-2010 06:54 PM

grep, grope, grape.. All the same!

Anyhow, if you've no access to local man pages, here's a good location to read them online, and be fairly sure you're reading something accurate while you're at it: http://linux.die.net/man/

Here's a fun sed game to play in the console. (it's short and has only one move):
Code:

echo "grep, grope, grape" | sed 's/e/h/g;s/o/y/;s/h/i/'

hexeta 12-06-2010 07:00 PM

It's 01:00 here, and I'm needing some sleep, I've been in front of this box since 13:00, a full 12 hrs :eek:
but I can't resist one re-boot just to see if the addition of snd-cs4236 to the file "/etc>modules" has made any difference!

Just a small question, why is it that I can double click files such as that and they will open in "leafpad", but notes that I make in "leafpad" return this error message when double clicked Failed to execute child process "/home/hexeta/Documents/term" (No such file or directory) ??:scratch:

hexeta 12-06-2010 07:26 PM

Quote:

Originally Posted by mlangdn (Post 4182886)
Type in a terminal:

Code:

# dmesg
You can scroll back to find what it may have said about the codecs.

Just re-booted and tried this.
Realise now that navigation is via the up/down arrows!
Trouble is it only recalls what has happened within the terminal.
What I was having trouble with was the DOS screens that just scroll text for fun.
It is of no use to man nor beast if you cannot either stop, capture or slow it to a pace that you can read......it might as well not be there! :banghead:

hexeta 12-06-2010 07:38 PM

Whilst shutting down and re-booting, I was ready with pen in hand!
on shut down, I was left with a Green on black DOS screen which proclaimed "This Killed, That Killed, and The Other Killed"
Among all this death and destruction was the following phrase, is it of ant importance?
"init: alsa-mixer-save main process (4259) terminated with status 1"

PS. "init" is a slang term here abouts meaning "isn't it?"
or to be a bit "posh", "Is it not?". ;)

Then whilst booting, this bit of script was seen, there could have been more, but this was all I caught!
Create neverread codec from AC 97 the syntax might not be quite accurate but it must be significant........to someone.......mustn't it??:(
Now I really am off to bed!

reed9 12-07-2010 07:32 AM

Quote:

Originally Posted by snowpine (Post 4182858)
Oh well, I guess the hyphen/underscore discrepancy was not the issue after all...

I made an additional suggestion in post #20, and I think mlandn made a good suggestion back in #13.

I am still not 100% convinced Mint uses Alsa instead of Pulseaudio... be careful because I have no idea what happens if you try to mix Alsa and Pulse.

I think Mint does use pulseaudio, certainly the GNOME version, but there is still the alsa on the backend. Pulseaudio doesn't handle the hardware, it passes that off to the alsa drivers.

@OP: Can you run this script from the alsa project and point us to the pastebin upload.

hexeta 12-07-2010 07:58 AM

Hi folks,back again after a good sleep....and a healthy dollop of Grapefruit marmalade!
Unfortunately, I'm just going through the same old same old, with, not surprisingly, the same old results.
Just another observation on my final, final shut down last night; amongst the dead and dying was the following:-

[ 42.497254] create-never read codec ready from AC'97
[ 42.497495]
it is not probably bug, try to use cs4236 driver


(the apostrophy between C and 9 is intentional)

This is followed by the usual comment:-

"init: alsa-mixer-save main process (4259) terminated with status 1"

The only change there being the number in brackets...not sure if that's significant.
Hope that some whiz out there can shed some light and help me get my sound back! :(

I keep comming back to this:-
http://www.thinkwiki.org/wiki/Script...ip_in_PnP_mode
Especially in view of the dying words of the programmer suggesting use of the cs4236 driver.
It seems we are on the right track, just need to find out how to apply it.

I really need someone who understands the information in the above link, and who can guide me on how to use it!

Any takers?? :)


All times are GMT -5. The time now is 06:50 PM.