btnx startup
Hi,
I am having trouble successfully installing btnx. There are no errors after ./configure, make or make install, however once I run 'btnx' I get the error below.
btnx: uinput modprobed successfully. btnx: Could not read the config manager file: No such file or directory Segmentation fault (core dumped)
I am running a fresh install of Ubuntu 18.04.
Any help would be much appreciated.
Many thanks.
@oliwa7 Have you been able to resolve this? I'm getting the same error
@jgierer12 @oliwa7 This is issue was marked closed, but if you are both having errors, I would like to know.
After playing around with it a bit today, I have been able to identify and resolve the issue. The problem was that I'm using Wayland, which by default doesn't support running GUI applications such as btnx-config as root.
To circumvent this, I temporarily allow the root user to access the local user's X session by running
xhost +si:localuser:root
Then I run btnx-config with sudo and configure my mouse
sudo btnx-config
Finally, after closing btnx-config, I revoke the root access with
xhost -si:localuser:root
@jgierer12 What distro and version of Linux are you running? If there are additional configuration steps necessary, I would like to document them.
I have been running Ubuntu since at least 18.04 where Wayland was default. I have not needed to make any xhost changes.
The only major change I had to make was starting to use from command line:
sudo btnx-config
Instead of kdesu. I have tried to note this in the documentation on this github when I became aware of the underlying permissions and privilege elevation changes going on.
I'm using Manjaro.
Details
Host: XPS 13 9370 OS: Manjaro Linux x86_64 Kernel: Linux 5.0.7-1-MANJARO CPU: Intel i7-8550U (8) @ 4.0GHz GPU: Intel UHD Graphics 620 Memory: 2715MiB / 15756MiB Resolution: 1920x1080 @ 59.96Hz Packages: 1384 (pacman) Shell: fish 3.0.2 Terminal: tilix DE: GNOME 3.32.0 Theme: vimix-doder Icons: Suru++ Font: Inter 13
@jgierer12 @oliwa7 This is issue was marked closed, but if you are both having errors, I would like to know. FYI Same problem here under Xorg (Wayland is not an option for me) and Ubuntu 20.04 Thx for your help ERROR LOG btnx successfully stopped btnx: uinput modprobed successfully. btnx: Opening config file: /etc/btnx/btnx_config_mouseperfMX btnx: No configured mouse handler detected: No such file or directory btnx: Looped through all configurations. Stopping. btnx: Configuration file error. btnx failed to start during restart
@jgierer12 @oliwa7 This is issue was marked closed, but if you are both having errors, I would like to know. FYI Same problem here under Xorg (Wayland is not an option for me) and Ubuntu 20.04 Thx for your help ERROR LOG btnx successfully stopped btnx: uinput modprobed successfully. btnx: Opening config file: /etc/btnx/btnx_config_mouseperfMX btnx: No configured mouse handler detected: No such file or directory btnx: Looped through all configurations. Stopping. btnx: Configuration file error. btnx failed to start during restart
Can you post your configuration files, including the file path and file name you are using for the configuration file?
Is there any more to your error log?
@cdobrich @jgierer12 @oliwa7 Have you been able to resolve this? I'm getting the same error
@cdobrich @jgierer12 @oliwa7 Have you been able to resolve this? I'm getting the same error
What is the mouse you are trying to use with BTNX, by the way?
I mostly maintain BTNX for older mice. There is a more active newer application called Piper which is better for most modern mice. https://github.com/libratbag/piper
I only use BTNX when the mouse is not supported by Piper anymore.