From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phillip Susi Date: Sun, 21 Nov 2010 14:27:21 +0000 Subject: Re: false udev event Message-Id: <4CE92C49.4050600@cfl.rr.com> List-Id: References: <201011201810.oAKIAHxK019175@dcnode-02.unlimitedmail.net> In-Reply-To: <201011201810.oAKIAHxK019175@dcnode-02.unlimitedmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On 11/20/2010 01:10 PM, J. Bakshi wrote: > ```````````````````````````````````` > ACTION="add", SUBSYSTEM="input", ENV{ID_CLASS}="mouse", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/joy/.Xauthority" RUN+="/usr/bin/synclient TouchpadOff=1", RUN+="/bin/su joy -c 'DISPLAY=:0.0 notify-send %k; killall syndaemon ' " This rule is fundamentally broken. You are explicitly setting the environment to point to your .Xauthority file and the first instance of an X server, which of course, assumes that you are logged into that X instance at the time. When this rule is processed, that is almost certainly not going to be true. It also will run repeatedly for every input device in the system. Maybe you meant ENV{ID_CLASS}="mouse" instead of ENV{ID_CLASS}="mouse"?