Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!hpfcdc!rodean From: rodean@hpfcdc.HP.COM (Bruce Rodean) Newsgroups: comp.sys.hp Subject: Re: WMLOCATOR problem Message-ID: <5570111@hpfcdc.HP.COM> Date: 18 Jan 89 15:38:27 GMT References: <5758@sdcsvax.UUCP> Organization: HP Ft. Collins, Co. Lines: 63 wargo@odin.ucsd.edu (Dave Wargo) writes: > I am in the process of setting up a HP9000/300 series machine. > Most things seem to work OK however when I try to run wmstart > I get the error message "cannot open WMLOCATOR". > My question is simple. What the heck do I do now? The device file /dev/locator as a default was linked to /dev/hil2 in early revisions of HP-UX. At some point there was a change made to a customize script that would scan through the HIL devices looking for a two-button mouse and link that to /dev/locator. My guess is that you don't have the mouse as the second device on your HIL loop. The following program might be helpful to change /dev/locator to the correct HIL device. Bruce Rodean rodean%hpfcrn@hplabs.HP.COM ===========================cut here============================= #include #include main() { int f; int i; char id[16]; static char hil_file[] = "/dev/hil?"; int status; int found = 0; for(i=1;i<8;i++) { hil_file[8] = '0' + i; f = open(hil_file, O_RDONLY); if(f < 0) continue; status = ioctl(f, HILID, id); if(status) continue; close(f); if(id[0] == 0x68) { found = 1; break; } } if(!found) { printf("I can't find a mouse.\n"); exit(1); } unlink("/dev/locator"); status = link(hil_file, "/dev/locator"); if(status) { printf("I found a mouse, but I couldn't link /dev/locator to it.\n"); exit(2); } }