Tuesday, January 29, 2008

Posts

This space for rent. For free, I mean. If you want to post here, or have a site with similar goals (preferably if it provides rss feeds) and you want to link in, please drop me a note.

Saturday, January 26, 2008

LG LE50 Express laptop + Agere Athens AM2 Modem on Linux

This one gave me some trouble, but eventually worked.

The short history:

1) Grab slmodem-2.9.11-20070813.tar.gz (you may try a newer version, and I didn't try with older ones [err, I did, with a very wold 2.9.9 one, and that didn't go very well).
2) Grab this patch (or read the history here).
3) Run slmodemd as this: slmodemd -a -c modem:0
4) Go figure out how to dialout (I used minicom and dialed my phone).
5) Enjoy it!

In the sentence above I use BRAZIL, go figure your country code.

The patch is short so I'll cat it here:


diff -rud slmodem-2.9.11-20060727-orig/modem/modem_main.c slmodem-2.9.11-20060727/modem/modem_main.c
--- slmodem-2.9.11-20060727-orig/modem/modem_main.c 2005-09-22 10:05:27.000000000 -0300
+++ slmodem-2.9.11-20060727/modem/modem_main.c 2007-07-10 14:37:33.000000000 -0300
@@ -379,7 +379,7 @@
ERR("cannot set periods for %s: %s\n", stream_name, snd_strerror(err));
return err;
}
- if ( rsize != size ) {
+ if ( rsize < size ) {
ERR("period size %ld is not supported by %s (%ld).\n",
size, stream_name, rsize);
return -1;



... That was pretty much it, getting here gave me some headache, tough.

I can provide more details if someone needs it.

That was pretty much the last piece of hardware (other than the memory stick reader) left unsupported on linux. Suspend to ram doesn't work for me, but suspend to disk (via uswsusp) is just fine.

Having "noapic" on the command line is a must for this laptop, otherwise sound stops working and it crashes eventually. The open source wireless driver does not work with WPA due to a bug (machine hangs), at least on kernels newer than 2.6.18, but I can use it with aircrack just fine. So I use ndiswrapper for daily-to-daily and the open source one when I need to do cool things like that.

That's it, since I don't use memory sticks, I'm now 100% operational with this old baby.