From 303f8f2a35b9b19f93249bfcdf446e4d5c43eec6 Mon Sep 17 00:00:00 2001 From: brunoais Date: Thu, 29 Apr 2021 21:36:12 +0100 Subject: [PATCH] Clarify touchpad's available status --- touchpad-control.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/touchpad-control.cpp b/touchpad-control.cpp index f2af8f6..4bd34d1 100644 --- a/touchpad-control.cpp +++ b/touchpad-control.cpp @@ -113,8 +113,14 @@ int set_touchpad_state(int enabled) { result = EXIT_FAILURE; } else { - // to enable touchpad send "0x03" as feature report nr.7 (0x07) to the touchpad hid device - // to disable it send "0x030" + // The two rightmost bits control the touchpad status + // In order, they are: + // 1. LED on, touchpad off + // 2. clicks are off + // so, the options are: + // 0x00 LED on, touchpad off, touchpad click off + // 0x01 LED off, touchpad on, touchpad click off + // 0x03 LED off, touchpad on, touchpad click on char buffer[2] = {0x07, 0x00}; if (enabled) { buffer[1] = 0x03;