特殊:Badtitle/NS100:FujitsuStylus:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第78行: | 第78行: | ||
#!/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. |
2007年12月6日 (四) 10:32的版本
文章出处: |
{{#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
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