Page 62 of 128 FirstFirst ... 1252606162636472112 ... LastLast
Results 611 to 620 of 1273

Thread: btnx: Send keyboard and mouse combination events with mouse buttons

  1. #611
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by jamesford View Post
    hey that looks nice *adds it to liferea*

    edit: just did a clean uninstall as described above and installed 0.4.1, seems to work just fine however i now have 2 instances of btnx in the system monitor one with nice 0 and one with nice -2
    It's possible the old btnx process is still running. The newer version of btnx should not allow multiple btnx processes running, but its possible the old version did not register itself to the PID file.

    You can consider it a bug if you still have 2 btnx processes running after rebooting.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  2. #612
    Join Date
    Jul 2005
    Beans
    574
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    i did reboot after uninstalling and installing the new version (i wanted to see if the btnx loading error was gone - which it was)


    edit:just did another reboot to confirm. still 2x btnx running :/
    Last edited by jamesford; December 8th, 2007 at 01:48 AM.
    hardy 64 bit

  3. #613
    Join Date
    Nov 2007
    Beans
    15
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by jamesford View Post

    edit:just did another reboot to confirm. still 2x btnx running :/
    the same here
    root@francois-desktop:/var/run# ps -fe | grep btnx
    root 4316 1 0 13:24 ? 00:00:00 /usr/sbin/btnx -b
    root 6014 1 0 13:24 ? 00:00:00 /usr/sbin/btnx -b
    root@francois-desktop:/var/run# ls | grep btnx | xargs cat
    6014
    root@francois-desktop:/etc/btnx# cat /etc/udev/rules.d/99-btnx.rules
    BUS=="usb", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c51a", ACTION=="add", RUN+="/etc/init.d/btnx start"
    BUS=="usb", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c51a", ACTION=="remove",
    with two process running :
    root@francois-desktop:/etc/btnx# /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    sed: impossible de lire /var/run/btnx.pid: Aucun fichier ou répertoire de ce type
    btnx successfully stopped
    root@francois-desktop:/etc/btnx# /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    btnx successfully stopped
    root@francois-desktop:/etc/btnx# /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    btnx successfully stopped
    etc.. Always one process running

    my 2 cents : I think it's caused by the udev rules and the startup script not detecting other btnx running. or I don't know but Daou does
    Last edited by francois12; December 8th, 2007 at 02:05 PM.

  4. #614
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by francois12 View Post
    the same here
    with two process running :

    my 2 cents : I think it's caused by the udev rules and the startup script not detecting other btnx running. or I don't know but Daou does
    I'm not getting this problem. I have one btnx process running at a time. Is it a problem? Are you getting double events (both btnx's catch a button event and send keyboard combos)?

    This is because of the udev rule, yes. The problem is with the MX Revolution mouse, because it registers itself to the system as 2 devices (one for the mouse, another just for the search button). udev runs the rule twice, and tries to start btnx twice. This is why I made the PID file, and forced btnx to kill all old processes found in that file. Then again, I'm not sure why one process isn't killing the other one.

    Can you make sure it's not a zombie process?

    I'm just not sure why I'm not able to reproduce this bug.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  5. #615
    Join Date
    Nov 2007
    Beans
    15
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by daou View Post
    I'm not getting this problem. I have one btnx process running at a time. Is it a problem? Are you getting double events (both btnx's catch a button event and send keyboard combos)?

    This is because of the udev rule, yes. The problem is with the MX Revolution mouse, because it registers itself to the system as 2 devices (one for the mouse, another just for the search button). udev runs the rule twice, and tries to start btnx twice. This is why I made the PID file, and forced btnx to kill all old processes found in that file. Then again, I'm not sure why one process isn't killing the other one.

    Can you make sure it's not a zombie process?

    I'm just not sure why I'm not able to reproduce this bug.
    Yes, I did a reboot of my computer and a button event was catch 3 times (before it was 2) and only 2 btnx are running :

    francois@francois-desktop:~$ ps -fe | grep btnx
    root 4482 1 0 14:37 ? 00:00:00 /usr/sbin/btnx -b
    root 6102 1 0 14:37 ? 00:00:00 /usr/sbin/btnx -b
    francois 6597 6579 0 14:38 pts/0 00:00:00 grep btnx

    francois@francois-desktop:~$ sudo /etc/init.d/btnx stop
    [sudo] password for francois:
    Stopping btnx : Button Extension - mouse button rerouter daemon
    sed: impossible de lire /var/run/btnx.pid: Aucun fichier ou répertoire de ce type
    btnx successfully stopped

    francois@francois-desktop:~$ ps -fe | grep btnx
    root 4482 1 0 14:37 ? 00:00:00 /usr/sbin/btnx -b
    francois 6714 6579 0 14:41 pts/0 00:00:00 grep btnx

    A button event is catched one time

    francois@francois-desktop:~$ sudo /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    btnx successfully stopped

    francois@francois-desktop:~$ ps -fe | grep btnx
    root 4482 1 0 14:37 ? 00:00:00 /usr/sbin/btnx -b
    francois 6738 6579 0 14:42 pts/0 00:00:00 grep btnx



    A button event is catched one time
    sudo /etc/init.d/btnx stop is not able to kill the other process running (4482) because there is no PID file for it (ls /var/run | grep btnx shows nothing)
    Last edited by francois12; December 8th, 2007 at 02:56 PM.

  6. #616
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by francois12 View Post
    Yes, I did a reboot of my computer and a button event was catch 3 times (before it was 2) and only 2 btnx are running :
    I did a couple of reboots, still only one process for me. You are running 0.4.1?

    You can try commenting out "do_stop" at lines 136 and 183 in the file "/etc/init.d/btnx"

    If nothing seems to help, try disabling hot-plugging in the advanced settings tab of btnx-config.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  7. #617
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    francois12 and jamesford: could you test the new btnx in the SVN repository. I think I found and fixed the bug, but I can't test it myself.

    If you have subversion installed, make a directory, check out the latest source from SVN, build btnx, and install it.

    Code:
    $ mkdir btnx-svn
    $ cd btnx-svn
    $ svn co http://svn.ollisalonen.com/btnx/trunk
    $ cd trunk
    $ make
    $ sudo make install
    Then test if it fixes the problem. I will release a new btnx version if it does. Thanks a lot for your time.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  8. #618
    Join Date
    Nov 2007
    Beans
    15
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by daou View Post
    francois12 and jamesford: could you test the new btnx in the SVN repository. I think I found and fixed the bug, but I can't test it myself.

    If you have subversion installed, make a directory, check out the latest source from SVN, build btnx, and install it.

    Code:
    $ mkdir btnx-svn
    $ cd btnx-svn
    $ svn co http://svn.ollisalonen.com/btnx/trunk
    $ cd trunk
    $ make
    $ sudo make install
    Then test if it fixes the problem. I will release a new btnx version if it does. Thanks a lot for your time.
    that's working great, thanks
    how did you fix this?
    keep up the good work man

  9. #619
    Join Date
    Jun 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by francois12 View Post
    that's working great, thanks
    how did you fix this?
    keep up the good work man
    Just removed one line from the source code . It was my mistake originally, but I didn't catch it because somehow it didn't cause a problem on my system.

    But thanks, v.0.4.2 will be out soon.
    echo -e "\x6f\x61\x73\x61\x6c\x6f\x6e\x65\x6e\x40\x67 \b\x6d\x61\x69\x6c\x2e\x63\x6f\x6d"
    It compiles! Ship it!

  10. #620
    Join Date
    Nov 2007
    Beans
    15
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: btnx: Send keyboard and mouse combination events with mouse buttons

    Quote Originally Posted by daou View Post
    Just removed one line from the source code . It was my mistake originally, but I didn't catch it because somehow it didn't cause a problem on my system.

    But thanks, v.0.4.2 will be out soon.
    ok, as I see the btnx.pid file shows now two pid's :
    francois@francois-desktop:/var/run$ cat btnx.pid
    7554 7596
    something annoying is always here :
    francois@francois-desktop:/var/run$ sudo /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    /sbin/start-stop-daemon: warning: failed to kill 7554: No such process
    sed: impossible de lire /var/run/btnx.pid: Aucun fichier ou répertoire de ce type
    btnx successfully stopped
    pid file is gone, the process is stopped
    francois@francois-desktop:/var/run$ sudo /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    btnx successfully stopped
    francois@francois-desktop:/var/run$ sudo /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    btnx successfully stopped
    francois@francois-desktop:/var/run$ sudo /etc/init.d/btnx stop
    Stopping btnx : Button Extension - mouse button rerouter daemon
    btnx successfully stopped ETC..
    Last edited by francois12; December 8th, 2007 at 04:04 PM.

Page 62 of 128 FirstFirst ... 1252606162636472112 ... LastLast

Bookmarks

Posting Permissions

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