Whenever you attach a removable storage device - an SD card or USB device - a dialog will appear asking you whether you wish to open the device with an application. This dialog will also appear after logging on if a device is connected at the time. The following sections explain how to disable it every time you connect a device or just after start up, re-enabling it after a short time period. Note that this technique will not work on the eeePC 900.
To disable the Device Detection Dialog from appearing whenever you connect a removable storage device, enter the following command in a console (press Ctrl+Alt+T in Easy Mode):
sudo chmod a-x /usr/bin/xandros_device_detection_dialog
To reverse, enter:
sudo chmod a+x /usr/bin/xandros_device_detection_dialog
How this works: The chmod command -x stops the xandros_device_detection_dialog file from being an executable and +x makes it executable again.
To disable the dialog after logging in only, re-enabling after a set time period, following the instructions below. They will require the use of a command console. For Easy Mode users, press Ctrl+Alt+T to open one.
sudo mv /usr/bin/xandros_device_detection_dialog /usr/bin/xandros_device_detection_dialog.copy
sudo kwrite /usr/bin/xandros_device_detection_dialog
#!/bin/sh
awk '$1 < 40 { exit 1 }' /proc/uptime && xandros_device_detection_dialog.copy "$@" &
sudo chmod a+x /usr/bin/xandros_device_detection_dialog
Note: You can change the number 40 in the script to vary the amount of time following logging in that the dialog is disabled. Increase it if the dialog is appearing after you log in.
Neither of these methods seems to work once USB Applet 1.1.69-1 (2008-06-05) is installed!