Mouse stopped working in X
C. P. Ghost
cpghost at cordula.ws
Wed May 23 09:14:14 UTC 2012
On Tue, May 22, 2012 at 10:44 AM, Polytropon <freebsd at edvax.de> wrote:
> On Tue, 22 May 2012 10:17:16 +0200, Bernt Hansson wrote:
>> There is a second way of doing this stunt.
>> Start X
>> When X is up and running press CTRL+ALT+F3 or any F* frpm F3 up to F8
>> then you get to the console
>> Su to root in the console and type in
>> /usr/local/etc/rc.d/dbus restart&& /usr/local/etc/rc.d/hald restart
>> Then press ALT+F9 to get back to X
> So if that is the _solution_, why not try to automate it?
> Not tested, just a suggestion:
> Make this the last-1 line in ~/.xinitrc (or ~/.xsession depending
> on actual setup), before the "exec" call to the WM / DE, maybe
> like this:
> [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc
> xterm &
> xsetroot -solid rgb:3b/4c/7a
> xset b 100 1000 15 &
> xset r rate 250 30 &
> xset s off &
> xset -dpms &
> -> sudo /usr/local/etc/rc.d/dbus restart && sudo /usr/local/etc/rc.d/hald restart
> exec wmaker
> It should "happen" when X is running, and it should be
> "back to normal" when the WM or DE is launched (and
> all background programs have fully started).
Yep, that's a good idea... as well as switching to a text console, issue
the commands there, and then go back to X.
But IMHO, the *real* solution is to fix hald (or its config), so that it
tries /dev/sysmouse, or whatever mouse is configured in Xorg.conf,
instead of automatically picking some wrong mouse device.
I guess the problem stems from the fact, that when moused is running,
it has already grabbed the real mouse device (e.g. /dev/psm0) and
provides the virtual device /dev/sysmouse. When hald starts the first
time, it tries to grab the real mouse device too... and fails because that
mouse is already used by moused, and is therefore locked. Only when
hald tries to load /dev/sysmouse the second time it is started, will it succeed.
Unfortunatly, hald config is pretty black magic to me. I wouldn't touch that
with a 10 ft. pole.
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
Cordula's Web. http://www.cordula.ws/
More information about the freebsd-questions