Active Topics

 


Reply
Thread Tools
Posts: 14 | Thanked: 2 times | Joined on Mar 2010
#1
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!
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#2
From Jebba's DBUS wiki page:


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...

Last edited by Big Phat Jan; 2010-08-17 at 11:00. Reason: [code] introduces line breaks...
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#3
/sys/class/leds/twl4030:vibrator/brightness

I suggest you use dbus though, have a look @ the wiki or use the phone-control package.
 
Posts: 14 | Thanked: 2 times | Joined on Mar 2010
#4
thx.
MohammadAG it works
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?
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:37.