LoadIdentityClut: Silence "unknown gpu" warning for Intel IGP's.

They work just fine with type-0 LUT at least on Linux, no need
to cry wolf.

(cherry picked from commit 5e0661660dc302eafb2c8595ea387fe250637af2)
DrawFormattedText: Fix text clipping with optional winRect parameter.

Didn't clip properly, causing the bug described in PTB forum
message 18009.

(cherry picked from commit 24a295a8ddabcd7214a55e41d24557230a9aa35f)
Add new folder Psychtoolbox/PsychHardware/LinuxX11ExampleXorgConfs

Contains various xorg.conf files which were successfully tested
at some point, so can serve as a reference for non-standard
X11 display setups on Linux.

(cherry picked from commit 13dfd6a778aa7494a6101250f410b8752637c8bb)
Add 32-Bit libportaudio.a for Linux to Cohorts/Portaudio

To make preparation of a 32-Bit Linux build system a tad less painful
next time.
-> Stored as libportaudio32Linux.a to cp into
/usr/local/lib/libportaudio.a

(cherry picked from commit f2f8bee7168461e437ee6a80f715fab67f733d69)
DatapixxAudioKey: Unbreak on latest Matlabs

Turns out Matlab changed its mind again about how to treat [] empty
variables in boolean expressions, not considering “a && b” an error if
a or b is [] - Changing programming language behaviour retroactively -
wtf?!?

This causes this function to fail on at least R2013b. Fix it.

(cherry picked from commit 8876b37e63cf70c507b89348bc87cf46971fd040)
Add a xorg.conf_intel for example default setup for Intel gpus.

It disables triple-buffering as that is currently incompatible
with precise swap scheduling and stimulus onset timestamping.

(cherry picked from commit cdbdaa1a11c576ad289fb377c9b2f23921777109)
Modify xorg.conf_intel to disable DRI3/Present and use DRI2 instead.

Finally found a intel-ddx option that allows to disable DRI3/Present
and revert to good old proven DRI2, without cumbersome the need to
use setenv('LIBGL_DRI3_DISABLE','1') from within Octave/Matlab.

Adding these disable options is a much more pain-free workaround for
us until we find a proper fix for the upstream server/ddx.

Disabling DRI3 via the "DRI" "2" option is neccessary, as just
disabling "Present" doesn't help. Disabling "Present" in addition
is not really needed. Maybe we deal with a DRI3 bug, or maybe it
is a Present bug and use of DRI3 without Present simply doesn't
work?

-> xorg.conf_intel updated.
-> Successfully tested on KUbuntu 14.10, XOrg 1.16.0, Mesa 10.3.0.

(cherry picked from commit 9c2eebd71bb858c2e46091196d39d701f28508cf)
help SyncTrouble: Give setup tips for use of our xorg.conf templates

We provide quite a few tested ones for different multi-display setups
and for preventing visual timing problems.

(cherry picked from commit 6f59f5a5c74a5155b1686ed233ad9227a29b407a)
Add some request for donations to post install routine and main help file.

A link to the websites donations page with further info.
PsychtoolboxRegistration: Change registration server URL to unbreak it.

Change of URL is needed, so registration attempts don't go
to nirvana.

(cherry picked from commit 84e896f24e37b4c402794559108e5040b84f7a3d)
PsychtoolboxVersion: Fix output of GitHub URL

String was empty when used with regular SVN checkout.

(cherry picked from commit e2d81b79466d500951679fcdae9d7a61e6b8d829)
NetStation(): Fix overflow error, add eventnoack and flushreadbuffer

On Unix systems, the int32 value for timestamps could overflow because
GetSecs returns time since 1973, not since system bootup. Fix it by
using a timestamp from last sync as baseline.

Add new non-blocking 'eventnoack' command, as counterpart to 'event'.
Add new 'flushreadbuffer' command.

-> Changes contributed by Justin Ales in forum message 18150.
-> This is untested by me, but code looks reasonable. Needs retesting.

(cherry picked from commit 9cf5bd7a1f3914a752f0363ff8c7dca3294ff7f3)
help PsychtoolboxKernelDriver - Mention new hacks needed for Yosemite

Need to disable global kext signature verification to make the driver
load.

Special thanks to the simple minded people at Cupertino for making life
even a bit more painful on your toy operating system.

(cherry picked from commit 9d414e7acbd2679f03c827d31047a6281dad84fd)
help SyncTrouble - Mention how to disable compositor on KDE.

KDE/KWin may sometimes need to completely run without compositor on
some Intel gpu’s due to some problems with the latest ddx’es.

Note: KWin - at least in the version shipping in KUbuntu 14.10 - does
not auto-unredirect fullscreen windows if running on Intel gpu’s. This
according to Martin Graesslin to work around bugs in the Intel-ddx. Our
new-style-override redirect path, which is auto-selected on KDE +
Intel, can still force KWin to unredirect fullscreen windows / disable
composition, via proper XAtoms on our window. However, sometimes this
doesn’t seem to happen fast enough on some systems, so PTB throws some
timing warnings, which are spurious but still confusing to users.
Therefore a manual disable as described in “help SyncTrouble” might be
a better solution for users of Intel GPU’s on KDE/KWin.

(cherry picked from commit 75b5c3f051acc538721d4da85534b884c0b80ad8)