Git Product home page Git Product logo

Comments (28)

sezanzeb avatar sezanzeb commented on May 18, 2024 1

The difficulty is, that mice don't report end events for that. So I'll have to detect the end of that myself. Some experimental stuff exists but I need to think about it for some more time. I also think I need a break after working almost non-stop on key-mapper in my free time for over two months.

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024 1

https://github.com/sezanzeb/key-mapper#ubuntudebian

no, just build it and install it

I'll make release 0.6.0 possibly next weekend, you'll also get the deb from there

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

Hi, thanks for posting an issue!

First, please install the latest source. Afterwards, can you run sudo key-mapper-gtk -d and try to set your buttons 6 and 7 to something? Post the output here.

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

Key Mapper_007
I installed - key-mapper-0.4.0.deb
I pressed button 6 and 7 a couple times.

Loaded config from "/home/jb/.config/key-mapper/config.json"
Writing "/home/jb/.config/key-mapper/xmodmap.json"
INFO: logger.py, line 116, Could not figure out the version
DEBUG: logger.py, line 117, The 'key-mapper' distribution was not found and is required by the application
WARNING: logger.py, line 120, Debug level will log all your keystrokes! Do not post this output in the internet if you typed in sensitive or private information with your device!
DEBUG: logger.py, line 126, pid 9765
DEBUG: data.py, line 86, Found data at "/usr/share/key-mapper"
DEBUG: getdevices.py, line 93, Discovering device paths
SPAM: getdevices.py, line 116, Found "Logitech M705", /dev/input/event11, usb-0000:00:1d.2-1
SPAM: getdevices.py, line 116, Found "HP WMI hotkeys", /dev/input/event7, wmi
SPAM: getdevices.py, line 116, Found "ST LIS3LV02DL Accelerometer", /dev/input/event6, lis3lv02d
SPAM: getdevices.py, line 116, Found "SynPS/2 Synaptics TouchPad", /dev/input/event5, isa0060
SPAM: getdevices.py, line 116, Found "Video Bus", /dev/input/event4, LNXVIDEO
SPAM: getdevices.py, line 116, Found "AT Translated Set 2 keyboard", /dev/input/event3, isa0060
SPAM: getdevices.py, line 116, Found "Sleep Button", /dev/input/event0, PNP0C0E
INFO: getdevices.py, line 179, Found "Logitech M705", "HP WMI hotkeys", "ST LIS3LV02DL Accelerometer", "SynPS/2 Synaptics TouchPad", "Video Bus", "Sleep Button"
DEBUG: presets.py, line 144, The newest preset is "Logitech M705", "Activities"
DEBUG: window.py, line 422, Selecting device "Logitech M705"
DEBUG: window.py, line 241, "Logitech M705" presets: "Activities", "new preset"
DEBUG: window.py, line 469, Selecting preset "Activities"
INFO: mapping.py, line 139, Loading preset from "/home/jb/.config/key-mapper/presets/Logitech M705/Activities.json"
SPAM: mapping.py, line 175, (1, 274, 1) maps to super_l
DEBUG: getdevices.py, line 93, Discovering device paths
SPAM: getdevices.py, line 116, Found "Logitech M705", /dev/input/event11, usb-0000:00:1d.2-1
SPAM: getdevices.py, line 116, Found "HP WMI hotkeys", /dev/input/event7, wmi
SPAM: getdevices.py, line 116, Found "ST LIS3LV02DL Accelerometer", /dev/input/event6, lis3lv02d
SPAM: getdevices.py, line 116, Found "SynPS/2 Synaptics TouchPad", /dev/input/event5, isa0060
SPAM: getdevices.py, line 116, Found "Video Bus", /dev/input/event4, LNXVIDEO
SPAM: getdevices.py, line 116, Found "AT Translated Set 2 keyboard", /dev/input/event3, isa0060
SPAM: getdevices.py, line 116, Found "Sleep Button", /dev/input/event0, PNP0C0E
INFO: getdevices.py, line 179, Found "Logitech M705", "HP WMI hotkeys", "ST LIS3LV02DL Accelerometer", "SynPS/2 Synaptics TouchPad", "Video Bus", "Sleep Button"
DEBUG: reader.py, line 117, Starting reading keycodes from "Logitech M705"
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
DEBUG: window.py, line 184, Closing window
DEBUG: reader.py, line 79, Sending close msg to reader
DEBUG: pid 9776, reader.py, line 158, Reader stopped
DEBUG: window.py, line 184, Closing window

(key-mapper-gtk:9765): Gtk-CRITICAL **: 13:01:15.746: gtk_main_quit: assertion 'main_loops != NULL' failed

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

I mean using the instructions here: https://github.com/sezanzeb/key-mapper#ubuntudebian, involving the git clone

Since I can't see button 6 and 7 in the log, lets go one level deeper and use evtest

run sudo evtest and send me the events caused by your two buttons please (after clicking the defaults button)

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

I think you copied some sort of previous console output into your terminal

And it seems you didn't execute sudo dpkg -i ./dist/key-mapper-0.4.0.deb

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

Don't worry!

Copying the instructions line by line, executing each one individually, is the safest way. Copying and pasting multiple at once sometimes doesn't work if one of the commands suddenly expects input.

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

that one will be fixed be the next command sudo apt -f install

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

I can't see any attachment

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

I just filtered the input from mouse-movement events, and this is what is left over:

Event: time 1609522127.108917, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522127.108917, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1609522127.300908, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522127.300908, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1609522154.899485, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522154.899485, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1609522155.077489, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522155.077489, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0

So evtest doesn't report mouse 6 and 7. I don't know how xev would be able to detect anything in that case.

Did you make sure to use "Restore Defaults" before running evtest? Or was an injection ongoing?

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

*ah, injection couldn't be active, it would be visible in evtest.

So your mouse buttons don't do anything. Are you sure they are visible in xev?

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

please run xev | grep button -B2 and try again (EDIT: forget about that, that doesn't show what I thought it shows)

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

it's probably

Event: time 1609522136.349847, type 2 (EV_REL), code 6 (REL_HWHEEL), value -1
Event: time 1609522136.349847, type 2 (EV_REL), code 12 (REL_HWHEEL_HI_RES), value -120

then. very interesting. key-mapper can't map that yet indeed. I'm currently working on something somewhat similar with gamepad joysticks, I'll probably include a way to map scroll wheel actions

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

Try this branch please:

https://github.com/sezanzeb/key-mapper/tree/wheel-attempt-2

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

Ah, I forgot to mention, the git clone command changes if you want to clone a different branch to:

git clone -b wheel-attempt-2 https://github.com/sezanzeb/key-mapper.git

from input-remapper.

sojusnik avatar sojusnik commented on May 18, 2024

Same here on a Logitech M590.

$ xev | grep button
    state 0x0, button 6, same_screen YES
    state 0x0, button 6, same_screen YES
    state 0x0, button 7, same_screen YES
    state 0x0, button 7, same_screen YES

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

@sojusnik please try this branch: git clone -b wheel-attempt-2 https://github.com/sezanzeb/key-mapper.git

nobody gave me feedback yet if it works properly, the feature is basically finished and has unittests. Which distro are you on?

  • For ubuntu: build the deb file
  • For manjaro: try cd key-mapper && sudo pip install .

You'll know if you installed it correctly if "shift + del" activates the "restore defaults" button, because that is also new.

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

well, lets just hope that it works well for everybody. pushed it to main

from input-remapper.

sojusnik avatar sojusnik commented on May 18, 2024

For ubuntu: build the deb file

What's the correct way to "build" a .deb file on Ubuntu?

I'm currently using the 0.5.0.deb from here.
Do I have to uninstall this .deb file, before building the updated .deb?

from input-remapper.

jim8989 avatar jim8989 commented on May 18, 2024

from input-remapper.

sezanzeb avatar sezanzeb commented on May 18, 2024

I see, don't worry too much about the stuff here

from input-remapper.

Related Issues (20)

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.