maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   use sh script for vibration test (https://talk.maemo.org/showthread.php?t=60517)

ragesoft 2010-08-17 06:46

use sh script for vibration test
 
hi.

i want to make a sh-file so that i can execut it and see if my phone is working correct.

for this i want to check the vibration-function.

i found this:
Code:

    #!/bin/sh
    echo 255 > /sys/devices/platform/neo1973-vibrator.0/leds/neo1973:vibrator/brightness
    sleep 1
    echo 0 > /sys/devices/platform/neo1973-vibrator.0/leds/neo1973:vibrator/brightness

but "neo1973" isn't maemo ;)

so where can i find this on maemo?

this file will also be used in pidgin as vibration alarm on new messages.

thx for your help!

Big Phat Jan 2010-08-17 10:54

Re: use sh script for vibration test
 
From Jebba's DBUS wiki page:


Quote:

dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activat e string:'PatternChatAndEmail'
There shouldn't be a space in the middle of activate - it looks like "com.nokia.mce.request.req_vibrator_pattern_activa te" is too long for the forum...

MohammadAG 2010-08-17 10:55

Re: use sh script for vibration test
 
/sys/class/leds/twl4030:vibrator/brightness

I suggest you use dbus though, have a look @ the wiki or use the phone-control package.

ragesoft 2010-08-17 13:28

Re: use sh script for vibration test
 
thx.
MohammadAG it works :D
but only as root.
if i run the script as normal user i got "permission denied" on twl4030 :<

dam
how about that dbus? will this run as normal user?


All times are GMT. The time now is 12:10.

vBulletin® Version 3.8.8