“UbuntuHelp:Logitech MX610”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第19行: | 第19行: | ||
EndSection</nowiki></pre> | EndSection</nowiki></pre> | ||
== Side buttons == | == Side buttons == | ||
− | Install <code><nowiki> | + | Install <code><nowiki>xbindkeys</nowiki></code> and <code><nowiki>xautomation</nowiki></code> from <code><nowiki>universe</nowiki></code>. Then create <code><nowiki>~/.xbindkeysrc</nowiki></code> with |
− | <pre><nowiki> | + | <pre><nowiki>"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L' &" |
+ | b:8 | ||
− | + | "xte 'keydown Alt_L' 'key Right' 'keyup Alt_L' &" | |
− | + | b:9 | |
− | + | </nowiki></pre> | |
− | + | After starting <code><nowiki>xbindkeys</nowiki></code> you can go back and forth with the side-buttons. | |
− | + | Then add <code><nowiki>xbindkeys</nowiki></code> to the programs run at login with System - Settings - Sessions - | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Volume Keys == | == Volume Keys == | ||
No additional software is required to use the volume keys. All you need to do is use "Keyboard Shortcuts." The same can be said for the E-Mail button. By default, they just work in Ubuntu. | No additional software is required to use the volume keys. All you need to do is use "Keyboard Shortcuts." The same can be said for the E-Mail button. By default, they just work in Ubuntu. | ||
第54行: | 第45行: | ||
To make use of the light, you can either write a script to execute once you have new mail or install the "mail-notification" package by issuing the command <code><nowiki>sudo apt-get install mail-notification</nowiki></code>. Don't forget to turn it off somehow. | To make use of the light, you can either write a script to execute once you have new mail or install the "mail-notification" package by issuing the command <code><nowiki>sudo apt-get install mail-notification</nowiki></code>. Don't forget to turn it off somehow. | ||
− | === IM (for | + | === IM (for Pidgin users) === |
− | According to this thread in [http://ubuntuforums.org/showthread.php?t=168538 Ubuntu Forums], it is possible to get | + | According to this thread in [http://ubuntuforums.org/showthread.php?t=168538 Ubuntu Forums], it is possible to get Pigin to cooperate with this mouse. |
<ol><li>Download the plugin source [http://koti.mbnet.fi/simom/pidgin/mx610-notification/ here]. | <ol><li>Download the plugin source [http://koti.mbnet.fi/simom/pidgin/mx610-notification/ here]. | ||
</li><li>Extract the package. | </li><li>Extract the package. | ||
</li><li>Open a console and change the working directory to where you extracted the archive. | </li><li>Open a console and change the working directory to where you extracted the archive. | ||
− | </li><li>Install the | + | </li><li>Install the pidgin-dev package: <code><nowiki>sudo apt-get install pidgin-dev</nowiki></code>. |
</li><li>Compile and install: <code><nowiki>make</nowiki></code> then <code><nowiki>make install</nowiki></code>. | </li><li>Compile and install: <code><nowiki>make</nowiki></code> then <code><nowiki>make install</nowiki></code>. | ||
− | </li><li>Restart | + | </li><li>Restart Pidgin (if running) and enable the plugin via Tools -> Plugins</li></ol> |
Caveats: The IM button toggles the buddy list if and only if the buddy list has focus. | Caveats: The IM button toggles the buddy list if and only if the buddy list has focus. |
2007年12月8日 (六) 09:46的版本
点击翻译: |
English |
目录
Introduction
This guide describes how to obtain full functionality of the Logitech MX 610. It is still a work in progress. Here, all commands are in fixed-font, like this
.
General Mouse
Don't even touch the "ConfiguredMouse" default in /etc/X11/xorg.conf
- just add a new input device:
Section "InputDevice" Identifier "MX610" Driver "evdev" Option "Name" "Logitech USB Receiver" # see 'cat /proc/bus/input/devices' Option "Phys" "*/input0" # this is the mouse part Option "WHEELRelativeAxisButtons" "4 5" # vertical wheel Option "HWHEELRelativeAxisButtons" "7 6" # horizontal wheel EndSection
Then add it to the devices list:
Section "ServerLayout" [...] Inputdevice "MX610" "SendCoreEvents" EndSection
Side buttons
Install xbindkeys
and xautomation
from universe
. Then create ~/.xbindkeysrc
with
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L' &" b:8 "xte 'keydown Alt_L' 'key Right' 'keyup Alt_L' &" b:9
After starting xbindkeys
you can go back and forth with the side-buttons.
Then add xbindkeys
to the programs run at login with System - Settings - Sessions -
Volume Keys
No additional software is required to use the volume keys. All you need to do is use "Keyboard Shortcuts." The same can be said for the E-Mail button. By default, they just work in Ubuntu. Getting the IM button to function is a little bit more interesting...
Notification LEDs and their respective buttons
Bill Hard, a KDE developer, has been working on the notification LEDs since 3/7/2006. We will use his work.
- To start, download mx610hack-0.3.tar.gz here.
- Extract the archive.
- Open a console and change the working directory to where you extracted the archive using the
cd
command. - Compile using the usual
./configure
,make
,sudo make install
procedure.
To gain an understanding of how to issue commands, issue the command mx610hack --help
. To get the lights to work for a user, the device must be writable to him/her. To do so, you will need to modify permissions. To do this:
- Open the udev rules for editing:
sudo nano /etc/udev/rules.d/40-permissions.rules
. - At the end, add the following line:
KERNEL=="hiddev*", MODE="0666"
- Save and exit by pressing Ctrl+O, Enter (you're overwriting the file), and finally Ctrl+X
To make use of the light, you can either write a script to execute once you have new mail or install the "mail-notification" package by issuing the command sudo apt-get install mail-notification
. Don't forget to turn it off somehow.
IM (for Pidgin users)
According to this thread in Ubuntu Forums, it is possible to get Pigin to cooperate with this mouse.
- Download the plugin source here.
- Extract the package.
- Open a console and change the working directory to where you extracted the archive.
- Install the pidgin-dev package:
sudo apt-get install pidgin-dev
. - Compile and install:
make
thenmake install
. - Restart Pidgin (if running) and enable the plugin via Tools -> Plugins
Caveats: The IM button toggles the buddy list if and only if the buddy list has focus.
Finishing Up, Acknowledgments
You will need to restart udev: /etc/init.d/udev restart. This could cause things to go quirky, so you may want to consider restarting the whole computer altogether.