个人工具

“UbuntuHelp:Logitech MX610”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Logitech_MX610}}
 
{{From|https://help.ubuntu.com/community/Logitech_MX610}}
 
{{Languages|UbuntuHelp:Logitech_MX610}}
 
{{Languages|UbuntuHelp:Logitech_MX610}}
 
 
 
== Introduction ==
 
== Introduction ==
 
 
This guide describes how to obtain full functionality of the [http://www.logitech.com/index.cfm/428/170 Logitech MX 610]. It is still a work in progress. Here, all commands are in fixed-font, <code><nowiki>like this</nowiki></code>.
 
This guide describes how to obtain full functionality of the [http://www.logitech.com/index.cfm/428/170 Logitech MX 610]. It is still a work in progress. Here, all commands are in fixed-font, <code><nowiki>like this</nowiki></code>.
 
 
== General Mouse ==
 
== General Mouse ==
 
 
Don't even touch the "ConfiguredMouse" default in <code><nowiki>/etc/X11/xorg.conf</nowiki></code> - just add a new input device:
 
Don't even touch the "ConfiguredMouse" default in <code><nowiki>/etc/X11/xorg.conf</nowiki></code> - just add a new input device:
 
 
<pre><nowiki>Section "InputDevice"
 
<pre><nowiki>Section "InputDevice"
 
Identifier "MX610"
 
Identifier "MX610"
第19行: 第13行:
 
Option "HWHEELRelativeAxisButtons" "7 6" # horizontal wheel
 
Option "HWHEELRelativeAxisButtons" "7 6" # horizontal wheel
 
EndSection</nowiki></pre>
 
EndSection</nowiki></pre>
 
 
Then add it to the devices list:
 
Then add it to the devices list:
 
 
<pre><nowiki>Section "ServerLayout"
 
<pre><nowiki>Section "ServerLayout"
 
[...]
 
[...]
 
Inputdevice "MX610" "SendCoreEvents"
 
Inputdevice "MX610" "SendCoreEvents"
 
EndSection</nowiki></pre>
 
EndSection</nowiki></pre>
 
 
== Side buttons ==
 
== Side buttons ==
 
 
Install <code><nowiki>imwheel</nowiki></code> from <code><nowiki>universe</nowiki></code>. Then change <code><nowiki>/etc/X11/imwheel/startup.conf</nowiki></code> to
 
Install <code><nowiki>imwheel</nowiki></code> from <code><nowiki>universe</nowiki></code>. Then change <code><nowiki>/etc/X11/imwheel/startup.conf</nowiki></code> to
 
<pre><nowiki># Configuration file for setting imwheel startup parameters.
 
<pre><nowiki># Configuration file for setting imwheel startup parameters.
 
 
# Set this to "1" to make imwheel start along with your X session.
 
# Set this to "1" to make imwheel start along with your X session.
 
IMWHEEL_START=1
 
IMWHEEL_START=1
 
 
# Specify the command line parameters to pass to imwheel.
 
# Specify the command line parameters to pass to imwheel.
 
# Simply uncomment the bottom line, and if necessary replace
 
# Simply uncomment the bottom line, and if necessary replace
第42行: 第30行:
 
# that each button number must be separated by a space.
 
# that each button number must be separated by a space.
 
IMWHEEL_PARAMS='-b "0 0 0 0 8 9"'</nowiki></pre>
 
IMWHEEL_PARAMS='-b "0 0 0 0 8 9"'</nowiki></pre>
 
 
Now add the following code to either <code><nowiki>/etc/X11/imwheel/imwheelrc</nowiki></code> (system-wide config) or <code><nowiki>~/.imwheelrc</nowiki></code> (per-user config) - your choice:
 
Now add the following code to either <code><nowiki>/etc/X11/imwheel/imwheelrc</nowiki></code> (system-wide config) or <code><nowiki>~/.imwheelrc</nowiki></code> (per-user config) - your choice:
 
<pre><nowiki>".*"
 
<pre><nowiki>".*"
 
None, Thumb1, Alt_L|Left
 
None, Thumb1, Alt_L|Left
 
None, Thumb2, Alt_L|Right</nowiki></pre>
 
None, Thumb2, Alt_L|Right</nowiki></pre>
 
 
After restarting <code><nowiki>imwheel</nowiki></code> or rebooting you can go back and forth with the side-buttons.
 
After restarting <code><nowiki>imwheel</nowiki></code> or rebooting you can go back and forth with the side-buttons.
 
 
== 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.
 
 
Getting the IM button to function is a little bit more interesting...
 
Getting the IM button to function is a little bit more interesting...
 
 
== Notification LEDs and their respective buttons ==
 
== Notification LEDs and their respective buttons ==
 
 
=== E-Mail ===
 
=== E-Mail ===
 
Bill Hard, a KDE developer, has been working on the notification LEDs since 3/7/2006. We will use his work.
 
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 [http://www.kdedevelopers.org/node/2029 here].
* To start, download mx610hack-0.3.tar.gz [http://www.kdedevelopers.org/node/2029 here].
+
# Extract the archive.
* Extract the archive.
+
# Open a console and change the working directory to where you extracted the archive using the <code><nowiki>cd</nowiki></code> command.
* Open a console and change the working directory to where you extracted the archive using the <code><nowiki>cd</nowiki></code> command.
+
# Compile using the usual <code><nowiki>./configure</nowiki></code>, <code><nowiki>make</nowiki></code>, <code><nowiki>sudo make install</nowiki></code> procedure.
* Compile using the usual <code><nowiki>./configure</nowiki></code>, <code><nowiki>make</nowiki></code>, <code><nowiki>sudo make install</nowiki></code> procedure.
+
 
+
 
To gain an understanding of how to issue commands, issue the command <code><nowiki>mx610hack --help</nowiki></code>. 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:
 
To gain an understanding of how to issue commands, issue the command <code><nowiki>mx610hack --help</nowiki></code>. 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: <code><nowiki>sudo nano /etc/udev/rules.d/40-permissions.rules</nowiki></code>.
* Open the udev rules for editing: <code><nowiki>sudo nano /etc/udev/rules.d/40-permissions.rules</nowiki></code>.
+
# At the end, add the following line: <code><nowiki>KERNEL=="hiddev*",                      MODE="0666"</nowiki></code>  
* At the end, add the following line: <code><nowiki>KERNEL=="hiddev*",                      MODE="0666"</nowiki></code>  
+
# Save and exit by pressing Ctrl+O, Enter (you're overwriting the file), and finally Ctrl+X
* 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 <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 Gaim users) ===
 
=== IM (for Gaim users) ===
 
 
According to this thread in [http://ubuntuforums.org/showthread.php?t=168538 Ubuntu Forums], it is possible to get Gaim to cooperate with this mouse.
 
According to this thread in [http://ubuntuforums.org/showthread.php?t=168538 Ubuntu Forums], it is possible to get Gaim to cooperate with this mouse.
 
+
# Download the plugin source [http://koti.mbnet.fi/simom/pidgin/mx610-notification/ here].
* Download the plugin source [http://koti.mbnet.fi/simom/pidgin/mx610-notification/ here].
+
# Extract the package.
* Extract the package.
+
# Open a console and change the working directory to where you extracted the archive.
* Open a console and change the working directory to where you extracted the archive.
+
# Install the gaim-dev package: <code><nowiki>sudo apt-get install gaim-dev</nowiki></code>.
* Install the gaim-dev package: <code><nowiki>sudo apt-get install gaim-dev</nowiki></code>.
+
# Compile and install: <code><nowiki>make</nowiki></code> then <code><nowiki>make install</nowiki></code>.
* Compile and install: <code><nowiki>make</nowiki></code> then <code><nowiki>make install</nowiki></code>.
+
# Restart Gaim (if running) and enable the plugin via Tools -> Plugins
* Restart Gaim (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.
 
Caveats: The IM button toggles the buddy list if and only if the buddy list has focus.
 
 
== Finishing Up, Acknowledgments ==
 
== 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.
 
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.
 
 
* [http://www.kdedevelopers.org/blog/102 Bill Hard]
 
* [http://www.kdedevelopers.org/blog/102 Bill Hard]
 
* [http://ubuntuforums.org/showthread.php?t=168538 Ubuntu Forums thread about the MX-610 mouse]
 
* [http://ubuntuforums.org/showthread.php?t=168538 Ubuntu Forums thread about the MX-610 mouse]

2007年11月30日 (五) 20:08的版本

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 imwheel from universe. Then change /etc/X11/imwheel/startup.conf to

# Configuration file for setting imwheel startup parameters.
# Set this to "1" to make imwheel start along with your X session.
IMWHEEL_START=1
# Specify the command line parameters to pass to imwheel.
# Simply uncomment the bottom line, and if necessary replace
# the default options with your own. A button spec of "0 0 8 9"
# will grab the thumb buttons of most mice. "0 0 0 0 8 9" should
# work for mice with a scroll wheel with two axes. Keep in mind
# that each button number must be separated by a space.
IMWHEEL_PARAMS='-b "0 0 0 0 8 9"'

Now add the following code to either /etc/X11/imwheel/imwheelrc (system-wide config) or ~/.imwheelrc (per-user config) - your choice:

".*"
None,	Thumb1,		Alt_L|Left
None,	Thumb2,		Alt_L|Right

After restarting imwheel or rebooting you can go back and forth with the side-buttons.

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

E-Mail

Bill Hard, a KDE developer, has been working on the notification LEDs since 3/7/2006. We will use his work.

  1. To start, download mx610hack-0.3.tar.gz here.
  2. Extract the archive.
  3. Open a console and change the working directory to where you extracted the archive using the cd command.
  4. 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:

  1. Open the udev rules for editing: sudo nano /etc/udev/rules.d/40-permissions.rules.
  2. At the end, add the following line: KERNEL=="hiddev*", MODE="0666"
  3. 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 Gaim users)

According to this thread in Ubuntu Forums, it is possible to get Gaim to cooperate with this mouse.

  1. Download the plugin source here.
  2. Extract the package.
  3. Open a console and change the working directory to where you extracted the archive.
  4. Install the gaim-dev package: sudo apt-get install gaim-dev.
  5. Compile and install: make then make install.
  6. Restart Gaim (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.