View Single Post
Posts: 309 | Thanked: 456 times | Joined on Jan 2010
#3379
I'm trying to make changing the clock frequencies easier by adding settings to the Power Key menu in /etc/systemui/systemui.xml.
I adapted the entry for Top as this runs an xterm command..

Code:
<menuitem priority="5" name="Top in XTerm">
  <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xterm" method="run_command" bus="session" autostart="true">
   <argument type="string">/usr/bin/top</argument>
  </callback>
 </menuitem>
Only problem I have is I don't have the full path required to the kernel-load binary.. at least I'm guessing I need this to run a command and arguements..

Code:
 <menuitem priority="500" name="Default 600Mhz">
 <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xterm" method="run_command" bus="session" autostart="true">
   <argument type="string">kernel-load /usr/share/kernel-power-settings/xlv</argument>
  </callback>
 </menuitem>

 <menuitem priority="500" name="Overclock 800Mhz">
 <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xterm" method="run_command" bus="session" autostart="true">
   <argument type="string">kernel-load /usr/share/kernel-power-settings/ideal</argument>
  </callback>
 </menuitem>
Anyone got the path for the kernel-load command?
 

The Following User Says Thank You to [DarkGUNMAN] For This Useful Post: