|
2014-02-20
, 10:57
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#2
|
|
2014-02-20
, 13:33
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#3
|
|
2014-02-20
, 14:16
|
Posts: 385 |
Thanked: 426 times |
Joined on Dec 2009
@ Gothenburg, Sweden
|
#4
|
|
2014-02-21
, 08:02
|
|
Posts: 288 |
Thanked: 175 times |
Joined on Oct 2010
@ Petaling Jaya, Selangor, Malaysia
|
#7
|
Be careful here people! Even if we should be (are) grateful for things like this, it is a bit scary when one of the files in the archive is a raw binary elf.
If you submit things like that, provide the source code at least, so that users can either build themselves or review it.
I don't like any unknown binary like that have su rights in the phone, who knows what it does except for the vibration part. I do understand it is under our own responsibility, just simply reminding people about this.
|
2014-03-06
, 10:35
|
Posts: 752 |
Thanked: 2,808 times |
Joined on Jan 2011
@ Czech Republic
|
#8
|
|
2014-03-06
, 12:31
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#10
|
unfortunately, i am no expert so i don't know how to package this properly into an installer. if someone can do it, your assistance would be most appreciated.
installation
--------------
1. download the zip file and extract it. in it you will find 3 files.
2. copy "callvibra.service" into /lib/systemd/system
3. copy "callvibra.sh" into /home/nemo
4. copy "Vibrate" into /home/nemo
5. change permissions on "Vibrate" by typing "chmod a+x /home/nemo/Vibrate" from the terminal.
6. change permissions on "callvibra.sh" by typing "chmod a+x /home/nemo/callvibra.sh" from the terminal.
7. make yourself root by typing in "devel-su" from terminal. enter your developer password.
8. type "systemctl enable callvibra.service"
9. reboot your phone
now you can test if the phone vibrates when a call is made.
feel free to make improvements to my *badly* hacked script.
thanks.
-----------edit
I've updated this post with the source code to the "Vibrate" binary. it's a Qt Creator project called TestVibraUi. feel free to look through it. code borrowed from https://github.com/nemomobile/qt-mob...tics-ffmemless
Chris actually gave some feedback on how to use vibration actuator in Qt + QML although that's not that I did in the end.
------------editv2
updated callvibrate.zip so that the phone will not vibrate if the proximity sensor detects something near it e.g. when you put the phone to your ear.
Last edited by droll; 2014-03-06 at 12:31.