New answers tagged

0

Ok, I still did not find the solution to the problem of dongle not appearing, but I made progress investigating it and realized I had posted the question in the wrong community: The dongle can be made re-appear without physically plugging it back by explicitly re-enabling it in the host machine's VMWare Fusion USB options. As such, it is VMWare Fusion that ...


0

Best solution and what worked better for me is to install adb from ubuntu package. This gives you a community-maintained default set of udev rules for all Android devices. example: sudo apt-get install adb


0

My workaround for this was to manage it this way: One udev rule for the USB inserted action. The scripts coming in the meanwhile mount/umount the drive themselves. One udev rule for the USB removed action. USB gets inserted I execute one script which just saves the device name into a file. I can append any other script in this rule: ACTION=”add”, KERNEL=”...


1

Why: This error is being caused by a combination of things: 1) The command th-cmd --socket /var/run/thd.socket --passfd --udev produces a segfault. This seems to be because triggerhappy hasn't been patched to address a number of issues reported over the last 4 years... https://github.com/wertarbyte/triggerhappy/issues 2) Unfortunately, the error will ...


0

The accepted answer really didn't help me that much. I finally found out a way by probing the idProduct and idVendor if they exist. Here's a shell script #!/bin/bash { cd /sys/bus/usb/devices for i in *; do [ -e $i/idProduct ] && echo $(cat $i/idVendor $i/idProduct) $i done } Here's what I get on my system. $ ./script 0424 2514 1-3 ...


1

Udev will work only if you pass correct information like below for usb, KERNEL=="sd*", ATTRS{vendor}=="<Vendor name>", ATTRS{model}=="<Model>", ATTRS{serial}=="<serial>", RUN+="/your script path" Alternatively, I could not write complete code since not sure kind of hardware and other details, however check this logic and put in crontab ...


0

you could add a wait for the disk to mount eg: while ! [ -w /media/abhishek/Hachiko ] do sleep 1 done but that requires that you are logged into the GUI when you plug the drive in it's probably better to over-ride the automount and mount the drive explicitly.


Top 50 recent answers are included