特殊:Badtitle/NS100:MX510Mouse:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/MX510Mouse}} | {{From|https://help.ubuntu.com/community/MX510Mouse}} | ||
{{Languages|UbuntuHelp:MX510Mouse}} | {{Languages|UbuntuHelp:MX510Mouse}} | ||
== Ubuntu 8.10 and 9.04: == | |||
The MX510 should work more or less as you like it with these versions. | |||
If you like to open a terminal with the "Logitech button" just do the following: | |||
<code><nowiki>nano .xbindkeysrc</nowiki></code> | |||
And write the following: | |||
<pre><nowiki> | |||
"/usr/bin/gnome-terminal" | |||
b:10 | |||
</nowiki></pre> | |||
Save, install xbindkeys ( | |||
<code><nowiki>sudo apt-get install xbindkeys</nowiki></code> | |||
), and set xbindkeys to start by adding it to: | |||
System -> Preferences -> Startup Applications -> Add -> xbindkeys in all fields. | |||
If you use Opera (version 9.64), you might like to have the thumb-buttons to browse back/(fast) forward. This is done the following way (Opera makes a backup on its own): | |||
Tools -> Preferences -> Advanced -> Shortcuts -> Select "Opera Standard" -> Edit -> Applications -> New | |||
Now you write "Button8" on the left field and "Back" on the right. Press New again, add "Button9" on the left and "Forward | Fast Forward" right. Press "OK" on both forms and everything should work. | |||
== Earlier versions: == | |||
=== 0. Creating backup === | === 0. Creating backup === | ||
First of all, run | First of all, run |
2009年11月17日 (二) 20:00的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MX510Mouse }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/af | • {{#if: UbuntuHelp:MX510Mouse|Afrikaans| [[::MX510Mouse/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ar | • {{#if: UbuntuHelp:MX510Mouse|العربية| [[::MX510Mouse/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/az | • {{#if: UbuntuHelp:MX510Mouse|azərbaycanca| [[::MX510Mouse/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/bcc | • {{#if: UbuntuHelp:MX510Mouse|جهلسری بلوچی| [[::MX510Mouse/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/bg | • {{#if: UbuntuHelp:MX510Mouse|български| [[::MX510Mouse/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/br | • {{#if: UbuntuHelp:MX510Mouse|brezhoneg| [[::MX510Mouse/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ca | • {{#if: UbuntuHelp:MX510Mouse|català| [[::MX510Mouse/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/cs | • {{#if: UbuntuHelp:MX510Mouse|čeština| [[::MX510Mouse/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/de | • {{#if: UbuntuHelp:MX510Mouse|Deutsch| [[::MX510Mouse/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/el | • {{#if: UbuntuHelp:MX510Mouse|Ελληνικά| [[::MX510Mouse/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/es | • {{#if: UbuntuHelp:MX510Mouse|español| [[::MX510Mouse/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/fa | • {{#if: UbuntuHelp:MX510Mouse|فارسی| [[::MX510Mouse/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/fi | • {{#if: UbuntuHelp:MX510Mouse|suomi| [[::MX510Mouse/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/fr | • {{#if: UbuntuHelp:MX510Mouse|français| [[::MX510Mouse/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/gu | • {{#if: UbuntuHelp:MX510Mouse|ગુજરાતી| [[::MX510Mouse/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/he | • {{#if: UbuntuHelp:MX510Mouse|עברית| [[::MX510Mouse/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/hu | • {{#if: UbuntuHelp:MX510Mouse|magyar| [[::MX510Mouse/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/id | • {{#if: UbuntuHelp:MX510Mouse|Bahasa Indonesia| [[::MX510Mouse/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/it | • {{#if: UbuntuHelp:MX510Mouse|italiano| [[::MX510Mouse/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ja | • {{#if: UbuntuHelp:MX510Mouse|日本語| [[::MX510Mouse/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ko | • {{#if: UbuntuHelp:MX510Mouse|한국어| [[::MX510Mouse/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ksh | • {{#if: UbuntuHelp:MX510Mouse|Ripoarisch| [[::MX510Mouse/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/mr | • {{#if: UbuntuHelp:MX510Mouse|मराठी| [[::MX510Mouse/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ms | • {{#if: UbuntuHelp:MX510Mouse|Bahasa Melayu| [[::MX510Mouse/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/nl | • {{#if: UbuntuHelp:MX510Mouse|Nederlands| [[::MX510Mouse/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/no | • {{#if: UbuntuHelp:MX510Mouse|norsk| [[::MX510Mouse/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/oc | • {{#if: UbuntuHelp:MX510Mouse|occitan| [[::MX510Mouse/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/pl | • {{#if: UbuntuHelp:MX510Mouse|polski| [[::MX510Mouse/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/pt | • {{#if: UbuntuHelp:MX510Mouse|português| [[::MX510Mouse/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ro | • {{#if: UbuntuHelp:MX510Mouse|română| [[::MX510Mouse/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/ru | • {{#if: UbuntuHelp:MX510Mouse|русский| [[::MX510Mouse/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/si | • {{#if: UbuntuHelp:MX510Mouse|සිංහල| [[::MX510Mouse/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/sq | • {{#if: UbuntuHelp:MX510Mouse|shqip| [[::MX510Mouse/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/sr | • {{#if: UbuntuHelp:MX510Mouse|српски / srpski| [[::MX510Mouse/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/sv | • {{#if: UbuntuHelp:MX510Mouse|svenska| [[::MX510Mouse/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/th | • {{#if: UbuntuHelp:MX510Mouse|ไทย| [[::MX510Mouse/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/tr | • {{#if: UbuntuHelp:MX510Mouse|Türkçe| [[::MX510Mouse/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/vi | • {{#if: UbuntuHelp:MX510Mouse|Tiếng Việt| [[::MX510Mouse/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/yue | • {{#if: UbuntuHelp:MX510Mouse|粵語| [[::MX510Mouse/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/zh | • {{#if: UbuntuHelp:MX510Mouse|中文| [[::MX510Mouse/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/zh-hans | • {{#if: UbuntuHelp:MX510Mouse|中文(简体)| [[::MX510Mouse/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MX510Mouse | UbuntuHelp:MX510Mouse | {{#if: | :}}MX510Mouse}}/zh-hant | • {{#if: UbuntuHelp:MX510Mouse|中文(繁體)| [[::MX510Mouse/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MX510Mouse|:MX510Mouse|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MX510Mouse/zh | | {{#ifexist: MX510Mouse/zh | | {{#ifeq: {{#titleparts:MX510Mouse|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MX510Mouse|1|-1|}} | zh | | }}
Ubuntu 8.10 and 9.04:
The MX510 should work more or less as you like it with these versions.
If you like to open a terminal with the "Logitech button" just do the following:
nano .xbindkeysrc
And write the following:
"/usr/bin/gnome-terminal" b:10
Save, install xbindkeys (
sudo apt-get install xbindkeys
), and set xbindkeys to start by adding it to:
System -> Preferences -> Startup Applications -> Add -> xbindkeys in all fields.
If you use Opera (version 9.64), you might like to have the thumb-buttons to browse back/(fast) forward. This is done the following way (Opera makes a backup on its own):
Tools -> Preferences -> Advanced -> Shortcuts -> Select "Opera Standard" -> Edit -> Applications -> New
Now you write "Button8" on the left field and "Back" on the right. Press New again, add "Button9" on the left and "Forward | Fast Forward" right. Press "OK" on both forms and everything should work.
Earlier versions:
0. Creating backup
First of all, run
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf~backup
If your system hangs, you can run
sudo cp /etc/X11/xorg.conf~backup /etc/X11/xorg.conf
to get x back.
1. Changing xorg.conf
cat /proc/bus/input/devices
and find the one with:
N: Name="Logitech USB-PS/2 Optical Mouse"
look at "Handlers", f.ex.
H: Handlers=mouse1 event4
note the number after event, (i.e. event4)
in xorg.conf:
gksudo gedit /etc/X11/xorg.conf
change
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection
to
Section "InputDevice" Identifier "Configured Mouse" Driver "evdev" Option "CorePointer" Option "Device" "/dev/input/event4" Option "Protocol" "ImPS/2" Option "Buttons" "10" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection
(Changed Driver to "evdev", changed "Device" to "/dev/input/[THE EVENT FROM EARLIER]" added Option "Buttons" "10")
Restart x by logging out and back in, or typing sudo /etc/init.d/gdm restart
, and everything should work. If you can't get back in to gnome, you could revert from backup as stated above and run
sudo /etc/init.d/gdm restart
If everything works continue to the next step.
2. Mapping the keys
Install xvkbd and xbindkeys
sudo apt-get install xvkbd xbindkeys
and make the ~/.xbindkeysrc file:
gedit ~/.xbindkeysrc
write
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]"" m:0x0 + b:6 "/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_R]\[Right]"" m:0x0 + b:7 "/usr/bin/gnome-terminal" b:8
and save. (enables back and forward. the last two lines makes the "logitech button" or whatever start a new terminal)
Then run
xbindkeys
and everything should work.
Then make xbindkeys start automatically:
System -> Preferences -> Sessions -> Add -> xbindkeys
(3. Eventual problems)
Some users have had problems with wrong mapping of the scroll-buttons.
This can be solved with adding the following line to the "InputDevice" section in xorg.conf:
Option "ButtonMapping" "1 2 3 4 5 9 10 8 6 7"
Ending up with:
Section "InputDevice" Identifier "Configured Mouse" Driver "evdev" Option "CorePointer" Option "Device" "/dev/input/event4" Option "Protocol" "ImPS/2" Option "Buttons" "10" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" Option "ButtonMapping" "1 2 3 4 5 9 10 8 6 7" EndSection
To test witch buttons are mapped to what you can run the following command in a terminal:
xev | grep button