
This section contains useful tips to troubleshoot btnx problems.
Usually, previous hacks at the input interface to get a mouse working causes problems for btnx. You should revert all those changes if you experience problems with btnx. If you have trouble remembering what you changed, this section provides some good default values that might work for you.
| 1. | The mouse sends extra events events when pressing a button. |
If you are getting multiple and identical events during one button press, check this section first. The list below gives some possible reasons and solutions to the problem.
| |
| 2. | btnx doesn't recognize all my buttons. |
A couple of possible solutions:
| |
| 3. | Mouse detection gives me a "Device ID conflict detected" error. |
This error means that mouse detection detected more than one input device. btnx only supports a single input device at a time, currently. btnx-config uses Vendor and Product IDs to identify different input devices. Make sure you only use your mouse during mouse detection. Do not press any keyboard buttons. If you have multiple mice, only move the one that you want detected. Do not interact with any other possible input devices. If your mouse has multiple event handlers and each uses a different set of Vendor and Product IDs, then btnx cannot help you. If the problem happens when you press a certain button, then leave that button alone and do not use it with btnx. | |
| 4. | Button detection gives me a "Button detection problem" error. |
There are a couple of possible solutions.
| |
| 5. | I've configured my mouse. Nothing is happening. |
| |
| 6. | The same event happens multiple times when pressing a button. |
Try enabling the Force immediate button release setting in the General button properties group. This could also be a sensitivity problem with your mouse, or not. In any case, you should increase the delay value for that button in btnx-config (see Delay property). This will prevent the button from sending multiple events in a certain time frame. Also, make sure only one btnx process is running at a time. | |
| 7. | btnx doesn't work after upgrading. |
If you are upgrading from btnx-0.2.x, make sure you uninstall it first before installing the new version of btnx. Also, make sure you are not using the old (pre 0.3.0) configuration files. They no longer work. | |
| 8. | btnx doesn't work after plugging in a mouse of after standby. |
Make sure you have enabled hot-plugging in the Advanced settings (see Enable hot-plugging). It is possible that btnx will not start correctly after standby if you have the WAIT_FOR_SYSFS setting enabled. | |
| 9. | Booting hangs for a minute or two after installing btnx. |
Disable the WAIT_FOR_SYSFS setting. If you do not need hot-plugging, you can also disable that setting. (see Enable hot-plugging) |
| 1. | A working |
Most problems with btnx arise from different Most user's have found that changing the Driver, Protocol, and Device options to the reference values below has fixed their problems. Most importantly, make sure you are not using the evdev driver.
WarningLaptop users should not edit their Synaptics touchpad settings. WarningDo not blindly copy the example below. Changing the WarningMake sure you know how to edit the Below is a working
You may also try to use You can edit your
Save all your work and press Ctrl+Alt+Backspace
to restart X. This will close your programs and your desktop! | |
| 2. | Running xev |
Install xev if you don't have it. Run xev by typing
Then, press the button which is giving you problems. For example, pressing the left mouse button
outputs something like the following:
Note the button number, button 1, reported by xev. The number
will depend on the button you press.You can also use xev to check whether btnx is sending the
correct keys when pressing a mouse button. In this case, look for a | |
| 3. | xmodmap |
xmodmap can be used to change the behavior of a button in X. This is sometimes useful for buttons that are interpreted by xserver and sending an event. A common problem is that a button also sends a right click, opening up a menu. Use xev (see "Running xev") to find out what button number is being sent. Now, bind that button number to a higher one, one that is not handled by your window manager. Let's say a certain mouse button also sends a button number 6. The following shell command tells X to send a button 9 when it wants to send a button 6 event.
Note, that 6 and 9 have changed places. If that doesn't work, try switching to another number, like 8 or 7.
Now, add the line that worked for you in your ~/.Xmodmap file. Using the previous example, you would add
the following:
This will make the change persist on reboots. | |
| 4. | Installing lomoco |
lomoco is useful if your mouse wheel sends extra button events when scrolling. Another problem is mice with Cruise Control. Some buttons might give multiple events when pressing them. Here are tim71's instructions for installing and using lomoco.
| |
| 5. | Check that the mouse is recognized as a USB input device. |
btnx might not work correctly if your mouse is not recognized as a USB input device. Make sure you aren't using a USB->PS/2 adapter with your mouse. You can check that the mouse is reported as a USB device with the following command:
Now, find the section that refers to your mouse. The section should look something like this:
Check that the line starting with "P: Phys=" contains the word
"usb". You can also check the output of that file to see if btnx
registered correctly as an input device. Look for a section with Vendor=b216.
|
If you went through this troubleshooting section and didn't find a solution to your problem, you can then contact me, the developer, directly. You can also post your problem or question on the btnx thread at the Ubuntu forums. I try to check on it as often as I can.
Email: Olli Salonen (oasalonen AT gmail.com)
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team