TC1000 INSTALL Legolas - 27/07/2006 http://www.rainbowbreeze.it BASE OPERATIONS install Xubuntu 6.06 LTS edit /etc/inittab and comment the following lines (useful for save some megabyte of ram) #2:23:respawn:/sbin/getty 38400 tty2 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6 install optimized base kernel apt-get install linux-image-686 linux-restricted-modules-2.6.15-25-686 apt-get remove --purge linux-image-2.6.15-23-386 linux-restricted-modules-2.6.15-23-686 (optional) reconfigure kernel apt-get install linux-source libncurses-dev kernel-package (http://www.gentoo.org/doc/en/nvidia-guide.xml - nvidia kernel config) (http://www.johanneswilm.org/TC1000/ - tc1000 kernel .config) make the kernel in the normal debian way install base packages for tabletpc configurations apt-get install build-essential apt-get install localepurge (select en_en and the code for your idiom (my is it)) create an additional boot script based on the skeleton of /etc/init.d/bootmisc.sh (do not edit the original file, in the future they could change) vi /etc/init.d/bootlegolas.sh chmod 755 /etc/init.d/bootlegolas.sh cd /etc/rcS.d ln -s ../init.d/bootlegolas.sh S80bootlegolas.sh edit /etc/fstab and add noatime flag on partitions (little speed-up) remove not useful boot links cd /etc/rcS.d mv S26lvm _S26lvm mv S27evms _S27evms mv S40networking _S40networking mv S25mdadm_raid _S25mdadm_raid cd /etc/rc2.d mv S19cupsys _S19cupsys mv S18hplip _S18hplip edit /etc/network/interfaces with your preferred network parameters MISC HARDWARE CONFIG enable nvidia proprietary driver (https://wiki.ubuntu.com/BinaryDriverHowto/Nvidia) apt-get install nvidia-glx apt-get install xranrd edit /etc/X11/xorg.conf for nvidia driver instead of nv (opengl 3d and ranrd support) sensors apt-get install lm-sensors sensors-detect (if it doesn't work, run modprobe i2c-dev and the re-run the command) add modules i2c-isa e via686a in file /etc/modules PEN CONFIG base system config apt-get install linux-headers-2.6.15-23 linux-headers-2.6.15-23-686 apt-get install setserial creating the driver cd /usr/src wget http://groundstate.ca/files/fpi2002-0.5.tar.gz tar -xzf fpi2002-0.5.tar.gz rm fpi2002-05.tar.gz cd fpi2002-.0.5/ mv Makefile Makefile-2.4 cp Makefile-2.6 Makefile make make install (the installer will put the file in /lib/modules/2.6.15-23-686/kernel/drivers/serial dir) check if the driver works modprobe fpi2002 setserial /dev/ttyS0 autoconfig setserial /dev/ttyS0 (should return something similar to "/dev/ttyS0, UART: 16550A, Port: 0×03f8, IRQ: 4") install the driver add modules fpi2002 in file /etc/modules add "setserial /dev/ttyS0 autoconfig" in /etc/init.d/bootlegolas.sh create and install Xorg driver cd /usr/src wget http://groundstate.ca/files/tc1k-1.1.tar.gz tar -xzf tc1k-1.1.tar.gz rm tc1k-1.1.tar.gz cd tc1k-1.1/ cp tc1k_drv.o /usr/lib/xorg/modules/input/ edit /etc/X11/xorg.conf and add section "InputDevice" called "TC1000 pen" and add line for this new section in "ServerLayout" ACPI CONFIG longrun apt-get install longrun modprobe cpuid modprobe msr add modules cpuid e msr in file /etc/modules acpi event config create /etc/acpi/tc1000.sh (this script handles some events, like battery/AC change) chmod 755 /etc/acpi/tc1000.sh edit /etc/init.d/bootlegolas.sh for starting up this script create /etc/acpi/events/all_events (called by tc1000.sh for handling events) SIDE BUTTONS (http://www.johanneswilm.org/TC1000/ for instructions) (http://linux-tablet-pc.dhs.org/#Keys for keycodes) create file /etc/tc1000.map (for terminal keymap) keycode 130 = F16 keycode 131 = F17 keycode 132 = Tab keycode 133 = Escape keycode 134 = Up keycode 135 = Down add in /etc/init.d/bootlegolas.sh setkeycodes e002 130 setkeycodes e003 131 setkeycodes e004 132 setkeycodes e005 133 setkeycodes e006 134 setkeycodes e007 135 loadkeys /etc/tc1000.map create file /etc/X11/Xmodmap (for GDM/Xfce and other X program) ! Compaq TC1000 side keys keycode 134 = F16 keycode 135 = F17 keycode 140 = Tab keycode 248 = Z keycode 191 = Up keycode 192 = Down (this script is executed by /etc/X11/Xsession and is global for all users) DIFFERENT BOOT PROFILES (LANDSCAPE OR PORTRAIT MONITOR) (http://linux-tablet-pc.dhs.org/howto.html) (http://www2.zacharywhitley.com:8080/linux/installation/Compaq_TC-1000.php) (http://www.dklevine.com/general/software/tc1000/configure.htm) create different Xorg config file, one for each video mode that needs, and call them xorg.conf.lanscape xorg.conf.portrait (for example) edit /boot/grub/menu.list and create a new item equal to the item of the current kernel add the "videomode=portrait" or "videomode=landscape" at the end of the kernel boot parameters line anche change the kernel title according edit the /etc/init.d/bootlegolas.sh and add cp of /etc/X11/xorg.conf.$videomode /etc/X11/xorg.conf if you create a grup kernel item where no videomode is set, this is useful for using last choosed videomode (no copy in the bootlegolas.sh file) you can add as many as you want different video mode (twinview, use nv driver instead of nvidia etc) ADDITIONAL TABLET SOFTWARE xvkbd apt-get install xvkbd create a launcher in xfce bar for xvkdb edit $home/.Xsessions and personalize the aspect of the keyboard xvkbd.windowGeometry: 220x90 xvkbd.compact: false xvkbd*Font: 6x12 xvkdb under gdm (http://linux-tablet-pc.dhs.org/howto.html) (http://homepage3.nifty.com/tsato/xvkbd/) apt-get install xvkbd edit file /etc/X11/gdm/Init/Default and add the following line before the "exit 0" line sleep 15 && /usr/bin/xvkbd -geometry -10-10 & (increment the sleep timeout if xkvbd appeas before the gmd login screen) multimedia add marillat and listen repository to /etc/apt/source.list apt-get install listen python-gnome2 apt-get win32codecs, mplayer-686, realplayer network administrator software apt-get install kismet ethereal tethereal ettercap apt-get install wifi-radar mv /etc/rc2.d/S20wifi-radar /etc/rc2.d/_S20wifi-radar DIFFERENT LOGIN USER, SAME PROGRAM CONFIGS create a different user for each interface-mode that you want (for example, i created 3 user: one, legolas, in the principal, the second, mediabox, is for multimedia and pen-only use of the tablet, the third, mother, is for my mother, that wants power-on the tablet and navigate in internet and press a button and shutdown it, no more) and personalize the interface as you want. remember to add user in the correct group (audio, video, admin etc) set the gdm theme to "Happy Gnome with browser" put the avatar icon in .face file under under home user directory if you want use the same firefox and listen profile for legolas and mediabox user start firefox and listen under legolas user and close them (this create the profile directories) add the mediabox user into legolas group chmod 770 /home/legolas/.mozilla -R chmod 770 /home/legolas/.listen -R sudo -i cd /home/mediabox/ ln -s ../legolas/.mozilla .mozilla ln -s ../legolas/.listen .listen ADDITIONALE NOTES PCMCIA MANAGEMENT when you add a pcmcia card in a moment different from boot, for enabling it run the following command sudo modprobe pcmcia && modprobe pcmcia_core sudo cardmgr LONGRUN to check longrun status longrun -c /dev/cpu/0/cpuid -m /dev/cpu/0/msr -p to manually c reate longrun devices (generally not needed) mkdir -p /dev/cpu/0 mknod /dev/cpu/0/msr -m 0644 c 202 0 mknod /dev/cpu/0/cpuid -m 0600 c 203 0