Browse Source

Changed name to dezu

TC 5 days ago
parent
commit
988c4ac17a
8 changed files with 40 additions and 50 deletions
  1. 1 1
      remdeskd/configure.go
  2. 15 40
      remdeskd/configure_chip.sh
  3. 18 3
      remdeskd/debug.sh
  4. BIN
      remdeskd/dezukvmd
  5. 1 1
      remdeskd/go.mod
  6. 1 1
      remdeskd/kvmscan.go
  7. 1 1
      remdeskd/tools.go
  8. 3 3
      remdeskd/usbkvm.go

+ 1 - 1
remdeskd/configure.go

@@ -4,7 +4,7 @@ import (
 	"log"
 	"time"
 
-	"imuslab.com/remdeskvm/remdeskd/mod/remdeshid"
+	"imuslab.com/dezukvm/dezukvmd/mod/remdeshid"
 )
 
 func SetupHIDCommunication(config *UsbKvmConfig) error {

+ 15 - 40
remdeskd/configure_chip.sh

@@ -1,42 +1,17 @@
 #!/bin/bash
 
-: '
-------------------------------------------------------------------------------
-Script Purpose:
-    This script is designed to automatically configure the CH9329 USB-to-serial
-    device to operate at a baudrate of 115200. It is intended for users who need
-    to update the communication speed from the default or previously set value.
-    You only need to do it ONCE after you have soldered the CH9329 chip to your
-    board.
-
-Usage Instructions:
-    1. Ensure both the host and remote sides of the CH9329 device are connected
-       to their respective USB ports. (The host side connects to your PC, which
-       should show up as /dev/ttyUSB0 or similar. The remote side connects to
-       your target device, usually another headless computer, which should show
-       up as a USB HID device with keyboard and mouse capabilities.)
-    2. Power on the device before running this script.
-
-Important Notes:
-    - The CH9329 device typically defaults to a baudrate of 9600. However, if it
-      has been configured previously, it may be set to a different baudrate.
-    - Incorrect configuration or misuse of this script may damage the device or
-      render it unusable. Proceed with caution and ensure you understand the
-      implications of changing device settings.
-
-WARNING:
-    Use this script at your own risk. Double-check all connections and settings
-    before execution to avoid potential hardware damage.
-------------------------------------------------------------------------------
-'
-
-# Ask for baudrate with default 9600
-read -p "Enter baudrate [9600]: " baudrate
-baudrate=${baudrate:-9600}
-
-# Ask for USB KVM device path with default /dev/ttyUSB0
-read -p "Enter USB KVM device path [/dev/ttyUSB0]: " usbkvm
-usbkvm=${usbkvm:-/dev/ttyUSB0}
-
-# Run the command
-sudo ./remdeskd -mode=cfgchip -baudrate="$baudrate" -usbkvm="$usbkvm"
+# -----------------------------------------------------------------------------
+# Script to start dezukvmd in config chip mode for CH9329 configuration.
+#
+# This script is intended for use with newly soldered CH9329 chips, which have
+# a default baudrate of 9600. It allows setting the chip's default baudrate to
+# 115200, enabling higher speed for keyboard and mouse virtual machine operation.
+#
+# The configuration port used here is shared with the USB KVM mode, as defined
+# in the config/usbkvm.json file.
+#
+# Author: [email protected]
+#
+# License: GPLv3
+# -----------------------------------------------------------------------------
+sudo ./dezukvmd -mode=cfgchip

+ 18 - 3
remdeskd/debug.sh

@@ -3,16 +3,31 @@
 echo "This script helps debug audio and USB KVM devices."
 echo "Make sure you have the necessary permissions to access audio and USB devices."
 echo ""
+echo "------------------"
+echo "Checking for required tools..."
+# Check if 'arecord' (ALSA tool) is installed
+if ! command -v arecord &> /dev/null; then
+    echo "Warning: 'arecord' (ALSA audio recorder) is not installed. Please install it for audio debugging."
+else
+    echo "'arecord' is installed."
+fi
 
+# Check if 'v4l2-ctl' (Video4Linux2 control tool) is installed
+if ! command -v v4l2-ctl &> /dev/null; then
+    echo "Warning: 'v4l2-ctl' (Video4Linux2 control tool) is not installed. Please install it for USB video device debugging."
+else
+    echo "'v4l2-ctl' is installed."
+fi
 
 # List all audio devices
 echo "------------------"
 echo "Listing audio devices"
-sudo ./remdeskd -mode=debug -tool=audio-devices
+sudo ./dezukvmd -mode=debug -tool=audio-devices
 
 # List all USB KVM devices
 echo "------------------"
 echo "Listing USB KVM devices"
-sudo ./remdeskd -mode=debug -tool=list-usbkvm
+sudo ./dezukvmd -mode=debug -tool=list-usbkvm
 echo "------------------"
-sudo ./remdeskd -mode=debug -tool=list-usbkvm-json
+echo "The finalized KVM device group is listed below: "
+sudo ./dezukvmd -mode=debug -tool=list-usbkvm-json

BIN
remdeskd/dezukvmd


+ 1 - 1
remdeskd/go.mod

@@ -1,4 +1,4 @@
-module imuslab.com/remdeskvm/remdeskd
+module imuslab.com/dezukvm/dezukvmd
 
 go 1.23.4
 

+ 1 - 1
remdeskd/kvmscan.go

@@ -8,7 +8,7 @@ import (
 	"regexp"
 	"strings"
 
-	"imuslab.com/remdeskvm/remdeskd/mod/remdesaux"
+	"imuslab.com/dezukvm/dezukvmd/mod/remdesaux"
 )
 
 /*

+ 1 - 1
remdeskd/tools.go

@@ -6,7 +6,7 @@ import (
 	"log"
 	"os/exec"
 
-	"imuslab.com/remdeskvm/remdeskd/mod/usbcapture"
+	"imuslab.com/dezukvm/dezukvmd/mod/usbcapture"
 )
 
 func handle_debug_tool() error {

+ 3 - 3
remdeskd/usbkvm.go

@@ -17,9 +17,9 @@ import (
 	"os/signal"
 	"syscall"
 
-	"imuslab.com/remdeskvm/remdeskd/mod/remdesaux"
-	"imuslab.com/remdeskvm/remdeskd/mod/remdeshid"
-	"imuslab.com/remdeskvm/remdeskd/mod/usbcapture"
+	"imuslab.com/dezukvm/dezukvmd/mod/remdesaux"
+	"imuslab.com/dezukvm/dezukvmd/mod/remdeshid"
+	"imuslab.com/dezukvm/dezukvmd/mod/usbcapture"
 )
 
 type UsbKvmConfig struct {