Skip to main content

Thread: Why udev 'Unable to connect to X server' ??


hi everyone, recently, come writing udev rules disable touchpad while use mouse. came across strange situation title. have tried "synclient", doesn't seem work @ times.
code:
synclient touchpadoff=1
i lean how web-site below. have read @ least twice.
html code:
http://www.reactivated.net/writing_udev_rules.html
i want analyze how udev works, command below grasp information, can check them out attachments.
code:
sudo udevd --debug
you can see corresponding message present situation @ line 100 add.txt. this.
code:
1325675158.824063 [4626] util_run_program: '/usr/bin/xinput' (stderr) 'unable connect x server'
and here udev rules.
code:
action=="add", subsystem=="input", attr{name}==" usb optical mouse", run+="/usr/bin/xinput set-prop 13 125 0" action=="remove", subsystem=="input", attr{name}==" usb optical mouse", run+="/usr/bin/xinput set-prop 13 125 1"
thanks lot.
attached files attached files

bump!
hopes thread can may seen knows how figure out.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Hardware [ubuntu] Why udev 'Unable to connect to X server' ??


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account