rmkit icon indicating copy to clipboard operation
rmkit copied to clipboard

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

Open gullradriel opened this issue 11 months ago • 0 comments

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/

gullradriel avatar Jan 25 '25 19:01 gullradriel