[Galaxy S Plus I9001 Android Development] broodplank1337:
Sorry but I have no idea what to do :confused:, you could try an other usb port or so. don't know what the cause could be.

btw I've continued developing the script, it's now like this:

#!/system/bin/sh
# =================================================
# broodROM RC5 Configuration File
# created by broodplank(1337) @ XDA
# =================================================

# Initialize Virtuous OC Daemon
/system/xbin/virtuous_oc

#Mount Partitions:
mount -o remount rw /system
echo " ";
echo "Mounting...";

# =================================================
# Settings
#
# - Choose a CPU Profile or set a manual CPU configuration
# - Set I/O Scheduler
# - Enable/Disable Media Scanning
#
# =================================================

# =================================================
# CPU Profiles:
# =================================================
#
# 1. >>> Battery Saving Profile <<<
# ( Performance: +- | Battery: ++ )
#
# 2. >>> Balanced Profile <<<
# ( Performance: + | Battery: + )
#
# 3. >>> Performance Profile <<<
# ( Performance: ++ | Battery: +- )
#
# Please choose your profile:
PROFILE="2" # Default is 2
#
# If you want to configure the CPU manually:
# enter "0" as profile
# Make sure you uncomment the lines in manual CPU Configuration
# If you want to use profiles again be sure to comment the lines again.
#
# =================================================

# =================================================
# Manual CPU Configuration
#
# >>> CPU Governor (Awake/Sleep) <<<
#
#	AWAKE_GOVERNOR="smartassV2";
#	SLEEP_GOVERNOR="powersave";
#
# >>> CPU Min/Max speed (Awake/Sleep) <<<<
#
#	MIN_SPEED_AWAKE="245760"; # 245MHz
#	MAX_SPEED_AWAKE="1401600"; # 1.4GHz
#
#	MIN_SPEED_SLEEP="122880"; # 122MHz
#	MAX_SPEED_SLEEP="245760"; # 245MHz
#
# =================================================

# =================================================
# Other settings
#
# >>> I/O Scheduler <<<
#
SCHEDULER="sio";
#
# >>> Media Scaninning <<<
#
MEDIA_SCANNING="enabled"; # enabled/disabled
#
# =================================================

# =================================================
# CPU Profiles:
# =================================================

if [[ "$PROFILE" == "1" ]]
then
AWAKE_GOVERNOR="smartassV2";
SLEEP_GOVERNOR="powersave";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1209600";
MIN_SPEED_SLEEP="122880";
MAX_SPEED_SLEEP="245760";
echo " ";
echo "Setting profile to: Battery Saving Profile";
fi;

if [[ "$PROFILE" == "2" ]]
then
AWAKE_GOVERNOR="smartassV2";
SLEEP_GOVERNOR="smartassV2";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1401600";
MIN_SPEED_SLEEP="245760";
MAX_SPEED_SLEEP="245760";
echo " ";
echo "Setting profile to: Balanced Profile";
fi;

if [[ "$PROFILE" == "3" ]]
then
AWAKE_GOVERNOR="interactiveX";
SLEEP_GOVERNOR="smartassV2";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1612800";
MIN_SPEED_SLEEP="245760";
MAX_SPEED_SLEEP="368640";
echo " ";
echo "Setting profile to: Performance Profile";
fi;

# =================================================
# CPU Governors (for awake state)
# uncomment a line to activate gov.
# =================================================

#AWAKE_GOVERNOR="interactiveX";
#AWAKE_GOVERNOR="minmax";
#AWAKE_GOVERNOR="conservative";
#AWAKE_GOVERNOR="ondemand";
#AWAKE_GOVERNOR="userspace";
#AWAKE_GOVERNOR="smartassV2"; # Default
#AWAKE_GOVERNOR="performance"; # Best results in Antutu

echo " "
echo ">>> Awake CPU Governor and CPU Frequencies <<<";
echo $AWAKE_GOVERNOR > /system/etc/virtuous_oc/wake_governor;
echo "Setting Awake Governor to: $AWAKE_GOVERNOR"

# =================================================
# Set min cpu speed of awake state
# =================================================

#MIN_SPEED_AWAKE="122880"; # 122MHz
#MIN_SPEED_AWAKE="245760"; # 245MHz (Default)
#MIN_SPEED_AWAKE="368640"; # 368MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/wake_min_freq;
echo "Setting min CPU freq (awake) to: $MIN_SPEED_AWAKE"

# =================================================
# Set max cpu speed of awake state
# =================================================

#MAX_SPEED_AWAKE="1401600"; # 1.4GHz (Default)
#MAX_SPEED_AWAKE="1516800"; # 1.5GHz
#MAX_SPEED_AWAKE="1612800"; # 1.6GHz
#MAX_SPEED_AWAKE="1708800"; # 1.7GHz
#MAX_SPEED_AWAKE="1804800"; # 1.8GHz

echo $MAX_SPEED_AWAKE > /system/etc/virtuous_oc/wake_max_freq;
echo "Setting max CPU freq (awake) to: $MAX_SPEED_AWAKE"
echo " "

# =================================================
# CPU Governors (for sleep state)
# uncomment a line to activate gov.
# =================================================

#SLEEP_GOVERNOR="conservative";
#SLEEP_GOVERNOR="ondemand";
#SLEEP_GOVERNOR="powersave"; # Default

echo ">>> Sleep Governor and CPU Frequencies <<<";
echo $SLEEP_GOVERNOR > /system/etc/virtuous_oc/sleep_governor;
echo "Setting sleep governor to: $SLEEP_GOVERNOR"

# =================================================
# Set min cpu speed of sleep state
# =================================================

#MIN_SPEED_SLEEP="122880"; # 122MHz (Default)
#MIN_SPEED_SLEEP="245760"; # 245MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/sleep_min_freq;
echo "Setting min CPU freq (sleep) to: $MIN_SPEED_SLEEP"

# =================================================
# Set max cpu speed of sleep state
# =================================================

#MAX_SPEED_SLEEP="122880"; # 122MHz
#MAX_SPEED_SLEEP="245760"; # 245MHz (Default)
#MAX_SPEED_SLEEP="368640"; # 368MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/sleep_max_freq;
echo "Setting max CPU freq (sleep) to: $MAX_SPEED_SLEEP"
echo " "

# =================================================
# Set I/O Scheduler
# =================================================

#SCHEDULER="noop";
#SCHEDULER="deadline";
#SCHEDULER="cfq";
#SCHEDULER="bfq";
#SCHEDULER="sio"; # Default
#SCHEDULER="vr"; # Best results in Antutu

echo ">>> I/O Scheduler <<<";
echo $SCHEDULER > /sys/block/mmcblk0/queue/scheduler
echo $SCHEDULER > /sys/block/mmcblk1/queue/scheduler
echo "Setting I/O scheduler to: $SCHEDULER"
echo " "

# =================================================
# Set Media Scanning
# =================================================

if [[ "$MEDIA_SCANNING" == "enabled" ]]
then pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver;
else
pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver;
fi;

echo " "
echo "Done..."

Resulting in:

Suggestions for the config file are welcome ;P