LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-28-2009, 03:54 PM   #1
reakinator
Member
 
Registered: Oct 2005
Location: California
Distribution: Ubuntu Feisty
Posts: 52

Rep: Reputation: 15
xorg manual configurations + usb mouse


Hi all,

I have been manually configuring my xorg.conf file (Ubuntu Jaunty) in order to use a Wacom Tablet - now the tablet is loaded but not detected as a mouse device. In order to do this, I had to change the InputDevice section from '/dev/psaux' to '/dev/input/mouse0'.

The next problem I had was that if I plug in a usb mouse, it is not loaded because it falls onto '/dev/input/mouse1'. To overcome this, I added another InputDevice section to the xorg.conf file that pointed at this file. This works, as long as the usb mouse is plugged in when X is started.

So the new problem is how to make the usb mouse work automatically without having to restart X - does anyone know about this? I see that 'dev/input/mouse1' is created when I plug it in, but it does not work still.

Thanks for helping,
Rich
 
Old 06-28-2009, 06:03 PM   #2
polymath69
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, DSL, TRK, etc.
Posts: 18

Rep: Reputation: 3
I believe what you're looking for is /dev/input/mice. That should multiplex any and all real mice to the same device. (If the devices have radically different buttons I'm not sure how that would work, though.)
 
Old 06-28-2009, 06:23 PM   #3
reakinator
Member
 
Registered: Oct 2005
Location: California
Distribution: Ubuntu Feisty
Posts: 52

Original Poster
Rep: Reputation: 15
In order to stop the tablet from controlling the mouse, I need to avoid /dev/input/mice - I have not found a way around this yet, unfortunately.
 
Old 06-28-2009, 08:59 PM   #4
polymath69
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, DSL, TRK, etc.
Posts: 18

Rep: Reputation: 3
If your goal is to not have to reconfigure xorg.conf and restart X when you plug or unplug a mouse or tablet, I think /dev/input/mice is just what you need. (Why do you want the tablet to not be a mouse some of the time? If it's to avoid spurious input, then why is it plugged in at this point? I suspect you need to focus on what your use cases really are.)
 
Old 06-28-2009, 10:43 PM   #5
reakinator
Member
 
Registered: Oct 2005
Location: California
Distribution: Ubuntu Feisty
Posts: 52

Original Poster
Rep: Reputation: 15
I use the wacom tablet as a controller for audio synthesizers - I want it completely seperate from the mouse. I read in the data into my application using its '/dev/input/wacom' and then deal with the raw control data. If the tablet did not get shoved onto /dev/input/mice as well, I would use that file.

I would really like to know what the missing step is that allows /dev/input/mice to be hot-pluggable, but not /dev/input/mouse*.
 
Old 06-29-2009, 01:18 PM   #6
polymath69
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, DSL, TRK, etc.
Posts: 18

Rep: Reputation: 3
/dev/input/mice is singular and unchanging -- that's why it doesn't need to change in the config file. /dev/input/mouse*, on the other hand, depends on the order in which things are plugged in and disconnected; since this is dynamic, it causes you trouble.

If you want never to treat the tablet as a mouse, put /dev/input/mice in your xorg.conf but you'll need to patch your kernel. I think modifying mousedev.c, mixdev_add_device to skip the call to list_add_tail in the case of your tablet will probably give the desired results, but of course can't be sure of this without a tablet to test against.
 
Old 06-30-2009, 05:40 PM   #7
reakinator
Member
 
Registered: Oct 2005
Location: California
Distribution: Ubuntu Feisty
Posts: 52

Original Poster
Rep: Reputation: 15
ugh, maybe hacking the kernel is a little too much for me. Lately, I have just been switching between a config that has two InputDevice 'mouse0/1' sections + one for 'wacom', and then just one section fro '/dev/input/mice' when I need to use the tablet. Not ideal, but less work for me than before.

It is strange the way the tablet is thrown onto /dev/input/mice like a regular mouse. It does not function like a regular mouse, and is quite useless in that setup because the coordinate system is not relative but absolute.

Thanks for the help and explanations,
Rich
 
  


Reply

Tags
mouse, tablet, usb, xorgconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different USB mouse configurations - Logitech 220 simopal6 Linux - Hardware 0 12-17-2007 10:08 AM
Xorg manual & reference lbdgwgt Linux - Newbie 2 11-22-2006 01:03 PM
recent dist-upgrade of xorg has killed my mouse (and thusly, xorg). Lokathor Debian 4 06-10-2006 04:52 AM
USB Wheel Mouse --no xorg or XF86Config kaputt cAos 2 08-08-2005 10:22 PM
xorg unable to detect usb mouse athanatos Slackware 3 05-27-2005 02:34 PM


All times are GMT -5. The time now is 04:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration