I just installed Ubuntu 7.10 on an old Averatec I had here -- everything
worked great except I couldn't get wireless up since the wifi was
disabled. My CD-ROM on that laptop is toast, so I could only do things
via my USB thumbdrive. I didn't want to have to build and install a
full kernel image, so I just hacked together a small userspace program
to toggle the wireless bits on/off.
So, for anyone else that might want it -- here is the source to do it
from userspace.
Paste the following into a file 'av5100.c'
/* ---------- BEGIN AV5100.C -------------- */
#include <stdio.h>
#include <unistd.h>
#include <sys/io.h>
main(int argc, char *argv[])
{
if (iopl(3) < 0) {
fprintf(stderr, "iopl returned -1!\n");
return -1;
}
outl(0x80020800, 0xcf8);
outb(0x6f, 0x0072);
outl(0x1800ffff, 0x1184);
outb((argc > 1 && argv[1][0] == '0') ? 0xe1 : 0xe0, 0xb2);
fprintf(stdout, "Radio turned o%s\n",
(argc > 1 && argv[1][0] == '0') ? "of" : "n");
}
/* --------- END AV5100.C --------------*/
and build it via:
gcc -O -o av5100 av5100.c
You can then turn the radio on/off via:
./av5100 <--- turns the radio on
./av5100 0 <--- turns the radio off
James
--
av5100 module broken
https://bugs.launchpad.net/bugs/103691
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs