1. Unplug usb mouse
2. wait few seconds (Just to make sure udev has disconnected the mouse)
3. run my script from terminal
4 follow instructions and let me know what it says
Environment not found
Did you insert a USB mouse?
Please re-run the script.
I am using a USB wireless mouse. And have ran the script with it unplugged and plugged in and working.
]]>EDIT: Just tested on my Dell Inspiron 15 and it works as expected
]]>EDIT:
Just noticed mc1611 is using root user, that explains it. Just run the script as normal user or alter the script command like Q4OS team suggested.
chmod +x dais_auto_toggle_script.sh
And then run it from a terminal
./dais_auto_toggle_script.sh
If you have any issues or it doesn't work for you please let me know and I will tell you how to get it working.
This script places a rule in /etc/udev/rules.d and a script in /usr/local/bin which is all that is required to set this up, if you run the script and then decide you want to remove the changes it has made just run the script again and it will detect that the files already exist and give you the choice to remove it. I hope it is quite straight forward to use, but any issues just shout and I'll try and help.
]]>