Page 78 of 128 FirstFirst ... 2868767778798088 ... LastLast
Results 771 to 780 of 1273

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

  1. #771
    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 slughappy1 View Post
    I bought a Logitech VX Nano and am trying to get it to work. But it would appear that the program is running but NOT working. I have followed the configuration guide but nothing changes on the mouse. I am trying to make the forward and backward buttons to work. But when I click on the forward button it just acts like a right click, and when I click on the backwards button nothing happens. My current xorg.conf looks like:
    Code:
    Section "InputDevice"
        Identifier    "Configured Mouse"
        Driver        "mouse"
        Option        "CorePointer"
        Option        "Device"        "/dev/input/mice"
        Option        "Protocol"        "ImPS/2"
        Option        "ZAxisMapping"        "4 5"
        Option        "Emulate3Buttons"    "true"
    EndSection
    I tried to change it to:
    Code:
    Section "InputDevice"
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol"        "auto"
        Option         "Device"          "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping"    "4 5"
        Option         "Buttons"         "3"
    EndSection
    But when I rebooted it it just crashed my system. So I had to restore my original xorg.conf.

    Any thoughts of how I can fix this problem?
    Your edited xorg.conf was correct, except you edited the Identifier which probably caused the crash. So reedit the xorg.conf file, but this time, do not change the Identifier value (leave it to "Configured mouse" or whatever name is used in your InputDevice name at the ServerLayout section)
    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. #772
    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 Gourgi View Post
    i have btnx installed in ubuntu hardy alpha 4 and works fine (i firstly had to "force immidiately release" and set "repeat delay" to 200 )
    my mouse's brand is Sweex , model name MI560 , more info here :
    i have used btnx's subversion 0.4.6 , not the stable

    btnx is a great tool and this how to is absolutely great
    Good to hear it still works in hardy. Did you have to edit your xorg.conf at all? By the way, be careful with the SVN version. I might commit an nonworking version there, although I usually try to avoid it. But I make no commitment to keep a working version there.
    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!

  3. #773
    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 dondad View Post
    I only see 0.4.6 in btnx-config. I installed it exactly as shown in the quoted tutorial. The problem I have is getting the buttons detected in the first place. It detects the mouse, with 2 handlers, the same as it did in Gutsy, but when I try to detect the buttons, nothing happens. The program does not crash or anything and I can exit it normally, but the bar never fills after clicking the detect button menu.
    Could you post the edited xorg.conf? Do you still have a backup of the original hardy one so I can have a look at that as well?

    I might try to get Hardy installed on one of my computers to see if something important has changed. btnx seems to work on Hardy, but with more frequent problems.
    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!

  4. #774
    Join Date
    Sep 2007
    Location
    Pteleos Greece
    Beans
    408
    Distro
    Ubuntu Development Release

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

    Quote Originally Posted by daou View Post
    Good to hear it still works in hardy. Did you have to edit your xorg.conf at all?
    i edited my xorg before i even think of using btnx

    here is my xorg :
    Code:
    ##### GGT #################################
    ### lastly generated 6/2/2008 #############
    ## changelog : ############################
    # added 5button mice support , this also works with btnx
    # fix screen resolustion to 1280*1024@85Hz (wrong recognition as 72Hz), nvidia-glx-new
    # compiz-fusion & emerald working set :D
    
    #### /GGT #################################
    
    
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
    EndSection
    
    Section "Files"
        RgbPath         "/usr/X11R6/lib/X11/rgb"
    EndSection
    
    Section "Module"
        Load           "dbe"
        Load           "extmod"
        Load           "type1"
        Load           "freetype"
        Load           "glx"
    EndSection
    
    Section "ServerFlags"
        Option         "Xinerama" "0"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
    # GGT
        Option         "CorePointer"
        Option         "Device" "/dev/input/mice" 
        Option         "Protocol" "ExplorerPS/2"
        Option         "Buttons" "7"
        Option         "ButtonMapping" "1 2 3 6 7"
        #Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "true"
    # /GGT
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
        # HorizSync source: edid, VertRefresh source: edid
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "LG F900P"
        HorizSync       30.0 - 111.0
        VertRefresh     50.0 - 160.0
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Videocard0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 6600 GT"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Videocard0"
        Monitor        "Monitor0"
        DefaultDepth    24
        Option         "TwinView" "0"
        Option         "TwinViewXineramaInfoOrder" "CRT-0"
    # GGT
        # Option         "metamodes" "nvidia-auto-select +0+0"
        Option		"NoLogo"	"True"
    # /GGT
        SubSection     "Display"
            Depth       24
    # GGT
            Modes      "1280x1024" "1024x768" "800x600" "640x480"
    	#Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    # /GGT
        EndSubSection
    EndSection
    i'm not a mouse freak , i only needed btnx to navigate back and forward through nautilus and firefox
    here is also btnx configuration to do this:
    Code:
    # This is a btnx configuration file generated by btnx-config
    
    Mouse
    vendor_name = Sweex
    product_name = 5mouse
    vendor_id = 0x04f3
    product_id = 0x0212
    revoco_mode = 0
    revoco_btn = 3
    revoco_up_scroll = 5
    revoco_down_scroll = 5
    EndMouse
    
    Button
    name = Button1_aristero
    rawcode = 0x01011000
    enabled = 0
    type = 0
    delay = 0
    force_release = 0
    keycode = NONE
    mod1 = NONE
    mod2 = NONE
    mod3 = NONE
    EndButton
    
    Button
    name = Button2_deksi
    rawcode = 0x01011100
    enabled = 0
    type = 0
    delay = 0
    force_release = 0
    keycode = NONE
    mod1 = NONE
    mod2 = NONE
    mod3 = NONE
    EndButton
    
    Button
    name = Button3_mesaio
    rawcode = 0x01011200
    enabled = 0
    type = 0
    delay = 0
    force_release = 0
    keycode = NONE
    mod1 = NONE
    mod2 = NONE
    mod3 = NONE
    EndButton
    
    Button
    name = Button4_back
    rawcode = 0x01011300
    enabled = 1
    type = 0
    delay = 200
    force_release = 1
    keycode = KEY_LEFT
    mod1 = KEY_LEFTALT
    mod2 = NONE
    mod3 = NONE
    EndButton
    
    Button
    name = Button5_front
    rawcode = 0x01011400
    enabled = 1
    type = 0
    delay = 200
    force_release = 1
    keycode = KEY_RIGHT
    mod1 = KEY_LEFTALT
    mod2 = NONE
    mod3 = NONE
    EndButton
    Quote Originally Posted by daou View Post
    By the way, be careful with the SVN version. I might commit an nonworking version there, although I usually try to avoid it. But I make no commitment to keep a working version there.
    oki doki
    after lots of updates in hardy still no problems till now
    Quote Originally Posted by dondad
    I only see 0.4.6 in btnx-config.
    yep , i have 0.4.6 in btnx-config and btnx version is 0.4.5 (i saw it in the backuped configuration file)
    i don;t know why is not working with you.
    just an info though : i mapped only the buttons 4 and 5 through btnx , and these buttons only are enabled in btnx-config,the others buttons (button1, 2 and 3) are not enabled in btnx-config , so i guess they use xorg's default config.
    "Computers are like air conditioners, when you open WINDOW$ they stop working."
    Όσο ζώ μαθαίνω ...
    If Microsoft ever does applications for Linux it means I've won.
    Linus Torvalds

  5. #775
    Join Date
    Mar 2007
    Beans
    3

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

    Tengo un RV revolution y estoy muy contento con tu trabajo con respecto a BTNX... gracias.
    Sólo tengo un problema y es el siguiente: No se como configurar para usar un botón del ratón para cambiar de aplicación, es decir, ALT_L + TAB.
    Espero que puedas ayudarme.
    Nuevamente gracias.

    GOOGLE TRADUCTOR
    I have an RV revolution and I am very happy with your work with respect to BTNX ... Thanks.
    I just have a problem and is the following: Is it possible to use a set button mouse for switching between applications, ie ALT_L + TAB.
    I hope you can help me.
    Again thanks.

  6. #776
    Join Date
    Sep 2007
    Location
    Pteleos Greece
    Beans
    408
    Distro
    Ubuntu Development Release

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

    Quote Originally Posted by Mushindo View Post
    Tengo un RV revolution y estoy muy contento con tu trabajo con respecto a BTNX... gracias.
    Sólo tengo un problema y es el siguiente: No se como configurar para usar un botón del ratón para cambiar de aplicación, es decir, ALT_L + TAB.
    Espero que puedas ayudarme.
    Nuevamente gracias.

    GOOGLE TRADUCTOR
    I have an RV revolution and I am very happy with your work with respect to BTNX ... Thanks.
    I just have a problem and is the following: Is it possible to use a set button mouse for switching between applications, ie ALT_L + TAB.
    I hope you can help me.
    Again thanks.
    yes you can
    look here (picture attached)
    Attached Images Attached Images
    "Computers are like air conditioners, when you open WINDOW$ they stop working."
    Όσο ζώ μαθαίνω ...
    If Microsoft ever does applications for Linux it means I've won.
    Linus Torvalds

  7. #777
    Join Date
    Apr 2007
    Location
    Washington state
    Beans
    350
    Distro
    Ubuntu Development Release

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

    Quote Originally Posted by daou View Post
    Could you post the edited xorg.conf? Do you still have a backup of the original hardy one so I can have a look at that as well?

    I might try to get Hardy installed on one of my computers to see if something important has changed. btnx seems to work on Hardy, but with more frequent problems.
    Here they are:
    Code:
    Original 
    
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    EndSection
    
    
    edited: (this is the same as the gutsy one that works [same computer, dual boot])
    
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option		"CorePointer"
    	Option		"Device"	"/dev/input/mice"
    	Option		"Protocol"	"ImPS/2"
    	Option		"ZAxisMapping"	"4 5"
    	Option		"Emulate3Buttons"	"true"
    EndSection
    After the latest updates, it started crashing when I tried to detect the buttons. Just for grins, I tried taking the configuratin backup from the gutsy install and it sorta worked for a bit, but then the mouse really started acting weird, putting out continuous characters and disabling everything. I killed it then uninstalled butnx and deleted the folders. I can reinstall if anyone has something to try. This hardy install is for playing/testing, so I don't mind trying stuff if it will help debug. If it breaks the system, I can reinstall, no problem.

    The way it is acting, I am wondering if the Hardy defaults take over some of the mouse buttons and is interfering with btnx. For instance, if I push the button on top of the mouse (after a normal hardy and btnx install, no changes), it opens the file search. (this is an MX Revolution mouse) I fixed that by changing the hot key for the search, but I wonder if the buttons are being intercepted by the xsystem. I don't know how to make that go away if that is the case.

  8. #778
    Join Date
    Jul 2007
    Location
    Salt Lake City, Utah
    Beans
    487
    Distro
    Ubuntu 9.10 Karmic Koala

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

    Ok, so I re-edited my xorg file so it looks like:
    Code:
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option         "Protocol"        "auto"
            Option         "Device"          "/dev/psaux"
            Option         "Emulate3Buttons" "no"
            Option         "ZAxisMapping"    "4 5"
            Option         "Buttons"         "3"
    EndSection
    and my btnx-config looks like the picture I attached. But it still doesn't actually work. When I press the two front buttons on my VX Nano (forwards and backwards) don't do anything. Although when I press the forward button it no longer acts like the right button, so that's a step forward. What else can I do?
    Attached Images Attached Images

  9. #779
    Join Date
    Mar 2007
    Beans
    3

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

    Quote Originally Posted by Gourgi View Post
    yes you can
    look here (picture attached)
    Gracias por tu interés, pero esa configuración no soluciona mi problema.
    Deseo cambiar de aplicación visual pulsando a un botón del ratón.
    Al parecer la función ALT_LEFT + TAB no se realiza correctamente cuando se usan al mismo tiempo. Se tendría que usar primero ALT_LEFT y posteriormente TAB.
    Un saludo a todos.

    Google traslator:
    Thanks for your interest, but this configuration does not solve my problem.
    I want to change visibility application by pressing a button on the mouse.
    Apparently the role ALT_LEFT + TAB is not performed correctly when used at the same time. It should be used first and then ALT_LEFT TAB.
    A greeting to all.

  10. #780
    Join Date
    Aug 2007
    Location
    Midwest, USA
    Beans
    64
    Distro
    Ubuntu 8.10 Intrepid Ibex

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

    Thanks, that partially worked, I had to change the
    Code:
    if [ $RET -eq 2 ]; then
    to the following
    Code:
    if [ $RET -ne 0 ]; then
    because btnx would error out with 152 if it couldn't find that mouse.
    Code:
    btnx successfully stopped
     btnx: uinput modprobed successfully.
     btnx: Opening config file: /etc/btnx/btnx_config_MX500
     btnx: Opened handler: /dev/input/event0
     btnx: Opened handler: /dev/input/event1
     btnx: Opened handler: /dev/input/event2
     btnx: Opened handler: /dev/input/event3
     btnx: Opened handler: /dev/input/event4
     btnx: Opened handler: /dev/input/event5
     btnx: Opened handler: /dev/input/event6
     btnx: Opened handler: /dev/input/event7
     btnx: Opened handler: /dev/input/event8
     btnx: Opened handler: /dev/input/event9
     btnx: Opened handler: /dev/input/event10
     btnx: Opened handler: /dev/input/event11
     btnx: Opened handler: /dev/input/event12
     btnx: Error opening button event file descriptor: No such file or directory
    152
    I'm going to work on it a bit and do a bit more elegant solution envolving loop through all configs present (for those with multiple mice like me).

    Also is there a way to make it start quietly without all of the "Opening Handler" messages?

Page 78 of 128 FirstFirst ... 2868767778798088 ... 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
  •