Posts: 48 | Thanked: 85 times | Joined on Feb 2010
#1
Hi guys,
I would like to automatize a phone reboot. My intention is to execute it weekly in the night.

But I need to ensure that I will not lost data in some opened application.

Is there a way to retrieve the list of the opened windows (I refer to the accessible windows pressing the task-bar corner)?

In that way I will execute the reboot only if there aren't opened applications.
 

The Following User Says Thank You to Ilmanowar For This Useful Post:
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#2
_NET_CLIENT_LIST is what you looking for or you can use wmctrl.
 

The Following 2 Users Say Thank You to elros34 For This Useful Post:
Posts: 330 | Thanked: 556 times | Joined on Oct 2012
#3
It might be a better idea to focus on active processes, not windows. Maybe?
 

The Following User Says Thank You to malfunctioning For This Useful Post:
Posts: 175 | Thanked: 210 times | Joined on Mar 2013
#4
How do you reboot? I for example write in the command line "reboot" but the phone simply shutdown, so I have to manually start it.
 

The Following User Says Thank You to Malakai For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#5
@malakai
I guess you are on KP (power kernel) or CSSU?
Then this is known behaviour. Sometimes reboot sometimes shutdown,
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 175 | Thanked: 210 times | Joined on Mar 2013
#6
Yes I'm on CSSU Stable, but for me it always shutdown, never rebooted. Weird...
 

The Following User Says Thank You to Malakai For This Useful Post:
Posts: 48 | Thanked: 85 times | Joined on Feb 2010
#7
Originally Posted by Malakai View Post
Yes I'm on CSSU Stable, but for me it always shutdown, never rebooted. Weird...
I have 2 phones one with CSSU stable and another with CSSU thumb2: for both sometimes the "sudo reboot" doesn't work. Normally it is worst to have the USB charger cable connected.
Sincerely it is passed much time from the last non-reboot and shutdown only.
 
Posts: 48 | Thanked: 85 times | Joined on Feb 2010
#8
Originally Posted by elros34 View Post
_NET_CLIENT_LIST is what you looking for or you can use wmctrl.
Thank you elros34!
wmctrl is exactly what I need.
 
Reply

Tags
reboot, task manager, taskbar, tasks, windows list

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:01.