LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-11-2005, 03:51 AM   #1
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Rep: Reputation: 15
ALSA + slmodemd + "semaphore not ready" + no modem noise


Hi,
I have recently installed Fedora Core 2 and then upgraded the kernel to 2.6.11. I downloaded latest ALSA set of files (version 1.0.8) and tried configuring my internal modem with smartlink drivers. (I used the scanmodem tool which suggested this driver)
All compilation and installation stuff went smoothly. Now when I dialout using wvdial, I get the connection working, however /var/log/messages shows

kernel: codec_write 1: semaphore is not ready for register 0x54

error. I have loaded both snd_intel8x0 and snd_intel8x0m modules. Also there is no noise from the modem. My PC speaker has been identified and configured correctly (which was not the case when I installed FC2).
I have read somewhere that blacklisting snd_intel8x0m removes the semaphone error. But then I won't be able to hear the modem noise.

At this point I am not sure if sound with xmms etc. works or not. Am still to test that part. However want to solve this modem problem before moving on to that one.

My setup:
Toshiba M30 notebook.
Fedora Core 2
Latest Alsa(1.0.8), kernel(2.6.11) and slmodem (2.9.10). All compiled on my machine.

Please point me in the right direction. The feedback from modem is very essential.

Thanks in advance.

--cyberjun
 
Old 03-11-2005, 06:25 AM   #2
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
If you are using the smartlink module (ie slmar0 or slusb0 ) then you dont need the snd-intel8x0m module. So , try unloading the module after booting and then start up your modem. Check your logs and see what happens. The snd-intel8x0m module is for using alsa for your modem, which has the added benifet of not tainting your kernel. I had slmodem 2.9.9-alsa running on my thinkpad, and was getting errors about the semaphore codec, but all was still working. Unfortunately, just recently after an upgrade something has broken it, and am still in the process of finding out what it is. I havent had the modem noise since using the alsa module even though the mixer shows all volume up on that module. ( however when using the slamr0 module I did get modem sound. Wasnt so important to me, so didnt mind when I couldnt here it anymore, especially with wvdial as it gives good output anyway. ) So, if you arent using the alsa mode of slmodem ( chosen when compiling ) then you should be right to unload the intel8x0m module and error should stop.

Last edited by short101; 03-11-2005 at 06:29 AM.
 
Old 03-11-2005, 01:51 PM   #3
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
Thanks for the response. Following are my observations:

1. Compilation of slamr on 2.6.11 without alsa support works fine. However when I install that module (slamr) using modprobe, I get some get_device and put_device related errors. ld: unresolved get_device.....

2. Compilation with ALSA works fine. However, I need to load both snd_intel8x0 and snd_intel8x0m ( in that order ) to get slmodemd working. But in this case I end up with semaphore not ready errors.

Also I can't hear modem making any noise


Any clues ???


Thanks a lot!!!

--cyberjun
 
Old 03-11-2005, 03:01 PM   #4
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Thats interesting, I am having the same problem getting the slamr module to load. I wouldnt worry to much about the semaphore errors, as long as your modem works. Looking around, there doesnt seem to be that much info on the whole thing.
 
Old 03-11-2005, 11:48 PM   #5
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
Its great knowing I am not alone. However I have another problem with the modem. The connection is fine. However as soon as I switch to virtual consoles from X or vice versa, the connection just hangs. Hangs as in the pppd keeps running. No messages in /var/log/messages. However, I can't ping any Ip or name.

If I start a ping before switching to X then the ping would also stop returning packets. This happens only when I use the nvidia drivers. Doesn't happen when I use the default "nv" driver.
Last night I upgraded to the latest nvidia drivers. But again same problem. Sometimes, I need not even leave X and it happens. Now also as I was busy typing this message, same thing happened. When I clicked on the submit button, firefox failed on name lookup and then I tried pinging dns IP with no luck.
Since the modem doesn't make any sound, I am not sure if the line is dropped or not.

Its quite frustating. Have you or anybody else seen this before ?


Thanks!!!

--cyberjun
 
Old 03-16-2005, 10:38 AM   #6
Baz8080
LQ Newbie
 
Registered: Mar 2005
Location: Ireland
Distribution: Fedora Core X
Posts: 13

Rep: Reputation: 0
Hello all, my first post here.

Oh, yes i have seen this problem. I am using FC3 with the 2.9.10 slmodem drivers. I am using them in alsa mode because i could never get the non-alsa mode to work.

I saw somewhere to try and stop the kernel from hotplugging the snd-intel8x0m module by adding it's name to /etc/hotplug/blacklist but i haven't tried it yet. I believe it may be an alsa bug. I hope we can track this problem down!

What usually happens for me is that i establish a connection normally with kppp. Then suddenly at random delays i will lose connectivity. Kppp wont report a problem but i wont be able to ping anything, and /var/log/messages shows up:

Code:
Mar 16 16:18:59 puddlejumper kernel: codec_semaphore: semaphore is not ready [0x1][0x701300]
Mar 16 16:18:59 puddlejumper kernel: codec_write 1: semaphore is not ready for register 0x54
SO i'll try the blacklist and i'll try a differeny kernel and see how it goes.
 
Old 03-17-2005, 02:54 AM   #7
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
I would like to add a few more things here:
I loose connectivity as soon as I switch to X windows from any of the Virtual Consoles (VC). This problem doesn't happen when I use the "nv" driver. It happens only when I use the "nvidia" driver. I have also observed the same behaviour if I close the lid of my laptop. The steps are:

1. Connect to your ISP using wvdial from a VC.
2. Start a ping command "ping www.yahoo.com".

Everything is fine till now, as ping prints the echoed responses from yahoo.com.

