Configure RedHat Linux Beta Severn for the TC1000

by David K. Levine
Download the zip file containing the configuration and other files.

ACPI: Make sure to install the acpi rpm from the iso, it is not installed by default. ACPI is compiled in modules that do not load by default, and must be explicitly loaded using modprobe. The myxinit script loads the modules ac, processor, button, battery and longrun. The ac and battery modules must be loaded to use the gnome battery monitor panel applet - it will crash if these are not loaded. Redhat did not compile the longrun module, but a compiled longrun.o is in the zip file. See here for how is was compiled without rebuilding the entire kernel. Install it by copying to /lib/modules/2.4.21-20.1.2024.2.1.nptl/kernel/arch/i386/kernel.  Make sure the user/group are both root, and set permissions to 722 then run /sbin/depmod.

Wifi: Unpack the directory atmelwlandriver and make the module. Since the module is already compiled, you should be able to do make install as root. Copy ifcfg-eth1 to /etc/sysconfig/network-scripts and edit it to provide the wireless and tcpip options relevant to your setup. The driver works fine with WEP. Do not load eth1 during boot, since the wlan driver isn't yet loaded. If you /sbin/modprobe pcifvnet this will load the driver and bring up eth1. The script radioon does this, and is suitable for adding to toolbars.

Touch keyboard: Install xvkbd from the rpm. Replace the existing /etc/X11/xdm/Xsetup_0 with the version in the zip file. This adds a line to the end of the script that will load xvkbd at the logon screen. You will also likely want to put a button for xvkbd on a toolbar. This setup will leave the keyboard on the screen after login.

Screen and Pen:
Three drivers are used: the XFree86 nv and vesa drivers and the tc1000 xvesa driver from kdrive. The instructions below install both and scripts for switching between them.
  1. Make sure you know how to use grub to boot into run level 3 in case you make a mistake.
  2. Unpack the directory fpi2002-0.1 and make the module. This program is from Michael Rolig. Since the module is already compiled, you should be able to do make install as root.
  3. Copy XFConfig.land, XFConfig.port, XFConfig.dual to /etc/X11.
  4. Copy myxinit to /etc/init.d and make a symbolic link to it named S30myxinit in /etc/rc5.d. This makes it possible to choose the video mode at bootup by setting kernel parameters myorient=xvesa for the xvesa driver, myorient=port for the nv driver in portrait (sideways) orientation, myorient=dual to clone the lcd screen to the vga connection using the vesa driver. The default is to use XFConfig.land, which uses the nv driver in landscape mode. The myxinit script also loads the fpi2002 module, configures the serial port used by the pen, and loads the needed the acpi modules.
  5. Make sure in /boot/grub/grub.conf to set the kernel parameter nogui or the pen won't work. You can look at the included grub.conf for a sample of how to set up grub properly.
  6. Copy Xmodmap to .Xmodmap in your home directory. I have it set so the scroll wheel does page up and page down; you may wish to change this, and set other options found in Michael Rolig's xmodmaprc file. Note that the pen works differently than under Windows XP - under XP holding down the pen for a short time is equivalent to the right mouse button; under Linux, holding down the pen and clicking the pen button is equivalent to the right mouse button.
  7. Copy tck1_drv.o to /usr/X11R6/lib/modules/input. This program is from Michael Rolig.
  8. Copy Xvesa and runXvesa to /usr/X11R6/bin. The Xvesa file is from Matthew Allum, the scripts adapted from Jamey Hicks
  9. For both files chown root:root, chmod 711, chmod u+s 
  10. mv XFree86 to XFree86.sve
  11. The script tab-switch-screen, which must be run as root (for example using sudo) will switch between portrait and landscape modes. If you are using the xvesa driver the switch is immediate. If you are using the nv drivers it will bring up the gnome logout screen. If you logout and log backin, the orientation will be switched. I suggest creating a button for it on a toolbar. If you are courageous, you can use the autologin feature and /usr/sbin/gdm-restart. This will speed things up and switch orientation without having to intervene. It will also kill any data you are working on if you forget to save first.
Screen and Pen Comments:
driver
switch orientation
clone external display
mouse wheel
scroll wheel
dpms
pen calibration
view console
nv
log in and out of X
no
yes yes
can't turn off backlight
awkward
no
Xvesa
yes
yes
no
no
no
no
yes
vesa
no, landscape only
yes
yes yes can't turn off backlight awkward
yes

NTFS:
Install the module ntfs.o as root. Redhat did not compile the module, but it is the zipfile and also available as a standalone file. First, create the directory /lib/modules/2.4.21-20.1.2024.2.1.nptl/kernel/fs/ntfs. Then copy the ntfs.o module to /lib/modules/2.4.21-20.1.2024.2.1.nptl/kernel/fs/ntfs/ntfs.o. See here for how it was compiled without rebuilding the kernel. Make sure the user/group are both root, and set permissions to 722. Finally run /sbin/depmod. To use the module, load it as root using /sbin/modprobe ntfs. Then mount your ntfs partition with mount -t ntfs /dev/hda1 /mymountdirectory -o umask=0222. Note that this module allows read only access.

Wayv: wayv is a gesture recognition program. This version is modified so that it can also be used to annotate the screen during presentations (using the vesa or Xvesa configurations). Unpack the wayv directory and make the program. Because it is already compiled, you should be able to do make install as root. Copy the wayv.conf and DEFAULT.wkey files to some convenient directory such as your home directory (both in the same directory). To run >wayv /path/to/wayv.conf mandatory-option. If mandatory-option is annotate it opens in annotation mode; if it anything else (except blank) it will open in gesture recognition mode.
Vmware: You will have to recompile the modules of course. You must use the gcc32 compiler, rather than the default gcc compiler. Install the gcc32 from the rpm if necessary. Then set "CC=gcc32; export CC" before running vmware-config-tool.pl. Running vmware, NT 4.0 has a protection error almost immediately, probably due to the new stack protection. Windows 98SE runs without any noticeable problem.