Date: Mon, 21 Feb 2005 10:30:19 GMT From: Gleb Smirnoff <glebius@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/77786: moused dies when unplugging mouse Message-ID: <200502211030.j1LAUJet030838@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/77786; it has been noted by GNATS. From: Gleb Smirnoff <glebius@freebsd.org> To: Robert Millan <rmh@debian.org> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/77786: moused dies when unplugging mouse Date: Mon, 21 Feb 2005 13:29:20 +0300 On Sun, Feb 20, 2005 at 05:08:19PM +0100, Robert Millan wrote: R> >Description: R> When moused is being used to process input from an USB mouse, and the R> mouse is dettached, causing the /dev/ums0 to disappear, moused will R> die (complains about open() failing). So after reattaching the mouse R> you'll have to restart the daemon manualy. R> R> With this patch, moused's behaviour is closer to what you'd expect from R> a daemon and instead of diing it polls de device untill it can be R> open again. This is correct behavior. First, mouse may never return to USB port. What for do we need moused daemon running? Second, another mouse can be inserted, with another protocol. The correct fix for your problem is correct /etc/devd.conf, containing this attach rule: attach 100 { device-name "ums[0-9]+"; action "/etc/rc.d/moused start $device-name"; }; If you don't mind, I close the PR. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502211030.j1LAUJet030838>