Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btnx startup #5

Open
oliwa7 opened this issue Apr 9, 2019 · 9 comments
Open

btnx startup #5

oliwa7 opened this issue Apr 9, 2019 · 9 comments

Comments

@oliwa7
Copy link

oliwa7 commented Apr 9, 2019

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 oliwa7 closed this as completed Apr 9, 2019
@jgierer12
Copy link

@oliwa7 Have you been able to resolve this? I'm getting the same error

@cdobrich
Copy link
Owner

@jgierer12 @oliwa7 This is issue was marked closed, but if you are both having errors, I would like to know.

@jgierer12
Copy link

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

@cdobrich
Copy link
Owner

@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.

@jgierer12
Copy link

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

@ymoymo
Copy link

ymoymo commented May 31, 2020

@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

@cdobrich cdobrich reopened this Jun 1, 2020
@cdobrich
Copy link
Owner

cdobrich commented Jun 1, 2020

@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?

@a-abdellatif98
Copy link

@cdobrich @jgierer12 @oliwa7 Have you been able to resolve this? I'm getting the same error

@cdobrich
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants