Difference between revisions of "3D Mouse"

From ArchWiki
Jump to: navigation, search
m (Bot: Removing from Category:HOWTOs (English))
(added some info, dropped some useless parts, rework of wiki code (templates,removed <br> etc.))
Line 6: Line 6:
 
For more information: http://www.3dconnexion.com/products/what-is-a-3d-mouse.html
 
For more information: http://www.3dconnexion.com/products/what-is-a-3d-mouse.html
  
== Installation ==
+
== 3DConnexions 3D Mouse ==
'''NOTE: The following instructions work only for 3DConnexions 3D mouse. The instructions have been tested and proven to work on the most basic model (space navigator).''' <br>
+
'''NOTE: The following instructions have been tested and proven to work on the most basic model (Space Navigator).'''
<br>
+
 
1. Insert mouse to USB port<br>
+
=== Installation ===
2. lsusb to confirm connection. Something like this should come up:
+
 
 +
1. Plug your 3D mouse into your USB port. Use {{Codeline|lsusb}} to check if it was recognised
 
{{cli|1=$> lsusb
 
{{cli|1=$> lsusb
 
Bus 003 Device 002: ID 046d:c626 Logitech, Inc. 3Dconnexion Space Navigator 3D Mouse}}
 
Bus 003 Device 002: ID 046d:c626 Logitech, Inc. 3Dconnexion Space Navigator 3D Mouse}}
3. Install openmotif
+
 
{{cli|1=$> sudo pacman -S openmotif}}
+
2. Install {{Package Official|openmotif}} or if you need {{Package Official|lesstif}} (e.g. for {{Package Official|xpdf}}) you can just get the {{Filename|libXm.so.4}} library from it:
4. Symlink libXm.so.4 to libXm.so.3
+
{{cli|1=$> sudo pacman -Sw openmotif # download openmotif to cache, don't install
 +
$> tar xJOf /var/cache/pacman/pkg/openmotif-* usr/lib/libXm.so.4.0.3 > libXm.so.4
 +
$> sudo mv libXm.so.4 /usr/lib/libXm.so.4}}
 +
 
 +
3. Symlink {{Filename|libXm.so.4}} to {{Filename|libXm.so.3}}
 
{{cli|1=$> sudo ln -s /usr/lib/libXm.so.4 /usr/lib/libXm.so.3}}
 
{{cli|1=$> sudo ln -s /usr/lib/libXm.so.4 /usr/lib/libXm.so.3}}
5. Compile (gcc PRGRM.c) this program:
+
 
<pre>
+
4. The driver has some problems to get the username from {{Filename|/var/run/utmp}} and will output a "failed to get user" error.
 +
 
 +
To fix this problem compile the following program. It appends the given username to {{Filename|/var/run/utmp}} in such a way that the driver can read it.
 +
{{File|3dmouse.c|<nowiki>
 +
/* source: http://forums.gentoo.org/viewtopic-t-609224.html
 +
*        http://www.3dconnexion.com/forum/viewtopic.php?t=1039
 +
*/
 
#include <stdio.h>
 
#include <stdio.h>
 
#include <string.h>
 
#include <string.h>
Line 40: Line 51:
 
   endutxent();
 
   endutxent();
 
}  
 
}  
</pre>
+
</nowiki>}}
source: http://forums.gentoo.org/viewtopic-t-609224.html?sid=6c70ce10f37a57d9a4f341e36149df5b <br>
+
{{cli|1=$> gcc 3dmouse.c -o 3dmouse
6. Run a.out to user root
+
$> sudo ./3dmouse root}}
{{cli|1=$> sudo ./a.out root}}
+
 
7. Download linux drivers to /tmp from here: http://www.3dconnexion.com/service/drivers.html<br>
+
5. Download the linux drivers to {{Filename|/tmp}} from here: http://www.3dconnexion.com/service/drivers.html
8. Run tar xfz 3dxware-linux-v1-5-2.i386.tar.gz install-3dxunix.sh<br>
+
 
9. Run sudo ./install-3dxunix.sh and follow instructions<br>
+
6. Unpack the install script and run it
10. Your output should look something like this:
+
{{cli|1=$> tar xfz 3dxware-linux-v1-5-2.i386.tar.gz install-3dxunix.sh
{{cli|1=
+
$> sudo ./install-3dxunix.sh
$>> sudo ./install-3dxunix.sh
 
 
Password:
 
Password:
  
Line 115: Line 125:
 
****************************************************************
 
****************************************************************
 
     For testing purposes you can find the demos
 
     For testing purposes you can find the demos
xcube and xvalues at /tmp</nowiki>
+
                      xcube and xvalues at /tmp
''****************************************************************''
+
****************************************************************
 +
</nowiki>}}
 +
NOTE: I chose not to run the driver everytime I login.
 +
 
 +
7. You can run the driver manually by calling it like this (for USB version):
 +
{{cli|1=$> sudo /etc/3DxWare/daemon/3dxsrv -d USB}}
  
}}
+
8. You should now have a working 3D mouse in Arch Linux!
<br>
+
You can test it by extracting the demos from the driver archive.
NOTE: I chose not to run the driver everytime I login.<br>
+
{{cli|1=$> tar xfz 3dxware-linux-v1-5-2.i386.tar.gz xcube
11. You can run the driver manually by calling it like this (for USB version):
+
$> ./xcube}}
{{cli|1=$>> /etc/3DxWare/daemon/3dxsrv -d USB}}<br>
 
12. You should now have a working 3D mouse in Arch Linux!
 
  
== More Infformation ==
+
== More Information ==
[http://www.3dconnexion.com/forum/viewforum.php?f=22 3dconnexion linux forum]<br>
+
* [http://www.3dconnexion.com/forum/viewforum.php?f=22 3dconnexion linux forum]
[http://www.3dconnexion.com/forum/viewtopic.php?t=1039 Source of C program used]<br>
+
* [http://www.3dconnexion.com/forum/viewtopic.php?t=1039 Source of C program used]
[http://www.3dconnexion.com/forum/viewtopic.php?t=1757 Information about libXm.so.4 and libXm.so.3]
+
* [http://www.3dconnexion.com/forum/viewtopic.php?t=1757 Information about libXm.so.4 and libXm.so.3]

Revision as of 15:19, 16 June 2011

What is a 3D Mouse?

"Also known as bats, flying mice, or wands, these devices generally function through ultrasound and provide at least three degrees of freedom. Probably the best known example would be 3DConnexion/Logitech's SpaceMouse from the early 1990s." - Wikipedia

For more information: http://www.3dconnexion.com/products/what-is-a-3d-mouse.html

3DConnexions 3D Mouse

NOTE: The following instructions have been tested and proven to work on the most basic model (Space Navigator).

Installation

1. Plug your 3D mouse into your USB port. Use Template:Codeline to check if it was recognised Template:Cli

2. Install Template:Package Official or if you need Template:Package Official (e.g. for Template:Package Official) you can just get the Template:Filename library from it: Template:Cli

3. Symlink Template:Filename to Template:Filename Template:Cli

4. The driver has some problems to get the username from Template:Filename and will output a "failed to get user" error.

To fix this problem compile the following program. It appends the given username to Template:Filename in such a way that the driver can read it. Template:File Template:Cli

5. Download the linux drivers to Template:Filename from here: http://www.3dconnexion.com/service/drivers.html

6. Unpack the install script and run it Template:Cli NOTE: I chose not to run the driver everytime I login.

7. You can run the driver manually by calling it like this (for USB version): Template:Cli

8. You should now have a working 3D mouse in Arch Linux! You can test it by extracting the demos from the driver archive. Template:Cli

More Information