Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!ames!ai.etl.army.mil!mike From: mike@ai.etl.army.mil (Mike McDonnell) Newsgroups: comp.windows.x Subject: Need help with R4 Xsun on Sun 3/260 with cgtwo Keywords: server ioctl Message-ID: <390@ai.etl.army.mil> Date: 6 Jan 90 21:42:40 GMT Organization: USAETL, Fort Belvoir, Virginia Lines: 74 I cannot get the Xsun server to run on my Sun 3/260 with a cgtwo graphics board. here is what I get when I try to run xinit as root. First a script with only /dev/cgtwo0 defined. The ################ signs are before command lines: ================================================================ Script started on Sat Jan 6 15:59:45 1990 ################ root:/usr/local/bin/X> ./xinit Getting interface configuration: Operation not supported on socket sunOpenFrameBuffer: Inappropriate ioctl for device Fatal server bug! no screens found XIO: fatal IO error 32 (Broken pipe) on X server "(null)" after 0 requests (0 known processed) with 0 events remaining. The connection was probably broken by a server shutdown or KillClient. ################ root:/usr/local/bin/X> ./xinit -- -dev /dev/cgtwo0 Getting interface configuration: Operation not supported on socket sunOpenFrameBuffer: Inappropriate ioctl for device Fatal server bug! no screens found XIO: fatal IO error 32 (Broken pipe) on X server "(null)" after 0 requests (0 known processed) with 0 events remaining. The connection was probably broken by a server shutdown or KillClient. ################ root:/usr/local/bin/X> exit script done on Sat Jan 6 16:00:34 1990 ================================================================ now a script with /dev/fb defined. Note that /dev/fb seems to generate a lot of fruitless ioctl() calls: ================================================================ Script started on Sat Jan 6 16:04:12 1990 ################ root:/usr/local/bin/X> xinit Getting interface configuration: Operation not supported on socket sunOpenFrameBuffer: Inappropriate ioctl for device sunOpenFrameBuffer: Inappropriate ioctl for device sunOpenFrameBuffer: Inappropriate ioctl for device sunOpenFrameBuffer: Inappropriate ioctl for device sunOpenFrameBuffer: Inappropriate ioctl for device Fatal server bug! no screens found XIO: fatal IO error 32 (Broken pipe) on X server "(null)" after 0 requests (0 known processed) with 0 events remaining. The connection was probably broken by a server shutdown or KillClient. ################ root:/usr/local/bin/X> exit script done on Sat Jan 6 16:04:21 1990 ================================================================ These problems seem to be caused by failure of an FBIOGATTR ioctl() call. Besides the above problems, I get a similar failure when I try to find out if my cgtwo0 or fb device is good by making a FBIOGATTR ioctl() call myself [I used variations of the program 'constype']. Could there be a hardware problem? Some facts: /dev is mode 777 /dev/cgtwo and /dev/fb are both mode 666 A cgtwo device is found at boot time, so I know it's in there somewhere. No /dev/bw* devices are defined. I am not running on top of Sun windows, so macro SUN_WINDOWS is undefined. The release 3 server worked fine. I compiled with version 1.36.1 of gcc. -- Mike McDonnell at the U.S. Army Engineer Topographic Laboratories, Bldg. 2592 Fort Belvoir, VA 22060-5546 TEL:(202)355-2716 NET: mike@etl.army.mil