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

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
新页面: {{From|https://help.ubuntu.com/community/FujitsuStylus}} {{Languages|UbuntuHelp:FujitsuStylus}} == Introduction == Although the Wacom Stylus seems to work very well in Ubuntu, the Fujits...
 
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的2个中间版本)
第2行: 第2行:
{{Languages|UbuntuHelp:FujitsuStylus}}
{{Languages|UbuntuHelp:FujitsuStylus}}
== Introduction ==
== 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 is still a major burden. This is partially because the stylus isn't just sensed, it actually relays information to the touch screen.
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 ==
This guide was written for a Gateway M285-E, however it should work well on many other systems.
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:
== Before We Get Started ==
 
Let's make sure your system is up to date:
 
<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:
<pre><nowiki>
<pre><nowiki>
sudo nano /etc/X11/xorg.conf </nowiki></pre>
sudo nano /etc/X11/xorg.conf </nowiki></pre>
Add these lines to the file:
Add these lines to the file:
<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"
EndSection </nowiki></pre>
        Option "SendCoreEvents" "true"
 
Find - Section "ServerLayout"
Add InputDevice "Fujitsu" to it.
 
Example:
<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>
EndSection </nowiki></pre>
 
...and add 'Inputdevice "Tablet"' to the ServerLayout section
== Setting Up SetSerial ==
== Setting up configuration files ==
 
You'll need to add the following line:  
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 one of the following two lines to this file:
<pre><nowiki>
/dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 </nowiki></pre>
<pre><nowiki>
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 </nowiki></pre>
 
Now we'll do the same for /etc/setserial.conf
 
Open the configuration file:
<pre><nowiki>
sudo nano /var/lib/setserial.conf </nowiki></pre>
 
Add one of the following two lines to this file:
*Make this the same line that you added to /var/lib/setserial/autoserial.conf
<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>
...to these files
<pre><nowiki>
<pre><nowiki>
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 </nowiki></pre>
/etc/serial.conf, /var/run/setserial.conf, /var/lib/setserial/autoserial.conf </nowiki></pre>
 
Edit your /etc/rc.local file to look like this:
== Installing The Drivers ==
<pre><nowiki>  
 
setserial /dev/ttyS0 autoconfig
Installing the base drivers:
<pre><nowiki>
sudo apt-get install xserver-xorg-input-fpit </nowiki></pre>
 
*Because of an issue with the M285-E being produced by gateway, we need a few different files.


== Installing The Patch ==
setserial /dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400
 
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.


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.
First we need to create the file:
First we need to create the file:
<pre><nowiki>
<pre><nowiki>
sudo nano /usr/local/sbin/ms </nowiki></pre>
sudo nano /usr/local/sbin/ms </nowiki></pre>
Put this text in the file:
Put this text in the file:
<pre><nowiki>
<pre><nowiki>
#!/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.
Make the file executable:
Make the file executable:
<pre><nowiki>
<pre><nowiki>
chmod a+x /usr/local/sbin/ms </nowiki></pre>
chmod a+x /usr/local/sbin/ms </nowiki></pre>
At this point you can now open up a terminal window and type:
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 s  #Allows you to use right click on the stylus

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