Giter VIP home page Giter VIP logo

Comments (9)

jgierer12 avatar jgierer12 commented on June 24, 2024

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

from btnx.

cdobrich avatar cdobrich commented on June 24, 2024

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

from btnx.

jgierer12 avatar jgierer12 commented on June 24, 2024

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

from btnx.

cdobrich avatar cdobrich commented on June 24, 2024

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

from btnx.

jgierer12 avatar jgierer12 commented on June 24, 2024

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

from btnx.

ymoymo avatar ymoymo commented on June 24, 2024

@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

from btnx.

cdobrich avatar cdobrich commented on June 24, 2024

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

from btnx.

a-abdellatif98 avatar a-abdellatif98 commented on June 24, 2024

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

from btnx.

cdobrich avatar cdobrich commented on June 24, 2024

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

from btnx.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.