Commit Graph

144 Commits

Author SHA1 Message Date
Adam Jackson
67eeede4e1 Bug #2004: Make DDC delay slightly longer. (Thomas J. Moore) 2005-01-24 20:44:49 +00:00
Egbert Eich
55736aa8c1 Alan Cox requested that we check the kernel version before we use kernel
VGA font save/restore as the required features have been added to Linux
    2.6.11 (Bugzilla #2277).
2005-01-21 14:25:26 +00:00
Alan Coopersmith
9bd876768b Fix debugging ErrorF() so it compiles when DEBUG is true. 2005-01-19 22:23:20 +00:00
Egbert Eich
761f937fde - Don't suspend Xserver on APM standby request as this seems to cause
problems on may systems which don't support APM standby and might not
    be required as according to the APM specs the chips should receive
    enough power to retain its state.
- Print out power state change requests to log file in all verbosity
    levels.
- Don't change server state if no driver PM function is registered.
    (Bugzilla #2279)
2005-01-14 19:29:18 +00:00
Egbert Eich
16f9d2d72a Let the OS instead of X save/restore text console fonts on Linux. So far we
relied on the generic VGA layer to restore text console fonts for us
    when shutting down the server or VT switching back to the text console.
    This has worked rather well but it has some downsides on Linux: a. Many
    people use fbdev as console text mode. In this case it is not necessary
    to save/restore console fonts as the console is running in graphics
    mode anyway. b. Some architectures don't have a fbdev console but
    require a full POST of even the primary card (ie. IA64). This posting
    has to take place before we even have a chance to save anything.
    Therefore the fonts we save are the once written to the chip by POST,
    not what has been programmed by the user. c. Certain chipsets utilize
    the BIOS to perform mode setting. This may interfer with the vga
    save/restore font function in a strange way. It would therefore be
    preferrable to let the OS - which has been used to set up the font in
    the first place - take care of saving/restoring the data. I will attach
    a patch which will do so for Linux. To make this fully functional a
    small patch needs to be applied to the Linux kernel. To disable this
    feature add: #define DoOSFontRestore NO to your host.def. (Bugzilla
    #2277)
2005-01-14 18:42:26 +00:00
Adam Jackson
6c0b03a236 Build fixes for static server. 2005-01-14 17:14:08 +00:00
Roland Mainz
2137bc6eb9 xc/programs/Xserver/afb/afbbres.c
xc/programs/Xserver/afb/afbbresd.c
xc/programs/Xserver/afb/afbclip.c
xc/programs/Xserver/afb/afbhrzvert.c
xc/programs/Xserver/afb/afbline.c
xc/programs/Xserver/afb/afbmodule.c
xc/programs/Xserver/afb/afbpixmap.c
xc/programs/Xserver/afb/afbpolypnt.c
xc/programs/Xserver/afb/afbpushpxl.c
xc/programs/Xserver/afb/afbtegblt.c
xc/programs/Xserver/cfb/Imakefile.inc
xc/programs/Xserver/cfb/cfballpriv.c
xc/programs/Xserver/cfb/cfbbitblt.c
xc/programs/Xserver/cfb/cfbcppl.c
xc/programs/Xserver/cfb/cfbgc.c
xc/programs/Xserver/cfb/cfbglblt8.c
xc/programs/Xserver/cfb/cfbmap.h
xc/programs/Xserver/cfb/cfbpixmap.c
xc/programs/Xserver/cfb/cfbscrinit.c
xc/programs/Xserver/cfb/cfbtab.h
xc/programs/Xserver/cfb/cfbteblt8.c
xc/programs/Xserver/cfb/cfbunmap.h
xc/programs/Xserver/mfb/maskbits.c
xc/programs/Xserver/mfb/maskbits.h
xc/programs/Xserver/mfb/mergerop.h
xc/programs/Xserver/mfb/mfb.h
xc/programs/Xserver/mfb/mfbclip.c
xc/programs/Xserver/mfb/mfbfont.c
xc/programs/Xserver/mfb/mfbgc.c
xc/programs/Xserver/mfb/mfbmisc.c
xc/programs/Xserver/mfb/mfbpushpxl.c
//bugs.freedesktop.org/show_bug.cgi?id=1114) attachment #667
    (https://bugs.freedesktop.org/attachment.cgi?id=667): Convert afb and
    cfb{,16,24,32} to be dlloader-friendly. Patch by Adam Jackson
    <ajax@freedesktop.org>.
2005-01-14 08:37:30 +00:00
Adam Jackson
a303670107 Bug #2114: PPC64 Linux build fix: use system definition of eieio().
Originally Gentoo bug #66223. (Tim Yamin, Donnie Berkholz)
2005-01-13 01:22:53 +00:00
Egbert Eich
b6301dc410 Minor format fix.
Added explanatory comment and debug code.
Added comment.
2005-01-11 14:59:02 +00:00
Egbert Eich
f417159e51 Make option 'DontVTSwitch' work again with kbd driver under Linux. The kbd
driver now calls the OS layer to handle special keys. Possibly other
    special keys and other OSes need to be looked at also. (Helmut
    Fahrion).
2005-01-10 12:20:33 +00:00
Alan Coopersmith
591ac9c811 Bugzilla #2211 (https://bugs.freedesktop.org/show_bug.cgi?id=2211)
attachment #1627 (https://bugs.freedesktop.org/attachment.cgi?id=1627):
    xorgconfig default keyboard model outdated (should be pc105, not
    pc101/pc102)
2005-01-04 00:16:20 +00:00
Egbert Eich
ae6d52092b Added missing return value (Bugzilla #2206) Problem found by Stefan Kulow. 2005-01-03 15:39:35 +00:00
Alan Coopersmith
3035739e5b Bug #2123 <https://bugs.freedesktop.org/show_bug.cgi?id=2123> Attachment
#1587 <https://bugs.freedesktop.org/attachment.cgi?id=1587> Call to
    uname should not check for return == 0, but for >= 0 instead
2004-12-22 08:28:16 +00:00
Thomas Winischhofer
eea11301fd Another fix for MiscPassMessage(): Initialize returned "status". 2004-12-15 15:05:35 +00:00
Thomas Winischhofer
c7fec26b50 Make MISC extention's PassMessage() actually work and fix memory leaks 2004-12-15 00:32:56 +00:00
Egbert Eich
d0b17bda4d Removed #ifdef'ed out code together with the comment explaining why it was
#ifdef'ed out.
Fixed typo.
Added comment to a changed that's been committed with one of the previous
    commits.
2004-12-14 08:59:20 +00:00
Roland Mainz
159e443a22 //bugs.freedesktop.org/show_bug.cgi?id=1688) attachment #1530
(https://bugs.freedesktop.org/attachment.cgi?id=1530): Fix the current
    implementation to make it possible to slow down the mouse pointer or
    use arbitrary fractions (without running into rounding error issues).
    The change is using the same method of preserving rounding errors that
    the exponential method is already using. Patch by Jan Brunner
    <Jan_B@gmx.ch>.
2004-12-13 02:13:32 +00:00
Kristian Høgsberg
f1768677f7 Reduce vidmode logging. 2004-12-12 23:29:20 +00:00
Kristian Høgsberg
9286a5d032 Add fix for 460gx pci scan code. 2004-12-12 22:58:37 +00:00
Roland Mainz
6c317c1c13 //bugs.freedesktop.org/show_bug.cgi?id=1361) attachment #1287
(https://bugs.freedesktop.org/attachment.cgi?id=1287): Avoid DRI
    initalisation when the Xfree86-DRI extension was turned off. Patch by
    Kristian Høgsberg <krh@bitplanet.net>.
2004-12-08 05:52:20 +00:00
Matthieu Herrb
8091b301c9 xf86Config.c references USE_DEPRECATED_KEYBOARD_DRIVER so define it if
needed when building this file
- bug fix: pointerMsg -> keyboardMsg in auto-configuration code.
- make the 'kbd' driver the default for autoconfiguration everywhere.
2004-12-06 21:54:19 +00:00
Egbert Eich
9c94971617 Use the same method of finding the screen pixmap of COMPOSITE extension is
compiled in or not.
Removed stale make variable.
Updated xaaWrapper.c: Under certain circumstances the accel path was not
    used when possible. Removed some debugging stuff and stale code that
    had been commented out.
Check if maps are really installed before attempting to list them.
2004-12-06 15:53:00 +00:00
Markus Kuhn
44f4713a05 Encoding of numerous files changed to UTF-8 2004-12-04 00:43:13 +00:00
Kristian Høgsberg
30a4202f3d Use __printf__ in gcc function attributes to avoid clash with libc wrapper
define, and remove the last bits of the old workaround.
2004-12-02 21:58:58 +00:00
Egbert Eich
af717ae57d Make Xorg the default server to install.
Avoid PIO access on IA64. Some IA64 machine check if legacy ports outside
    the VGA range are accessed. The ATi driver however does this to probe
    for ISA Mach8/32/64. Since no IA64 has ISA slots this restriction
    should not be relevant to the user.
Avoid recursive calls of xf86scanpci(). This function normally detects that
    it has been called before by checking if the PCI structure is filled
    out. So far if this was not the case (because PCI probing has failed
    for some reason) the function is traversed again. With the chipset
    specific PCI bus probing this can lead to an endless recursive loop as
    the post-probing code calls xf86scanpci() from within this function.
The OS specific PCI code for Linux worked only if bus 0 was populated as it
    checked for the presence of /proc/bus/pci/00. Fixed to check for
    /proc/bus/pci/<bus_to_look_for> instead.
2004-11-30 08:38:44 +00:00
Kristian Høgsberg
da3df7522d Remove this file and all references to the binary expiry code.
Remove old obsolete include/extensions/damage.h.
Include srvrv_ctrl(xfree86) in macintosh US XKB symbol file so VT switching
    works again on mac (#1872).
Remove out of place #define's of printf to xf86printf. This definition
    should only be in xfree86/os-support/xf86_libc.h
2004-11-24 02:45:33 +00:00
Alan Coopersmith
343f965749 Fix typos in output file. (Bugzilla #1849, reported by Yi Ren-Chen) 2004-11-14 17:29:56 +00:00
Kristian Høgsberg
a97548b1c9 Cosmetic fix to make xf86pciBus.c use standard min() macro. 2004-11-11 20:10:28 +00:00
Matthieu Herrb
e5040e24f0 oops commited wrong version previously 2004-11-11 16:09:58 +00:00
Matthieu Herrb
e380fd548e update shared lib revisions on OpenBSD (Bug #1828).
update references to xf86site.def in comments (Bug #1827).
fix kbd driver for wskbd protocol and pure wscons console driver (Bug
    #1825).
don't add '-4' to generated default file name (bug #1826).
typo in resource name (XFree86 bug #1300, X.org bug #1825)
2004-11-11 15:44:31 +00:00
Adam Jackson
2854fa438f Bug #557: Don't use "bool" as a variable name in xf86cfg, to avoid compiler
bugs. (Donnie Berkholz)
2004-11-09 17:06:15 +00:00
Adam Jackson
367b963b63 Bug #1765: Add support for R_ALPHA_SREL32 relocations in elfloader.
Originally Debian patch
    202_alpha_elfloader_support_R_ALPHA_SREL32.diff. (Falk Hueffner)
2004-11-09 15:58:41 +00:00
Egbert Eich
522c878fca Removing unneeded private FreeType2 symbol.
Updating to EDID 1.3. (Bugzilla# 1490, Jay Cotton, Egbert Eich).
Removing unneeded code.
Fixed KGA handling for i810. KGA handling for chips derived from C&T chips
    is slightly different. The changes make the code consistent with the
    C&T (chips) and i740 drivers.
2004-11-02 08:54:53 +00:00
Egbert Eich
1074992c28 Fixed sig11 which occured when calling a CloseDisplay() after
XScreenSaverSetAttributes() followed by XScreenSaverUnsetAttributes().
    Caused by missing FreeResource() in XScreenSaverUnsetAttributes().
Removing unused DDC sections that caused misinterpretation of DDC data due
    to a missing break statement in a switch.
Fixed typo: #if <-> #ifdef.
2004-11-01 16:05:27 +00:00
Alan Coopersmith
7e588ba9ab Add -d flag for compilers like the Sun C compilers that produce dependency
lists themselves. To use with the Sun compilers, add to host.def: #
    define UseCCMakeDepend YES # define DependFlags -cc $(CC) -d -xM (Sun
    bug id #4245688 - fix by Alan Coopersmith)
Add Solaris to the platforms on which mprotect is run to set execute
    permissions when necessary. (Sun bug id #6175128 - fix by Alan
    Coopersmith)
Internationalize digital output (Sun bug id #4119396 - fix by Steve
    Swales), add -bgpixmap option to set XPM file as background (originally
    from STSF project version of xclock by Alan Coopersmith)
xc/programs/xmodmap/handle.c,pf.c xmodmap was printing line numbers which
    are one too low in error messages (Xorg bugzilla #1739, Sun bug id
    4637857 - fix by Sam Lau)
2004-10-30 20:33:43 +00:00
Thomas Winischhofer
612bd1c273 Add facility for catching signal 4 from driver. This can be used to check
for OS SSE support. (Part 2)
2004-10-29 02:07:15 +00:00
Thomas Winischhofer
09fdfaa28d Add facility to catch sig 4 from driver. This can be used to check for OS
SSE support. (Part 1)
2004-10-29 02:06:17 +00:00
Thomas Winischhofer
b0185a4bf7 Add xf86[GetGammaRamp|ChangeGammaRamp|GetGammaRampSize] to symlist in order
to allow drivers to use them
2004-10-28 22:12:23 +00:00
Alex Deucher
77dab25440 - Add interlaced support to S3 driver (bug 332, Leo Savernik)
- EmulateWheelTimeout (bug 323, Mathias Fröhlich)
- single button double-click (bug 322, Rob Brown)
2004-10-17 20:29:35 +00:00
Adam Jackson
881b5756dc Bug #1628: Convert xf86{BusToMem,MemToBus} to PIC code, eliminating a text
relocation and enabling the server to be built as a
    position-independent executable. (PaX Team)
2004-10-14 23:10:30 +00:00
Vladimir Dergachev
3a055ea35b Modified:
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c
xc/programs/Xserver/hw/xfree86/drivers/i2c/fi1236.h Squash annoying warning
    about fi1236_dump_status
2004-10-13 23:02:42 +00:00
Egbert Eich
3364e7fbd4 Set fbdev mode as the default mode on PPC (Olaf Hering).
Added support for IBM space saver keyboard (Stefan Dirsch). Added support
    for Cherry CyMotion Master XPress (Marcus Schaefer).
Change order of SetDisplayDevice(), HWRestore(), UnbindGART() and
    RestoreBIOSMemSize() to be exactly opposite to the Save procedure in
    EnterVT() (Matthias Hopf, Alan Hourihane).
Fix text mode restauration by removing the assumption that the register
    which determines which head is programmed is set. to the active head by
    the BIOS (Mark Vojkovich).
When I wrote the resource code 5 years ago I made some assumptions which
    turned out to be false: I've assumed that the bus number of the PCI
    hostbridge would be the PCI bus the bridge links to. This is not
    correct. Fixing this assumption is not easy. However I hope that the
    attached patch will make the system work regardless as it 'ignores'
    host bridges from which the target bus is not known. This should not
    matter at all as we really don't care about host bridges (unless we
    have bridge specific code which retrieves information about the
    bridge).
Fixed server crash on reset when a structure allocated in PreInit() was
    freed on CloseScreen().
Fixed ring buffer lock ups that happened because the structure that
    contained ringbuffer data was not zeroed after allocation.
Fixed numerous warnings due to signed unsigned comparisons.
    programs/Xserver/hw/xfree86/drivers/nv/nv_driver.c:
    (NVBacklightEnable): Changed the order in which the sequencer registers
    and the backlight control registers are written. The sequencer control
    register need to be written first otherwise DPMS screen blanking
    produces vertical bars on a mobile device. lib/Xau/Imakefile: Build
    libXau static library PIC so it can be linked into toolkits that would
    like to wrap its functionality.
2004-10-12 19:13:43 +00:00
Egbert Eich
4ab7d316ec Improving DPMS handling on VT swich and server termination/abort: previous
version called the driver directly and too late.
Unblank secondary screen explicitely. Don't rely on the value read during
    register save as the BIOS have blanked the secondary head.
Checking if server isn't switched away before calling sync. Sanity check
    for possible bugs in aother areas of the code.
Fixing default amount of of allocated video memory from AGP for i810: Use
    16MB if less than 192MB are installed else use 24MB (Matthias Hopf).
2004-10-11 09:58:04 +00:00
Alan Coopersmith
d737bc3300 Make xorgconfig ask again instead of giving up and throwing away all your
answers when you give a bad file name or bad amount of video RAM. (Sun
    bug id 5070654 - Derek Wang)
2004-10-05 17:28:15 +00:00
Vladimir Dergachev
7b27bf869d Modified:
xc/programs/Xserver/hw/xfree86/drivers/i2c/fi1236.c Make sure formatting
    style is consistent within a single function. MT2032 functions are best
    be in separate file anyway.
2004-10-03 15:01:31 +00:00
Vladimir Dergachev
4046653cb6 Modified:
xc/programs/Xserver/hw/xfree86/drivers/i2c/fi1236.c Fix compilation with
    gcc 3.4.x Cleanup xf86DrvMsg noise.
2004-10-03 14:38:31 +00:00
Vladimir Dergachev
ebe7b3fe16 xc/programs/Xserver/hw/xfree86/drivers/i2c/*_module.c Change version
strings to XORG.
2004-10-02 01:35:33 +00:00
Vladimir Dergachev
0d474149f1 Initial code from GATOS. This needs to be cleaned up, for example the bt829
code is practically untouched since xatitv (which was a standalone test
    program). However, it all worked and was debugged over long period of
    time, so I prefer to to mess with these for now.
New drivers: fi12xx (including MT2032 - this would be be split off later).
    tdaXXX msp34xx bt8xx
2004-09-30 22:58:07 +00:00
Alan Coopersmith
de68a3339b Allow overriding DPMS defaults (timeouts & default for on/off) from
#defines/-D options.
programs/Xserver/hw/xfree86/common/xf86DPMS.c Use defaultDPMSEnabled global
    for the default state of DPMS if not set in any config files.
programs/Xserver/hw/xfree86/os-support/sunos/solaris-sparcv8plus.S Add
    support for required assembly inline functions for Sun compilers on
    Solaris/sparc.
Add support for Solaris/sparc libraries.
2004-09-22 17:20:56 +00:00
Adam Jackson
d7514b9162 Bug #1252, #1253, #1255, #1256: Various typo fixes from Dave Jones. 2004-09-22 04:38:03 +00:00