Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Configure Thinkpad Hotkey

  1. #1

    Default Configure Thinkpad Hotkey

    Hi!
    I hope this belongs to this subforum.

    I'm new to OpenSuse and use version 11.1 with Gnome on my Thinkpad T400.

    Some of the Notebook's hotkeys don't work yet.
    While trying to configure (for example the ThinkVantage key) I realised that they don't give any keystroke events in xev.

    Instead they send acpi events (checked with acpi_listen).

    What is the right way to assign actions (for example start a program) to acpi events?

    Thank you!!!

  2. #2
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Configure Thinkpad Hotkey

    Quote Originally Posted by FarmerBlair View Post
    Hi!
    I hope this belongs to this subforum.

    I'm new to OpenSuse and use version 11.1 with Gnome on my Thinkpad T400.

    Some of the Notebook's hotkeys don't work yet.
    While trying to configure (for example the ThinkVantage key) I realised that they don't give any keystroke events in xev.

    Instead they send acpi events (checked with acpi_listen).

    What is the right way to assign actions (for example start a program) to acpi events?

    Thank you!!!
    keytouch - available from packman repository.
    Laptop extra keys - HOWTO

    ps.: you can grab a couple of plugins from keytouch's site
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  3. #3

    Default Re: Configure Thinkpad Hotkey

    Thank you for your tip!

    I'm really looking forward to using keytouch.

    However, at the moment it doesn't work.

    It just tells me that no keyboard is specified yet, afterwards the program stops.

    I restartet keytouch using the console.

    The error message is the following:
    Code:
    # keytouch
    which: no gksu in (/home/marcel/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
    /usr/bin/keytouch-keyboard: line 6: kdesu: command not found
    What can I do?

  4. #4
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Configure Thinkpad Hotkey

    Quote Originally Posted by FarmerBlair View Post
    Thank you for your tip!

    I'm really looking forward to using keytouch.

    However, at the moment it doesn't work.

    It just tells me that no keyboard is specified yet, afterwards the program stops.

    I restartet keytouch using the console.

    The error message is the following:
    Code:
    # keytouch
    which: no gksu in (/home/marcel/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
    /usr/bin/keytouch-keyboard: line 6: kdesu: command not found
    What can I do?
    Are you installed it from Packaman repository or compiled?
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  5. #5

    Default Re: Configure Thinkpad Hotkey

    I installed it from Packman Repository.

    As "kde" was in the error message and I'm using gnome, i thought, maybe it was compiled in KDE and therefore it doesn't work.

    I tried to compile it myself, but ./configure gave the error message
    Code:
    checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
    checking for libasound headers version >= 1.0.10... not present.
    configure: error: Sufficiently new version of libasound not found.
    Sadly, I didn't find libasound development packages for opensuse.

    And, of course, thanks for your help!

  6. #6
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Configure Thinkpad Hotkey

    Quote Originally Posted by FarmerBlair View Post
    I installed it from Packman Repository.

    As "kde" was in the error message and I'm using gnome, i thought, maybe it was compiled in KDE and therefore it doesn't work.

    I tried to compile it myself, but ./configure gave the error message
    Code:
    checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
    checking for libasound headers version >= 1.0.10... not present.
    configure: error: Sufficiently new version of libasound not found.
    Sadly, I didn't find libasound development packages for opensuse.

    And, of course, thanks for your help!
    Okay, the packman version will be good - I have the same.
    Try the following in Terminal:
    Code:
    su
    keytouch-keyboard-bin
    This will start the keyboard selection window.
    After start keytouch (still in root):
    Code:
    keytouch
    ps.: there should be an equivalent for kdesu in gnome - is this available for opensuse: http://www.nongnu.org/gksu/? Try to compile it or grab it from webpin.
    Last edited by ram88; 07-Jan-2009 at 17:07. Reason: I've found gksu.
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  7. #7

    Default Re: Configure Thinkpad Hotkey

    kewl.
    keytouch-keyboard-bin did the job. keytouch starts just as it should right now.

    the only thinkpad keyboard pre configured is the t60.
    I tried it, but still I can't perform actions with the ThinkVantage key.

    When I click on "apply" the shell says
    Code:
    :~> keytouch
    keytouchd(5106): Die Operation ist nicht erlaubt <== The operation is not permitted
    Warning: Not all keys can be grabbed by this program. This
             can be caused by another program which is already
             grabbing these keys.

  8. #8
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: Configure Thinkpad Hotkey

    Quote Originally Posted by FarmerBlair View Post
    kewl.
    keytouch-keyboard-bin did the job. keytouch starts just as it should right now.

    the only thinkpad keyboard pre configured is the t60.
    I tried it, but still I can't perform actions with the ThinkVantage key.

    When I click on "apply" the shell says
    Code:
    :~> keytouch
    keytouchd(5106): Die Operation ist nicht erlaubt <== The operation is not permitted
    Warning: Not all keys can be grabbed by this program. This
             can be caused by another program which is already
             grabbing these keys.
    Are you tried before to configure these keys? Maybe your ThinkVantage key already has an action - check your global shortcuts (I have no idea where, never used Gnome ).
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  9. #9

    Default Re: Configure Thinkpad Hotkey

    hehe...
    yes I tried to configure the key in /usr/lib/acpid/thinkpad_handler, but I removed all changes..

    There is a file /etc/acpi/events/thinkpad, that graps all thinkpad specific acpi-events.

    But I'm not sure, that I should delete those files (I guess they exist in KDE two).

    Is it possible, that the t60 file doesn't fit (I don't think so, because on How to get special keys to work - ThinkWiki there are the acpi codes and they also fit for the T400)

  10. #10

    Default Re: Configure Thinkpad Hotkey

    I did some more research and found some interesting facts.

    I downloaded keytouch-editor.
    When I tried to start it in the shell with "keytouch-editor", i get
    Code:
     # keytouch-editor
    which: no gksu in (/home/marcel/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
    /usr/bin/keytouch-editor: line 6: kdesu: command not found
    I did the same as you taught me before and started it with keytouch-editor-bin.

    With that command keytouch-editor is loading.
    I choose "ACPI device (ACPI)". Pressing the ThinkVantage key takes me to the next window, where I can edit keys.
    I click "New" and press the ThinkVantage-key. In the next window I should enter a name. So I write "ThinkVantage in the certain field.

    Pressing on "Okay" makes the program crash.

    I get quite a long error message in the shell. I try to post it somehow.

    Thanks again for your help.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •