特殊:Badtitle/NS100:FujitsuStylus:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/FujitsuStylus}} {{Languages|UbuntuHelp:FujitsuStylus}} == Introduction == Although the Wacom Stylus seems to work very well in Ubuntu, the Fujits... |
小无编辑摘要 |
||
(未显示同一用户的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 | 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: | |||
== | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get | 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 "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 </nowiki></pre> | EndSection </nowiki></pre> | ||
...and add 'Inputdevice "Tablet"' to the ServerLayout section | |||
== Setting | == Setting up configuration files == | ||
You'll need to add the following line: | |||
You'll need to add | |||
<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> | ||
/ | /etc/serial.conf, /var/run/setserial.conf, /var/lib/setserial/autoserial.conf </nowiki></pre> | ||
Edit your /etc/rc.local file to look like this: | |||
<pre><nowiki> | |||
setserial /dev/ttyS0 autoconfig | |||
<pre><nowiki> | |||
setserial /dev/ttyS0 port 0x06A8 uart 16954 irq 4 baud_base 38400 | |||
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的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/FujitsuStylus }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/af | • {{#if: UbuntuHelp:FujitsuStylus|Afrikaans| [[::FujitsuStylus/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ar | • {{#if: UbuntuHelp:FujitsuStylus|العربية| [[::FujitsuStylus/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/az | • {{#if: UbuntuHelp:FujitsuStylus|azərbaycanca| [[::FujitsuStylus/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/bcc | • {{#if: UbuntuHelp:FujitsuStylus|جهلسری بلوچی| [[::FujitsuStylus/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/bg | • {{#if: UbuntuHelp:FujitsuStylus|български| [[::FujitsuStylus/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/br | • {{#if: UbuntuHelp:FujitsuStylus|brezhoneg| [[::FujitsuStylus/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ca | • {{#if: UbuntuHelp:FujitsuStylus|català| [[::FujitsuStylus/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/cs | • {{#if: UbuntuHelp:FujitsuStylus|čeština| [[::FujitsuStylus/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/de | • {{#if: UbuntuHelp:FujitsuStylus|Deutsch| [[::FujitsuStylus/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/el | • {{#if: UbuntuHelp:FujitsuStylus|Ελληνικά| [[::FujitsuStylus/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/es | • {{#if: UbuntuHelp:FujitsuStylus|español| [[::FujitsuStylus/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/fa | • {{#if: UbuntuHelp:FujitsuStylus|فارسی| [[::FujitsuStylus/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/fi | • {{#if: UbuntuHelp:FujitsuStylus|suomi| [[::FujitsuStylus/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/fr | • {{#if: UbuntuHelp:FujitsuStylus|français| [[::FujitsuStylus/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/gu | • {{#if: UbuntuHelp:FujitsuStylus|ગુજરાતી| [[::FujitsuStylus/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/he | • {{#if: UbuntuHelp:FujitsuStylus|עברית| [[::FujitsuStylus/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/hu | • {{#if: UbuntuHelp:FujitsuStylus|magyar| [[::FujitsuStylus/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/id | • {{#if: UbuntuHelp:FujitsuStylus|Bahasa Indonesia| [[::FujitsuStylus/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/it | • {{#if: UbuntuHelp:FujitsuStylus|italiano| [[::FujitsuStylus/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ja | • {{#if: UbuntuHelp:FujitsuStylus|日本語| [[::FujitsuStylus/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ko | • {{#if: UbuntuHelp:FujitsuStylus|한국어| [[::FujitsuStylus/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ksh | • {{#if: UbuntuHelp:FujitsuStylus|Ripoarisch| [[::FujitsuStylus/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/mr | • {{#if: UbuntuHelp:FujitsuStylus|मराठी| [[::FujitsuStylus/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ms | • {{#if: UbuntuHelp:FujitsuStylus|Bahasa Melayu| [[::FujitsuStylus/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/nl | • {{#if: UbuntuHelp:FujitsuStylus|Nederlands| [[::FujitsuStylus/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/no | • {{#if: UbuntuHelp:FujitsuStylus|norsk| [[::FujitsuStylus/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/oc | • {{#if: UbuntuHelp:FujitsuStylus|occitan| [[::FujitsuStylus/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/pl | • {{#if: UbuntuHelp:FujitsuStylus|polski| [[::FujitsuStylus/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/pt | • {{#if: UbuntuHelp:FujitsuStylus|português| [[::FujitsuStylus/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ro | • {{#if: UbuntuHelp:FujitsuStylus|română| [[::FujitsuStylus/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/ru | • {{#if: UbuntuHelp:FujitsuStylus|русский| [[::FujitsuStylus/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/si | • {{#if: UbuntuHelp:FujitsuStylus|සිංහල| [[::FujitsuStylus/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/sq | • {{#if: UbuntuHelp:FujitsuStylus|shqip| [[::FujitsuStylus/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/sr | • {{#if: UbuntuHelp:FujitsuStylus|српски / srpski| [[::FujitsuStylus/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/sv | • {{#if: UbuntuHelp:FujitsuStylus|svenska| [[::FujitsuStylus/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/th | • {{#if: UbuntuHelp:FujitsuStylus|ไทย| [[::FujitsuStylus/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/tr | • {{#if: UbuntuHelp:FujitsuStylus|Türkçe| [[::FujitsuStylus/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/vi | • {{#if: UbuntuHelp:FujitsuStylus|Tiếng Việt| [[::FujitsuStylus/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/yue | • {{#if: UbuntuHelp:FujitsuStylus|粵語| [[::FujitsuStylus/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/zh | • {{#if: UbuntuHelp:FujitsuStylus|中文| [[::FujitsuStylus/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/zh-hans | • {{#if: UbuntuHelp:FujitsuStylus|中文(简体)| [[::FujitsuStylus/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FujitsuStylus | UbuntuHelp:FujitsuStylus | {{#if: | :}}FujitsuStylus}}/zh-hant | • {{#if: UbuntuHelp:FujitsuStylus|中文(繁體)| [[::FujitsuStylus/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:FujitsuStylus|:FujitsuStylus|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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