Component | Particulars |
|
|
Mouse area | Synaptics touchpad + "4 way scroll button" v5.8 |
|
|
Keyboard | 105 keys + 6 "internet keys" |
|
|
Hard disk | 20 GB, IDE |
|
|
Display/Video | 1400x1050x24bit /ATI Radeon M6 LY 8MB |
|
|
Video output | 15 pin VGA and S-Video |
|
|
DVD/Floppy | Sharing a single "Future bay" socket |
|
|
Power saving | ACPI |
|
|
Ethernet | Intel |
|
|
Modem | Conexant HSF winmodem |
|
|
Sound | Intel i810 |
|
|
USB | Intel |
8086:2484 |
|
Firewire/1394 | Texas Instruments |
|
|
PCMCIA | Texas Instruments PCI1410 |
|
|
SMBus | Intel ICH3 |
|
|
Device | Boot | Start | End | ID | Use |
/dev/hda1 | * | 1 | 510 | 7 | Win XP (ntfs) |
/dev/hda2 | 511 | 2432 | 5 | extended | |
/dev/hda5 | * | 511 | 1020 | 82 | Linux `/' |
/dev/hda6 | 1021 | 1086 | 82 | Linux swap | |
/dev/hda7 | 1087 | 1341 | b | Windows FAT32 | |
/dev/hda8 | 1342 | 2432 | 83 | Linux `/data' |
The FAT32 partition will serve to communicate between the Linux world
and the Windows XP world, because Linux cannot (reliably) write ntfs, and
Windows still flatly refuses to acknowledge the existance of any other
operating systems.
RedHat 7.2 ships with linux kernel 2.4.7, but I installed 2.4.17-rc2
instead, to experiment with power management (see below). I use GRUB to
boot both operating systems. It works with RedHat's
autodetected settings .
clear mod1This also reconfigures the "Scr Lk" (but not the "Num Lk") key to act as "Insert". By pressing Shift + ScrLk, the "mouse button" keys are activated. The effect lasts until the end of the X session, or until Shift + ScrLk is pressed again. Insert these lines into your .xinitrc or equivalent to get the desired auto-repeat behavior:
add mod1 = Alt_L
keycode 106 = Pointer_Button2
keycode 113 = Pointer_Button3
keycode 78 = Insert Pointer_EnableKeys
xset -r 106Update: Gpm supports the Synaptics touchpad rather well! It supports corner clicks and even the 4-way scroll button. It has great velocity control based on pressure (i.e. contact area). To make it understand the 4-way scroll button, I had to hack it to enter "wmode" on startup . [See the Synaptics website for excellent detailed documentation about their devices.] With this, the above trick to convert "Ins" and "Alt" to mouse buttons is no longer really needed. Thank you Henry Davies and other gpm programmers.
xset -r 117
To use gpm as a mouse source in X, put the following in the InputDevice section of XF86Config-4:
Option "Device" "/dev/gpmdata"I start gpm like this:
Option "Protocol" "MouseSystems"
/usr/local/sbin/gpm -R msc -t synps2Now there's one more annoyance: whenever you touch the mouse, the timestamp of /dev/gpmdata is changed, causing the hard disk to spin up. That should really not be necessary, and it can indeed be avoided if you do the following:
Overkill? Sure, but hey! It works. I constructed an alternative /etc/rc.d/init.d/gpm to automate all of the above steps.Compile "RAM Disk" support into the kernel (or build a module) Construct a tiny RAM Disk: dd if=/dev/zero of=dev/ram bs=1k count=64
mke2fs -m0 /dev/ram 64Mount it (first mkdir /mnt/dev): mount /dev/ram /mnt/dev
Create a FIFO on it: mkfifo /mnt/dev/gpmdata
Make gpm use it: ln -sf /dev/gpmdata /dev/gpmdata
Then start gpm as before.
The "F1" through "F12" keys are supposed to have various functions associated with them when pressed together with the "[Fn]" modifier. "[Fn]+F7]" and "[Fn]+F8" work (display brightness down and up). "[Fn]+F3" causes a brief screen flash, but nothing more, and "[Fn]+F4" produces an ACPI "Sleep button pressed" event. "[Fn]+F1", "[Fn]+F2" and "[Fn]+F9" through "[Fn]+F12" don't do anything.
In addition to the mouse hacks above, I turned the right "Menu" key into "Ctrl", and the two "Windows" keys into "Hyper". Also, I changed "Caps Lock" into "Super", because I never use Caps Lock, and like to have many modifier keys to have a separate "namespace" for XEmacs and window manager shortcuts. Here's my .Xmodmap . I like fast auto-repeat, so I inserted this into my .xinitrc:
xset r rate 200 50Did I say how wonderfully responsive this keyboard is? The only thing I don't like about it, is the layout of its bottom row:
[Fn] Ctrl Win Alt \| [Space] Ins Alt [Win] [Menu]By reprogramming it as above, most of the trouble goes away, but I can't seem to reprogram the "\|" key (it generates the same keycode, and raw scan code as its twin just below the backspace key), and I find it very hard to use a left "Ctrl" key which is not at the extreme end of the row. Of course, [Fn] doesn't even register as a keycode, so there's no chance of moving it about.
hdparm -c1 -d1 -X68 -S12 /dev/hdaWith these settings, hdparm -tT reports 200 MB/s cache read and 16-20 MB/s disk read.
Warning: hdparm may cause system crashes. Read the man page before use.
VideoRam 8192to the "Device" section. Please be careful when copying my XF86Config-4 file: They say it is easy to permanently damage monitors with incorrect settings.
Entering sleep mode by echoing "1" to /proc/acpi/sleep freezes the computer. I haven't managed to make the computer power off from software yet, and suspend-to-disk is out of the question. Fortunately, the display shuts off when the case is closed, so a mimimal power saving system does work. With lid closed (that is, backlight switched off), the laptop stays alive for about 3 hours on a full battery. See also my hard disk spin down settings .
I'd be most grateful if anybody could help me get ACPI work a little bit better. Sleep mode would be a welcome feature! Here is the acpidmp output from my ACPI tables, and here are some of the files in /proc/acpi:
ac_adapter/0/statusIt seems the laptop supports a suspend-to-ram sleep mode (S1) and a suspend-to-disk hibernate mode (S4), but they don't work for me. For experts only, here's /proc/acpi/dsdt.
battery/1/info
battery/1/status
gpe
info
processor/0/info
processor/0/status
sleep
Update: I was experiencing random crashes in matlab and also in lame. At first I blamed my new memory, but I was able to prove it innocent. So I upgraded to kernel 2.4.18 and acpi-20020225. This seems to have fixed the problem. Sleep mode still doesn't work though.
I wrote a tiny little qt-based program to display battery status. It's currently not very installer friendly, but feel free to give it a try: qacpi-020316.tgz.
Daniel WagenaarI cannot guarantee quick or useful responses, but I'll try. You are no doubt aware of www.linux-laptop.net ? Several other people have installed linux on Compaq Presario 1700 series computers, with various degrees of success depending on their particular hardware configuration. Compaq, in their infinite wisdom, have decided that buyers do not need to know exactly what hardware they are going to get prior to their actual purchase. Still, this is a great laptop, which works quite well under linux, despite Compaq's lack of support.
Caltech 103-33
Pasadena, CA 91125
e-mail: wagenaar@caltech.edu