View Single Post
thecubed's Avatar
Posts: 91 | Thanked: 32 times | Joined on Jan 2008 @ Near: Gilroy, CA
#18
ALL DONE!

To install:
first, make sure you have some form of root shell available (some use "sudo gainroot", others just type "root")

1. install dbus-scripts from extras-devel (I just wget and dpkg'd the deb file, since I don't like how much extras-devel slows down hildon-application-manager)
2. as root, run the following commands:

wget http://thecubed.com/n900/install-charger-power.sh
chmod +x install-charger-power.sh
./install-charger-power.sh


Once the script finishes, you should be able to disconnect and reconnect your charger and see a banner that says something about the vibration being disabled or enabled.

To disable this functionality:
edit the /etc/dbus-scripts.d/charger-vibrate-control file and comment out the two lines for enable and disablevibrate. After you comment out those lines, run "killall dbus-scripts" as root, and that'll reload the configs.

PLEASE NOTE: I have tested the actual charger power scripts on my phone all day, and it had no side effects, however, my method of packaging the scripts may be buggy. If you encounter any errors, please let me know so that I can fix it before I continue.

If anyone wants to clean up this, or has any modifications-- please let me know. Criticism is good!
__________________
[Nokia N900] [Lenovo T61p]
15GB Movies / 5GB Music. I'm ready to go!
Loving this device, bugs and all.
http://thecubed.com
 

The Following User Says Thank You to thecubed For This Useful Post: