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?
FarmerBlair;1923342 Wrote:
> 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!!!
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
FarmerBlair;1923518 Wrote:
> 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
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.
FarmerBlair;1923589 Wrote:
> 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/?
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.
FarmerBlair;1923642 Wrote:
> 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 :)).
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.
FarmerBlair;1924090 Wrote:
> … back again, but I’ve got no more ideas…
>
> Anybody else?
>
> Is it time to contact the developer of keytouch?
IMHO the multiple segmentation fault points to a bug in this software.
The wiki page what you linked is detailed - but I can’t play with these
configurations on my MSI laptop.
its also interesting, that all othe devices i can choose in
keytouch-editor-bin have an event (event0 - AT Translated Set 2 keyboard
up to event8 - TPPS/2 IBM Trackpoint), but “ACPI device” has no event…
FarmerBlair;1924119 Wrote:
> its also interesting, that all othe devices i can choose in
> keytouch-editor-bin have an event (event0 - AT Translated Set 2 keyboard
> up to event8 - TPPS/2 IBM Trackpoint), but “ACPI device” has no event…
>
> so you would suggest to contact the developer?
Try again to configure your the keyboard with keytouch - after
selecting a configuration (T60 example) do not forget to hit the Apply
button. Set the same keyboard model in Sax2 too.
What’s about gksu - I’m already pasted the link on the previous page.
This is you first error message when you start keytouch - maybe you have
some permission problems in keytouch-editor too. Install it - maybe it
changes everything.
If nothing works then mail to the author.
Good luck.
when I start keytouch - no matter if I use the console or the menu, no
matter if I’m su or not - doesn’t give me any error messages no more.
In SAX2 I cannot select the T60-keyboard as it is not in the list.
However, there shouldn’t be a big difference to the T61-keyboard which I
selected in SAX2.
I tried to install gksu but didn’t find RPMs for Opensuse…
and trying to compile it myself gave me
Code:
No package ‘gtk±2.0’ found
No package ‘gconf-2.0’ found
No package ‘libstartup-notification-1.0’ found
No package ‘gnome-keyring-1’ found
No package ‘libgtop-2.0’ found
However, starting keytouch-editor doesn’t work - neither as su nor as
normal user, and starting keytouch-editor-bin as normal user gives me
fewer devices than as su.
As su keytouch-editor-bin gives me a lot of devices, but the necessary
ACPI-device has no event.
FarmerBlair;1924195 Wrote:
> thank you - once more.
>
> —snipped—
>
> I tried to install gksu but didn’t find RPMs for Opensuse…
> and trying to compile it myself gave me
> —snipped.
Hi.
You’re in GNOME… you need to use “-gnomesu-” not kdesu. I think
“gksu” and “gksudo” are for Debian based distros. (Not completely sure
tho).