From: <sk...@us...> - 2011-03-30 21:30:28
|
Revision: 2410 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2410&view=rev Author: skitt Date: 2011-03-30 21:30:19 +0000 (Wed, 30 Mar 2011) Log Message: ----------- Add licenses and documentation. Added Paths: ----------- trunk/COPYING trunk/COPYING-1 trunk/README Added: trunk/COPYING =================================================================== --- trunk/COPYING (rev 0) +++ trunk/COPYING 2011-03-30 21:30:19 UTC (rev 2410) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program 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 + (at your option) any later version. + + This program 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 program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: trunk/COPYING-1 =================================================================== --- trunk/COPYING-1 (rev 0) +++ trunk/COPYING-1 2011-03-30 21:30:19 UTC (rev 2410) @@ -0,0 +1,251 @@ + + GNU GENERAL PUBLIC LICENSE + Version 1, February 1989 + + Copyright (C) 1989 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The license agreements of most software companies try to keep users +at the mercy of those companies. By contrast, our General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. The +General Public License applies to the Free Software Foundation's +software and to any other program whose authors commit to using it. +You can use it for your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Specifically, the General Public License is designed to make +sure that you have the freedom to give away or sell copies of free +software, that you receive source code or can get it if you want it, +that you can change the software or use pieces of it in new free +programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of a such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must tell them their rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any program or other work which +contains a notice placed by the copyright holder saying it may be +distributed under the terms of this General Public License. The +"Program", below, refers to any such program or work, and a "work based +on the Program" means either the Program or any work containing the +Program or a portion of it, either verbatim or with modifications. Each +licensee is addressed as "you". + + 1. You may copy and distribute verbatim copies of the Program's source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +General Public License and to the absence of any warranty; and give any +other recipients of the Program a copy of this General Public License +along with the Program. You may charge a fee for the physical act of +transferring a copy. + + 2. You may modify your copy or copies of the Program or any portion of +it, and copy and distribute such modifications under the terms of Paragraph +1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating that + you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, that + in whole or in part contains the Program or any part thereof, either + with or without modifications, to be licensed at no charge to all + third parties under the terms of this General Public License (except + that you may choose to grant warranty protection to some or all + third parties, at your option). + + c) If the modified program normally reads commands interactively when + run, you must cause it, when started running for such interactive use + in the simplest and most usual way, to print or display an + announcement including an appropriate copyright notice and a notice + that there is no warranty (or else, saying that you provide a + warranty) and that users may redistribute the program under these + conditions, and telling the user how to view a copy of this General + Public License. + + d) You may charge a fee for the physical act of transferring a + copy, and you may at your option offer warranty protection in + exchange for a fee. + +Mere aggregation of another independent work with the Program (or its +derivative) on a volume of a storage or distribution medium does not bring +the other work under the scope of these terms. + + 3. You may copy and distribute the Program (or a portion or derivative of +it, under Paragraph 2) in object code or executable form under the terms of +Paragraphs 1 and 2 above provided that you also do one of the following: + + a) accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of + Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three + years, to give any third party free (except for a nominal charge + for the cost of distribution) a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of + Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the + corresponding source code may be obtained. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form alone.) + +Source code for a work means the preferred form of the work for making +modifications to it. For an executable file, complete source code means +all the source code for all modules it contains; but, as a special +exception, it need not include source code for modules which are standard +libraries that accompany the operating system on which the executable +file runs, or for standard header files or definitions files that +accompany that operating system. + + 4. You may not copy, modify, sublicense, distribute or transfer the +Program except as expressly provided under this General Public License. +Any attempt otherwise to copy, modify, sublicense, distribute or transfer +the Program is void, and will automatically terminate your rights to use +the Program under this License. However, parties who have received +copies, or rights to use copies, from you under this General Public +License will not have their licenses terminated so long as such parties +remain in full compliance. + + 5. By copying, distributing or modifying the Program (or any work based +on the Program) you indicate your acceptance of this license to do so, +and all its terms and conditions. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the original +licensor to copy, distribute or modify the Program subject to these +terms and conditions. You may not impose any further restrictions on the +recipients' exercise of the rights granted herein. + + 7. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of the license which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +the license, you may choose any version ever published by the Free Software +Foundation. + + 8. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to humanity, the best way to achieve this is to make it +free software which everyone can redistribute and change under these +terms. + + To do so, attach the following notices to the program. It is safest to +attach them to the start of each source file to most effectively convey +the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) 19yy <name of author> + + This program 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 1, or (at your option) + any later version. + + This program 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 program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19xx name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the +appropriate parts of the General Public License. Of course, the +commands you use may be called something other than `show w' and `show +c'; they could even be mouse-clicks or menu items--whatever suits your +program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + program `Gnomovision' (a program to direct compilers to make passes + at assemblers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +That's all there is to it! Added: trunk/README =================================================================== --- trunk/README (rev 0) +++ trunk/README 2011-03-30 21:30:19 UTC (rev 2410) @@ -0,0 +1,137 @@ + linuxconsole tools + Release 1.4rc1 + + +This package contains the following utilities and associated +documentation: +* evtest - input layer event monitor +* inputattach - connects legacy serial devices to the input layer +* joystick utilities - calibrate and test joysticks and joypads + +The evtest and inputattach manpages provide more details on their +operation. + + +Joystick utilities +------------------ + +The following utilities are provided to calibrate and test joysticks: +* ffcfstress, ffmvforce, fftest - test force-feedback devices +* ffset - set force-feedback device parameters +* jscal - calibrate joystick devices, reconfigure the axes and buttons +* jscal-store, jscal-restore - store and retrieve joystick device + settings as configured using jscal +* jstest - test joystick devices + +The typical scenario when configuring a new device is as follows: +1. Check the basic functions using jstest (number of buttons, axes, + etc.). +2. Calibrate the joystick using jscal (this can be useful even if the + device functions correctly, if only to configure the dead-zone at + the centre). +3. Repeat steps 1 and 2 until the joystick is configured to the user's + satisfaction. +4. Store the device's setup using jscal-store. + + +Auto-loading inputattach and jscal-restore +------------------------------------------ + +udev can be used to start inputattach and jscal-restore when the +appropriate device is connected to the system (or detected when the +system is booting up). + +The following rule restores the stored calibration and axis/button +mappings whenever a joystick device is connected: + KERNEL=="js*", ACTION=="add", RUN+="/usr/bin/jscal-restore %E{DEVNAME}" +(change the path as appropriate). This rule needs /usr to be +available, which can cause issues on systems where udev is run from +the initramfs or where /usr is a separate partition. To work around +this, the Debian package uses a script provided by Debian's udev +package to wait for jscal-restore to become available. Should you wish +to reproduce this, you need to create a udev agent +(/lib/udev/jscal-restore) containing the following: + +#!/bin/sh -e +# udev agent for jscal-restore + +wait_for_file() { + local file=$1 + local count=120 + while [ $count != 0 ]; do + [ -e "$file" ] && return 0 + sleep 1 + count=$(($count - 1)) + done + exit 1 +} + +( + wait_for_file /usr/bin/jscal-restore + exec /usr/bin/jscal-restore $1 +) & + +and change the udev rule to + KERNEL=="js*", ACTION=="add", RUN+="/lib/udev/jscal-restore %E{DEVNAME}" + +The following rule forces flaky Acrux gamepads to stay awake: + KERNEL=="js*", ACTION=="add", ATTRS{name}=="ACRUX USB GAMEPAD 8116", RUN+="/bin/sleep 5000 < %p" +(This should only be necessary on kernels older than 2.6.39-rc1.) + +The following rule configures a Mouse Systems mouse on the first +serial port: + KERNEL=="ttyS0", ACTION=="add", RUN+="/usr/bin/inputattach --daemon -msc %p" +If you need to wait for /usr you can adapt the recipe above. + +The following rules configures a Wacom W8001 devices on a Fujitsu +T2010[2]: + SUBSYSTEM=="tty", KERNEL=="ttyS[0-9]*", ATTRS{id}=="FUJ02e5", ACTION=="add", RUN+="/usr/bin/inputattach --daemon --baud 19200 --w8001 /dev/%k" + + +Contributors +------------ + +The following people have contributed to this release: +* Johann Walles: jscal jitter tolerance. +* Dr. László Kaján: button and axis remapping. +* Sebastian Siewior: EVIOCGBIT correction. +* Krzysztof A. Sobiecki: improvements to the button and axis remapping + functions. +* Claudio Nieder: Sahara Touch-iT213 support. +* Florian Fainelli: evtest fixes. +* Alexander Clouter: W8001 support. +* Roberto Neri: much discussion, and fixes and improvements to + jscal-store/jscal-restore and the udev rules given above. + + +License +------- + +The linuxconsole tools are + Copyright © 1996-2005 Vojtech Pavlik + Copyright © 2001 Romain Dolbeau + Copyright © 2001 Oliver Hamann + Copyright © 2001-2002 Johann Deneux + Copyright © 2001 Arndt Schoenewald + Copyright © 2008-2011 Stephen Kitt + + +This program 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 (at +your option) any later version. (acceltest.c is provided only under +the terms of version 1 of the License.) + +This program 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 program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, +USA. + + +The GNU General Public License version 1 is provided in the COPYING-1 +file; version 2 is provided in the COPYING file. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-03-30 22:15:35
|
Revision: 2411 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2411&view=rev Author: skitt Date: 2011-03-30 22:15:29 +0000 (Wed, 30 Mar 2011) Log Message: ----------- Add support for the TAOS evaluation modules (driver i2c-taos-evm). Signed-off-by: Jean Delvare <jde...@su...> Modified Paths: -------------- trunk/docs/inputattach.1 trunk/utils/inputattach.c Modified: trunk/docs/inputattach.1 =================================================================== --- trunk/docs/inputattach.1 2011-03-30 21:30:19 UTC (rev 2410) +++ trunk/docs/inputattach.1 2011-03-30 22:15:29 UTC (rev 2411) @@ -104,6 +104,9 @@ .BR \-sun ", " \-\-sunmouse 3-button Sun mouse .TP +.BR \-taos ", " \-\-taos\-evm +TAOS evaluation module +.TP .BR \-t213 ", " \-\-touchit213 Sahara Touch-iT213 Tablet PC .TP Modified: trunk/utils/inputattach.c =================================================================== --- trunk/utils/inputattach.c 2011-03-30 21:30:19 UTC (rev 2410) +++ trunk/utils/inputattach.c 2011-03-30 22:15:29 UTC (rev 2411) @@ -580,6 +580,11 @@ { "--zhen-hua", "-zhen", "Zhen Hua 5-byte protocol", B19200, CS8, SERIO_ZHENHUA, 0x00, 0x00, 0, zhenhua_init }, +#ifdef SERIO_TAOSEVM +{ "--taos-evm", "-taos", "TAOS evaluation module", + B1200, CS8, + SERIO_TAOSEVM, 0, 0, 0, NULL }, +#endif { "--dump", "-dump", "Just enable device", B2400, CS8, 0, 0x00, 0x00, 0, dump_init }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-04-03 21:32:18
|
Revision: 2414 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2414&view=rev Author: skitt Date: 2011-04-03 21:32:12 +0000 (Sun, 03 Apr 2011) Log Message: ----------- Describe the installation process. Drop mentions of acceltest and GPL-1. Credit Jean Delvare for his improvements to inputattach. Add distclean target. Make the install target create the bin directory. Add top-level Makefile. Modified Paths: -------------- trunk/README trunk/utils/Makefile Added Paths: ----------- trunk/Makefile Added: trunk/Makefile =================================================================== --- trunk/Makefile (rev 0) +++ trunk/Makefile 2011-04-03 21:32:12 UTC (rev 2414) @@ -0,0 +1,23 @@ +# $Id: Makefile 2413 2011-04-03 17:24:32Z skitt $ +# +# Makefile for Linux input utilities +# +# © 2011 Stephen Kitt <st...@sk...> +# +# This program 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 +# (at your option) any later version. +# +# This program 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 program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301 USA. + +%: + $(MAKE) -C utils $@ Modified: trunk/README =================================================================== --- trunk/README 2011-04-03 17:24:32 UTC (rev 2413) +++ trunk/README 2011-04-03 21:32:12 UTC (rev 2414) @@ -34,6 +34,20 @@ 4. Store the device's setup using jscal-store. +Installation +------------ + +To install the utilities and their manpages, run + make install +from the distribution's top directory. This will install everything +into /usr/local. Should you wish to install the tools elsewhere, you +can use the PREFIX variable: + PREFIX=/usr make install +The Makefiles also recognise the DESTDIR variable which can be used to +install into a temporary directory (this is useful mainly for +distribution packagers). + + Auto-loading inputattach and jscal-restore ------------------------------------------ @@ -102,6 +116,7 @@ * Alexander Clouter: W8001 support. * Roberto Neri: much discussion, and fixes and improvements to jscal-store/jscal-restore and the udev rules given above. +* Jean Delvare: inputattach improvements, TAOS support. License @@ -119,8 +134,7 @@ This program 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 (at -your option) any later version. (acceltest.c is provided only under -the terms of version 1 of the License.) +your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -133,5 +147,5 @@ USA. -The GNU General Public License version 1 is provided in the COPYING-1 -file; version 2 is provided in the COPYING file. +The GNU General Public License version 2 is provided in the COPYING +file. Modified: trunk/utils/Makefile =================================================================== --- trunk/utils/Makefile 2011-04-03 17:24:32 UTC (rev 2413) +++ trunk/utils/Makefile 2011-04-03 21:32:12 UTC (rev 2414) @@ -35,6 +35,7 @@ compile: $(PROGRAMS) +distclean: clean clean: $(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~ @@ -68,8 +69,10 @@ sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@ install: compile + install -d $(DESTDIR)$(PREFIX)/bin install $(PROGRAMS) $(DESTDIR)$(PREFIX)/bin install -d $(DESTDIR)$(PREFIX)/share/joystick install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick -.PHONY: compile clean install +.PHONY: compile clean distclean install + \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-04-03 21:58:55
|
Revision: 2416 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2416&view=rev Author: skitt Date: 2011-04-03 21:58:49 +0000 (Sun, 03 Apr 2011) Log Message: ----------- Add Makefile for the manpages. Clean up extraneous space at the end of utils Makefile. Modified Paths: -------------- trunk/utils/Makefile Added Paths: ----------- trunk/docs/Makefile Added: trunk/docs/Makefile =================================================================== --- trunk/docs/Makefile (rev 0) +++ trunk/docs/Makefile 2011-04-03 21:58:49 UTC (rev 2416) @@ -0,0 +1,31 @@ +# $Id: Makefile 2413 2011-04-03 17:24:32Z skitt $ +# +# Makefile for Linux input utilities +# +# © 2011 Stephen Kitt <st...@sk...> +# +# This program 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 +# (at your option) any later version. +# +# This program 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 program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301 USA. + +MANPAGES = evtest.1 inputattach.1 jstest.1 jscal.1 fftest.1 \ + ffmvforce.1 ffset.1 ffcfstress.1 + +PREFIX ?= /usr/local + +install: + install -d $(DESTDIR)$(PREFIX)/share/man/man1 + install $(MANPAGES) $(DESTDIR)$(PREFIX)/share/man/man1 + +.PHONY: install Modified: trunk/utils/Makefile =================================================================== --- trunk/utils/Makefile 2011-04-03 21:43:00 UTC (rev 2415) +++ trunk/utils/Makefile 2011-04-03 21:58:49 UTC (rev 2416) @@ -75,4 +75,3 @@ install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick .PHONY: compile clean distclean install - \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-04-05 07:24:33
|
Revision: 2421 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2421&view=rev Author: skitt Date: 2011-04-05 07:24:27 +0000 (Tue, 05 Apr 2011) Log Message: ----------- Drop evtest and refer users to Peter Hutterer's repository. Prepare 1.4rc2. Mention the project's URL. Split compilation and installation, and mention that SDL is required for ffmvforce. Modified Paths: -------------- trunk/README trunk/docs/Makefile trunk/utils/Makefile Removed Paths: ------------- trunk/docs/evtest.1 trunk/utils/evtest.c Modified: trunk/README =================================================================== --- trunk/README 2011-04-05 07:02:39 UTC (rev 2420) +++ trunk/README 2011-04-05 07:24:27 UTC (rev 2421) @@ -1,15 +1,16 @@ linuxconsole tools - Release 1.4rc1 + Release 1.4rc2 + http://sf.net/projects/linuxconsole/ This package contains the following utilities and associated documentation: -* evtest - input layer event monitor * inputattach - connects legacy serial devices to the input layer * joystick utilities - calibrate and test joysticks and joypads -The evtest and inputattach manpages provide more details on their -operation. +The evtest tool, which used to be part of this package, is now +maintained separately at http://cgit.freedesktop.org/evtest/ and +https://bugzilla.freedesktop.org/enter_bug.cgi?product=evtest Joystick utilities @@ -37,7 +38,14 @@ Installation ------------ +Most of the utilities have no particular requirement beyond a libc and +the Linux input layer headers (normally part of your libc +installation). ffmvforce requires SDL (libsdl1.2-dev on Debian +derivatives). + To install the utilities and their manpages, run + make +and then as root make install from the distribution's top directory. This will install everything into /usr/local. Should you wish to install the tools elsewhere, you @@ -124,7 +132,6 @@ The linuxconsole tools are Copyright © 1996-2005 Vojtech Pavlik - Copyright © 2001 Romain Dolbeau Copyright © 2001 Oliver Hamann Copyright © 2001-2002 Johann Deneux Copyright © 2001 Arndt Schoenewald Modified: trunk/docs/Makefile =================================================================== --- trunk/docs/Makefile 2011-04-05 07:02:39 UTC (rev 2420) +++ trunk/docs/Makefile 2011-04-05 07:24:27 UTC (rev 2421) @@ -19,7 +19,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA. -MANPAGES = evtest.1 inputattach.1 jstest.1 jscal.1 fftest.1 \ +MANPAGES = inputattach.1 jstest.1 jscal.1 fftest.1 \ ffmvforce.1 ffset.1 ffcfstress.1 jscal-store.1 \ jscal-restore.1 Deleted: trunk/docs/evtest.1 =================================================================== --- trunk/docs/evtest.1 2011-04-05 07:02:39 UTC (rev 2420) +++ trunk/docs/evtest.1 2011-04-05 07:24:27 UTC (rev 2421) @@ -1,25 +0,0 @@ -.TH evtest 1 "July 23, 2008" evtest -.SH NAME -evtest \- Input device event monitor -.SH SYNOPSIS -.B evtest -.I /dev/input/eventX -.SH DESCRIPTION -evtest displays information on the input device specified on the -command line, including all the events supported by the device. -It then monitors the device and displays all the events layer events -generated. -.PP -evtest needs to be able to read from the device; in most cases this -means it must be run as root. -.SH AUTHOR -.B evtest -was written by Vojtech Pavlik <vo...@su...>. -.PP -This manual page was written by Stephen Kitt <st...@sk...>, based on -that present in the -.B lineakd -package, for the Debian GNU/Linux system (but may be used by others). -It was last modified for -.B evtest -version 1.23, dated February 6, 2005. Modified: trunk/utils/Makefile =================================================================== --- trunk/utils/Makefile 2011-04-05 07:02:39 UTC (rev 2420) +++ trunk/utils/Makefile 2011-04-05 07:24:27 UTC (rev 2421) @@ -28,7 +28,7 @@ CC = gcc CFLAGS = -g -O2 -Wall -I../linux/include -PROGRAMS = evtest inputattach jstest jscal fftest ffmvforce ffset \ +PROGRAMS = inputattach jstest jscal fftest ffmvforce ffset \ ffcfstress jscal-restore jscal-store PREFIX ?= /usr/local Deleted: trunk/utils/evtest.c =================================================================== --- trunk/utils/evtest.c 2011-04-05 07:02:39 UTC (rev 2420) +++ trunk/utils/evtest.c 2011-04-05 07:24:27 UTC (rev 2421) @@ -1,394 +0,0 @@ -/* - * $Id$ - * - * Copyright (c) 1999-2000 Vojtech Pavlik - * - * Event device test program - */ - -/* - * This program 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 - * (at your option) any later version. - * - * This program 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 program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301 USA. - */ - -#include <stdint.h> - -#include <linux/input.h> - -#include <string.h> -#include <fcntl.h> -#include <unistd.h> -#include <stdio.h> - -#ifndef EV_SYN -#define EV_SYN 0 -#endif - -char *events[EV_MAX + 1] = { - [0 ... EV_MAX] = NULL, - [EV_SYN] = "Sync", [EV_KEY] = "Key", - [EV_REL] = "Relative", [EV_ABS] = "Absolute", - [EV_MSC] = "Misc", [EV_LED] = "LED", - [EV_SND] = "Sound", [EV_REP] = "Repeat", - [EV_FF] = "ForceFeedback", [EV_PWR] = "Power", - [EV_FF_STATUS] = "ForceFeedbackStatus", -}; - -char *keys[KEY_MAX + 1] = { - [0 ... KEY_MAX] = NULL, - [KEY_RESERVED] = "Reserved", [KEY_ESC] = "Esc", - [KEY_1] = "1", [KEY_2] = "2", - [KEY_3] = "3", [KEY_4] = "4", - [KEY_5] = "5", [KEY_6] = "6", - [KEY_7] = "7", [KEY_8] = "8", - [KEY_9] = "9", [KEY_0] = "0", - [KEY_MINUS] = "Minus", [KEY_EQUAL] = "Equal", - [KEY_BACKSPACE] = "Backspace", [KEY_TAB] = "Tab", - [KEY_Q] = "Q", [KEY_W] = "W", - [KEY_E] = "E", [KEY_R] = "R", - [KEY_T] = "T", [KEY_Y] = "Y", - [KEY_U] = "U", [KEY_I] = "I", - [KEY_O] = "O", [KEY_P] = "P", - [KEY_LEFTBRACE] = "LeftBrace", [KEY_RIGHTBRACE] = "RightBrace", - [KEY_ENTER] = "Enter", [KEY_LEFTCTRL] = "LeftControl", - [KEY_A] = "A", [KEY_S] = "S", - [KEY_D] = "D", [KEY_F] = "F", - [KEY_G] = "G", [KEY_H] = "H", - [KEY_J] = "J", [KEY_K] = "K", - [KEY_L] = "L", [KEY_SEMICOLON] = "Semicolon", - [KEY_APOSTROPHE] = "Apostrophe", [KEY_GRAVE] = "Grave", - [KEY_LEFTSHIFT] = "LeftShift", [KEY_BACKSLASH] = "BackSlash", - [KEY_Z] = "Z", [KEY_X] = "X", - [KEY_C] = "C", [KEY_V] = "V", - [KEY_B] = "B", [KEY_N] = "N", - [KEY_M] = "M", [KEY_COMMA] = "Comma", - [KEY_DOT] = "Dot", [KEY_SLASH] = "Slash", - [KEY_RIGHTSHIFT] = "RightShift", [KEY_KPASTERISK] = "KPAsterisk", - [KEY_LEFTALT] = "LeftAlt", [KEY_SPACE] = "Space", - [KEY_CAPSLOCK] = "CapsLock", [KEY_F1] = "F1", - [KEY_F2] = "F2", [KEY_F3] = "F3", - [KEY_F4] = "F4", [KEY_F5] = "F5", - [KEY_F6] = "F6", [KEY_F7] = "F7", - [KEY_F8] = "F8", [KEY_F9] = "F9", - [KEY_F10] = "F10", [KEY_NUMLOCK] = "NumLock", - [KEY_SCROLLLOCK] = "ScrollLock", [KEY_KP7] = "KP7", - [KEY_KP8] = "KP8", [KEY_KP9] = "KP9", - [KEY_KPMINUS] = "KPMinus", [KEY_KP4] = "KP4", - [KEY_KP5] = "KP5", [KEY_KP6] = "KP6", - [KEY_KPPLUS] = "KPPlus", [KEY_KP1] = "KP1", - [KEY_KP2] = "KP2", [KEY_KP3] = "KP3", - [KEY_KP0] = "KP0", [KEY_KPDOT] = "KPDot", - [KEY_ZENKAKUHANKAKU] = "Zenkaku/Hankaku", [KEY_102ND] = "102nd", - [KEY_F11] = "F11", [KEY_F12] = "F12", - [KEY_RO] = "RO", [KEY_KATAKANA] = "Katakana", - [KEY_HIRAGANA] = "HIRAGANA", [KEY_HENKAN] = "Henkan", - [KEY_KATAKANAHIRAGANA] = "Katakana/Hiragana", [KEY_MUHENKAN] = "Muhenkan", - [KEY_KPJPCOMMA] = "KPJpComma", [KEY_KPENTER] = "KPEnter", - [KEY_RIGHTCTRL] = "RightCtrl", [KEY_KPSLASH] = "KPSlash", - [KEY_SYSRQ] = "SysRq", [KEY_RIGHTALT] = "RightAlt", - [KEY_LINEFEED] = "LineFeed", [KEY_HOME] = "Home", - [KEY_UP] = "Up", [KEY_PAGEUP] = "PageUp", - [KEY_LEFT] = "Left", [KEY_RIGHT] = "Right", - [KEY_END] = "End", [KEY_DOWN] = "Down", - [KEY_PAGEDOWN] = "PageDown", [KEY_INSERT] = "Insert", - [KEY_DELETE] = "Delete", [KEY_MACRO] = "Macro", - [KEY_MUTE] = "Mute", [KEY_VOLUMEDOWN] = "VolumeDown", - [KEY_VOLUMEUP] = "VolumeUp", [KEY_POWER] = "Power", - [KEY_KPEQUAL] = "KPEqual", [KEY_KPPLUSMINUS] = "KPPlusMinus", - [KEY_PAUSE] = "Pause", [KEY_KPCOMMA] = "KPComma", - [KEY_HANGUEL] = "Hanguel", [KEY_HANJA] = "Hanja", - [KEY_YEN] = "Yen", [KEY_LEFTMETA] = "LeftMeta", - [KEY_RIGHTMETA] = "RightMeta", [KEY_COMPOSE] = "Compose", - [KEY_STOP] = "Stop", [KEY_AGAIN] = "Again", - [KEY_PROPS] = "Props", [KEY_UNDO] = "Undo", - [KEY_FRONT] = "Front", [KEY_COPY] = "Copy", - [KEY_OPEN] = "Open", [KEY_PASTE] = "Paste", - [KEY_FIND] = "Find", [KEY_CUT] = "Cut", - [KEY_HELP] = "Help", [KEY_MENU] = "Menu", - [KEY_CALC] = "Calc", [KEY_SETUP] = "Setup", - [KEY_SLEEP] = "Sleep", [KEY_WAKEUP] = "WakeUp", - [KEY_FILE] = "File", [KEY_SENDFILE] = "SendFile", - [KEY_DELETEFILE] = "DeleteFile", [KEY_XFER] = "X-fer", - [KEY_PROG1] = "Prog1", [KEY_PROG2] = "Prog2", - [KEY_WWW] = "WWW", [KEY_MSDOS] = "MSDOS", - [KEY_COFFEE] = "Coffee", [KEY_DIRECTION] = "Direction", - [KEY_CYCLEWINDOWS] = "CycleWindows", [KEY_MAIL] = "Mail", - [KEY_BOOKMARKS] = "Bookmarks", [KEY_COMPUTER] = "Computer", - [KEY_BACK] = "Back", [KEY_FORWARD] = "Forward", - [KEY_CLOSECD] = "CloseCD", [KEY_EJECTCD] = "EjectCD", - [KEY_EJECTCLOSECD] = "EjectCloseCD", [KEY_NEXTSONG] = "NextSong", - [KEY_PLAYPAUSE] = "PlayPause", [KEY_PREVIOUSSONG] = "PreviousSong", - [KEY_STOPCD] = "StopCD", [KEY_RECORD] = "Record", - [KEY_REWIND] = "Rewind", [KEY_PHONE] = "Phone", - [KEY_ISO] = "ISOKey", [KEY_CONFIG] = "Config", - [KEY_HOMEPAGE] = "HomePage", [KEY_REFRESH] = "Refresh", - [KEY_EXIT] = "Exit", [KEY_MOVE] = "Move", - [KEY_EDIT] = "Edit", [KEY_SCROLLUP] = "ScrollUp", - [KEY_SCROLLDOWN] = "ScrollDown", [KEY_KPLEFTPAREN] = "KPLeftParenthesis", - [KEY_KPRIGHTPAREN] = "KPRightParenthesis", [KEY_F13] = "F13", - [KEY_F14] = "F14", [KEY_F15] = "F15", - [KEY_F16] = "F16", [KEY_F17] = "F17", - [KEY_F18] = "F18", [KEY_F19] = "F19", - [KEY_F20] = "F20", [KEY_F21] = "F21", - [KEY_F22] = "F22", [KEY_F23] = "F23", - [KEY_F24] = "F24", [KEY_PLAYCD] = "PlayCD", - [KEY_PAUSECD] = "PauseCD", [KEY_PROG3] = "Prog3", - [KEY_PROG4] = "Prog4", [KEY_SUSPEND] = "Suspend", - [KEY_CLOSE] = "Close", [KEY_PLAY] = "Play", - [KEY_FASTFORWARD] = "Fast Forward", [KEY_BASSBOOST] = "Bass Boost", - [KEY_PRINT] = "Print", [KEY_HP] = "HP", - [KEY_CAMERA] = "Camera", [KEY_SOUND] = "Sound", - [KEY_QUESTION] = "Question", [KEY_EMAIL] = "Email", - [KEY_CHAT] = "Chat", [KEY_SEARCH] = "Search", - [KEY_CONNECT] = "Connect", [KEY_FINANCE] = "Finance", - [KEY_SPORT] = "Sport", [KEY_SHOP] = "Shop", - [KEY_ALTERASE] = "Alternate Erase", [KEY_CANCEL] = "Cancel", - [KEY_BRIGHTNESSDOWN] = "Brightness down", [KEY_BRIGHTNESSUP] = "Brightness up", - [KEY_MEDIA] = "Media", [KEY_UNKNOWN] = "Unknown", - [BTN_0] = "Btn0", [BTN_1] = "Btn1", - [BTN_2] = "Btn2", [BTN_3] = "Btn3", - [BTN_4] = "Btn4", [BTN_5] = "Btn5", - [BTN_6] = "Btn6", [BTN_7] = "Btn7", - [BTN_8] = "Btn8", [BTN_9] = "Btn9", - [BTN_LEFT] = "LeftBtn", [BTN_RIGHT] = "RightBtn", - [BTN_MIDDLE] = "MiddleBtn", [BTN_SIDE] = "SideBtn", - [BTN_EXTRA] = "ExtraBtn", [BTN_FORWARD] = "ForwardBtn", - [BTN_BACK] = "BackBtn", [BTN_TASK] = "TaskBtn", - [BTN_TRIGGER] = "Trigger", [BTN_THUMB] = "ThumbBtn", - [BTN_THUMB2] = "ThumbBtn2", [BTN_TOP] = "TopBtn", - [BTN_TOP2] = "TopBtn2", [BTN_PINKIE] = "PinkieBtn", - [BTN_BASE] = "BaseBtn", [BTN_BASE2] = "BaseBtn2", - [BTN_BASE3] = "BaseBtn3", [BTN_BASE4] = "BaseBtn4", - [BTN_BASE5] = "BaseBtn5", [BTN_BASE6] = "BaseBtn6", - [BTN_DEAD] = "BtnDead", [BTN_A] = "BtnA", - [BTN_B] = "BtnB", [BTN_C] = "BtnC", - [BTN_X] = "BtnX", [BTN_Y] = "BtnY", - [BTN_Z] = "BtnZ", [BTN_TL] = "BtnTL", - [BTN_TR] = "BtnTR", [BTN_TL2] = "BtnTL2", - [BTN_TR2] = "BtnTR2", [BTN_SELECT] = "BtnSelect", - [BTN_START] = "BtnStart", [BTN_MODE] = "BtnMode", - [BTN_THUMBL] = "BtnThumbL", [BTN_THUMBR] = "BtnThumbR", - [BTN_TOOL_PEN] = "ToolPen", [BTN_TOOL_RUBBER] = "ToolRubber", - [BTN_TOOL_BRUSH] = "ToolBrush", [BTN_TOOL_PENCIL] = "ToolPencil", - [BTN_TOOL_AIRBRUSH] = "ToolAirbrush", [BTN_TOOL_FINGER] = "ToolFinger", - [BTN_TOOL_MOUSE] = "ToolMouse", [BTN_TOOL_LENS] = "ToolLens", - [BTN_TOUCH] = "Touch", [BTN_STYLUS] = "Stylus", - [BTN_STYLUS2] = "Stylus2", [BTN_TOOL_DOUBLETAP] = "Tool Doubletap", - [BTN_TOOL_TRIPLETAP] = "Tool Tripletap", [BTN_GEAR_DOWN] = "WheelBtn", - [BTN_GEAR_UP] = "Gear up", [KEY_OK] = "Ok", - [KEY_SELECT] = "Select", [KEY_GOTO] = "Goto", - [KEY_CLEAR] = "Clear", [KEY_POWER2] = "Power2", - [KEY_OPTION] = "Option", [KEY_INFO] = "Info", - [KEY_TIME] = "Time", [KEY_VENDOR] = "Vendor", - [KEY_ARCHIVE] = "Archive", [KEY_PROGRAM] = "Program", - [KEY_CHANNEL] = "Channel", [KEY_FAVORITES] = "Favorites", - [KEY_EPG] = "EPG", [KEY_PVR] = "PVR", - [KEY_MHP] = "MHP", [KEY_LANGUAGE] = "Language", - [KEY_TITLE] = "Title", [KEY_SUBTITLE] = "Subtitle", - [KEY_ANGLE] = "Angle", [KEY_ZOOM] = "Zoom", - [KEY_MODE] = "Mode", [KEY_KEYBOARD] = "Keyboard", - [KEY_SCREEN] = "Screen", [KEY_PC] = "PC", - [KEY_TV] = "TV", [KEY_TV2] = "TV2", - [KEY_VCR] = "VCR", [KEY_VCR2] = "VCR2", - [KEY_SAT] = "Sat", [KEY_SAT2] = "Sat2", - [KEY_CD] = "CD", [KEY_TAPE] = "Tape", - [KEY_RADIO] = "Radio", [KEY_TUNER] = "Tuner", - [KEY_PLAYER] = "Player", [KEY_TEXT] = "Text", - [KEY_DVD] = "DVD", [KEY_AUX] = "Aux", - [KEY_MP3] = "MP3", [KEY_AUDIO] = "Audio", - [KEY_VIDEO] = "Video", [KEY_DIRECTORY] = "Directory", - [KEY_LIST] = "List", [KEY_MEMO] = "Memo", - [KEY_CALENDAR] = "Calendar", [KEY_RED] = "Red", - [KEY_GREEN] = "Green", [KEY_YELLOW] = "Yellow", - [KEY_BLUE] = "Blue", [KEY_CHANNELUP] = "ChannelUp", - [KEY_CHANNELDOWN] = "ChannelDown", [KEY_FIRST] = "First", - [KEY_LAST] = "Last", [KEY_AB] = "AB", - [KEY_NEXT] = "Next", [KEY_RESTART] = "Restart", - [KEY_SLOW] = "Slow", [KEY_SHUFFLE] = "Shuffle", - [KEY_BREAK] = "Break", [KEY_PREVIOUS] = "Previous", - [KEY_DIGITS] = "Digits", [KEY_TEEN] = "TEEN", - [KEY_TWEN] = "TWEN", [KEY_DEL_EOL] = "Delete EOL", - [KEY_DEL_EOS] = "Delete EOS", [KEY_INS_LINE] = "Insert line", - [KEY_DEL_LINE] = "Delete line", - [KEY_NUMERIC_0] = "0", [KEY_NUMERIC_1] = "1", - [KEY_NUMERIC_2] = "2", [KEY_NUMERIC_3] = "3", - [KEY_NUMERIC_4] = "4", [KEY_NUMERIC_5] = "5", - [KEY_NUMERIC_6] = "6", [KEY_NUMERIC_7] = "7", - [KEY_NUMERIC_8] = "8", [KEY_NUMERIC_9] = "9", -}; - -char *absval[5] = { "Value", "Min ", "Max ", "Fuzz ", "Flat " }; - -char *relatives[REL_MAX + 1] = { - [0 ... REL_MAX] = NULL, - [REL_X] = "X", [REL_Y] = "Y", - [REL_Z] = "Z", [REL_HWHEEL] = "HWheel", - [REL_DIAL] = "Dial", [REL_WHEEL] = "Wheel", - [REL_MISC] = "Misc", -}; - -char *absolutes[ABS_MAX + 1] = { - [0 ... ABS_MAX] = NULL, - [ABS_X] = "X", [ABS_Y] = "Y", - [ABS_Z] = "Z", [ABS_RX] = "Rx", - [ABS_RY] = "Ry", [ABS_RZ] = "Rz", - [ABS_THROTTLE] = "Throttle", [ABS_RUDDER] = "Rudder", - [ABS_WHEEL] = "Wheel", [ABS_GAS] = "Gas", - [ABS_BRAKE] = "Brake", [ABS_HAT0X] = "Hat0X", - [ABS_HAT0Y] = "Hat0Y", [ABS_HAT1X] = "Hat1X", - [ABS_HAT1Y] = "Hat1Y", [ABS_HAT2X] = "Hat2X", - [ABS_HAT2Y] = "Hat2Y", [ABS_HAT3X] = "Hat3X", - [ABS_HAT3Y] = "Hat 3Y", [ABS_PRESSURE] = "Pressure", - [ABS_DISTANCE] = "Distance", [ABS_TILT_X] = "XTilt", - [ABS_TILT_Y] = "YTilt", [ABS_TOOL_WIDTH] = "Tool Width", - [ABS_VOLUME] = "Volume", [ABS_MISC] = "Misc", -}; - -char *misc[MSC_MAX + 1] = { - [ 0 ... MSC_MAX] = NULL, - [MSC_SERIAL] = "Serial", [MSC_PULSELED] = "Pulseled", - [MSC_GESTURE] = "Gesture", [MSC_RAW] = "RawData", - [MSC_SCAN] = "ScanCode", -}; - -char *leds[LED_MAX + 1] = { - [0 ... LED_MAX] = NULL, - [LED_NUML] = "NumLock", [LED_CAPSL] = "CapsLock", - [LED_SCROLLL] = "ScrollLock", [LED_COMPOSE] = "Compose", - [LED_KANA] = "Kana", [LED_SLEEP] = "Sleep", - [LED_SUSPEND] = "Suspend", [LED_MUTE] = "Mute", - [LED_MISC] = "Misc", -}; - -char *repeats[REP_MAX + 1] = { - [0 ... REP_MAX] = NULL, - [REP_DELAY] = "Delay", [REP_PERIOD] = "Period" -}; - -char *sounds[SND_MAX + 1] = { - [0 ... SND_MAX] = NULL, - [SND_CLICK] = "Click", [SND_BELL] = "Bell", - [SND_TONE] = "Tone" -}; - -char **names[EV_MAX + 1] = { - [0 ... EV_MAX] = NULL, - [EV_SYN] = events, [EV_KEY] = keys, - [EV_REL] = relatives, [EV_ABS] = absolutes, - [EV_MSC] = misc, [EV_LED] = leds, - [EV_SND] = sounds, [EV_REP] = repeats, -}; - -#define BITS_PER_LONG (sizeof(long) * 8) -#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) -#define OFF(x) ((x)%BITS_PER_LONG) -#define BIT(x) (1UL<<OFF(x)) -#define LONG(x) ((x)/BITS_PER_LONG) -#define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1) - -int main (int argc, char **argv) -{ - int fd, rd, i, j, k; - struct input_event ev[64]; - int version; - unsigned short id[4]; - unsigned long bit[EV_MAX][NBITS(KEY_MAX)]; - char name[256] = "Unknown"; - int abs[5]; - - if (argc < 2) { - printf("Usage: evtest /dev/input/eventX\n"); - printf("Where X = input device number\n"); - return 1; - } - - if ((fd = open(argv[argc - 1], O_RDONLY)) < 0) { - perror("evtest"); - return 1; - } - - if (ioctl(fd, EVIOCGVERSION, &version) < 0) { - perror("evtest: can't get version"); - return 1; - } - - printf("Input driver version is %d.%d.%d\n", - version >> 16, (version >> 8) & 0xff, version & 0xff); - - ioctl(fd, EVIOCGID, id); - printf("Input device ID: bus 0x%x vendor 0x%x product 0x%x version 0x%x\n", - id[ID_BUS], id[ID_VENDOR], id[ID_PRODUCT], id[ID_VERSION]); - - ioctl(fd, EVIOCGNAME(sizeof(name)), name); - printf("Input device name: \"%s\"\n", name); - - memset(bit, 0, sizeof(bit)); - ioctl(fd, EVIOCGBIT(0, sizeof(bit[0])), bit[0]); - printf("Supported events:\n"); - - for (i = 0; i < EV_MAX; i++) - if (test_bit(i, bit[0])) { - printf(" Event type %d (%s)\n", i, events[i] ? events[i] : "?"); - if (!i) continue; - ioctl(fd, EVIOCGBIT(i, sizeof(bit[0])), bit[i]); - for (j = 0; j < KEY_MAX; j++) - if (test_bit(j, bit[i])) { - printf(" Event code %d (%s)\n", j, names[i] ? (names[i][j] ? names[i][j] : "?") : "?"); - if (i == EV_ABS) { - ioctl(fd, EVIOCGABS(j), abs); - for (k = 0; k < 5; k++) - if ((k < 3) || abs[k]) - printf(" %s %6d\n", absval[k], abs[k]); - } - } - } - - - printf("Testing ... (interrupt to exit)\n"); - - while (1) { - rd = read(fd, ev, sizeof(struct input_event) * 64); - - if (rd < (int) sizeof(struct input_event)) { - printf("yyy\n"); - perror("\nevtest: error reading"); - return 1; - } - - for (i = 0; i < rd / sizeof(struct input_event); i++) - - if (ev[i].type == EV_SYN) { - printf("Event: time %ld.%06ld, -------------- %s ------------\n", - ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].code ? "Config Sync" : "Report Sync" ); - } else if (ev[i].type == EV_MSC && (ev[i].code == MSC_RAW || ev[i].code == MSC_SCAN)) { - printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %02x\n", - ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].type, - events[ev[i].type] ? events[ev[i].type] : "?", - ev[i].code, - names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?", - ev[i].value); - } else { - printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %d\n", - ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].type, - events[ev[i].type] ? events[ev[i].type] : "?", - ev[i].code, - names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?", - ev[i].value); - } - - fflush(stdout); - - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-05-16 21:06:03
|
Revision: 2422 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2422&view=rev Author: skitt Date: 2011-05-16 21:05:54 +0000 (Mon, 16 May 2011) Log Message: ----------- Avoid quitting on recoverable signals; thanks to Kees Cook <ke...@ub...> for the patch. Modified Paths: -------------- trunk/NEWS trunk/utils/inputattach.c Modified: trunk/NEWS =================================================================== --- trunk/NEWS 2011-04-05 07:24:27 UTC (rev 2421) +++ trunk/NEWS 2011-05-16 21:05:54 UTC (rev 2422) @@ -1,3 +1,10 @@ +Version 1.4 +----------- + +* inputattach no longer aborts when it receives a recoverable signal + (thanks to Kees Cook <ke...@ub...> for the patch). + + Version 1.4rc1 -------------- Modified: trunk/utils/inputattach.c =================================================================== --- trunk/utils/inputattach.c 2011-04-05 07:24:27 UTC (rev 2421) +++ trunk/utils/inputattach.c 2011-05-16 21:05:54 UTC (rev 2422) @@ -738,7 +738,7 @@ retval = EXIT_FAILURE; } - read(fd, NULL, 0); + for (errno = 0; errno != EINTR; read(fd, NULL, 0)) ; ldisc = 0; ioctl(fd, TIOCSETD, &ldisc); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-06-25 13:17:03
|
Revision: 2427 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2427&view=rev Author: skitt Date: 2011-06-25 13:16:57 +0000 (Sat, 25 Jun 2011) Log Message: ----------- Handle other retry errors correctly (thanks to Alexander Clouter for the patch). Release 1.4.1. Modified Paths: -------------- trunk/Makefile trunk/NEWS trunk/README trunk/utils/inputattach.c Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2011-06-25 13:14:12 UTC (rev 2426) +++ trunk/Makefile 2011-06-25 13:16:57 UTC (rev 2427) @@ -19,7 +19,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA. -VERSION := 1.4 +VERSION := 1.4.1 PACKAGE := linuxconsoletools-$(VERSION) Modified: trunk/NEWS =================================================================== --- trunk/NEWS 2011-06-25 13:14:12 UTC (rev 2426) +++ trunk/NEWS 2011-06-25 13:16:57 UTC (rev 2427) @@ -1,3 +1,9 @@ +Version 1.4.1 +------------- + +* inputattach correctly handles non-retry errors other than EINTR + (thanks to Alexander Clouter <al...@di...> for the patch). + Version 1.4 ----------- Modified: trunk/README =================================================================== --- trunk/README 2011-06-25 13:14:12 UTC (rev 2426) +++ trunk/README 2011-06-25 13:16:57 UTC (rev 2427) @@ -1,5 +1,5 @@ linuxconsole tools - Release 1.4 + Release 1.4.1 http://sf.net/projects/linuxconsole/ @@ -121,7 +121,7 @@ functions. * Claudio Nieder: Sahara Touch-iT213 support. * Florian Fainelli: evtest fixes. -* Alexander Clouter: W8001 support. +* Alexander Clouter: W8001 support and error-handling fixes. * Roberto Neri: much discussion, and fixes and improvements to jscal-store/jscal-restore and the udev rules given above. * Jean Delvare: inputattach improvements, TAOS support. Modified: trunk/utils/inputattach.c =================================================================== --- trunk/utils/inputattach.c 2011-06-25 13:14:12 UTC (rev 2426) +++ trunk/utils/inputattach.c 2011-06-25 13:16:57 UTC (rev 2427) @@ -607,6 +607,9 @@ puts(""); } +/* palmed wisdom from http://stackoverflow.com/questions/1674162/ */ +#define RETRY_ERROR(x) (x == EAGAIN || x == EWOULDBLOCK || x == EINTR) + int main(int argc, char **argv) { unsigned long devt; @@ -738,7 +741,13 @@ retval = EXIT_FAILURE; } - for (errno = 0; errno != EINTR; read(fd, NULL, 0)) ; + do { + i = read(fd, NULL, 0); + if (i == -1) { + if (RETRY_ERROR(errno)) + continue; + } + } while (!i); ldisc = 0; ioctl(fd, TIOCSETD, &ldisc); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-09-08 05:14:21
|
Revision: 2433 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2433&view=rev Author: skitt Date: 2011-09-08 05:14:15 +0000 (Thu, 08 Sep 2011) Log Message: ----------- Version 1.4.2. Modified Paths: -------------- trunk/Makefile trunk/NEWS trunk/README Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2011-09-08 05:10:36 UTC (rev 2432) +++ trunk/Makefile 2011-09-08 05:14:15 UTC (rev 2433) @@ -19,7 +19,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA. -VERSION := 1.4.1 +VERSION := 1.4.2 PACKAGE := linuxconsoletools-$(VERSION) Modified: trunk/NEWS =================================================================== --- trunk/NEWS 2011-09-08 05:10:36 UTC (rev 2432) +++ trunk/NEWS 2011-09-08 05:14:15 UTC (rev 2433) @@ -1,3 +1,17 @@ +Version 1.4.2 +------------- + +* The udev rule matching w8001 devices has been split to handle + devices using different baud rates, and the different baud rates are + documented. + +* inputattach no longer resets the line discipline before exiting when + it discovers the device is already managed by another inputattach + instance. + +* jscal-store creates its target directory if necessary. + + Version 1.4.1 ------------- @@ -4,6 +18,7 @@ * inputattach correctly handles non-retry errors other than EINTR (thanks to Alexander Clouter <al...@di...> for the patch). + Version 1.4 ----------- Modified: trunk/README =================================================================== --- trunk/README 2011-09-08 05:10:36 UTC (rev 2432) +++ trunk/README 2011-09-08 05:14:15 UTC (rev 2433) @@ -1,5 +1,5 @@ linuxconsole tools - Release 1.4.1 + Release 1.4.2 http://sf.net/projects/linuxconsole/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2011-09-17 17:14:46
|
Revision: 2435 http://linuxconsole.svn.sourceforge.net/linuxconsole/?rev=2435&view=rev Author: skitt Date: 2011-09-17 17:14:40 +0000 (Sat, 17 Sep 2011) Log Message: ----------- Subject: [PATCH] inputattach: Add PenMount 6000, 3000 and 6250 support From: John Sung <pen...@gm...> Signed-off-by: John Sung <pen...@gm...> Modified Paths: -------------- trunk/docs/inputattach.1 trunk/utils/inputattach.c Modified: trunk/docs/inputattach.1 =================================================================== --- trunk/docs/inputattach.1 2011-09-17 16:26:31 UTC (rev 2434) +++ trunk/docs/inputattach.1 2011-09-17 17:14:40 UTC (rev 2435) @@ -81,9 +81,18 @@ .BR \-newt ", " \-\-newtonkbd Newton keyboard. .TP -.BR \-pm ", " \-\-penmount -Penmount touchscreen. +.BR \-pm3k ", " \-\-penmount3000 +Penmount 3000 touchscreen. .TP +.BR \-pm6k ", " \-\-penmount6000 +Penmount 6000 touchscreen. +.TP +.BR \-pmm1 ", " \-\-penmount6250 +Penmount 6250 touchscreen. +.TP +.BR \-pm9k ", " \-\-penmount9000 +Penmount 9000 touchscreen. +.TP .BR \-ps2ser ", " \-\-ps2serkbd PS/2 via serial keyboard. .TP Modified: trunk/utils/inputattach.c =================================================================== --- trunk/utils/inputattach.c 2011-09-17 16:26:31 UTC (rev 2434) +++ trunk/utils/inputattach.c 2011-09-17 17:14:40 UTC (rev 2435) @@ -326,6 +326,24 @@ return 0; } +static int pm6k_init(int fd, unsigned long *id, unsigned long *extra) +{ + int i = 0; + unsigned char cmd[6] = {0xF1, 0x00, 0x00, 0x00, 0x00, 0x0E}; + unsigned char data[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + + /* Enable the touchscreen */ + if (write(fd, cmd, sizeof(cmd)) != sizeof(cmd)) + return -1; + + /* Read ACK */ + for(i=0;i<sizeof(data);i++) + if (readchar(fd, &data[i], 100)<0) + break ; + + return 0; +} + static int fujitsu_init(int fd, unsigned long *id, unsigned long *extra) { unsigned char cmd, data; @@ -565,9 +583,18 @@ { "--touchwin", "-tw", "Touchwindow serial touchscreen", B4800, CS8 | CRTSCTS, SERIO_TOUCHWIN, 0x00, 0x00, 0, NULL }, -{ "--penmount", "-pm", "Penmount touchscreen", - B19200, CS8 | CRTSCTS, +{ "--penmount9000", "-pm9k", "PenMount 9000 touchscreen", + B19200, CS8, SERIO_PENMOUNT, 0x00, 0x00, 0, NULL }, +{ "--penmount6000", "-pm6k", "PenMount 6000 touchscreen", + B19200, CS8, + SERIO_PENMOUNT, 0x01, 0x00, 0, pm6k_init }, +{ "--penmount3000", "-pm3k", "PenMount 3000 touchscreen", + B38400, CS8, + SERIO_PENMOUNT, 0x02, 0x00, 0, NULL }, +{ "--penmount6250", "-pmm1", "PenMount 6250 touchscreen", + B19200, CS8, + SERIO_PENMOUNT, 0x03, 0x00, 0, NULL }, { "--fujitsu", "-fjt", "Fujitsu serial touchscreen", B9600, CS8, SERIO_FUJITSU, 0x00, 0x00, 1, fujitsu_init }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |