特殊:Badtitle/NS100:FujitsuStylus

来自Ubuntu中文
Wikibot留言 | 贡献2007年12月6日 (四) 10:32的版本
跳到导航跳到搜索

{{#ifexist: :FujitsuStylus/zh | | {{#ifexist: FujitsuStylus/zh | | {{#ifeq: {{#titleparts:FujitsuStylus|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:FujitsuStylus|1|-1|}} | zh | | }}

Introduction

Although the Wacom Stylus seems to work very well in Ubuntu, the Fujitsu Finepoint Stylus is still a major burden. This is partially because the stylus isn't just sensed, it actually relays information to the touch screen. This guide was written for a Gateway M285-E, however it should work well on many other systems.

Before We Get Started

Let's make sure your system is up to date:

sudo apt-get update && sudo apt-get dist-upgrade 

Configuring your X configuration

Open up your /etc/X11/xorg.conf file:

sudo nano /etc/X11/xorg.conf 

Add these lines to the file:

Section "InputDevice"
	Identifier "Fujitsu"
	Driver "fpit"
	Option "Device" "/dev/ttyS0"
	Option "AlwaysCore" "on"
	Option "InvertY"
	Option "MaximumXPosition" "12550"
	Option "MaximumYPosition" "7650"
	Option "MinimumXPosition" "400"
	Option "MinimumYPosition" "400"
	Option "SendCoreEvents"
EndSection 

Find - Section "ServerLayout" Add InputDevice "Fujitsu" to it. Example:

Section "ServerLayout"
	Identifier	"Default Layout"
	screen 0 "aticonfig-Screen[0]" 0 0
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
	Inputdevice	"Synaptics Touchpad"
	Inputdevice	"Stylus"                 <- Notice this line
EndSection 

Setting Up SetSerial

You'll want to first install setserial:

sudo apt-get install setserial 

Now you'll want to set up the configuration file:

sudo nano /var/lib/setserial.conf 

You'll need to add the following line to this file:

/dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 

Now we'll do the same for /etc/setserial.conf Open the configuration file:

sudo nano /var/lib/setserial.conf 

Add the same line to this file:

  • Make this the same line that you added to /var/lib/setserial/autoserial.conf
/dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 
  • On some systems the line below needs to be used.
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 

Installing The Drivers

Installing the base drivers:

sudo apt-get install xserver-xorg-input-fpit 
  • Because of an issue with the M285-E being produced by gateway, we need a few different files.

Installing The Patch

If you're a little more advanced, you can download the source from here: http://xorg.freedesktop.org/releases/ Go to http://ubuntuforums.org/showthread.php?t=146279&page=3 Find the second post by one_sticky_bum and follow his instructions.

Getting Right Click Working

I personally had issues with the right click. It seems that the right click on the stylus needs to be tied to button 3 and the right click on the touchpad needs to be tied to button 2. The best I have done for this is just to create a script that will switch where right click is being used. First we need to create the file:

sudo nano /usr/local/sbin/ms 

Put this text in the file:

#!/bin/bash
case "$1" in
        t)
                echo "Setting up right click for touchpad."
                xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9";;
        s)
                echo "Setting up right click for stylus."
                xmodmap -e "pointer = 1 3 2 4 5 6 7 8 9";;
esac 

Save and close the file. Make the file executable:

chmod a+x /usr/local/sbin/ms 

At this point you can now open up a terminal window and type: ms s #Allows you to use right click on the stylus ms t #Allows you to use right click on the touchpad