The Following User Says Thank You to rolan900d For This Useful Post: | ||
![]() |
2010-04-23
, 13:16
|
Posts: 284 |
Thanked: 75 times |
Joined on Nov 2009
|
#282
|
![]() |
2010-04-23
, 13:43
|
Posts: 156 |
Thanked: 90 times |
Joined on Jan 2010
|
#283
|
The Following User Says Thank You to rooted For This Useful Post: | ||
![]() |
2010-04-23
, 14:57
|
Posts: 284 |
Thanked: 75 times |
Joined on Nov 2009
|
#284
|
![]() |
2010-04-23
, 17:31
|
Posts: 156 |
Thanked: 90 times |
Joined on Jan 2010
|
#285
|
![]() |
2010-04-23
, 17:40
|
Posts: 47 |
Thanked: 22 times |
Joined on Apr 2010
|
#286
|
import feedparser try: feed_in = feedparser.parse('http://www.biblegateway.com/votd/get/?format=atom') try: feed = str(feed_in.entries[0].title) print feed except: print 'No Content' except: print 'Not Connected'
![]() |
2010-04-25
, 00:34
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#287
|
![]() |
2010-04-25
, 00:48
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#288
|
Hi all,
Please i'll apreciate a little help with QBW scripting.
Yes, i know if i do echo "command" | sudo gainroot, it will work.
But..and if it is not a "command" ?
Just like this..I want to make 2 profiles with my personalized OC settings (day\night profile). I'll put here the code for one of them:
/usr/sbin/kernel-load /usr/share/kernel-power-settings/ideal
rm -f /etc/default/kernel-power
ln -s /usr/share/kernel-power-settings/ideal /etc/default/kernel-power
echo 125000 250000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
/usr/sbin/kernel-load
How can i make it run with QBW?
If i run it at Xterm, with root, it works.
If i try it with QBW, it doesent work.
I've tried this too, but..nothing..
/usr/sbin/kernel-load /usr/share/kernel-power-settings/ideal
rm -f /etc/default/kernel-power | sudo gainroot
ln -s /usr/share/kernel-power-settings/ideal /etc/default/kernel-power | sudo gainroot
echo "echo 125000 250000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies" | sudo gainroot
echo "echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load" | sudo gainroot
/usr/sbin/kernel-load |sudo gainroot
Can please anyone help me? it works like i want on Xterminal.but cant 'export' it to Queen Beecon Widget..help please... (actualy, it acept the code, with no errors but it doesent change any values.
~ $ cd /home/user cat > myscript.sh <here you paste the script> #!/bin/sh /usr/sbin/kernel-load /usr/share/kernel-power-settings/ideal rm -f /etc/default/kernel-power ln -s /usr/share/kernel-power-settings/ideal /etc/default/kernel-power echo 125000 250000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load /usr/sbin/kernel-load <then you press CTRL-D and you get the prompt again> ~ $ chmod 755 myscript.sh
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2010-04-25
, 01:11
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#289
|
You cannot paste it directly into QBW.
You need to connect to X-Terminal for that and then...:
Now you can "AddCmd": echo "/home/user/myscript.sh" | sudo gainrootCode:~ $ cd /home/user cat > myscript.sh <here you paste the script> #!/bin/sh /usr/sbin/kernel-load /usr/share/kernel-power-settings/ideal rm -f /etc/default/kernel-power ln -s /usr/share/kernel-power-settings/ideal /etc/default/kernel-power echo 125000 250000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load /usr/sbin/kernel-load <then you press CTRL-D and you get the prompt again> ~ $ chmod 755 myscript.sh
... and see what happens.
![]() |
2010-04-25
, 10:13
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#290
|
Example:
I want homunculus to start from root...
I couldn't make a script that worked so all hell broke loose and I got errors about hildon-desktop closing down