View Single Post
Posts: 167 | Thanked: 204 times | Joined on Jul 2010
#24
Originally Posted by marmistrz View Post
Try custom menu shortcuts

Ya create a script that will launch the commad that's its arg and modify the .desktop files
Hrm... this sounds like it is potentially useful, but the problem with any desktop "toggle" switch is that I have to remember to use it.

I did consider the idea of replacing specific shortcuts (such as Opera) with scripts that would set appropriate values and then launch the application, so that it remains a one-step process, but I found several reasons not to do that:

1) I'd have to do this per application, in order not to add additional steps of launching a script and selecting an app. Would be a PITA to maintain.

2) I don't have an event-driven method of detecting the closure of that application, so I'd still have to rely on either DBUS, a timer or looping with pgrep to revert any temporary settings I made.

3) This being the case, and provided that the ondemand frequency governor lets me achieve sane behaviour, it makes sense (to me at least) to preempt the CPU demand by assuming that when I unlock the phone, it will normally be to load or switch an application, so within reason, overclock by default.

Thanks for the thought, though.