You are not logged in.

#1 2005-11-21 17:38:48

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

making pkgbuild for keytouch

I'm trying to make a pkgbuild for keytouch
But as it's my first pkgbuild, I have some problems:
1) the docs say you need the following packages to be installed:
- GTK 2
- gksu
- X11 and Xlib
gtk2 and gksu are in pacman, but what do I have to add for X11 and Xlib?

2) running makepkg runs into an error:

mkdir /home/tom/download/PKGbuilds/keytouch/test1/pkg/usr/bin
  /bin/install -c  keytouchd /home/tom/download/PKGbuilds/keytouch/test1/pkg/usr/bin/keytouchd
XSESSION_KEYTOUCHD_LINE="keytouchd &"; 
XSESSION_DIR="/etc/X11/Xsession.d"; 
if [ -d $XSESSION_DIR ]; then 
        echo "$XSESSION_KEYTOUCHD_LINE" > $XSESSION_DIR/40keytouchd; 
        chmod +x $XSESSION_DIR/40keytouchd; 
else 
        XSESSION_FILE="/etc/X11/Xsession"; 
        if [ "`grep "$XSESSION_KEYTOUCHD_LINE" "$XSESSION_FILE" -m 1 -h`" != "$XSESSION_KEYTOUCHD_LINE" ]; then 
                XSESSION_TMP=`cat "$XSESSION_FILE"`; 
                echo "$XSESSION_KEYTOUCHD_LINE" > $XSESSION_FILE; 
                echo "$XSESSION_TMP" >> $XSESSION_FILE; 
        fi 
fi
/bin/sh: /etc/X11/Xsession.d/40keytouchd: Permission denied
chmod: cannot access `/etc/X11/Xsession.d/40keytouchd': No such file or directory
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/home/tom/download/PKGbuilds/keytouch/test1/src/keytouch-2.0/keytouchd'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/tom/download/PKGbuilds/keytouch/test1/src/keytouch-2.0/keytouchd'
make: *** [install-recursive] Error 1
==> ERROR: Build Failed.  Aborting...

It produces this error on the make install, and I thinks it's because the src/keytouch-2.0/keytouchd/Makefile.am contains the following:

install-data-local:
    @$(NORMAL_INSTALL)
    XSESSION_KEYTOUCHD_LINE="keytouchd &"; 
    XSESSION_DIR="$(DESTDIR)/etc/X11/Xsession.d"; 
    if [ -d $$XSESSION_DIR ]; then 
        echo "$$XSESSION_KEYTOUCHD_LINE" > $$XSESSION_DIR/40keytouchd; 
        chmod +x $$XSESSION_DIR/40keytouchd; 
    else 
        XSESSION_FILE="/etc/X11/Xsession"; 
        if [ "`grep "$$XSESSION_KEYTOUCHD_LINE" "$$XSESSION_FILE" -m 1 -h`" != "$$XSESSION_KEYTOUCHD_LINE" ]; then 
            XSESSION_TMP=`cat "$$XSESSION_FILE"`; 
            echo "$$XSESSION_KEYTOUCHD_LINE" > $$XSESSION_FILE; 
            echo "$$XSESSION_TMP" >> $$XSESSION_FILE; 
        fi 
    fi

The make install tries to write directly to /etc/X11/Xsession, which is not allowed while make the pkg.
How do I solve this problem?

The pkgbuild so far:

# $Id: PKGBUILD,v 1.0 2005/21/11 $
# Maintainer: mouse256
pkgname=keytouch
pkgver=2.0.0
pkgrel=1
pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
depends=('gtk2' 'gksu')
source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz)
url="http://keytouch.sourceforge.net/"
md5sums=('a7a22320707b887b1c5dedb77d2cf3e6')

build() {
  cd $startdir/src/$pkgname-2.0
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

Offline

#2 2005-11-21 19:54:12

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: making pkgbuild for keytouch

1. Don't worry about X11 & Xlib. This is xorg. You don't need to chage the PKGBUILD for that because gtk2 already depends on it.

2. Replace:

make prefix=$startdir/pkg/usr install 

by

make DESTDIR=$startdir/pkg install

Offline

#3 2005-11-21 21:18:23

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

thanks, it dit help somewhat, but I still had some errors.  Now they're all solved, but I don't know whether my pkgbuild is according the arch rules:
pkgbuild;

# $Id: PKGBUILD,v 1.0 2005/21/11 $
# Maintainer: mouse256
pkgname=keytouch
pkgver=2.0.0
pkgrel=1
pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
depends=('gtk2' 'gksu')
source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz)
url="http://keytouch.sourceforge.net/"
md5sums=('a7a22320707b887b1c5dedb77d2cf3e6')

build() {
  cd $startdir/src/$pkgname-2.0
  ./configure --prefix=/usr
  make || return 1
  #script checkt if Xsession directory exists, so create it
  mkdir $startdir/pkg/etc
  mkdir $startdir/pkg/etc/X11
  mkdir $startdir/pkg/etc/X11/Xsession.d
  mkdir $startdir/pkg/etc/rc.d
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/$pkgname-2.0/keytouch-config
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/$pkgname-2.0/keytouch-keyboard
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install


  mkdir -p $startdir/pkg/usr/share/applications
  echo "Categories=Application;Accessoires;" >> $startdir/pkg/usr/share/keytouch/desktop/keytouch.desktop
  mv $startdir/pkg/usr/share/keytouch/desktop/keytouch.desktop $startdir/pkg/usr/share/applications
}

The biggest problem I think is it creates a file in /etc/rc.d
FILELIST:

.FILELIST
.PKGINFO
etc/
etc/X11/
etc/X11/Xsession.d/
etc/X11/Xsession.d/40keytouchd
etc/rc.d/
etc/rc.d/keytouch-init.sh
usr/
usr/bin/
usr/bin/keytouch
usr/bin/keytouch-init
usr/bin/keytouch-keyboard
usr/bin/keytouch-keyboard-bin
usr/bin/keytouchd
usr/etc/
usr/etc/keytouch/
usr/share/
usr/share/keytouch-keyboard-bin/
usr/share/keytouch-keyboard-bin/pixmaps/
usr/share/keytouch-keyboard-bin/pixmaps/icon.png
usr/share/keytouch/
usr/share/keytouch/doc/
usr/share/keytouch/doc/html/
usr/share/keytouch/doc/html/WARNINGS
usr/share/keytouch/doc/html/images.aux
usr/share/keytouch/doc/html/images.log
usr/share/keytouch/doc/html/images.out
usr/share/keytouch/doc/html/images.pl
usr/share/keytouch/doc/html/images.tex
usr/share/keytouch/doc/html/img1.png
usr/share/keytouch/doc/html/img2.png
usr/share/keytouch/doc/html/img3.png
usr/share/keytouch/doc/html/img4.png
usr/share/keytouch/doc/html/index.html
usr/share/keytouch/doc/html/internals.pl
usr/share/keytouch/doc/html/labels.pl
usr/share/keytouch/doc/html/node1.html
usr/share/keytouch/doc/html/node10.html
usr/share/keytouch/doc/html/node11.html
usr/share/keytouch/doc/html/node12.html
usr/share/keytouch/doc/html/node13.html
usr/share/keytouch/doc/html/node14.html
usr/share/keytouch/doc/html/node15.html
usr/share/keytouch/doc/html/node16.html
usr/share/keytouch/doc/html/node17.html
usr/share/keytouch/doc/html/node18.html
usr/share/keytouch/doc/html/node2.html
usr/share/keytouch/doc/html/node3.html
usr/share/keytouch/doc/html/node4.html
usr/share/keytouch/doc/html/node5.html
usr/share/keytouch/doc/html/node6.html
usr/share/keytouch/doc/html/node7.html
usr/share/keytouch/doc/html/node8.html
usr/share/keytouch/doc/html/node9.html
usr/share/keytouch/doc/html/user_manual.css
usr/share/keytouch/doc/html/user_manual.html
usr/share/keytouch/keyboards/
usr/share/keytouch/keyboards/Aspire 1300.Acer
usr/share/keytouch/keyboards/Aspire 1350.Acer
usr/share/keytouch/keyboards/Cordless Desktop Pro.Logitech
usr/share/keytouch/keyboards/D47K.Promedion
usr/share/keytouch/keyboards/Easy Access Keyboard (8 keys).Compaq
usr/share/keytouch/keyboards/Internet Navigator.Logitech
usr/share/keytouch/keyboards/Latitude D505.Dell
usr/share/keytouch/keyboards/MultiMedia Keyboard 1.0.Microsoft
usr/share/keytouch/keyboards/TravelMate 4100.Acer
usr/share/keytouch/keyboards/Versa P550.Nec
usr/share/keytouch/keyboards/Y-RK49.Logitech
usr/share/keytouch/pixmaps/
usr/share/keytouch/pixmaps/icon.png
usr/share/keytouch/pixmaps/internet.png
usr/share/keytouch/pixmaps/key.png
usr/share/keytouch/pixmaps/key2.png
usr/share/keytouch/pixmaps/keyboard.png
usr/share/keytouch/pixmaps/keytouch.png
usr/share/keytouch/plugins/
usr/share/keytouch/plugins/amarok.so
usr/share/keytouch/plugins/aumix.so
usr/share/keytouch/plugins/browser.so
usr/share/keytouch/plugins/chat.so
usr/share/keytouch/plugins/common_actions.so
usr/share/keytouch/plugins/email.so
usr/share/keytouch/plugins/filemanager.so
usr/share/keytouch/plugins/lock_screen.so
usr/share/keytouch/plugins/xmms.so

the file etc/rc.d/keytouch-init.sh contains:

/usr/bin/keytouch-init

So this won't work on arch.  Should the file be removed from the pkg?  And should it be replaced by another deamon file that does work?

Offline

#4 2005-11-22 02:20:12

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: making pkgbuild for keytouch

Yes, it should be replaced by a Arch-style deamon script.  I am interested in the app, so I'll write the deamon and post back later. smile

Offline

#5 2005-11-22 03:40:40

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: making pkgbuild for keytouch

I've improved the PKGBUILD a bit. And here's the daemon script too. Let me know how it works.  I haven't been able to test it because, by default, it doesn't support my keyboard.  I'll create my custom keyboard file later when I'll have time.

# $Id: PKGBUILD,v 1.0 2005/21/11 $
# Maintainer: mouse256
pkgname=keytouch
pkgver=2.0.0
pkgrel=1
pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
depends=('gtk2' 'gksu')
source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz keytouch)
md5sums=('a7a22320707b887b1c5dedb77d2cf3e6' '984697d5993691e0928b3446c5672730')
url="http://keytouch.sourceforge.net/"

build() {
  cd $startdir/src/$pkgname-2.0
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  #script check if Xsession directory exists, so create it
  mkdir -p $startdir/pkg/etc/X11/Xsession.d
  mkdir $startdir/pkg/etc/rc.d
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/$pkgname-2.0/keytouch-config
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/$pkgname-2.0/keytouch-keyboard
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install

  rm $startdir/pkg/etc/rc.d/keytouch-init.sh
  install -m755 $startdir/src/keytouch $startdir/pkg/etc/rc.d/keytouch

  mkdir -p $startdir/pkg/usr/share/applications

  echo '[Desktop Entry]
Name=keyTouch
Comment=Keyboard configuration tool
Icon=/usr/share/keytouch/pixmaps/icon.png
Exec=/usr/bin/keytouch
Terminal=false
Type=Application
Categories=Application;Accessories
StartupNotify=false' > $startdir/pkg/usr/share/applications/keytouch.desktop
}
#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/bin/keytouch-init`
case "$1" in
  start)
    stat_busy "Starting keytouch Daemon"
    [ -z "$PID" ] && /usr/bin/keytouch-init
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon keytouch
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping keytouch Daemon"
    [ ! -z "$PID" ]  && kill $PID &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon keytouch
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac
exit 0

Offline

#6 2005-11-22 08:51:35

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

Hmm, it installs now, my keyboard is supported (logitech internet navigator), but I can only get 1 button to work.
I will try it later, but they just told me they are going to shut down the power in the street in 10 minutes ;-)

Offline

#7 2005-11-22 09:13:01

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

Please upload the PKGBUILD + daemon script. I want to test if I can get it working with my Cherry Cybo@rd.

Offline

#8 2005-11-22 13:25:04

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

you can just copy/paste the code blocks from snowman, but then you will have to adjust the md5 hash.
You can also just download the files here:
http://mouse256.studentenweb.org/keytouch/

I can only get the email and the search button to work on my logitech internet navigator.
This is what I get when I run keytouch and try to change the settings from a button:

keytouch
keytouchd: no process killed
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  7
  Current serial number in output stream:  68
keytouchd: no process killed
[14:23][tom@mouse256:~]$ X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  7
  Current serial number in output stream:  68

edit: it's the same error I get when I try to run keytouchd or /etx/X11/Xsession.d/40keytouchd (as it's just a script that runs keytouchd)

Offline

#9 2005-11-22 22:20:22

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

I´m playing with it. Shouldn´t we include keytouch-editor in this package or better do a second keytouch-editor package. I guess lots of people will need to use it.

http://keytouch.sourceforge.net/dl-keytouch-editor.html

Offline

#10 2005-11-22 22:30:20

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

Yeah maybe.  I normally won't need it as my keyboard is supported, but I will make the pkgbuild tomorrow.
Can you get keytouch running? (can you execute keytouchd without error?)

Offline

#11 2005-11-22 22:34:22

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

[andyrtr@workstation keytouch]$ keytouchd
LibMXml: Could not open the XML document.
keytouchd: '/etc/keytouch/current_keyboard.xml' is invalid
[andyrtr@workstation keytouch]$

I think I have to configure the keyboard type first using keytouch-editor. I haven´t done that so far. I´m waiting for the integrated pkgbuild.

Offline

#12 2005-11-22 23:53:26

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

I have made it. Looks like that:

# $Id: PKGBUILD,v 1.0 2005/21/11 $
# Maintainer: mouse256
pkgname=keytouch
pkgver=2.0.0
pkgrel=1
pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
depends=('gtk2' 'gksu')
source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz keytouch
        http://dl.sourceforge.net/sourceforge/keytouch/keytouch-editor-2.0.2.tar.gz)
md5sums=('a7a22320707b887b1c5dedb77d2cf3e6' 'f8a0979750dffdb1af1d44029163d0ec'
         'da03fef05570cc5e1d49d00f7b15c810')
url="http://keytouch.sourceforge.net/"

build() {
  cd $startdir/src/$pkgname-2.0
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  #script check if Xsession directory exists, so create it
  mkdir -p $startdir/pkg/etc/X11/Xsession.d
  mkdir $startdir/pkg/etc/rc.d
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/$pkgname-2.0/keytouch-config
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/$pkgname-2.0/keytouch-keyboard
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install

  cd $startdir/src/'keytouch-editor 2.0'
  #./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  #make DESTDIR=$startdir/pkg install
  install -m755 $startdir/src/'keytouch-editor 2.0'/keytouch-editor $startdir/pkg/usr/bin/keytouch-editor

  rm $startdir/pkg/etc/rc.d/keytouch-init.sh
  install -m755 $startdir/src/keytouch $startdir/pkg/etc/rc.d/keytouch

  mkdir -p $startdir/pkg/usr/share/applications

  echo '[Desktop Entry]
Name=keyTouch
Comment=Keyboard configuration tool
Icon=/usr/share/keytouch/pixmaps/icon.png
Exec=/usr/bin/keytouch
Terminal=false
Type=Application
Categories=Application;Accessories
StartupNotify=false' > $startdir/pkg/usr/share/applications/keytouch.desktop
} 

The editor has found my keyboard running at /dev/input/event0. Now going to configure it.

Happy man. I have created a new importable keybord file "Cherry Cybo@rd G83-13000". Tomorrow I´m going to give the keys some features.

AndyRTR

Offline

#13 2005-11-23 14:56:55

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

AndyRTR: your pkgbuild contains some errors, and I think you should better make it 2 separate pkgbuilds.
Separate pkgbuild for keytouch-editor:

# $Id: PKGBUILD,v 1.0 2005/21/11 $
# Maintainer: mouse256
pkgname=keytouch-editor
pkgver=2.0.2
pkgrel=1
pkgdesc="Add new keyboard for keytouch"
depends=('keytouch')
source=(http://dl.sourceforge.net/sourceforge/keytouch/$pkgname-$pkgver.tar.gz)
md5sums=('da03fef05570cc5e1d49d00f7b15c810')
url="http://keytouch.sourceforge.net/"

build() {
  cd $startdir/src/$pkgname 2.0
  #no ./configure script
  #./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  mkdir -p $startdir/pkg/usr/bin
  make prefix=$startdir/pkg/usr install
  
} 

keytouch-editor works here and generates the same scancodes as the keyboard file I downloaded from the keytouch site, but I still can't use keytouch.  Has anyone more luck?

Offline

#14 2005-11-23 19:40:17

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

mouse256 wrote:

AndyRTR: your pkgbuild contains some errors, and I think you should better make it 2 separate pkgbuilds.

Cannot see the errors. You go the same way I think. Splitting it into 2 packages is also good because not all user will have use the keytouch-editor.

keytouch-editor works here and generates the same scancodes as the keyboard file I downloaded from the keytouch site, but I still can't use keytouch.  Has anyone more luck?

I mostly use the plugin "browser" functions and they are working fine  8)  Did you start the daemon ( /etc/rc.d/keytouch start ) ?

I think a TUR should make a decision if you should go with one or two packages.

AndyRTR

Offline

#15 2005-11-23 20:02:42

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

Now I see.  I thought your pkgbuild couldn't work as there was nog "make install" line, but you replaced the line with the "install -m755".  I don't know for sure, but I think "make install" is the way to go smile

snowman: should we make 1 or 2 PKGBUILD's?

my problems:
I did start /etc/rc.d/keytouch , but when I try to stop it I get a FAIL, so I think it doesn't start well.
What is your output when you run "keytouchd"? mine is:

X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  7
  Current serial number in output stream:  68

Offline

#16 2005-11-23 20:56:25

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: making pkgbuild for keytouch

mouse256 wrote:

Now I see.  I thought your pkgbuild couldn't work as there was nog "make install" line, but you replaced the line with the "install -m755".  I don't know for sure, but I think "make install" is the way to go smile

I think the problem was that the "install -m755" line was wrapped.  Usually, make install is prefered. However, keytouch-editor is a single executables so using "install -m755" instead of the "mkdir/make install lines" doesn't really complicate things.

mouse256 wrote:

snowman: should we make 1 or 2 PKGBUILD's?

I would say 1 PKGBUILD. The list of supported keyboards is quite short so most people will need the keytouch-editor.  Also, it only adds the 20 kB keytouch-editor executable. In terms of disk space, it is not an issue for users not needing it.

mouse256 wrote:

my problems:
I did start /etc/rc.d/keytouch , but when I try to stop it I get a FAIL, so I think it doesn't start well.
What is your output when you run "keytouchd"? mine is:

X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  7
  Current serial number in output stream:  68

When I run '/etc/rc.d/keytouch start' or 'keytouchd' I get:

LibMXml: Could not open the XML document.
keytouch-init: '/etc/keytouch/current_keyboard.xml' is invalid

It's probably because I haven't configured my keyboard yet.  The keytouch-editor detects my laptop keyboard but not the USB keyboard that is connected to it. 
It it possible that the daemon script doesn't work. It starts  keytouch-init. I don't know what keytouchd is. The 'd' at the end could mean that it's the deamon that needs to be run.  This week-end, I'll have time to read the docs and setup my keyboard.

Offline

#17 2005-11-24 04:49:50

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

[andyrtr@workstation dvbcut]$ keytouchd
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  7
  Current serial number in output stream:  44
[andyrtr@workstation dvbcut]$
[root@workstation andyrtr]# /etc/rc.d/keytouch restart
:: Stopping keytouch Daemon                                                                                                                           [FAIL]
:: Starting keytouch Daemon                                                                                                                           [DONE]
[root@workstation andyrtr]# /etc/rc.d/keytouch restart
:: Stopping keytouch Daemon                                                                                                                           [FAIL]
:: Starting keytouch Daemon                                                                                                                           [DONE]
[root@workstation andyrtr]# keytouchd
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

keytouchd: Cannot connect to X server :0.0.
[root@workstation andyrtr]#

I don´t know what exactly keytouchd should do. The daemon claims about incorrect stopping but seems to start right. For me it works fine.

@snowman: Yes. This error occurs when no keyboard is configured. Just use the keytouch-editor.

Offline

#18 2005-11-24 22:01:32

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

What works:

- Browser(Firefox) forward, backward, reload
- Opening some apps: kcalc and klear I set to open
- XMMS everything works: play/pause, skip forward/backward, stop
- lock screen
- Mixer muting with AUMIX plugin

Not working:

- browser: cancel loading, homepage, search
- mail: anything with the plugin "mail" - wanted to open "write a new mail"
- AUMIX - volume increase / decrease

Going to have a deeper lock at the configuration...

And we should add a .install file to tell people that some more applications should be installed to use the plugins. E.g. I had to install aumix.

Offline

#19 2005-11-28 00:41:11

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

After Rebooting (I added it to rc.conf) the additional keys don´t work. When I try to apply some setting changes:

[andyrtr@workstation ~]$ keytouch
keytouchd: Kein Prozess abgebrochen
[andyrtr@workstation ~]$

So I guess in the script the daemon should be called keytouchd ;-) I tried that and it seems to solve that issue.

Even then always an error occurs while stopping it. Hm. Any idea?

Offline

#20 2005-11-28 07:13:30

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: making pkgbuild for keytouch

I just finished seting up my keyboard file (altough a few buttons remains to be defined).

1. volume up/down: it works with the amixer plugin. Add this to your PKGBUILD:
http://dl.sourceforge.net/keytouch/keyt … 1.0.tar.gz
  cd $startdir/src/amixer
  make || return 1
  install -D -m755 amixer.so $startdir/pkg/usr/share/keytouch/plugins/amixer.so
I assume you know what modifications to make wink. It uses amixer which is in alsa-utils. I might try the Aumixer later to see if it works here.

2. .install file: Sure, altough some plugins are self explanatory (i.e. the Amarok plugin).

3. daemon script: I will work on it tomorrow.

Offline

#21 2005-11-28 08:10:28

MarvinR
Member
Registered: 2005-11-28
Posts: 16

Re: making pkgbuild for keytouch

Hello I am the developer of keyTouch. I read you are having some problems creating a package for it. I expected this because the installation does some special things. This week I will write an howto for packagers.
I also read some people think that the "browser" or "e-mail" functions do not work. Did these people tell keyTouch (this is done in the preferences tab) what browser and/or e-mail client they use?
Oh and yes: you need to install aumix for using the Aumix plugin.

- Marvin Raaijmakers

Offline

#22 2005-11-28 08:42:23

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

Don`t you have a forum or mailing list to discuss the usage?

Offline

#23 2005-11-28 08:56:44

MarvinR
Member
Registered: 2005-11-28
Posts: 16

Re: making pkgbuild for keytouch

AndyRTR wrote:

Don`t you have a forum or mailing list to discuss the usage?

Do you mean for the usage of the program? Well, for that I wrote a user manual.

Offline

#24 2005-11-28 09:08:18

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: making pkgbuild for keytouch

That´s fine. But as you may see there will be more problems in usage. So it would be nice to have a place to get more help.

Offline

#25 2005-11-28 10:18:38

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: making pkgbuild for keytouch

It still doesn't work here, I don't know it anymore.
I start the keytouch-init at bootup, the file "/etc/X11/Xsession.d/40keytouchd
" exists, but starting keytouchd stays complaining.
There must be some program that's overriding my keyboard I think, because that's what keytouchd says (attempt to access private resource denied)
And I have some buttons which are working (mail, volume up and down, ...) but when I set up the mail-button to launch a custom program, it keeps launching my email client, so something is capturing the keycode before keytouch...
I found out the x_grabkey error might have something to do with gnome, is there anyone who can get keytouch running on gnome?

Offline

Board footer

Powered by FluxBB