|
2011-11-19
, 00:32
|
|
Posts: 528 |
Thanked: 345 times |
Joined on Aug 2010
@ MLB.AU
|
#2
|
|
2011-11-19
, 00:33
|
|
Posts: 528 |
Thanked: 345 times |
Joined on Aug 2010
@ MLB.AU
|
#3
|
|
2011-11-19
, 01:07
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#4
|
|
2011-11-19
, 11:13
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#5
|
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked
|
2013-05-09
, 06:01
|
|
Posts: 115 |
Thanked: 95 times |
Joined on Oct 2011
@ Sankt-Peterburg, Russia
|
#6
|
|
2013-05-10
, 21:48
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#7
|
Hey!
Having problems running this script.
Command '/home/user/smart/scripts/vncmode'
failed with return code 0 and error message
/home/user/smart/scripts/vncmode: line 3:
/home/user/smart/scripts/keepawake: not found
Seems to be something wrong with this part:
while [ -f /home/user/smart/flags/keepawake ]
Apart from keepawake, everything is working great, as it should.
And yeah, the file is present and the permissions are set right, I triple checked. All mentioned packages are also installed.
Can you help me with this?
The Following User Says Thank You to impeham For This Useful Post: | ||
|
2013-05-10
, 23:59
|
|
Posts: 115 |
Thanked: 95 times |
Joined on Oct 2011
@ Sankt-Peterburg, Russia
|
#8
|
|
2013-05-11
, 02:23
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#9
|
Thanks, but still no luck...
I am even trying with root and 777 access to both flags and scripts folder.
Command '/home/user/smart/scripts/vncmode'
failed with return code 0 and error message
/home/user/smart/scripts/keepawake:
line 3: Lock: not found
/home/user/smart/scripts/keepawake: line 13: Lock: not found
According to log, it connects without a problem to both WinSCP and TightVNC, but the script just won't work.
If I enter dbus-send from WinSCP terminal the screen wakes up fine.
What am I missing?
|
2013-05-11
, 05:26
|
|
Posts: 115 |
Thanked: 95 times |
Joined on Oct 2011
@ Sankt-Peterburg, Russia
|
#10
|
@echo off call "C:\Program Files (x86)\WinSCP\WinSCP.com" N900 /command "option confirm off" "call /home/user/smart/scripts/vncmode" "exit" call "C:\Program Files\TightVNC\tvnviewer.exe" 192.168.1.90 call "C:\Program Files (x86)\WinSCP\WinSCP.com" N900 /command "option confirm off" "call rm /home/user/smart/flags/keepawake" "exit"
/home/user/smart$ ls -l drwxrwxrwx 2 root root 4096 May 9 09:54 flags drwxrwxrwx 2 root root 4096 May 9 08:56 scripts /home/user/smart/scripts$ ls -l -rwxrwxrwx 1 root root 289 May 11 09:15 keepawake -rwxrwxrwx 1 root root 72 May 9 08:55 vncmode
What you'll need to have installed:
WinSCP SSH (for windows) client application (freeware can be downloaded from here - http://winscp.net/eng/index.php)
VNC client (for windows) - I use Tight VNC from (can be downloaded from here - http://www.tightvnc.com/)
open SSH server (for N900)
Dbus scripts (for N900)
X11 - vnc server (for N900)
You will need to customize the scripts with your paths, addresses and n900 profile name in case they won't fit.
Create a profile in WinSCP (mine is called N900 and is used in the "vnc.bat" script - replace with your profile name) and make sure it connects (save the password in the profile)
Create a folder with write permissions on N900 "/home/user/smart/flags"
Create a folder with execution permissions on N900 "/home/user/smart/scripts" and copy "keepawake" and "vncmode" into it
Run the vnc.bat from the windows machine and vnc client will be opened and connected to N900.
The device will stay awake as long as you are connected - disconnect to return to normal behavior.
Using similar way for executing remote commands using WinSCP definitely opens up a range of new possibilities, and i am using it myself for a few things already.
Last edited by impeham; 2011-11-19 at 01:06.