特殊:Badtitle/NS100:FujitsuStylus:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的1个中间版本)
第2行: 第2行:
{{Languages|UbuntuHelp:FujitsuStylus}}
{{Languages|UbuntuHelp:FujitsuStylus}}
== Introduction ==
== 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 to work with Ubuntu 8.04.
This guide was written for a Gateway M285-E, however it should work well on many other systems.
Although the Wacom Stylus seems to work very well in Ubuntu, the Fujitsu Finepoint Stylus (MP800) requires some manual setup. You will need to manually install the driver (xf86-input-fpit 1.2.0 works without modification), setserial, and modify xorg.conf, the setserial configuration files, and a startup script (e.g. rc.local).  
== Before We Get Started ==
== Getting started ==
Let's make sure your system is up to date:
Obtain the newer version of the driver (xf86-input-fpit 1.2.0). Previous versions need to be patched or modified before they will work correctly. I suggest finding the .deb for ease of installation.
Install setserial:
<pre><nowiki>
<pre><nowiki>
sudo apt-get update && sudo apt-get dist-upgrade </nowiki></pre>
sudo apt-get install setserial </nowiki></pre>
== Configuring your X configuration ==
== Configuring your X configuration ==
Open up your /etc/X11/xorg.conf file:
Open up your /etc/X11/xorg.conf file:
第15行: 第16行:
<pre><nowiki>
<pre><nowiki>
Section "InputDevice"
Section "InputDevice"
Identifier "Fujitsu"
        Identifier "Tablet"
Driver "fpit"
        Driver "fpit"
Option "Device" "/dev/ttyS0"
        Option "Device"   "/dev/ttyS0"
Option "AlwaysCore" "on"
Option "MaximumXPosition" "12550"
Option "InvertY"
        Option "MaximumYPosition" "7650"
Option "MaximumXPosition" "12550"
        Option "MinimumXPosition" "400"
Option "MaximumYPosition" "7650"
        Option "MinimumYPosition" "400"
Option "MinimumXPosition" "400"
Option "InvertY"
Option "MinimumYPosition" "400"
Option "Passive" "false"
Option "SendCoreEvents"
Option "TrackRandR"
        Option "SendCoreEvents" "true"
EndSection </nowiki></pre>
EndSection </nowiki></pre>
Find - Section "ServerLayout"
...and add 'Inputdevice "Tablet"' to the ServerLayout section
Add InputDevice "Fujitsu" to it.
== Setting up configuration files ==
Example:
You'll need to add the following line:  
<pre><nowiki>
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 </nowiki></pre>
== Setting Up SetSerial ==
You'll want to first install setserial:
<pre><nowiki>
sudo apt-get install setserial </nowiki></pre>
Now you'll want to set up the configuration file:
<pre><nowiki>
sudo nano /var/lib/setserial.conf </nowiki></pre>
You'll need to add the following line to this file:
<pre><nowiki>
<pre><nowiki>
/dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 </nowiki></pre>
/dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 </nowiki></pre>
Now we'll do the same for /etc/setserial.conf
...to these files
Open the configuration file:
<pre><nowiki>
sudo nano /var/lib/setserial.conf </nowiki></pre>
Add the same line to this file:
*Make this the same line that you added to /var/lib/setserial/autoserial.conf
<pre><nowiki>
/dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 </nowiki></pre>
* On some systems the line below needs to be used.
<pre><nowiki>
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 </nowiki></pre>
== Installing The Drivers ==
Installing the base drivers:
<pre><nowiki>
<pre><nowiki>
sudo apt-get install xserver-xorg-input-fpit </nowiki></pre>
/etc/serial.conf, /var/run/setserial.conf, /var/lib/setserial/autoserial.conf </nowiki></pre>
*Because of an issue with the M285-E being produced by gateway, we need a few different files.
Edit your /etc/rc.local file to look like this:
== Installing The Patch ==
<pre><nowiki>
If you're a little more advanced, you can download the source from here:
setserial /dev/ttyS0 autoconfig
http://xorg.freedesktop.org/releases/
 
Go to http://ubuntuforums.org/showthread.php?t=146279&page=3
setserial /dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400
Find the second post by one_sticky_bum and follow his instructions.
 
exit 0 </nowiki></pre>
== Getting Right Click Working ==
== 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.
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.
第78行: 第52行:
#!/bin/bash
#!/bin/bash
case "$1" in
case "$1" in
t)
        t)
echo "Setting up right click for touchpad."
                echo "Setting up right click for touchpad."
xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9";;
                xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9";;
s)
        s)
echo "Setting up right click for stylus."
                echo "Setting up right click for stylus."
xmodmap -e "pointer = 1 3 2 4 5 6 7 8 9";;
                xmodmap -e "pointer = 1 3 2 4 5 6 7 8 9";;
esac </nowiki></pre>
esac </nowiki></pre>
Save and close the file.
Save and close the file.

2008年10月19日 (日) 05:29的最新版本

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

Introduction

This guide was written for a Gateway M285-E to work with Ubuntu 8.04. Although the Wacom Stylus seems to work very well in Ubuntu, the Fujitsu Finepoint Stylus (MP800) requires some manual setup. You will need to manually install the driver (xf86-input-fpit 1.2.0 works without modification), setserial, and modify xorg.conf, the setserial configuration files, and a startup script (e.g. rc.local).

Getting started

Obtain the newer version of the driver (xf86-input-fpit 1.2.0). Previous versions need to be patched or modified before they will work correctly. I suggest finding the .deb for ease of installation. Install setserial:

sudo apt-get install setserial 

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 "Tablet"
         Driver "fpit"
         Option "Device"   "/dev/ttyS0"
	 Option "MaximumXPosition" "12550"
         Option "MaximumYPosition" "7650"
         Option "MinimumXPosition" "400"
         Option "MinimumYPosition" "400"
	 Option "InvertY"
	 Option	"Passive" "false"
	 Option "TrackRandR"
         Option "SendCoreEvents"	"true"	
EndSection 

...and add 'Inputdevice "Tablet"' to the ServerLayout section

Setting up configuration files

You'll need to add the following line:

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

...to these files

/etc/serial.conf, /var/run/setserial.conf, /var/lib/setserial/autoserial.conf 

Edit your /etc/rc.local file to look like this:

 
setserial /dev/ttyS0 autoconfig

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

exit 0 

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