home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.95 / text1774.txt < prev    next >
Encoding:
Text File  |  1996-04-02  |  1.7 KB  |  54 lines

  1. >>>>> "Josh" == Josh Hildebrand <josh@jedi.net> writes:
  2.  
  3.     Josh> It pukes on my card..  It's the latest ELF-svgalib version
  4.     Josh> It flips my video modes for a split second and then leaves
  5.     Josh> me with a grey textmode screen, of which I hit a key and it
  6.     Josh> displays the true error messages.
  7.  
  8.     Josh> Unable to initialize svgalib events.
  9.  
  10. That line is the key.  Executor was unable to open either the mouse or
  11. the keyboard with SVGAlib library calls.  The error message should
  12. provide more detailed information about what went wrong; I'll look
  13. into fixing that.
  14.  
  15. Here are some things to try:
  16.  
  17. 1) Make sure you're running as root (you probably are, since graphics
  18.    is working).
  19.  
  20. 2) Make sure you have the latest svgalib (1.27) to be safe.
  21.  
  22. 3) You should make sure that your mouse is properly set up in libvga.config.
  23.  
  24. 4) Make sure /dev/mouse is a symlink to your mouse driver in /dev.
  25.  
  26. 5) Try running the mousetest that comes with svgalib.
  27.  
  28. 6) If all that fails, try quitting all other programs which might be
  29.    using the mouse device (e.g. X windows).
  30.  
  31. Here's the Executor code which is causing the failure you are seeing.
  32. The code fails if it returns FALSE:
  33.  
  34. ----------------------------------------------------------------------
  35.   /* Set up keyboard. */
  36.   keyboard_fd = keyboard_init_return_fd ();
  37.   if (keyboard_fd < 0)
  38.     return FALSE;
  39.  
  40.   /* Set up mouse. */
  41.   mouse_fd = mouse_init_return_fd ("", vga_getmousetype (),
  42.                    MOUSE_DEFAULTSAMPLERATE);
  43.   if (mouse_fd < 0)
  44.     {
  45.       event_shutdown ();  /* De-install keyboard handler. */
  46.       return FALSE;
  47.     }
  48. ----------------------------------------------------------------------
  49.  
  50. Let me know how it goes.  Good luck!
  51.  
  52. -Mat
  53.  
  54.