From b3bef06c1e8f33f9d5ea4e9cc50985c102fde9e3 Mon Sep 17 00:00:00 2001 From: Brock Wilcox Date: Wed, 18 Dec 2024 23:08:41 -0500 Subject: [PATCH] Switch to more specific device names Not sure if this is better or not --- README.md | 6 +++--- src/pen.rs | 2 +- src/touch.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ceeb66a..5190865 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ Then you have to ssh over and run it. Here is how to install and run (run these # Make it executable after the initial copy chmod +x ./ghostwriter -./ghostwriter --help # Get the options -./ghostwriter text-assist # Start a text/keyboard-replying session +./ghostwriter --help # Get the options +./ghostwriter # Start a text/keyboard-replying session ``` Draw some stuff on your screen, and then trigger the assistant by *touching/tapping the upper-right corner with your finger*. In the ssh session you'll see other touch-detections and there is a log of what happens while it is processing. You should see some dots drawn during processing and then a typewritten or drawn response! @@ -151,7 +151,7 @@ Draw some stuff on your screen, and then trigger the assistant by *touching/tapp ## Development ```sh -# Initial dependencies install (also ... rust) +# Initial dependencies install (also ... rust, which I get via asdf) rustup target add armv7-unknown-linux-gnueabihf sudo apt-get install gcc-arm-linux-gnueabihf cargo install cross diff --git a/src/pen.rs b/src/pen.rs index 5f743d3..38ceb8f 100644 --- a/src/pen.rs +++ b/src/pen.rs @@ -18,7 +18,7 @@ impl Pen { let device = if no_draw { None } else { - Some(Device::open("/dev/input/event1").unwrap()) + Some(Device::open("/dev/input/touchscreen0").unwrap()) }; Self { device } diff --git a/src/touch.rs b/src/touch.rs index 8a03899..fedb129 100644 --- a/src/touch.rs +++ b/src/touch.rs @@ -10,7 +10,7 @@ impl Touch { let device = if no_touch { None } else { - Some(Device::open("/dev/input/event2").unwrap()) + Some(Device::open("/dev/input/by-path/platform-30a40000.i2c-event").unwrap()) }; Self { device }