Author Topic: tkvol and Keyhelper for volume control  (Read 3602 times)

jagrka

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« 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

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!
 
Zaurus SL-C760/Sharp ROM 1.40 JP
Linux Kernel 2.4.18-rmk7-pxa3-embedix, Tetsu Special Kernel 14e
Transcend 2GB SD Card (with SD-Link11b driver)
Planex Communications GW-CF11H Wi-Fi CF Card
Kwins for PDA KW-H128C2 PHS Communications CF Card

jagrka

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« Reply #1 on: June 07, 2004, 09:43:54 am »
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?
Zaurus SL-C760/Sharp ROM 1.40 JP
Linux Kernel 2.4.18-rmk7-pxa3-embedix, Tetsu Special Kernel 14e
Transcend 2GB SD Card (with SD-Link11b driver)
Planex Communications GW-CF11H Wi-Fi CF Card
Kwins for PDA KW-H128C2 PHS Communications CF Card

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« Reply #2 on: June 07, 2004, 07:41:46 pm »
That\'s an easy one, I\'m going to add this (and your tkvol hint too ) to my next installment of the keyhelper intro 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« Reply #3 on: June 07, 2004, 07:43:51 pm »
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

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

jagrka

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« Reply #4 on: June 09, 2004, 05:57:56 am »
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.
Zaurus SL-C760/Sharp ROM 1.40 JP
Linux Kernel 2.4.18-rmk7-pxa3-embedix, Tetsu Special Kernel 14e
Transcend 2GB SD Card (with SD-Link11b driver)
Planex Communications GW-CF11H Wi-Fi CF Card
Kwins for PDA KW-H128C2 PHS Communications CF Card

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« Reply #5 on: June 09, 2004, 10:17:11 am »
As I point out in my Intro to Keyhelper, 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
Code: [Select]


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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

ensign

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
tkvol and Keyhelper for volume control
« Reply #6 on: December 23, 2005, 06:15:48 am »
Quote
If you have Keyhelper already installed, download the tkvol program:

http://tkmixi.s58.xrea.com/?plugin=attach&...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
« Last Edit: December 23, 2005, 06:16:29 am by ensign »

jagrka

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
tkvol and Keyhelper for volume control
« Reply #7 on: January 04, 2006, 08:12:01 am »
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.
Zaurus SL-C760/Sharp ROM 1.40 JP
Linux Kernel 2.4.18-rmk7-pxa3-embedix, Tetsu Special Kernel 14e
Transcend 2GB SD Card (with SD-Link11b driver)
Planex Communications GW-CF11H Wi-Fi CF Card
Kwins for PDA KW-H128C2 PHS Communications CF Card