LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-28-2011, 11:43 PM   #1
weiguixm
LQ Newbie
 
Registered: Oct 2008
Posts: 5

Rep: Reputation: 0
how can i configure mouse on Ubuntu 10.10


I've wrote a virtual mouse driver,and a new file /dev/input/event3 was created.
My linux distribution is Ubuntu 10.10.
Now I wana make this device to be mouse.
How to make the configuration? Someone told me to configure file /etc/X11/xorg.conf. But this file doesn't exist. Should I create a new one and edit it? If yes, what the content should it have?
What's more,I found some configure files in /usr/share/X11/xorg.conf.d/ like "50-vmmouse.conf" (I'm using a VMware). Should I add a new configure file in this directory?

Last edited by weiguixm; 05-28-2011 at 11:45 PM.
 
Old 05-29-2011, 07:36 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,225

Rep: Reputation: 251Reputation: 251Reputation: 251
If you need to create an xorg.conf file,
Code:
sudo Xorg -configure :1
from a terminal window will create the file /root/xorg.conf.new, which you can then edit as necessary, then copy to /etc/X11/xorg.conf.
 
Old 05-29-2011, 08:09 PM   #3
weiguixm
LQ Newbie
 
Registered: Oct 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by RockDoctor View Post
If you need to create an xorg.conf file,
Code:
sudo Xorg -configure :1
from a terminal window will create the file /root/xorg.conf.new, which you can then edit as necessary, then copy to /etc/X11/xorg.conf.
Thanks for you reply!
Xorg can't work while X window is on. So I turn it off and got then file /root/xorg.conf.new in text mode. When I finish execute the command Xorg -configure :1, linux show this message:
To test the server, run 'X -config /root/xorg.conf.new'
But after I execute this command, the displayer shows nothing but a black screen.

I move the file /root/xorg.conf.new to /etc/X11/xorg.conf and reboot the machine. But it seems that this configure file doesn't work. I don't know where the problem is. Maybe some commands need to be execute to make the configure file work. Or maybe the auto generated configure file contains some errors.

What I need is just to make X window point /dev/input/event3(I created it) to mouse. So I think a configure file about mouse and some command make it work is OK.
 
Old 05-30-2011, 06:23 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,225

Rep: Reputation: 251Reputation: 251Reputation: 251
I think the input device section of your xorg.conf file probably needs some editing. I've never configured a second mouse, but here's my WAG:
Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Mouse1" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/event3"
EndSection
Hopefully there's someone reading this who actually knows what they're doing who can give you better guidance.
 
Old 06-08-2011, 09:53 PM   #5
weiguixm
LQ Newbie
 
Registered: Oct 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I tunred to the driver level now. I registered a new input_dev as a virtual mouse to the kernel, and it seems it does work now.
Now my physical mouse and virtual mouse can both work. I guess both thess two input_dev is attached to /dev/input/mice. And X window read /dev/input/mice to cathc information from mouses.

I will dig into X window to see the detail later.
Thanks Rock Doctor for your help !
 
  


Reply

Tags
mouseconfig, ubuntu+10.10, xwindow


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure a different mouse lxuser Libranet 3 08-02-2004 08:37 PM
How do you configure to mouses, a laptop mouse and a Logitc USB Mouse dbratton Linux - Hardware 8 03-06-2004 05:02 PM
how can i configure the mouse to ... alexii86 Linux - Newbie 2 10-06-2003 09:22 AM
Cannot configure mouse Durham Linux - Software 1 02-27-2002 07:27 PM
Can't configure mouse right Uberjurk Linux - General 2 05-09-2001 10:07 AM


All times are GMT -5. The time now is 10:14 PM.

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