OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: jagrka on June 07, 2004, 08:18:07 am
-
I was looking for a way to control the volume direct from the keyboard without having to pull out the stylus. Since I just installed Keyhelper, I stumbled across a program that allows one to control the volume by mapping the application to certain keys.
If you have Keyhelper already installed, download the tkvol program:
http://tkmixi.s58.xrea.com/?plugin=attach&...ipk&refer=TKvol (http://tkmixi.s58.xrea.com/?plugin=attach&openfile=tkvol_0.6_arm.ipk&refer=TKvol)
I set the keys so that the volume increases with a SHIFT + UP ARROW; decreases with SHIFT + DOWN ARROW; and mutes with SHIFT + MENU. You can set the keys to whatever you like, provided that you are familiar with the workings of Keyhelper.
To your keyhelper.xml file, add the following:
<extensions>
<define key=\"All\" kind=\"launch\">
<modifier Shift=\"On\"/>
</define>
</extentions>
To your keyhelper.conf file, add the following:
[Launch]
Down = @exec{TAB}/home/QtPalmtop/bin/tkvol -10
Up = @exec{TAB}/home/QtPalmtop/bin/tkvol +10
F11 = @exec{TAB}/home/QtPalmtop/bin/tkvol 0
Please note that you must insert a tab (not the letters {TAB} in the place between @exec and /home/QtPalmtop/bin/tkvol... After you\'ve made these changes using a text editor, you will need to restart the Keylauncher program by issuing the following command from the terminal:
khctl reload
When it works, the volume applet changes to automatically reflect the volume change and a brief message appears in the icon bar.
Hooray!
-
Now for my question:
I want to use the same principle to make a key command to shutdown the Zaurus, similiar to when one accesses power down from the Qtopia menu. When a Zaurus is suspended, what command or binary is causing it to to go into this low power mode? In other words, what command issued from the console would would turn the power off?
-
That\'s an easy one, I\'m going to add this (and your tkvol hint too ) to my next installment of the keyhelper intro (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Introduction%20to%20KeyHelper) when i get some free time.
Basically to run anything on menu use this in KeyHelper.conf
<key> = <menu link>
where <menu link> is one of the files in /home/QtPalmtop/apps starting with __*
To suspend the zaurus using Backspace + <Launch> - In your case <Launch> is Shift+Home, I prefere to use Address as I use Shift+Home as task switch keycombo - add the following to KeyHelper.conf
Backspace = __9Quit
Stu
-
Jagrka,
Assuming from your location you can read Nihongo, try this site for a heap of ideas on using keyhelper
http://www.yo.rim.or.jp/~mono93/mobile/lin...eyhelper01.html (http://www.yo.rim.or.jp/~mono93/mobile/linuxzau/slc700_keyhelper01.html)
Stu
-
Stubear,
Thanks for the link to the Japanese guide page. I\'ve got my whole Zaurus working off key commands now. One problem: I can\'t find a good launch key! If I set it to any of the keys like home (F11) or menu (F12), these keys are already preprogrammed to first either swtich tabs (home) or open a menu (menu). I tried to get launch to work by doing the Function Key (F22) and Shift together, but it does not work at all. I believe that you mentioned elsewhere that this combination is equivalent to Control.
If you are using Address as your launch key, how do you prevent it from launching your addressbook everytime you issue a Keyhelper launch command?
Finally, I think I\'m beginning to understand the syntax of Keyhelper (thanks to the link you provided), but I still do not understand the workings of toggle and Release Key. What exactly do they do?
By the way, FN+SHIFT+/ and FN+SHIFT+? produce the ellipses without their needing to be specifically linked to O and P as it does in the sample keyhelper.xml file.
-
As I point out in my Intro to Keyhelper (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Introduction%20to%20KeyHelper), you can make a key lose it\'s normal function by setting mapping=\"True\" and not supplying a mapping in the <mapping> section.
So I have
to set [Address] as the launch key, but not to open the addressbook. I have a keycombo to open the addressbook and a menu entry for it as well.
Toggle, when set to true, simply turns that key into a toggle switch, so rather than having to hold down [Fn] or [Shift], I set them as toggle, then I can hit [Shift] then hit [A] to get an uppercase A, rather than using 2 fingers to press [Shift]+A together.
Release cancels the effects of a given key, I can\'t remember what F31 is but there was a reason it needed to be released when setting the Kana key up as Ctrl (need to find my keycodes pdf and look it up). You could probably use Release instead of mapping=\"True\" but I\'ve never bothered to try it.
I\'m aware of the FN+Shift+/ to get {, but I prefer to add the Fn+O as I have Fn set to toggle so I can get { with 2 key presses instead of a 3 key combo - makes it easier to code on the midosuji subway
Have a look at my Intro and let me know if you think anything is missing or needs to be explained better (or edit it yourself as its a wiki). I hopefully will get time over the wekend to finish the part on the launcher and menu system.
Stu
-
If you have Keyhelper already installed, download the tkvol program:
http://tkmixi.s58.xrea.com/?plugin=attach&...ipk&refer=TKvol (http://tkmixi.s58.xrea.com/?plugin=attach&openfile=tkvol_0.6_arm.ipk&refer=TKvol)
jagrka,
Do you still have a copy of the tkvol.ipk. Thanks. The above mentioned website now returns a 404 error.
THanks,
Mawuli
-
I no longer have the ipkg, but I have attached the binary file here. Just place it in your /home/QtPalmtop/bin directory, and it should work fine.