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

genie 0.1.7-2 need to be launched by rm2fb-client to catch gestures #230

Open
gullradriel opened this issue Jan 25, 2025 · 0 comments
Open

Comments

@gullradriel
Copy link

gullradriel commented Jan 25, 2025

Context

  • remarkable 2, version 3.3.2.1666, dual boot with 3.17.0.70
  • genie 0.1.7-2 is on the 3.3.2.1666 partition, with toltec enabled

Problem

Genie do not catch my gestures if not started via rm2fb-client

Non-working example

root@reMarkable:~# genie /opt/etc/genie.conf 
*********************************************
*** WARNING: running on rM2 without rm2fb ***
*********************************************

SETTING SCREEN DEPTH 16
W: 260 H: 1408 S: 260
XRES 260 YRES 1408 BPP 16 GRAYSCALE 0
OPENING /dev/input/event0 AS BUTTONS
OPENING /dev/input/event1 AS WACOM
OPENING /dev/input/event2 AS TOUCH
ERROR OPENING INPUT DEVICE /dev/input/event3
ERROR OPENING INPUT DEVICE /dev/input/event4
USING /opt/etc/genie.conf AS CONFIG FILE
ADDED SWIPE GESTURE:
  command: /opt/bin/rm2fb-client /opt/bin/iago
  gesture: swipe
  fingers: 3
  min_events: 
  zone: -1 -1 -1 -1
  direction: up
  distance: 
ADDED SWIPE GESTURE:
  command: /opt/bin/rm2fb-client /opt/bin/iago
  gesture: swipe
  fingers: 3
  min_events: 
  zone: -1 -1 -1 -1
  direction: right
  distance: 
No such file or directory  => this is displayed because there is no /opt/etc/genie.conf.d/

Working example

root@reMarkable:~# rm2fb-client genie /opt/etc/genie.conf 
SETTING SCREEN DEPTH 16
W: 1404 H: 1872 S: 1404
XRES 1404 YRES 1872 BPP 16 GRAYSCALE 0
OPENING /dev/input/event0 AS BUTTONS
OPENING /dev/input/event1 AS WACOM
OPENING /dev/input/event2 AS TOUCH
ERROR OPENING INPUT DEVICE /dev/input/event3
ERROR OPENING INPUT DEVICE /dev/input/event4
USING /opt/etc/genie.conf AS CONFIG FILE
ADDED SWIPE GESTURE:
  command: /opt/bin/iago
  gesture: swipe
  fingers: 3
  min_events: 
  zone: -1 -1 -1 -1
  direction: up
  distance: 
ADDED SWIPE GESTURE:
  command: /opt/bin/iago
  gesture: swipe
  fingers: 3
  min_events: 
  zone: -1 -1 -1 -1
  direction: right
  distance: 
No such file or directory => this is displayed because there is no /opt/etc/genie.conf.d/
RUNNING COMMAND /opt/bin/iago
SETTING SCREEN DEPTH 16
W: 1404 H: 1872 S: 1404
XRES 1404 YRES 1872 BPP 16 GRAYSCALE 0
OPENING /dev/input/event0 AS BUTTONS
OPENING /dev/input/event1 AS WACOM
OPENING /dev/input/event2 AS TOUCH
ERROR OPENING INPUT DEVICE /dev/input/event3
ERROR OPENING INPUT DEVICE /dev/input/event4
RESETTING MT GESTURES
CLEANING UP 0
RUNNING echo 'pen circle 664 898 349 349' | /opt/bin/lamp
DRAWING CIRCLE 664 898 349 349
CLEANING UP FB

Fix

@Eeems gave me a fix which is working:

mkdir -p /etc/systemd/system/genie.service.d
cp /etc/systemd/system/tarnish.service.d/rm2fb-preload.conf /etc/systemd/system/genie.service.d/
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

1 participant