[Xpert]Hot corners
Some screensavers in the Win / Mac world let you set "hot corners" and "cold corners", which respectively immediately activate the screen saver and inhibit it. I'm working on a program that lets you do this with X11. It almost works. The problem is that it only notices if the corner belongs to the root window -- if another window is covering the root, my program doesn't get notified of the PointerMotion event. Since it's so tiny, i've attached it. I was wondering if anyone could take a quick look. I imagine it would be a simple fix; but i've never programmed in X before, and i'm sort of figuring it out as i go along by ripping apart other programs. Thanks /* By Mike Schiraldi <[EMAIL PROTECTED]> */ /* Compile with -Wall -L/usr/X11R6/lib -lX11 */ #include #include #include #include #include #include int main(int argc, char **argv) { Display *display; Screen *screen; Window root; int height; int width; int i; char * commands[4] = {NULL, NULL, NULL, NULL}; if (argc < 2) { usage: fprintf (stderr, "Specify commands for, respectively, the northwest, northeast, southwest, and southeast corners of the screen. Use - for no command. For example: %s - 'script1.sh' 'script2.sh' - will run script1.sh when the pointer is in the northeast corner and script2.sh when it's in the southwest. Written by Mike Schiraldi <[EMAIL PROTECTED]>\n", argv[0]); exit(1); } if (strcmp (argv[1], "-h") == 0) goto usage; if (strcmp (argv[1], "-help") == 0) goto usage; if (strcmp (argv[1], "--help") == 0) goto usage; if (strcmp (argv[1], "-v") == 0) goto usage; if (strcmp (argv[1], "-version") == 0) goto usage; if (strcmp (argv[1], "--version") == 0) goto usage; for (i = 1; i <= 4 && i < argc; i++) { if (strcmp (argv[i], "-") != 0) commands[i - 1] = argv[i]; } if ((display = XOpenDisplay(NULL)) == NULL) { fprintf(stderr, "%s: can't open %s\en", argv[0], XDisplayName(NULL)); exit(1); } root = DefaultRootWindow (display); screen = XDefaultScreenOfDisplay(display); height = XHeightOfScreen(screen) - 1; width = XWidthOfScreen(screen) - 1; XSelectInput (display, root, PointerMotionMask); while (1) { int x, y, rv; char * command; Window junk1, junk2; int junk3, junk4; unsigned int junk5; XEvent junk6; XNextEvent(display, &junk6); fprintf (stderr, "Pointer motion!\n"); rv = XQueryPointer (display, root, &junk1, &junk2, &x, &y, &junk3, &junk4, &junk5); if (!rv) { fprintf (stderr, "XQueryPointer failed. Send me an email about it.\n"); } if (x == 0 && y == 0) { command = commands[0]; } else if (x == width && y == 0) { command = commands[1]; } else if (x == 0 && y == height) { command = commands[2]; } else if (x == width && y == height) { command = commands[3]; } else { command = NULL; } if (command) { fprintf (stderr, "Running %s\n", command); } } exit(1); }
[Xpert]Xfree86 4.2 on Thinkpad 560 (cyber9382)
Hi, i have some problem with installing xfree86 on my thinkpad 560 (2640-FJE) ,p133, 40ram 1.4gb hd 12.1 inch TFT, a Trident TGUI 9660 series with 1024kb ram is detected during the configuration processes, however my monitor config can't be detected and i cannot find a correct setting for it, when i test the configuration created by Xconfigurator, i can only see a partial screen on the left hand side and just keep flickering and jumping when i test X server. Would some expert give me some advice? I have tried serveral Option such as Noaccel, cybershadow, etc, still can't get it work. Thank you for your helping. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com ___ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
[Xpert]X_PolyText & X_ImageText
Hi All Is there anyone studied the X request about X_PolyText and X_ImageText? As you know XDrawString/XDrawImageString may generate these requests. And X server may draw a background rectangle for string showing. Now the problem is how can I get the background rectangle only from the request? The request doesn't supply the width and height. From documents, they said I could use XQueryTextExtens to get the width and height, which need string infomation and font I couldn't get from the request. Anyone could help me?
Re: [Xpert]Ant success with PCI/DRI???
On Mon, 2002-09-02 at 19:46, Peter Johnson wrote: > > I've tried downloading the drm package for rage 128 from the DRI homepage, > upgrading to > kernel 2.4.19 with the patch for 2.4.20-pre5 (which claims to integrate drm > for x 4.2). > The drm package won't install because of undefined reference to cmpxchg. I think that happens when the kernel source you build against is configured for a 386. -- Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer XFree86 and DRI project member / CS student, Free Software enthusiast ___ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
[Xpert]Ant success with PCI/DRI???
Hi, I've tried downloading the drm package for rage 128 from the DRI homepage, upgrading to kernel 2.4.19 with the patch for 2.4.20-pre5 (which claims to integrate drm for x 4.2). The drm package won't install because of undefined reference to cmpxchg. The "integrated" version from kernel.org sort of works but is so incredibly slow that programs timeout rather than execute. There appear to be other problems as well, like an unflushed frame buffer. I'm running a 1.3 GHz Athlon, if that makes a difference. I can NOT get DRI to work for ATI 128 Xpert (PCI); don't have a working AGP slot. Thanks in advance ___ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
Re: [Xpert]Problems with i830m on OpenBSD
On Mon, Aug 12, 2002 at 01:04:20PM +1000, Neale Banks wrote: > Hi Damien, > > On 12 Aug 2002, Damien Miller wrote: > > > I am trying to get my X on my Asus-L1000B laptop (which uses the i830M > > chipset) running. I am using OpenBSD-current, which has AGP support > > which I am lead to believe is necessary to operate the card. > > > > When I try to run X with the attached config file (generated from X > > -configure), I get illegal instruction errors in the VESA bios. Which > > drops me back to a (corrupted) text console. > > > > I am running with machdep.allowaperature=2, so this shouldn't be caused > > by lack of permission. Trying the vesa driver instead of the i810 driver > > leads to similar errors. > > > > Can anyone offer any insight? I'd really love to see X working. > > Perhaps this bit of your logs is relevant: > > (WW) I810(0): Bad V_BIOS checksum You are trying to use your card in a dual head configuration. I tried that too, failed, and was told that the current XFree driver does not support dual head on that card, because of the lack of documentation. Did you try to make it work single headed ? It works fine with me (toshiba S3000-X11 with an intel i830mg card) Éric Brunet ___ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
Re: [Xpert]bizarre mouse problems
amael wrote: > > hello - > > i am experiencing a strange problem with my mouse using XFree86 version > 4.2.0 (compiled using the gentoo ebuild): > > the mouse pointer will randomly *jump* up or down half a screen, or > simply *warp* to a different location. additionally mouse clicks (both > button 1, 2 and 3) will occur (not physically on the mouse of course). > the mouse wheel (buttons 4 and 5?) are also affected. > > this only happens if i use the mouse, i.e. if i do not touch it the > pointer will just sit there, as it should, and no mouse clicks will be > issued. once i start using the mouse the madness will start. > Had similar problems when gpm was running concurrently. Stopping gpm helped. cu Marcus ___ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
Re: [Xpert]Keys bouncing, xkbset bouncekeys gives only temp. relief
Date: Sun, 1 Sep 2002 12:23:44 -0700 (PDT) Subject: Re: [Xpert]Keys bouncing, xkbset bouncekeys gives only temp. relief > > On my new Satellite Pro 6100 laptop I have a problem with bouncing > > keys (only when using X11, Console or frambuffer are not affected). It's known problem on some Toshiba laptops. See archives on http://linux.toshiba-dme.co.jp/linux/index.htm > > > > This is with kernel-2.4.19, kernel-2.4.19-ac4 and 2.4.20-pre5 and > > XFree-4.2.0 (the experimental Debian packages by branden). I use "nv" > > as driver. > > > > Is there any way of disabling this bouncing permanently. There is a patch available for the kernel. $ diff keyboard.c keyboard.c.orig 91,92d90 < static unsigned char prev_scancode; < 225,235c223 < /*put_queue(scancode | up_flag); */ < /* The following 'if' is a workaround for hardware < * which sometimes send the key release event twice */ < unsigned char next_scancode = scancode|up_flag; < if (up_flag && next_scancode==prev_scancode) { * unexpected 2nd release event */ < } else { < prev_scancode=next_scancode; < put_queue(next_scancode); < } < --- > put_queue(scancode | up_flag); It's been posted on Toshiba Linux User list. Check out that list, it's archived somewhere (a Google search will give you the correct place) Note that I didn't try this patch since I have no problem myself and I don't know what version of the kernel it applies (although that specific part of the code in the kernel should be fairly stable, so it should apply on most 2.4.x versions) Cheers, -- Olivier <[EMAIL PROTECTED]>http://www.xfce.org --- XFce is a lightweight desktop environment for various *NIX systems. Designed for productivity, it loads and executes applications fast, while conserving system resources. XFce is all free software, released under GNU General Public License.Available from http://www.xfce.org ___ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
[Xpert]freely-licensed DRI documentation wanted
[dri-devel folks: please copy debian-x on replies as I am not subscribed to dri-devel] Hi guys, I am the XFree86 package maintainer for the Debian Project, and one of my users pointed out a problem to me: the README.DRI and README.DRIcomp documentation files are not licensed such that anyone can change them. As DRI evolves, this will increasingly become a hindrance. Documentation has enough problems getting out of date as it is without bad licensing making it a copyright infringement to try and fix that. The Debian Project does distribute materials like this that fail our "Free Software Guidelines"[1], but we have to do in a portion of our archives that is avowedly unofficial, so if I wanted to keep these files as part of the XFree86 Debian package I would have to move all of XFree86 out of Debian "main" (the official distribution), which simply isn't practical. Likewise, the XFree86 Project has its own licensing rules, and while they are in some ways more flexible than the Debian Project when it comes to making exceptions, I'm sure they would prefer DRI docs that are licensed consistently with the rest of the XFree86 distribution. If the MIT/X11 license is good enough for the Xlib manual, it should be good enough for DRI documentation as well. While I can't speak for the XFree86 Project on this issue, Debian will continue to have this need even if XFree86 does not. I mention the XFree86 Project's licensing policy because while licenses like the GNU GPL and GNU FDL (as long as there are no Invariant Sections or Cover Texts) are acceptable to the Debian Project, they are not to XFree86, and in making this call for freely licensed documentation, I am seeking a solution that will unquestionably be satisfactory to both projects from a licensing perspective. I've been in touch with Jens Owen and Brian Paul at Tungsten Graphics, and I was advised to put out this call for volunteers. They have been trying to get a response from what used to be VA Linux Systems for several months, and none has been forthcoming. It therefore seems unlikely that we'll get the existing documents relicensed. So, is anyone up to the task? [1] http://www.debian.org/social_contract#guidelines -- G. Branden Robinson| Debian GNU/Linux | kernel panic -- causal failure [EMAIL PROTECTED] | universe will now reboot http://people.debian.org/~branden/ | msg08591/pgp0.pgp Description: PGP signature