Question: How do I stop my PC from autoplaying media files present on my SD card on my Android Phone? Whenever my USB linkage cord between my PC and my phone is wobbled just a little bit my Ubuntu 12.10 tries to play all the files on my SD card (like audio and picture files) how do I stop this?

Answer: 
Click on power button
![power button](https://i.stack.imgur.com/bEH7I.png)

Click on system settings

![system settings](https://i.stack.imgur.com/0EV20.png) 

Click on details
![Details](https://i.stack.imgur.com/HejSg.png)

Click on Removable Media; then you could; 

* Check the box to "Never prompt..."
![boxcheck](https://i.stack.imgur.com/HkHqV.png)

or

* Set the drop down menus under "music player" and "photos" to "Do nothing."

Maybe using a newer/different cable to try and stop the problem of device/s being detected but then disconnecting and reconnecting if moved at all.
It looks like when the cable is wiggled, it is re-detected. How about just disabling autoplay?

To disable autoplay:

```
 gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount_open False 

```

To enable autoplay:

```
 gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount_open True

```