Installing Linux on Sony R505EL laptop


If you found this page, take a few minutes to help me out. I'm doing the free ipods promotion thing - there's a site that offers to give you a free Ipod if you sign up for a free trial offer (which you can cancel after a day or two) and get 5 other people to do the same. Use this link:
http://www.freeiPods.com/default.aspx?referer=8112592
to sign up and be one of my referals! You of course will also be able to go for a free ipod after you sign up and get 5 friends to do the same. This is apparently legit (and some people have received their Ipods already) - there was an article on Wired about it.

Two Redhat installs, 20+ kernel recompiles, 2 XFree86 compiles, and much hacking.
That's what it took to finally get linux working on my laptop. But it was worth it. :)
I've made this help page so that if you have an R505 (or similar model), hopefully you won't have to spend so much time on liberating your computer from Micro$oft.

This assumes you know how to compile a kernel and patch stuff. Also, to do most of the stuff on this page you have to be logged in as root.

Install redhat 7.3. (hard drive install)

Boot and then execute the i830-16bit program to get X to start in 24bit mode. (To use the i830-16bit program, compile it with gcc i830-16bit.C -o i830-16bit).

X will most likely start, but will have a strange distorted stripe across the middle.

Compile kernel 2.4.18:

X probably won't work. (will have the weird stripe across screen).


Recompile and patch XFree86:

I used X 4.2.0 source: X420src-1.tgz X420src-2.tgz X420src-3.tgz

Restart X.
Pray that it's fixed. (it should be).

If you have trouble configuring X (Xconfigurator might help), you can look at (or try out) my X config files: XF86Config XF86Config-4
(I think only XF86Config-4 is used in current X versions, but I'm providing the other file anyway).


Miscellaneous:


Sound:

Should work after compiling the kernel with Sam's megapatch. Use the OSS driver in xmms. You may need to adjust volume levels with aumix. If sound doesn't work, make sure the audio modules are loaded. (lsmod... try modprobe i810_audio if they're not in there).


IEEE CDRW/DVD:

Using the ACPI and IEEE drivers from the patched kernel, everything should be set up to use the cdrom drive. I just needed to do modprobe ohci1394; modprobe raw1394 and then mount /dev/scd0 /mnt/cdrom However, cd audio does not appear to work. I've only tested with kscd.


Wireless card:

I was setting up a Linksys WPC11 PCMCIA card. If you are using a PCMCIA wireless card also, you should be able to do the same thing. (But if you have the Lucent cards, Lucent provides their own linux software).

Setup /etc/pcmcia/wlan-ng.opts and wireless.opts to your network's settings (SSID, WEP if applicable)


References

Much thanks to Jon Gans and Sam Revitch's pages on installing linux on laptops. Gans provides the patchs to X to get the display working, and Revitch provides the megapatch to the kernel.


* When you think about it, it's just as arbitrary as coffee. (-Good Will Hunting)