View Single Post
Posts: 150 | Thanked: 169 times | Joined on Nov 2011 @ Sweden
#2309
I have been using kernel power since v47, and I must say I'm very impressed by all it can do, and above all how stable it is. I've never had a problem (knock on wood). Big thanks to pali and all who contribute to it!

One thing I've wanted to do - and I'm not sure whether this is actually the right place to ask about it, so apologies if not - is to add a row of buttons to the status menu for fast switching between the different kernel-config presets. As it is I just go into xterm and dial up the corresponding cached entry, but having the presets available in status would unarguably be faster and swifter.

I was sure I had read about something similar somewhere on this forum before, but I just can't find it again. I would think "/etc/hildon-desktop/status-menu.plugins" would have to be edited for this purpose, correct?

Two further tweaks could be to bring up the yellow ribbon to display the xterm output - so that you know the preset was loaded ok - and for the preset button you have picked to remain in a visually selected state until you pick another, so you can always see in the status menu which of your presets you're currently running. But how to go about that, I have no clue.

I'd appreciate if someone could point me in the right direction!

Edit: I've figured out I could achieve this with the quick-launch package if I create desktop shortcuts for the kernel presets I want to switch between in /usr/share/applications/hildon. The only problem now is how the shortcuts should be set up. I'm not sure what the proper way to run xterm commands in desktop-files is. Maybe something like this?

Code:
[Desktop Entry]
Encoding=UTF-8
Name=KP DSP
GenericName=Set kernel preset "DSP"
Icon=kpdsp
Exec=osso-xterm "sudo kernel-config load dsp"
Type=Application
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=false
Terminal=true
NoDisplay=true
StartupNotify=true
Hmmm, almost there... It gives the desired end-result, but it brings up the xterm window and then closes it down again. I want the result provided by the yellow ribbon. Does anyone care to tweak my desktop file?

Last edited by bocephus; 2011-11-27 at 11:53.