Re: How To Disable input driver

2009-02-12 Thread Magnus Kessler
On Wednesday 11 February 2009, Peter Hutterer wrote:
 On Wed, Feb 11, 2009 at 08:37:44PM +, Magnus Kessler wrote:
  On Wednesday 11 February 2009, linux multitouch wrote:
   Hi
   I am using Xorg version - 1.5.2
   I am developing kernel driver which create /dev/eventX - file.
   when i insert the kernel driver X11 thinks it's a mouse.
   how can i configure the X11 to ignore the driver (/dev/eventX)
   thanks
 
  Assuming your Xorg server is configured via hal, you can place a file
  in /etc/hal/fdi/policy/ that removes the driver key.
 
  I use the following file to suppress a joystick from being recognized
  as an X11 input device:
 
  ?xml version=1.0 encoding=ISO-8859-1?
  deviceinfo version=0.2
device
  match key=info.capabilities contains=input
!-- Match on anything you like from lshal --
match key=input.product contains=SomeProduct Identifier
  remove key=info.capabilities/
  remove key=input.x11_driver/
/match
  /match
/device
  /deviceinfo
 
  Similarly you could use an fdi file to instruct Xorg to use your own
  input driver. Have a look at the fdi files provided for e.g. synaptics
  touchpads.

 Actually, just removing input.x11_driver alone is enough, it's the only
 thing we really care about in the server.

 Cheers,
   Peter

Indeed, just removing the input driver key is enough. The line about the 
capabilities was a left-over from trying to have the joystick NOT recognized 
as a mouse in the first place.

A previous version read something like:

remove key=info.capabilities/
merge key=info.capabilities type=strlistinput.joystick/merge
merge key=input.x11_driver type=stringjoystick/merge

If memory serves correctly without the capabilities lines the joystick 
driver would not work correctly, as it was getting confused by the buttons. 
But this was some time ago and I haven't played with the settings recently.

Cheeers,

Magnus

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: How To Disable input driver

2009-02-11 Thread Matthew Garrett
On Wed, Feb 11, 2009 at 04:38:41PM +0200, linux multitouch wrote:
Hi
I am using Xorg version - 1.5.2
I am developing kernel driver which create /dev/eventX - file.
when i insert the kernel driver X11 thinks it's a mouse.
how can i configure the X11 to ignore the driver (/dev/eventX)
thanks

Why do you want to do this?

-- 
Matthew Garrett | mj...@srcf.ucam.org
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: How To Disable input driver

2009-02-11 Thread Magnus Kessler
On Wednesday 11 February 2009, linux multitouch wrote:
 Hi
 I am using Xorg version - 1.5.2
 I am developing kernel driver which create /dev/eventX - file.
 when i insert the kernel driver X11 thinks it's a mouse.
 how can i configure the X11 to ignore the driver (/dev/eventX)
 thanks

Assuming your Xorg server is configured via hal, you can place a file in 
/etc/hal/fdi/policy/ that removes the driver key.

I use the following file to suppress a joystick from being recognized as an 
X11 input device:

?xml version=1.0 encoding=ISO-8859-1?
deviceinfo version=0.2
  device
match key=info.capabilities contains=input
  !-- Match on anything you like from lshal --
  match key=input.product contains=SomeProduct Identifier
remove key=info.capabilities/
remove key=input.x11_driver/
  /match
/match
  /device
/deviceinfo

Similarly you could use an fdi file to instruct Xorg to use your own input 
driver. Have a look at the fdi files provided for e.g. synaptics touchpads.

HTH

Magnus Kessler

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: How To Disable input driver

2009-02-11 Thread Peter Hutterer
On Wed, Feb 11, 2009 at 08:37:44PM +, Magnus Kessler wrote:
 On Wednesday 11 February 2009, linux multitouch wrote:
  Hi
  I am using Xorg version - 1.5.2
  I am developing kernel driver which create /dev/eventX - file.
  when i insert the kernel driver X11 thinks it's a mouse.
  how can i configure the X11 to ignore the driver (/dev/eventX)
  thanks
 
 Assuming your Xorg server is configured via hal, you can place a file in 
 /etc/hal/fdi/policy/ that removes the driver key.
 
 I use the following file to suppress a joystick from being recognized as an 
 X11 input device:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 deviceinfo version=0.2
   device
 match key=info.capabilities contains=input
   !-- Match on anything you like from lshal --
   match key=input.product contains=SomeProduct Identifier
 remove key=info.capabilities/
 remove key=input.x11_driver/
   /match
 /match
   /device
 /deviceinfo
 
 Similarly you could use an fdi file to instruct Xorg to use your own input 
 driver. Have a look at the fdi files provided for e.g. synaptics touchpads.

Actually, just removing input.x11_driver alone is enough, it's the only thing
we really care about in the server.
 
Cheers,
  Peter
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: How To Disable input driver

2009-02-11 Thread linux multitouch
Hi
thanks for the fast reply.
i want this option because i am developing the kernel driver.
when the X11 see a new input device connected. it recognize it like a mouse,

and X11 behave wired.
I didn't develop any X11 driver.
The X11 detect the the device as (type: MOUSE),
and if remove evdev_drv.so I will not have mouse in the system,
so i can not remove the driver, but i would like X11 to ignore this
/dev/input/files/.
so i will try to configure the HAL Magnus Kessler suggested.

On Wed, Feb 11, 2009 at 5:27 PM, Matthew Garrett mj...@srcf.ucam.orgwrote:

 On Wed, Feb 11, 2009 at 04:38:41PM +0200, linux multitouch wrote:
 Hi
 I am using Xorg version - 1.5.2
 I am developing kernel driver which create /dev/eventX - file.
 when i insert the kernel driver X11 thinks it's a mouse.
 how can i configure the X11 to ignore the driver (/dev/eventX)
 thanks

 Why do you want to do this?

 --
 Matthew Garrett | mj...@srcf.ucam.org

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg