Import Upstream version 1.9.0

This commit is contained in:
Giacomo Catenazzi committed 2019-04-29 15:42:59 +02:00
commit a60b7c6315
79 files changed
+51673

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
This directory contains misc. scripts and handy stuff for the G15daemon
user.
It currently has:
xmodmaprc
- enables support for the extra G15 keys in Xorg.
xkb-xorg-7.1-g15daemon.patch
- patch against xorg 7.1 xkb datafiles, adds a new keyboard definition
enabling full native support for the g15 keys in the Xserver (via
g15daemon).
To Use:
cd /usr/share/X11/
patch -p0 <xkb-xorg-7.1-g15daemon.patch
Restart the Xserver, and a new keyboard type should be available in the
KDE/Gnome keyboard selection applet: "Logitech G15 keyboard support via G15Daemon".
Select that and apply, and all keys will be available for use as hotkeys etc.
If you use this xkb patch, the xmodmap procedure is not necessary.
If you prefer, you can also edit your Xorg configuration, adding the
Option "XkbModel" "g15daemon" line in your keyboard section.
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "g15daemon"
Option "XkbLayout" "us"
Option "XkbOptions" "compose:rwin"
EndSection
>>>> EDIT -> as of 30/10/06, xorg cvs has this patch included. If you're
>>>> using a newer version of Xorg or xkeyboard-config, you may not need to use this patch. The
>>>> keyboard model included in Xorg is called logitech_g15, not g15daemon.
+56
View File
@@ -0,0 +1,56 @@
#!/bin/sh
# Init script for the G15daemon
# for Redhat/Mandriva based systems
#
# Copyright (c)2006 Mike Lampard
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
#
. /etc/rc.d/init.d/functions
[ -f /usr/sbin/g15daemon ] || exit 0
case "$1" in
start)
echo "Starting G15daemon"
/sbin/modprobe uinput
/usr/sbin/g15daemon
echo
;;
stop)
echo "Stopping G15daemon"
/usr/sbin/g15daemon -k
echo
;;
restart)
echo "Restarting G15daemon"
/usr/sbin/g15daemon -k
/usr/sbin/g15daemon
echo
;;
status)
echo ""
/usr/sbin/g15daemon --version
echo
;;
*)
gprintf "$0 {start|stop|restart|reload|status}\n"
exit 1
;;
esac
exit ${RETVAL}
+83
View File
@@ -0,0 +1,83 @@
use G15Daemon;
use GD;
use GD::Graph::lines;
#use GD::Graph::bars;
# simple demo. creates two screens (selectable via L1 button) and
# displays some text & a border on one, and a graph on the other..
@data = (
["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
[ 1, 2, 5, 6, 3, 1.5, 1, 3, 4],
[ sort { $a <=> $b } (1, 2, 5, 6, 3, 1.5, 1, 3, 4) ]
);
# possible screentypes are $g15pbuf (1bpp pixel buffer)
# $g15txt (text - not implemented yet)
# or $g15wbmp (WBMP pixelbuffer useful for GD)
#
# ok.. create a couple of new screens..
my $lcdintro = G15Daemon->new($g15wbmp);
my $lcdgraph = G15Daemon->new($g15wbmp);
printf "perl bindings version is %f\n",$lcdintro->VERSION;
printf "interface version is %f\n ",$lcdintro->apiversion;
my $width = $lcdintro->width();
my $height = $lcdintro->height();
# create a new GD image
$im = new GD::Image ($width, $height);
# allocate some colors - these are the only valid ones for the G15
$black = $im->colorAllocate (0, 0, 0);
$white = $im->colorAllocate (255, 255, 255);
# fill with black
$im->fill(1,1,$black);
# Draw an oval
$im->arc (80, 22, 95, 42, 0, 360, $white);
# fill it with white
$im->fill(90,32,$white);
# draw a rectangle
$im->rectangle (10, 10, 150, 33, $white);
# fill it
$im->fill(12,12,$white);
$im->fill(145,12,$white);
# draw some text onto the buffer
$im->string(gdSmallFont,30,15,"G15Daemon & GDlib",$black);
#convert the buffer to WBMP format..
my $wbmpdata = $im->wbmp ($white);
#send it to the daemon....
$lcdintro->send($wbmpdata);
# create a graph, and send it on the other connection.
my $graph = GD::Graph::lines->new(160, 44);
$graph->set(
# x_label => 'X Label',
# y_label => 'Y label',
# title => 'Some simple graph',
y_max_value => 8,
y_tick_number => 8,
y_label_skip => 5,
x_label_skip => 2,
dclrs => [ qw(dblue) ]
) or die $my_graph->error;
my $gd = $graph->plot(\@data) or die $graph->error;
# again convert to WBMP format and send it...
my $graphwbmp = $gd->wbmp ($black);
$lcdgraph->send($graphwbmp);
sleep(60);
$lcd->closescreen();
$lcdgraph->closescreen();
+100
View File
@@ -0,0 +1,100 @@
diff -x 'base*' -ur xkb-orig/rules/xorg xkb/rules/xorg
--- xkb-orig/rules/xorg 2006-08-31 23:34:45.000000000 +0930
+++ xkb/rules/xorg 2006-10-24 09:58:16.000000000 +0930
@@ -47,7 +47,8 @@
qtronix \
samsung4500 samsung4510 \
sk1300 sk2500 sk6200 sk7100 sp_inet \
- sven symplon toshiba_s3000 trust trustda yahoo
+ sven symplon toshiba_s3000 trust trustda yahoo \
+ g15daemon
// all layouts with 3rd and 4th groups
! $threelevellayouts = al az \
diff -x 'base*' -ur xkb-orig/rules/xorg.lst xkb/rules/xorg.lst
--- xkb-orig/rules/xorg.lst 2006-08-31 23:34:45.000000000 +0930
+++ xkb/rules/xorg.lst 2006-10-24 09:59:05.000000000 +0930
@@ -114,6 +114,7 @@
power_g5 Power G5
silvercrest SILVERCREST Multimedia Wireless Keyboard
emachines Laptop/notebook eMachines m68xx
+ g15daemon Logitech G15 keyboard support via G15Daemon
! layout
us U.S. English
diff -x 'base*' -ur xkb-orig/rules/xorg.xml xkb/rules/xorg.xml
--- xkb-orig/rules/xorg.xml 2006-08-31 23:34:45.000000000 +0930
+++ xkb/rules/xorg.xml 2006-10-24 10:00:06.000000000 +0930
@@ -2815,6 +2815,12 @@
</model>
<model>
<configItem>
+ <name>g15daemon</name>
+ <description>Logitech G15 keyboard support via G15Daemon</description>
+ </configItem>
+ </model>
+ <model>
+ <configItem>
<name>yahoo</name>
<description>Yahoo! Internet Keyboard</description>
<description xml:lang="af">Yahoo! Internetsleutelbord</description>
diff -x 'base*' -ur xkb-orig/symbols/inet xkb/symbols/inet
--- xkb-orig/symbols/inet 2006-08-31 23:34:55.000000000 +0930
+++ xkb/symbols/inet 2006-10-25 01:31:18.000000000 +0930
@@ -2028,3 +2028,56 @@
key <K67> { [ XF86MyComputer ] };
key <XFER> { [ XF86AudioMedia ] };
};
+
+partial alphanumeric_keys
+xkb_symbols "g15daemon" {
+
+ name[Group1]= "Logitech G15 keyboard support via G15Daemon";
+ key <MDSW> { [ XF86Launch1 ] };
+ key <XFER> { [ XF86Launch8 ] };
+ key <I02> { [ XF86Launch9 ] };
+ key <NFER> { [ XF86Launch2 ] };
+ key <I04> { [ XF86Pictures ] };
+ key <AE13> { [ XF86Messenger ] };
+ key <I08> { [ XF86LaunchD ] };
+ key <I09> { [ XF86Support ] };
+ key <I0A> { [ XF86Word ] };
+ key <I0F> { [ XF86LaunchF ] };
+ key <I10> { [ XF86AudioPrev ] };
+ key <I16> { [ XF86LogOff ] };
+ key <I18> { [ XF86Launch5 ] };
+ key <I19> { [ XF86AudioNext ] };
+ key <I20> { [ XF86AudioMute ] };
+ key <I21> { [ XF86Calculator ] };
+ key <I22> { [ XF86AudioPlay ] };
+ key <I23> { [ XF86Spell ] };
+ key <I24> { [ XF86AudioStop ] };
+ key <K5A> { [ XF86VendorHome ] };
+ key <I2E> { [ XF86AudioLowerVolume ] };
+ key <I30> { [ XF86AudioRaiseVolume ] };
+ key <I31> { [ XF86Launch4 ] };
+ key <I32> { [ XF86HomePage ] };
+ key <K5D> { [ XF86Messenger ] };
+ key <K5E> { [ XF86WebCam ] };
+ key <K5F> { [ XF86Launch0 ] };
+ key <I3C> { [ XF86Music ] };
+ key <K63> { [ XF86Launch6 ] };
+ key <I42> { [ XF86Forward ] };
+ key <I43> { [ XF86Send ] };
+ key <K6D> { [ XF86Calendar ] };
+ key <HKTG> { [ XF86Launch7 ] };
+ key <K71> { [ XF86LaunchB ] };
+ key <K72> { [ XF86LaunchC ] };
+ key <I57> { [ XF86Save ] };
+ key <K74> { [ XF86WWW ] };
+ key <K75> { [ XF86LaunchE ] };
+ key <I5F> { [ XF86Sleep ] };
+ key <I64> { [ XF86Pictures ] };
+ key <I67> { [ XF86LaunchA ] };
+ key <I6C> { [ XF86Mail ] };
+ key <I6D> { [ XF86AudioMedia ] };
+ key <I76> { [ XF86iTouch ] };
+ key <I77> { [ XF86Launch3 ] };
+ key <I79> { [ XF86ToDoList ] };
+ key <I7B> { [ XF86Calculater ] };
+};
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
xmodmap $HOME/.Xmodmap
echo Added key mods in $HOME/.Xmodmap
+47
View File
@@ -0,0 +1,47 @@
keycode 93 = XF86Launch1
keycode 129 = XF86Launch8
keycode 130 = XF86Launch9
keycode 131 = XF86Launch2
keycode 132 = XF86Phone
keycode 133 = XF86Messenger
keycode 136 = XF86LaunchD
keycode 137 = XF86Support
keycode 138 = XF86Word
keycode 143 = XF86LaunchF
keycode 144 = XF86AudioPrev
keycode 150 = XF86LogOff
keycode 152 = XF86Launch5
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 161 = XF86Travel
keycode 162 = XF86AudioPlay
keycode 163 = XF86Spell
keycode 164 = XF86AudioStop
keycode 170 = XF86VendorHome
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 177 = XF86Launch4
keycode 178 = XF86HomePage
keycode 182 = XF86Away
keycode 183 = XF86WebCam
keycode 184 = XF86Launch0
keycode 188 = XF86Music
keycode 190 = XF86Launch6
keycode 194 = XF86Forward
keycode 195 = XF86Send
keycode 205 = XF86Calendar
keycode 208 = XF86Launch7
keycode 209 = XF86LaunchB
keycode 210 = XF86LaunchC
keycode 215 = XF86Save
keycode 219 = XF86WWW
keycode 220 = XF86LaunchE
keycode 223 = XF86Sleep
keycode 228 = XF86Pictures
keycode 231 = XF86LaunchA
keycode 236 = XF86Mail
keycode 237 = XF86AudioMedia
keycode 246 = XF86iTouch
keycode 247 = XF86Launch3
keycode 249 = XF86ToDoList
keycode 251 = XF86Calculater