I was not sure if this was the right site to pose this question, but I said that it was a programming issue, and I realized that the SO crowd was the most Linux-centric of the three sites,
In any case, I am trying to find a way to simulate disconnecting the device from the software aspect, as if the user physically disconnected it. So far, I made the udev rule in /etc/udev/rules.d called 10-nano.rules:
SYSFS{idVendor}=="05ac", OPTIONS+="ignore_device"
This rule is great for ignoring devices, but only after disconnecting and reconnecting them. But I want to do this to write a rule, and then ignore the device, as if it were disconnected. I tried "udevadm trigger" with and without sudo, but for some reason I cannot apply this rule while the device is connected. Any suggestions?
By the way, I can reconnect the device that was ignored by deleting 10-nano.rules, and then run the "sudo udevadm trigger", but, as mentioned above, not vice versa. (for some reason, my system time and internet got messed up when I ran this command)
source
share