特殊: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行:
{{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.
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.
This guide was written for a Gateway M285-E, however it should work well on many other systems.
== Before We Get Started ==
== Before We Get Started ==
Let's make sure your system is up to date:
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 update && sudo apt-get dist-upgrade </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>
第34行: 第26行:
Option "SendCoreEvents"
Option "SendCoreEvents"
EndSection </nowiki></pre>
EndSection </nowiki></pre>
Find - Section "ServerLayout"
Find - Section "ServerLayout"
Add InputDevice "Fujitsu" to it.
Add InputDevice "Fujitsu" to it.
Example:
Example:
<pre><nowiki>
<pre><nowiki>
第48行: 第38行:
Inputdevice "Stylus"                <- Notice this line
Inputdevice "Stylus"                <- Notice this line
EndSection </nowiki></pre>
EndSection </nowiki></pre>
== Setting Up SetSerial ==
== Setting Up SetSerial ==
You'll want to first install setserial:
You'll want to first install setserial:
<pre><nowiki>
<pre><nowiki>
sudo apt-get install setserial </nowiki></pre>
sudo apt-get install setserial </nowiki></pre>
Now you'll want to set up the configuration file:
Now you'll want to set up the configuration file:
<pre><nowiki>
<pre><nowiki>
sudo nano /var/lib/setserial.conf </nowiki></pre>
sudo nano /var/lib/setserial.conf </nowiki></pre>
 
You'll need to add the following line to this file:
You'll need to add one of the following two lines 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>
<pre><nowiki>
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 </nowiki></pre>
Now we'll do the same for /etc/setserial.conf
Now we'll do the same for /etc/setserial.conf
Open the configuration file:
Open the configuration file:
<pre><nowiki>
<pre><nowiki>
sudo nano /var/lib/setserial.conf </nowiki></pre>
sudo nano /var/lib/setserial.conf </nowiki></pre>
 
Add the same line to this file:
Add one of the following two lines to this file:
*Make this the same line that you added to /var/lib/setserial/autoserial.conf
*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>
* On some systems the line below needs to be used.
<pre><nowiki>
<pre><nowiki>
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 </nowiki></pre>
/dev/ttyS0 port 0x03F8 irq 4 baud_base 38400 </nowiki></pre>
== Installing The Drivers ==
== Installing The Drivers ==
Installing the base drivers:
Installing the base drivers:
<pre><nowiki>
<pre><nowiki>
sudo apt-get install xserver-xorg-input-fpit </nowiki></pre>
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.
*Because of an issue with the M285-E being produced by gateway, we need a few different files.
== Installing The Patch ==
== Installing The Patch ==
If you're a little more advanced, you can download the source from here:
If you're a little more advanced, you can download the source from here:
http://xorg.freedesktop.org/releases/
http://xorg.freedesktop.org/releases/
Go to http://ubuntuforums.org/showthread.php?t=146279&page=3
Go to http://ubuntuforums.org/showthread.php?t=146279&page=3
Find the second post by one_sticky_bum and follow his instructions.
Find the second post by one_sticky_bum and follow his instructions.
== 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>
第114行: 第85行:
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

2007年11月30日 (五) 17:23的版本

{{#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