Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2012 14:51:31 +0200
From:      Albert Shih <Albert.Shih@obspm.fr>
To:        Jerome Herman <jherman@dichotomia.fr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Performance and mouse problems
Message-ID:  <20120504125131.GA12022@pcjas.obspm.fr>
In-Reply-To: <4FA19CA3.50903@dichotomia.fr>
References:  <20120427161316.GA60361@pcjas.obspm.fr> <CA%2BtpaK2fLYgwqXFj%2B0qjyNGy2UPiOq=v2=XYLjT2GCMJKHMCng@mail.gmail.com> <20120428205201.GB65903@pcjas.obspm.fr> <4F9C75F9.9070907@dichotomia.fr> <20120430113910.GC74076@pcjas.obspm.fr> <4F9EAD87.2000005@dichotomia.fr> <20120502150626.GF99014@pcjas.obspm.fr> <4FA19CA3.50903@dichotomia.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
 Le 02/05/2012 ? 22:44:19+0200, Jerome Herman a écrit
> Ok here is what happens,
> 
> In your system you have your touchpad declared both in a static way in 
> your xorg config, and probed by HAL.
> What happens is that when xorg starts it first install the touchpad as 
> required by the config file, and then tries to install it again via 
> autodetection. Of course the second installation of the same device 
> doesn't work as the device is already busy with xorg, and xorg stops to 
> try to auto-install devices.
> When you plug another mouse, xorg is notified that there are new 
> devices, but starts by trying to reinstall the touchpad, fails again for 
> the same reason as above and stops trying.
> 
> In order to solve your problem you can try the following :
> a) remove the touchpad lines from your xorg config. This way the 
> touchpad should be installed by auto detection. (simply comment it as 
> you might be needing it back soon)
> b) forbid hal from probing the touchpad. If solution a fails, I would 
> explain to you how to do this if solution a) fails.

I try this.  

I do a hal-device find the unique udi to have /dev/psm0  in input.device,

 udi = '/org/freedesktop/Hal/devices/psm_0'
  freebsd.driver = 'psm'  (string)
  freebsd.unit = 0  (0x0)  (int)
  platform.id = 'psm.0'  (string)
  freebsd.device_file = '/dev/psm0'  (string)
  info.capabilities = { 'input', 'input.mouse' } (string list)
  info.category = 'input'  (string)
  input.device = '/dev/psm0'  (string)
  input.x11_driver = 'mouse'  (string)
  info.addons = { 'hald-addon-mouse-sysmouse' } (string list)
  info.udi = '/org/freedesktop/Hal/devices/psm_0'  (string)
  info.parent = '/org/freedesktop/Hal/devices/atkbdc_0'  (string)
  info.product = 'PS/2 Mouse'  (string)
  info.subsystem = 'platform'  (string)

and add a new file in /usr/local/etc/hal/fdi/policy/ with

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
      <match key="info.product" string="PS/2 Mouse">
        <merge key="info.ignore" type="bool">true</merge>
      </match>
  </device>
</deviceinfo>

restart hald, reboot and...nothing :-( 

I've try also with something like 

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
     <match key="freebsd.driver" string="psm">
      <match key="info.product" string="PS/2 Mouse">
        <merge key="info.ignore" type="bool">true</merge>
      </match>
     </match>
  </device>
</deviceinfo>

but same result.

The touchpad still working and most important the mouse still NOT working.

Any help ? 

Thanks.

Regards.

JAS
-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
xmpp: jas@obspm.fr
Heure local/Local time:
ven 4 mai 2012 14:42:00 CEST



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120504125131.GA12022>