Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!tomg From: tomg@hpcvlx.cv.hp.com (Thomas J. Gilg) Newsgroups: comp.sys.hp Subject: Re: Help wanted - Starbase under X11 Message-ID: <101950104@hpcvlx.cv.hp.com> Date: 8 Mar 90 22:52:15 GMT References: <77980@tut.cis.ohio-state.edu> Organization: Fly Fishermans Anonymous Lines: 33 > According to the manual "Starbase Programming With X11", the following > should work: > > if ((display = gopen("/dev/screen/pavi", OUTDEV, "hp98550", INIT)) == -1) > exit(1); > > if ((locator = gopen("/dev/screen/pavi FIRST_MOUSE", INDEV, > "hp-hil", INIT)) == -1) > exit(1); > if ((keyboard = gopen("/dev/screen/pavi FIRST_KEYBOARD", INDEV, "keyboard", > INIT)) == -1) > gclose(locator), gclose(display), exit(1); > > Unfortunately, I get the following error message: > > Starbase error 71: Requested resource is not available. > Procedure name: gopen > File descriptor: 8 > Device file name: /dev/screen/pavi FIRST_MOUSE > Library location: human interface loop (20) Your second gopen() is using the wrong driver (I think). Its seems wrong to do this, but instead of using the hp-hil driver which is geared to talking with physical hardware (eg, /dev/hil1), use the display driver. In your case, "hp98550" should be used. Any input resources attached to the X window are then passed on to Starbase via the hp98550 driver whenever the window has the input focus. I suspect your 3rd gopen() needs the same change. Thomas Gilg tomg@cv.hp.com