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.
i lean how web-site below. have read @ least twice.code:synclient touchpadoff=1
i want analyze how udev works, command below grasp information, can check them out attachments.html code:http://www.reactivated.net/writing_udev_rules.html
you can see corresponding message present situation @ line 100 add.txt. this.code:sudo udevd --debug
and here udev rules.code:1325675158.824063 [4626] util_run_program: '/usr/bin/xinput' (stderr) 'unable connect x server'
thanks lot.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"
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
Post a Comment