Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 11:16:06 +0200
From:      Bernt Hansson <bah@bananmonarki.se>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mouse stopped working in X
Message-ID:  <4FBB5956.9020605@bananmonarki.se>
In-Reply-To: <20120522104441.f05a2f88.freebsd@edvax.de>
References:  <201205181149.q4IBndvU028665@hera.homer.att.com> <4FB64022.6010206@bananmonarki.se> <CADGWnjVMoamtrxBMGNheVy1CL%2BJjuXetDcq93SiVYn9vAChVnw@mail.gmail.com> <4FBB4B8C.3000806@bananmonarki.se> <20120522104441.f05a2f88.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
2012-05-22 10:44, Polytropon skrev:
> 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:
>
> 	#!/bin/sh
> 	[ -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).

We don't use sudo, only su. But I guess it work for those that use sudo.




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