From owner-freebsd-questions@FreeBSD.ORG Tue May 22 08:44:49 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DEB31065670 for ; Tue, 22 May 2012 08:44:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id D06F08FC15 for ; Tue, 22 May 2012 08:44:48 +0000 (UTC) Received: from r56.edvax.de (port-92-195-20-192.dynamic.qsc.de [92.195.20.192]) by mx01.qsc.de (Postfix) with ESMTP id D3D9B3CBC3; Tue, 22 May 2012 10:44:41 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q4M8ifJA005231; Tue, 22 May 2012 10:44:41 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 22 May 2012 10:44:41 +0200 From: Polytropon To: Bernt Hansson Message-Id: <20120522104441.f05a2f88.freebsd@edvax.de> In-Reply-To: <4FBB4B8C.3000806@bananmonarki.se> References: <201205181149.q4IBndvU028665@hera.homer.att.com> <4FB64022.6010206@bananmonarki.se> <4FBB4B8C.3000806@bananmonarki.se> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Mouse stopped working in X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 08:44:49 -0000 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). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...