3. Now close the lid of the laptop. (The LCD monitor will be turned off automatically).
4. After 5-10 seconds, open the lid.

The ping command stops printing echoed responses. And now there is no connectivity.
If you are using alsa based slmodemd, you would get some codec_write errors in /var/log/messages. But if you are using the slamr module, no errors would appear in /var/log/messages.

The same thing happens when I switch to X (while using nvidia driver). This is because the "nvidia" driver somehow switches off the LCD monitor of my laptop before painting the screen. Hence it seems the loss of connectivity while switching from virtual consoles to X happens because monitor is switched off for a moment.
Has anybody seen this? Can anybody explain how is it linked to modem connection. I guess this is somehow related to some power saving features but am not sure. Also I do not know how to avoid this.
Please let me know if any other information would be required.

Thanks !!!
 
Old 03-17-2005, 03:54 AM   #8
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Are you using apm or acpi. When I first started with linux, on FC1 the modem would drop out when the screen blanked from not using it. Also from plugging and unplugging power. When you close the lid, is the machine going into standby or just blanking the screen. Maybe try disabling apm or acpi and see what happens then, just to see if it makes a difference.
 
Old 03-17-2005, 04:04 AM   #9
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
I am using acpi. Haven't compiled apm in the kernel. I tried "acpi=off" also. No the machine doesn't go in standby mode. Just the screen goes blank. Same thing happens while switching to X (while using the nvidia driver).
Where can I specify the action to be taken when the lid is closed ? Is it being done automatically by BIOS ? or can it be controlled by some setting in /etc.


Thanks.
--cyberjun
 
Old 03-17-2005, 04:17 AM   #10
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
In debian, my acpi events and actions are in /etc/acpi. Have a look in there, and also in /var/log/acpi. The acpi log may help if you can tie it in to the time when you modem stops working. Looking back at your posts though, its probably your nvidia driver. Maybe the XFfree86 log might give some info on what is going on when you swith into x.
 
Old 03-17-2005, 07:32 AM   #11
Baz8080
LQ Newbie
 
Registered: Mar 2005
Location: Ireland
Distribution: Fedora Core X
Posts: 13

Rep: Reputation: 0
I completely destroyed my system last night when i was experimenting. For some reason i lost a lot of alsa devices under /dev/snd/
No matter what i couldn't resolve the problem so i reimaged my machine, only lost a week so it's not too bad.

I'm also using acpi, on an inspiron 8600. I don't remember having this problem with FC2. I tried a few different 2.6.10 series kernels (offical fedora and self-compile ones) and it didn't make a difference.

Also, blacklisting the snd-intel8x0m module doesn't help.
 
Old 03-20-2005, 11:35 PM   #12
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
Well in the weekend tried APM instead of ACPI. However my /var/log/messages was filled with "APM BIOS not found" errors. So I think probably my BIOS doesn't support APM. It just supports ACPI. Hence compied again with ACPI.
Now I kept a watch on /var/log/X*. When I switch from X to Virtual consoles and then back, I get the following in the logs:

Synaptics DeviceOff called
(WW) Open APM failed (/dev/apm_bios) (No such device)
(II) NVIDIA(0): Setting mode "1280x800"
Synaptics DeviceOn called
(--) Synaptics Mouse touchpad found

I donot understand why X is looking for /dev/apm_bios when I have compiled in acpi in my kernel ?
Also short101, can you please tell me how did you resolve the problem of modem dropping out when the screen blanks out ?
I donot have any acpi command on my system. Is that ok ? I mean there is acpid running but I read somewhere that there is some acpi command also.

Thanks in advance....

--cyberjun
 
Old 03-21-2005, 12:13 AM   #13
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
I actually solved my screen problem with the modem, by switching to debian with acpi compiled into the kernel. Never had a problem with it since. Maybe this is a fedora thing with slmodem. Dunno, sorry I know its not very helpfull. In the short term, maybe just open the konsole from within x instead of switching tty, and run any command line stuff from there. At least then your modem wont drop out.
 
Old 03-21-2005, 12:23 AM   #14
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
Thanks for replying. Well, this is not the only problem. My connection drops out even if I don't switch from X. (
Sometimes I can prolong my online session by running an infinite ping to some external address.
But no always. However switching from X drops the connection immediately and always.

From XP the connection works normally. So its not that my ISP terminates the connection because of some idle time limit. More importantly my PPP keeps running as usual.

Has anybody else experienced anything like this ?


Thanks!

--cyberjun
 
Old 03-21-2005, 01:36 AM   #15
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Have been doing a bit of looking into this, as I am trying to fix an unrelated problem with my modem. Cyberjun, I at least know know why the slamr module errors occur. If you get slmodem-2.9.9a or b then you should be able to compile the slamr module and get it to load without errors. (seems to do with something they changed with the 2.6.10 kernel) Doubt it will actually help using the slamr module, but cant hurt to try. Plus you might get your modem noise too, and loose the codec error.

Last edited by short101; 03-21-2005 at 01:41 AM.
 
  


Reply



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
Slackware 10.1 and USR5610 modem ("modem not ready") whitshade Slackware 2 03-15-2005 07:00 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
"noise" from mouse/web gfx and hdd (dell c600) t163r Linux - Laptop and Netbook 0 01-25-2005 05:19 PM
SimCity 3000 Unlimited is giving me "crackling noise" PunkPT Linux - Games 10 08-01-2004 03:15 PM
"Modem Ready." "Sorry, Modem is busy." mkzmonkeylagger Linux - Hardware 1 04-16-2002 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 07:59 AM.

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
Open Source Consulting | Domain Registration