![]() |
[Proposal pending]Disable vibration when on charging mode?
Link to the brainstorm
http://maemo.org/community/brainstor...n_on_charging/ Hi, i am not programmer but just an idea which i guess should not be very difficult to implement. Usually we keep our phones on a hard surface when on charging mode and so when i get a call or a msg it vibrates, scratching the lower body. Plus, i also dont like the sound of vibration on a hard surface. Can anyone make a hack that disables vibration mode when charging and re-enables it when removed from charging mode? |
Re: Disable vibration when on charging mode?
Should be possible with dbus-scripts running a script with the following;
dbus-send --print-reply --dest='com.nokia.profiled' /com/nokia/profiled com.nokia.profiled.set_value string:general string:vibrating.alert.enabled string:"Off" |
Re: Disable vibration when on charging mode?
Not to steal the topic, but any chance you could make the brightness 100% when charging as well?
|
Re: Disable vibration when on charging mode?
I really like the charging and not vibrating idea! Could this be made a reality?
|
Re: Disable vibration when on charging mode?
Quote:
I really like that it's vibrating while charging!!!! |
Re: Disable vibration when on charging mode?
If you check what DBUS signals are sent when you plug the device in to charge, you can write a script that is launched whenever the usb cable is plugged in to disable vibration, and another to re-enable it when the charger is removed.
The documentation for dbus-scripts.d should contain almost everything you need. Just find the DBUS event that is emitted when the charger is plugged in, and find what is emitted when it is removed. Add a dbus-script to run the command above to disable vibrate when those signals are received, and you're in business! I could potentially see use for this (for me) to turn _on_ the ringer when placed on charger, as my charger is upstairs while I am downstairs (too lazy to buy a 2nd charger). For Marcus' idea, yes- you can make the brightness 100% too, I'd just have to find the right dbus command from the simple-brightness applet. If I get a chance, I could whip this up for you later on today. |
Re: Disable vibration when on charging mode?
dbus-scripts-settings has this information in it already, and a GUI to boot - if you're too lazy to sniff dbus calls or even issue dbus-scripts --debug --system and pull the interface values.
|
Re: Disable vibration when on charging mode?
Quote:
I am coding it to allow you to perform different actions when the charger is plugged in or unplugged-- such as setting the brightness or changing the profile to speaker or vibrate on/off. This is turning out to be just the simple project I wanted, something without a GUI :) Ah, the joys of Linux! |
Re: Disable vibration when on charging mode?
thanks for taking up the idea guys..i'll be happy to test if someone comes up with a script..pls try make the instructions a bit noob friendly! :)
|
Re: Disable vibration when on charging mode?
Working on it right now!
Only problem is that I don't have my charger with me (nor a usb cable, so I'm going off the dbus logs I saved yesterday) If I can, I'll make a .sh file that will do it all for you. |
Re: Disable vibration when on charging mode?
hi thecubed,
any update on the app? am waiting to test :) |
Re: Disable vibration when on charging mode?
How about disable vibrate when alarm clock rings? It really pisses me off. I want to wake up in alarm sound, not megaloud vibration.
|
Re: Disable vibration when on charging mode?
Quote:
A third profile automatically active while on charger would be nice, just like earphones and so on. Why only for chargers? make it an option for several things to watch. |
Re: Disable vibration when on charging mode?
Quote:
|
Re: [Proposal pending]Disable vibration when on charging mode?
My old N82 would not vibrate when plugged in, this became a standard feature on nokia devices from the 3120 (the different shelled 3100) onwards or something didn't it?
|
Re: [Proposal pending]Disable vibration when on charging mode?
Quote:
|
Re: Disable vibration when on charging mode?
Quote:
For some reason, my N900 doesn't like the dbus-scripts package. I think I may have messed something up in apt whilst trying to get the new Qt working :) For now, I think I'm going to wait until after PR1.2 is released, so I can just do a reflash only once. After PR1.2 is released, I have a few apps I'm going to get finished-- including this one. My thought is to have a configurable "Actions on Power Plug" dialog. This will allow you to select the actions to be performed when power is removed or restored. Such actions will include: dimming the screen (my N900's screen is too bright at night), disabling vibration, enabling the ringtone, and running custom commands (like launching a fullscreen clock, if someone makes one). Hopefully PR1.2 is released soon! |
Re: [Proposal pending]Disable vibration when on charging mode?
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! |
Re: [Proposal pending]Disable vibration when on charging mode?
Quote:
but cant it be made a bit more noob friendly..something like install the deb file or devel file.. |
Re: [Proposal pending]Disable vibration when on charging mode?
Sorry for bumping this thread, but I tried the script thecubed posted and it does not seem to work for me.
I really hate the vibration on the alarm. The sound of the vibration on the wooden table I put it on when I go to sleep is so hard it wakes up the entire house. I am now manually switching profiles all the time but I'm hoping someone can help me out here. |
All times are GMT. The time now is 01:00. |
vBulletin® Version 3.8.8