We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

Wake up from low-power mode to full CPU from command line?

asked 2020-01-12 18:49:45 +0300

00prometheus gravatar image

updated 2020-01-14 18:59:33 +0300

When you ssh into your Sailfish (I do this via WiFi to my XA2), the phone seems to be in a very low power mode, with very sluggish response. If you activate the screen it becomes fully awake and snappy, but after a while it goes to sleep again. Is there a way to wake it up from low-power mode (if that is the cause) and keep it awake from the command line? With no need to physically access the phone? Is there a way to get this to work as long as you are logged in for the session?

edit retag flag offensive close delete

Comments

I'm having the same 'trouble', if there's a workaround I'd be glad to know it.

mrtrm ( 2020-01-12 19:09:01 +0300 )edit

Is this SSH via USB or WiFi ?

Spam Hunter ( 2020-01-12 19:27:55 +0300 )edit
1

@Edz SSH via WIFI ...

mrtrm ( 2020-01-12 19:56:45 +0300 )edit

I would assume it should be possible to wake up the screen via DBUS and then keep it on via the screen blanking prevention API for as long as needed. Not very elegant or efficient, but should do the job IMHO.

MartinK ( 2020-01-12 21:01:08 +0300 )edit
2

you could also use mcetool and activate demo mode;

mcetool --set-demo=on

and

mcetool --set-demo=off

Spam Hunter ( 2020-01-12 21:58:54 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-01-14 20:47:26 +0300

0xe4524ffe gravatar image

As a temporary hack you can set max and min online cpus:

echo -n 8 > /sys/devices/system/cpu/cpuquiet/nr_min_cpus
echo -n 8 > /sys/devices/system/cpu/cpuquiet/nr_max_cpus

These settings will persist until reboot. To edit them permamently edit /vendor/etc/rqbalance_conf.xml, "rqbalance" cpuquiet governor loads settings from this file at boot.

"userspace" cpuquiet governor would've let you online/offline cores manualy, but it's not included in stock kernel, so you would need to recompile the kernel if you want to use it.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2020-01-12 18:49:45 +0300

Seen: 475 times

Last updated: Jan 15 '20