From 432fbd979fdb507f2710e822d5ed6fd2f7919c76 Mon Sep 17 00:00:00 2001 From: mdima Date: Fri, 26 Aug 2011 20:39:13 +0200 Subject: Committed the changes from rcs.pfsense.org and added picolcd drivers and configurations. --- config/lcdproc/bin/SureElec.so | Bin 0 -> 23965 bytes config/lcdproc/bin/libkvm.so.5 | Bin 0 -> 32956 bytes config/lcdproc/bin/libusb.so.2 | Bin 0 -> 50108 bytes config/lcdproc/bin/nexcom.so | Bin 0 -> 11105 bytes config/lcdproc/bin/picolcd.so | Bin 0 -> 20320 bytes config/lcdproc/lcdproc.inc | 45 +++++++++ config/lcdproc/lcdproc.xml | 69 ++++++++++++++ config/lcdproc/lcdproc_client.php | 187 ++++++++++++++++++++++++++++++------- config/lcdproc/lcdproc_screens.xml | 10 ++ 9 files changed, 275 insertions(+), 36 deletions(-) create mode 100644 config/lcdproc/bin/SureElec.so create mode 100644 config/lcdproc/bin/libkvm.so.5 create mode 100644 config/lcdproc/bin/libusb.so.2 create mode 100644 config/lcdproc/bin/nexcom.so create mode 100644 config/lcdproc/bin/picolcd.so (limited to 'config/lcdproc') diff --git a/config/lcdproc/bin/SureElec.so b/config/lcdproc/bin/SureElec.so new file mode 100644 index 00000000..49b47ced Binary files /dev/null and b/config/lcdproc/bin/SureElec.so differ diff --git a/config/lcdproc/bin/libkvm.so.5 b/config/lcdproc/bin/libkvm.so.5 new file mode 100644 index 00000000..83334ee8 Binary files /dev/null and b/config/lcdproc/bin/libkvm.so.5 differ diff --git a/config/lcdproc/bin/libusb.so.2 b/config/lcdproc/bin/libusb.so.2 new file mode 100644 index 00000000..c3d440e8 Binary files /dev/null and b/config/lcdproc/bin/libusb.so.2 differ diff --git a/config/lcdproc/bin/nexcom.so b/config/lcdproc/bin/nexcom.so new file mode 100644 index 00000000..57adc9c9 Binary files /dev/null and b/config/lcdproc/bin/nexcom.so differ diff --git a/config/lcdproc/bin/picolcd.so b/config/lcdproc/bin/picolcd.so new file mode 100644 index 00000000..c4b1b886 Binary files /dev/null and b/config/lcdproc/bin/picolcd.so differ diff --git a/config/lcdproc/lcdproc.inc b/config/lcdproc/lcdproc.inc index 84c5765c..b9cd5770 100644 --- a/config/lcdproc/lcdproc.inc +++ b/config/lcdproc/lcdproc.inc @@ -106,6 +106,15 @@ case "lpt1": continue; break; + case "ugen0.2": + continue; + break; + case "ugen1.2": + continue; + break; + case "ugen2.2": + continue; + break; default: $input_errors[] = "The chosen com port is not valid"; break; @@ -178,6 +187,15 @@ case "lpt1": $realport = "/dev/lpt0"; break; + case "ugen0.2": + $realport = "/dev/ugen0.2"; + break; + case "ugen1.2": + $realport = "/dev/ugen1.2"; + break; + case "ugen2.2": + $realport = "/dev/ugen2.2"; + break; default: lcdproc_warn("The selected com port is not valid!"); return; @@ -211,6 +229,16 @@ /* lcdproc default driver definitions */ switch($lcdproc_config[driver]) { + case "SureElec": + $config_text .= "[{$lcdproc_config['driver']}]\n"; + $config_text .= "driverpath =/usr/local/lib/lcdproc/\n"; + $config_text .= "Device={$realport}\n"; + $config_text .= "Size={$lcdproc_config['size']}\n"; + $config_text .= "Edition=2\n"; + $config_text .= "Contrast=200\n"; + $config_text .= "Brightness=480\n"; + $config_text .= "Speed=19200\n"; + break; case "nexcom": $config_text .= "[{$lcdproc_config['driver']}]\n"; $config_text .= "driverpath =/usr/local/lib/lcdproc/\n"; @@ -222,6 +250,23 @@ $config_text .= "Device={$realport}\n"; $config_text .= "Speed=9600\n"; break; + case "picolcd": + $config_text .= "[{$lcdproc_config['driver']}]\n"; + $config_text .= "driverpath=/usr/local/lib/lcdproc/\n"; + $config_text .= "Device={$realport}\n"; + $config_text .= "Size={$lcdproc_config['size']}\n"; + $config_text .= "KeyTimeout=500\n"; + $config_text .= "Brightness=1000\n"; + $config_text .= "Blacklight_Timer=60\n"; + $config_text .= "Contrast=1000\n"; + $config_text .= "Keylights=on\n"; + $config_text .= "Key0Light=on\n"; + $config_text .= "Key1Light=off\n"; + $config_text .= "Key2Light=off\n"; + $config_text .= "Key3Light=off\n"; + $config_text .= "Key4Light=off\n"; + $config_text .= "Key5Light=off\n"; + break; case "CFontz": $config_text .= "[{$lcdproc_config['driver']}]\n"; $config_text .= "Device={$realport}\n"; diff --git a/config/lcdproc/lcdproc.xml b/config/lcdproc/lcdproc.xml index b184e4f9..86d5be7d 100644 --- a/config/lcdproc/lcdproc.xml +++ b/config/lcdproc/lcdproc.xml @@ -42,6 +42,26 @@ /usr/local/lib/lcdproc/ 0755 + + http://www.pfsense.org/packages/config/lcdproc/bin/SureElec.so + /usr/local/lib/lcdproc/ + 0755 + + + http://www.pfsense.org/packages/config/lcdproc/bin/picolcd.so + /usr/local/lib/lcdproc/ + 0755 + + + http://www.pfsense.org/packages/config/lcdproc/bin/libusb.so.2 + /usr/local/lib/lcdproc/ + 0755 + + + http://www.pfsense.org/packages/config/lcdproc/bin/libkvm.so.5 + /usr/local/lib/lcdproc/ + 0755 + lcdproc lcdproc.sh @@ -79,6 +99,18 @@ lpt1 Parallel port 1 (/dev/lpt0) + + + ucom1 @@ -244,6 +276,10 @@ + +