Next, you'll probably want to do something about the horrible included dinky little always-in-the-way earphone buttons. Take a look at the instructions for adding a stereo plug to the Glasstron (and ripping out a few useless pieces while you're at it).
Now that you have a plug, you can obviously use your own headphones. A more fun thing to do would be to attach a microphone, which can then be routed back into your computer's microphone jack! If you're willing to deal with mono, you could even use one channel for input and the other for output. Unfortunately, the built-in amp seems to do too good a job of nuking any signals going the wrong way around, bypassing it would be trivial if I only knew the pinout of the Glasstron cable... but I don't. <sigh>
Unfortunately, it does not have a third button. It would be very intuitive to push down on the joystick but, while this produces a "click!" sound, it doesn't actually do anything. (And this would cause lots of unintentional clicks if carried in your pocket.) The workaround is to use Emulate3Buttons in your XF86Config so you can press both buttons simultaneously for a third-button click.
The Handy Mouse retails for about Y5000 in Japan. The Japan Victor Company is better known as "JVC" elsewhere...
At time of writing, the FinRing costs $79 straight from the manufacturer, express shipping from Taiwan to anywhere in the world included.
Configuring Windows 98
The laptop comes with Windows 98 installed, and getting the
Glasstron to work under Win98 is such a piece of cake that
sometimes I wonder whether the pain of installing Linux was
worthwhile. Then again, I'm a relative Linux newbie, so
a guru would probably have no problems at all...
Note: Fn-F8 works only after Win98 has booted. Except when closing the screen, there appears to be no way to get the LCD screen turned off while leaving the TV output enabled!
After the initial excitement, you'll soon discover that the display is too small and distorted to be usable. Correct. Create a new account in Win98 for the Glasstron -- mine is called Yak -- and do Control Panel -> Display -> Design: set the background to white, fonts to bold, black and 17 pts or so, and display size to 640x480. (For a monocular Glasstron, you'll probably find the inverse white-on-black better.) Remove all extra icons from the desktop and rename the ones you actually need with short words that so that "Format disk" will not be abbreviated as "F...k".
Under Display -> Settings you'll find a driver configuration button, under which hides an extra tab for the NeoMagic chip's own configuration, which includes a handy point-and-click interface for changing the centering of the display. As far as I can see, most settings here are overridden by Windows and the BIOS (the Fn-X keys).
When word processing, etc, I find about 14-16 points to be tolerably comfortable -- you will find that the display becomes sharper if you move it farther away from your eyes. The standard MS-DOS prompt is fixed to thin white-on-black, which remains unreadable even at the largest font setting -- you may wish to install another shell if you'll be needing this.
Under Control Panel, you will find a Power Management icon. Select this, create a new profile (any attempts to change existing ones will be erased as soon as the machine reboots!) and, for starters, instruct the machine to never turn off no matter what. This takes cares of Win98.
And then there's the BIOS. Right-click the battery management icon in the System Tray and select the option "Power Management Off". If you're not running on AC power, the screen will get brighter, and -- more importantly -- closing the display will no longer cause the machine to instantly shut down! The internal display will still switch off when the cover is closed, so no worries.
Getting everything you need working under Linux
requires a lot of work and more than a little
familiarity with Linux. On the bright side, at least
you'll learn a lot while doing it...
An excellent starting point for installing Linux on the Vaio PCG-C1XG/BP is Lee Wen Tiong's little guide. He used Vine Linux 2.0, but the process was very similar for the Red Hat 6.2J that I opted for (with hardware this bizarre, the least you can do is choose a well-supported distro!).
You can follow his instructions dutifully all the way up to X configuration, after which the real fun starts. So do all this but no more:
So I opted for an equally stupid low-tech solution and bolted on a third-party scan converter to do the VGA-TV conversion. There was a "Poindeo TV" converter lying on the shelves of the lab so I snarfed up that and tracked down a male-to-male 15-pin adaptor so I could attach it to the dongle. One more box to break and it also needs a 9V battery or DC input to power it, but at least it works...
According to some unspecified laws of logic, the external VGA output gives out different signals, some of which will result in gargage. Press Fn-F7 to cycle through them until you get a decent display. One odd quirk: 1024x480 can be used with the Poindeo, it just squishes the aspect down from 2,13:1 to 1,33:1! For some applications this is in fact useful, since by using a 20-point Courier font, I can now get a tolerably legible 80x18 xterm with the Glasstron. (Under 640x480, you're limited to 50x18 or so, 50x27 if you're willing to use a 8x8 font.) Unfortunately the lower 20 pixels or so of the screen are cut off.
By the time you read this, USB support may have made it into the stable kernels and your life will be easy. Mine wasn't.
Red Hat comes with kernel 2.2.14-5.0, the easiest (ha!) way to install USB is to update to 2.2.16 and install the 2.2 USB backport on top. Follow the instructions. While in make menuconfig, you will want to ensure that everything you need is enabled: USB (UHCI-type chipset), APM and modularized sound support, incl. OSS, would be a good start.
DO NOT reboot yet!
First of all, note that your new kernel has appeared in /vmlinuz, whereas Red Hat by default boots off /boot/vmlinuz. So:
cp /vmlinuz /boot/vmlinuz-2.2.16-usb cd /boot rm vmlinuz ln -s vmlinuz vmlinuz 2.2.16-usbAdjust /etc/lilo.conf accordingly and be sure to add an entry called linux-rescue pointing to the old 2.2.14 kernel, if (when) you screw up this will get you out of many a pickle. Even more importantly, run lilo to get the system to recognize the changes to the kernel and allow it to boot properly. Do this every time you change the kernel, otherwise your system will not boot.
If a new kernel won't boot, you can now boot the old, functional linux kernel by telling lilo to start linux-rescue. If not even that helps, boot off the Red Hat 6.2J disk and execute the incantation linux rescue ide2=0x180,0x386 to get you to a root prompt. Mount your root partition (presumably /dev/hda5 if you followed my advice) and run lilo and/or edit /etc/lilo.conf to get things working again.No, you still can't reboot. Get the latest PCMCIA package from the Linux PCMCIA Information Page. Install PCMCIA now according to the included instructions, no special trickery needed during the compilation phase at least for my cards (Ethernet adapter and SmartMedia reader). However, reinstalling will break Red Hat's network configuration system, you will need to edit /etc/pcmcia/network.opts according to these instructions.
Note: Red Hat 6.2J's default PCMCIA installation has a few odd quirks on the Vaio, inserting or removing cards while in Linux would cause an immediate system crash. After updating the problems went away...
Still there? You may now reboot the machine. If everything works, good for you -- go get a coffee and prepare yourself mentally for soundcard installation. If not, get a coffee anyway and debug, debug, debug.
Section "Xinput" SubSection "Mouse" DeviceName "USB Mice" Protocol "IMPS/2" Port "/dev/input/mice" AlwaysCore # next two lines for scroll wheel mice only --jpatokal Buttons 5 ZAxisConfig 4 5 EndSubSection EndSection(assuming you've configured your mouse as /dev/input/mice, that is...) You should now be able to move and click both with the built-in Vaio nipple and your USB mouse. Hooray!
If you want to use a scroll wheel mouse, you'll need to hack your ~/.Xdefaults a bit more to get support in more programs (like xterm and Netscape). See the mouse wheel scroll page for documentation, or just copy my .Xdefaults file. Note that Netscape scrolling is a little flaky at times, the screen does not always redraw properly.
That was too easy, time for more pain.
The Vaio comes with a rather bizarre Yamaha sound chip not supported by OSS, so the only way to get it to work is to install ALSA with OSS emulation. As of this writing ALSA is still in serious beta, but despite the scary zero versions 0.5.9b/c have worked for me -- once I got them installed right.
Fetch copies of the latest ALSA package (driver, lib, utils, the works) from the ALSA project and bookmark their extensive but chaotically disorganized documentation (odds are you'll need both the ALSA HOWTO/FAQ and the entirely separate ALSA-sound-mini-HOWTO).
Do a ./configure ; make ; make install for all three packages. Note that if you did not compile your kernel with ISA PnP support, you will get errors unless you use the --with-isapnp=no switch for ./configure. (And you did remember to turn off PnP in the BIOS, right?)
Run the included ./snddevices script to create all necessary devices. Add these lines to your /etc/conf.modules (or modules.conf). Modprobe everything in there as instructed in the installation guide, then run alsamixer to unmute all channels and push them up to 80% or so. Now try it! And remember to activate Input Gain, Capture and ADC Record if you want to use a microphone, alsamixer doesn't have these but the command-line amixer does. amixer set "Input Gain" 100%, etc...
Got it working? Dance a little jig of joy and save your configuration with alsactl store, then proceed to scratch your head over why Red Hat's default startup script worked fine with the 2.2.14 kernel but not 2.2.16, hack it by hand to either invoke /etc/rc.d/init.d/alsasound start or just simply modprobe what you need. (Feel free to nuke the lines calling aumix and replace them with a call to alsactl restore.)
One bizarre quirk: I haven't managed to get CD audio out through the VAIO's own speakers or the headphone jack, I have no idea why. CD player controls (including volume) work fine and I can listen through the CD player's own jack...
Hibernation (Fn-F12) works quite well under Linux, everything is done in hardware so no system configuration whatsoever is needed. When coming out of hibernation, the mouse pointer will initially be corrupted, but it will correct itself as soon as it hits something that causes an update (window edge, button, etc). One thing to watch out for, however, is inserting or removing PCMCIA cards while in hibernation, sometimes this works but sometimes it doesn't. Remember to umount the CD-ROM drive before removing the card, or Linux will get confused...
Unfortunately, ALSA is not APM aware, so by default sound will not work after exiting hibernation. A manual /etc/rc.d/init.d/alsasound restart ; modprobe snd-pcm-oss will fix this, or you can hack the apmd scripts in /etc/sysconfig/apmd to do this automatically.