iberianpig / fusuma-plugin-sendkey

Fusuma plugin that sending virtual keyboard events
MIT License
72 stars 2 forks source link

sendkey doesn't work #33

Closed Harryl7 closed 1 year ago

Harryl7 commented 1 year ago

there is a strange log before the log of my first gesture

I, [2023-09-25T20:30:55.156555 #6967]  INFO -- : reload config: /home/harry/.config/fusuma/config.yml
I, [2023-09-25T20:30:55.156653 #6967]  INFO -- : ---------------------------------------------
I, [2023-09-25T20:30:55.156977 #6967]  INFO -- : Fusuma: 3.1.0
I, [2023-09-25T20:30:55.158419 #6967]  INFO -- : libinput: 1.20.0
I, [2023-09-25T20:30:55.158488 #6967]  INFO -- : ruby 3.0.2p107
I, [2023-09-25T20:30:55.159362 #6967]  INFO -- : OS: Linux 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep  7 10:33:52 UTC 2
I, [2023-09-25T20:30:55.160828 #6967]  INFO -- : Distribution: Ubuntu 22.04.3 LTS \n \l
I, [2023-09-25T20:30:55.161909 #6967]  INFO -- : Desktop session: ubuntu wayland
I, [2023-09-25T20:30:55.161958 #6967]  INFO -- : ---------------------------------------------
I, [2023-09-25T20:30:55.161992 #6967]  INFO -- : Enabled Plugins: 
I, [2023-09-25T20:30:55.162120 #6967]  INFO -- :   Fusuma::Plugin::Buffers::GestureBuffer
I, [2023-09-25T20:30:55.162148 #6967]  INFO -- :   Fusuma::Plugin::Buffers::TimerBuffer
I, [2023-09-25T20:30:55.162171 #6967]  INFO -- :   Fusuma::Plugin::Detectors::HoldDetector
I, [2023-09-25T20:30:55.162198 #6967]  INFO -- :   Fusuma::Plugin::Detectors::PinchDetector
I, [2023-09-25T20:30:55.162219 #6967]  INFO -- :   Fusuma::Plugin::Detectors::RotateDetector
I, [2023-09-25T20:30:55.162252 #6967]  INFO -- :   Fusuma::Plugin::Detectors::SwipeDetector
I, [2023-09-25T20:30:55.162273 #6967]  INFO -- :   Fusuma::Plugin::Events::Records::ContextRecord
I, [2023-09-25T20:30:55.162295 #6967]  INFO -- :   Fusuma::Plugin::Events::Records::GestureRecord
I, [2023-09-25T20:30:55.162325 #6967]  INFO -- :   Fusuma::Plugin::Events::Records::IndexRecord
I, [2023-09-25T20:30:55.162345 #6967]  INFO -- :   Fusuma::Plugin::Events::Records::TextRecord
I, [2023-09-25T20:30:55.162368 #6967]  INFO -- :   Fusuma::Plugin::Executors::CommandExecutor
I, [2023-09-25T20:30:55.162393 #6967]  INFO -- :   Fusuma::Plugin::Executors::SendkeyExecutor
I, [2023-09-25T20:30:55.162416 #6967]  INFO -- :   Fusuma::Plugin::Filters::LibinputDeviceFilter
I, [2023-09-25T20:30:55.162431 #6967]  INFO -- :   Fusuma::Plugin::Inputs::LibinputCommandInput
I, [2023-09-25T20:30:55.162456 #6967]  INFO -- :   Fusuma::Plugin::Inputs::TimerInput
I, [2023-09-25T20:30:55.162477 #6967]  INFO -- :   Fusuma::Plugin::Parsers::LibinputGestureParser
I, [2023-09-25T20:30:55.162500 #6967]  INFO -- : ---------------------------------------------
I, [2023-09-25T20:31:41.270846 #6967]  INFO -- : sendkey: Keyboard: Power Button
I, [2023-09-25T20:31:41.273312 #6967]  INFO -- : {:sendkey=>"LEFTMETA"}
I, [2023-09-25T20:31:42.229731 #6967]  INFO -- : {:sendkey=>"LEFTMETA"}

neither gestures nor typing cmds in shell don't work

iberianpig commented 1 year ago

Oh, it looks like the target keyboard is set to Power Button.

Could you paste the output of libinput list-devices and fusuma --version?

Harryl7 commented 1 year ago

Oh, it looks like the target keyboard is set to Power Button.

Could you paste the output of libinput list-devices and fusuma --version?

libinput list-devices

Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event4
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Power Button
Kernel:           /dev/input/event0
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lid Switch
Kernel:           /dev/input/event1
Group:            4
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           hm1091_techfront: hm1091_techfr
Kernel:           /dev/input/event11
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           2.4G Mouse
Kernel:           /dev/input/event9
Group:            6
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ELAN2204:00 04F3:309A Mouse
Kernel:           /dev/input/event6
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ELAN2204:00 04F3:309A Touchpad
Kernel:           /dev/input/event10
Group:            7
Seat:             seat0, default
Size:             104x61mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           Huawei WMI hotkeys
Kernel:           /dev/input/event5
Group:            8
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            9
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           ETPS/2 Elantech Touchpad
Kernel:           /dev/input/event7
Group:            10
Seat:             seat0, default
Size:             104x63mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

fusuma --version

I, [2023-09-25T22:39:11.651610 #3369]  INFO -- : reload config: /home/harry/.config/fusuma/config.yml
I, [2023-09-25T22:39:11.651677 #3369]  INFO -- : ---------------------------------------------
I, [2023-09-25T22:39:11.651971 #3369]  INFO -- : Fusuma: 3.1.0
I, [2023-09-25T22:39:11.653783 #3369]  INFO -- : libinput: 1.20.0
I, [2023-09-25T22:39:11.653902 #3369]  INFO -- : ruby 3.0.2p107
I, [2023-09-25T22:39:11.655897 #3369]  INFO -- : OS: Linux 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep  7 10:33:52 UTC 2
I, [2023-09-25T22:39:11.657640 #3369]  INFO -- : Distribution: Ubuntu 22.04.3 LTS \n \l
I, [2023-09-25T22:39:11.659115 #3369]  INFO -- : Desktop session: ubuntu wayland
I, [2023-09-25T22:39:11.659155 #3369]  INFO -- : ---------------------------------------------
I, [2023-09-25T22:39:11.659171 #3369]  INFO -- : Enabled Plugins: 
I, [2023-09-25T22:39:11.659276 #3369]  INFO -- :   Fusuma::Plugin::Buffers::GestureBuffer
I, [2023-09-25T22:39:11.659289 #3369]  INFO -- :   Fusuma::Plugin::Buffers::TimerBuffer
I, [2023-09-25T22:39:11.659299 #3369]  INFO -- :   Fusuma::Plugin::Detectors::HoldDetector
I, [2023-09-25T22:39:11.659308 #3369]  INFO -- :   Fusuma::Plugin::Detectors::PinchDetector
I, [2023-09-25T22:39:11.659317 #3369]  INFO -- :   Fusuma::Plugin::Detectors::RotateDetector
I, [2023-09-25T22:39:11.659326 #3369]  INFO -- :   Fusuma::Plugin::Detectors::SwipeDetector
I, [2023-09-25T22:39:11.659334 #3369]  INFO -- :   Fusuma::Plugin::Events::Records::ContextRecord
I, [2023-09-25T22:39:11.659342 #3369]  INFO -- :   Fusuma::Plugin::Events::Records::GestureRecord
I, [2023-09-25T22:39:11.659351 #3369]  INFO -- :   Fusuma::Plugin::Events::Records::IndexRecord
I, [2023-09-25T22:39:11.659359 #3369]  INFO -- :   Fusuma::Plugin::Events::Records::TextRecord
I, [2023-09-25T22:39:11.659373 #3369]  INFO -- :   Fusuma::Plugin::Executors::CommandExecutor
I, [2023-09-25T22:39:11.659383 #3369]  INFO -- :   Fusuma::Plugin::Executors::SendkeyExecutor
I, [2023-09-25T22:39:11.659391 #3369]  INFO -- :   Fusuma::Plugin::Filters::LibinputDeviceFilter
I, [2023-09-25T22:39:11.659399 #3369]  INFO -- :   Fusuma::Plugin::Inputs::LibinputCommandInput
I, [2023-09-25T22:39:11.659408 #3369]  INFO -- :   Fusuma::Plugin::Inputs::TimerInput
I, [2023-09-25T22:39:11.659417 #3369]  INFO -- :   Fusuma::Plugin::Parsers::LibinputGestureParser
I, [2023-09-25T22:39:11.659427 #3369]  INFO -- : ---------------------------------------------
iberianpig commented 1 year ago

Thanks. I have confirmed that I can reproduce the problem on my environment! I'll fix it soon.

iberianpig commented 1 year ago

Hi, I fixed this issue. Please update fusuma and check behavior.

gem update fusuma