Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6741
i found how to check if phone active now with this command:
Code:
/sbin/mcetool --status | grep Call | awk '{print
$4}'
But user need mcetools package installed...
 

The Following User Says Thank You to Schturman For This Useful Post:
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#6742
What this mean?
Code:
Using username "root".


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

RM696-21-3_PR_001:~# /sbin/mcetool --status | grep Call | awk '{print $4}'

GConf key /system/osso/dsm/display/display_blank_timeout should have type: 2, but has type: 1

none
RM696-21-3_PR_001:~#
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6743
Originally Posted by lacro View Post
Still no luck with the 9.7.5 installation.

Dialog message,

Installation failed.
Sorry, i don't know why it not installed for you. Did you tried with double click on the file? Did you tried redownload file from the first post?
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6744
Originally Posted by MK99 View Post
What this mean?
Code:
Using username "root".


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

RM696-21-3_PR_001:~# /sbin/mcetool --status | grep Call | awk '{print $4}'

GConf key /system/osso/dsm/display/display_blank_timeout should have type: 2, but has type: 1

none
RM696-21-3_PR_001:~#
go to setting-device-display.
Change display timeout to another number, save and exit. Go again and change to your preferred number, save and exit.
Run : /sbin/mcetool --status and post output.

PS. Do you played with blanking, if yes, try restore it.
I see in gcnfik app, the display_blank_timeout is 5 (in my phone)

Last edited by Schturman; 2013-06-05 at 17:38.
 
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#6745
Originally Posted by Schturman View Post
go to setting-device-display.
Change display timeout to another number, save and exit. Go again and change to your preferred number, save and exit.
Run : /sbin/mcetool --status and post output.
I just "unset" it. Some reason there was wrong value...
Is that because gconftool, not gconftool-2?

Now alla command works...

Is this better than Call?
Code:
/sbin/mcetool --status | grep Display | awk '{print $3}'
E: No, because when calling, display is off.

Last edited by MK99; 2013-06-05 at 17:45.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6746
Hmmm. We can use this instead Call, but i think that display on/off is less important (for me at least ) then Call active/none and if installation process running or not.. Ones happens to me when i installed something and auto-background changer cause to stop it
But i don't know how to check if phone install something now.
Also i prefer checking command without mcetools package, but don't know how

PS. Yep, display can be off when phone in call mode..
 

The Following User Says Thank You to Schturman For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6747
For checking if package manager its busy, maybe it enough:
Code:
ps aux | grep pkgmgrd | awk '{print $3}' | head -1 | cut -d '/' -f2
If "usr" = busy, if "grep" = not busy.


Edit:
No... It not enough... It enough only if you installed package via double click on the file from file manager...
If you install package via dpkg it not enough..

Last edited by Schturman; 2013-06-05 at 19:23.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6748
Ok, i got it Now it work with all conditions (dpkg -i and apt-get and installation by double click on the file)
Code:
ps aux | grep dpkg | grep journal | cut -d '-' -f2
If you get "install" = busy, if nothing = no installation process in this moment.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6749
Ok, i got it Now it work with all conditions (dpkg -i and apt-get and installation by double click on the file)
Code:
ps aux | grep dpkg | grep journal | cut -d '-' -f2
If you get "install" = busy, if nothing = no installation process in this moment.
 

The Following User Says Thank You to Schturman For This Useful Post:
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#6750
Working auto-back1.sh

Code:
#!/bin/sh

while true
do
Display=$(/sbin/mcetool --status | grep Display | awk '{print $3}')
Call=$(/sbin/mcetool --status | grep Call | awk '{print $4}')
Dpkg=$(ps aux | grep dpkg | grep journal | cut -d '-' -f2)

if [ $Display == "off" ]
  then  
   if [ $Call == "none" ]
    then
     if [ $Dpkg ==  ]
      then
        bash /opt/N9QTweak/Autowall/auto-back2.sh >/dev/null
     fi
   fi
fi
sleep 200
done

Last edited by MK99; 2013-06-06 at 06:07.
 

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

Tags
hebrew vkb, n9 qtweak, n9 quick tweak, n9 quicktweak, root-ssh


 
Forum Jump


All times are GMT. The time now is 02:48.