DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default generating a xorg.conf when X -configure freezes OS

Hi all !

I hope I find an answer to my question :

When 'X -configure' fails , I mean , it just freezes the machine (eg. iBook g3) is there some other way to generate the already working well xorg.conf file?


Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 24th July 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
When 'X -configure' fails , I mean , it just freezes the machine (eg. iBook g3) is there some other way to generate the already working well xorg.conf file?
You are jumping to a number of questions without providing much detail:
  • What version of OpenBSD are you running? All you have stated is that this is the macppc platform.
  • As stated by /usr/X11R6/README:
    Code:
    The wsfb driver uses whatever graphics mode the console is set to
    (by Mac OS) as a dumb unaccelerated framebuffer in 8 bits per pixel.
    You should be able to use 'startx' or xdm to start X without further
    configuration.
    Does this not work?
Reply With Quote
  #3   (View Single Post)  
Old 24th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Hi ocicat !
I thought there might be a general answer to my question regardless of dmesg and such ..
Here is what happened :
I have 2 iBook g3 : one 5.3 stable (X is well-shape : the one I want to generate xorg.conf for) .. the other one is running -current and now that it's upgraded to the latest snapshots (5.4 beta) , X has a bad display .. I don't want to just restore , I want to be able to compare both ibooks respective xorg.conf
When there is no such /etc/xorg.conf since it's never been neede (if only there have been some automated creation of it upon install for cases like this -legacy hardware with issues- ) .. and when the command 'X -configure' freezes machine .. what's to be done?

Last edited by daemonfowl; 24th July 2013 at 06:47 PM.
Reply With Quote
  #4   (View Single Post)  
Old 24th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

On -current , X does start but with bad display (x display is a bit risen up )
as I want to use -current this issue will always occur

kern.version:
Code:
kern.version=OpenBSD 5.4 (GENERIC) #26: Sun Jul 21 21:25:58 MDT 2013
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
dmesg:
Code:
[ using 500484 bytes of bsd ELF symbol table ]
console out [ATY,RageM3p29s]console in [keyboard] , using ADB
: memaddr 94000000 size 4000000, : consaddr 96008000, : ioaddr 90020000, size 20000: memtag 8000, iotag 8000: width 1024 linebytes 1024 height 768 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4 (GENERIC) #26: Sun Jul 21 21:25:58 MDT 2013
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 671088640 (640MB)
avail mem = 636510208 (607MB)
mainbus0 at root: model PowerBook4,1
cpu0 at mainbus0: 750 (Revision 0x2215): 499 MHz: 256KB backside cache
mem0 at mainbus0
spdmem0 at mem0: SDRAM non-parity PC66
spdmem1 at mem0: 512MB SDRAM non-parity PC133CL2
memc0 at mainbus0: uni-n rev 0xc0
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple Pangea AGP" rev 0x00
appleagp0 at pchb0
agp0 at appleagp0: aperture at 0x0, size 0x10000000
vgafb0 at pci0 dev 16 function 0 "ATI Mobility M3" rev 0x02, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple Pangea" rev 0x00
macobio0 at pci1 dev 23 function 0 "Apple Pangea Macio" rev 0x00
openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0: irq 47
pgs0 at macgpio0: irq 55
"firewire-linkon" at macgpio0 not configured
"gpio1" at macgpio0 not configured
"gpio9" at macgpio0 not configured
"extint-gpio4" at macgpio0 not configured
"extint-gpio12" at macgpio0 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
tumbler0 at macobio0 offset 0x10000: irq 30,1,2
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000: irq 25, via-pmu, 3 targets
apm0 at adb0: battery flags 0x5, 84% charged
akbd0 at adb0 addr 2: iBook keyboard with inverted T (ISO layout)
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: brightness/volume/eject buttons
"battery" at macobio0 offset 0x0 not configured
"backlight" at macobio0 offset 0xf300 not configured
kiic1 at macobio0 offset 0x18000
iic1 at kiic1
wdc0 at macobio0 offset 0x1f000 irq 19: DMA
wd0 at wdc0 channel 0 drive 0: <HTS541010G9AT00>
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
atapiscsi0 at wdc0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, CD-ROM CR-177, 7A0A> ATAPI 5/cdrom removable
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
cd0(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wi0 at macobio0 offset 0x30000 irq 57:
wi0: Firmware 8.70 variant 1, address 00:30:65:20:44:96
audio0 at tumbler0
tumbler0: tas3001_init: error
ohci0 at pci1 dev 24 function 0 "Apple Pangea USB" rev 0x00: irq 27, version 1.0
ohci1 at pci1 dev 25 function 0 "Apple Pangea USB" rev 0x00: irq 28, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple Pangea PCI" rev 0x00
"Apple Pangea FireWire" rev 0x00 at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0 "Apple Pangea GMAC" rev 0x00: irq 41, address 00:03:93:45:ca:e2
bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:/bsd
root on wd0a (171d6fad7a1b0e44.a) swap on wd0b dump on wd0b

Last edited by daemonfowl; 24th July 2013 at 06:45 PM. Reason: +dmesg
Reply With Quote
  #5   (View Single Post)  
Old 24th July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by daemonfowl View Post
...When there is no such /etc/xorg.conf...
You will find the functional equivalent of a complete xorg.conf file, line-by-line, in the output of /var/log/Xorg.0.log.
Quote:
...when the command 'X -configure' freezes machine .. what's to be done?
If only the X Windows System has hung, you may be able to abort it. Xorg has an "Alt-Ctrl-Backspace" sequence which will stop X on other architectures. There might be an equivalent for macppc.

If only the X Windows System has hung, perhaps the OS is still running? If the platform is running sshd(8), if the system is still operating you can use ssh(1) from another system, conduct any analysis, kill X, etc.
Quote:
/var/crash and /var/log/Xorg.log.0 are no help.
If the system has actually hung, there won't be a dump of the system unless you create one via ddb(4). You will need to set appropriate sysctls in advance, and you may not be able to see output on your display if X has taken control of your system. Practice using ddb in console mode, so that you know what to type and what to expect when you can't actually see any ddb output.

I have already mentioned that the Xorg log should be of unrecognized value.
Reply With Quote
  #6   (View Single Post)  
Old 24th July 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
is there some other way to generate the already working well xorg.conf file?
Comparing, and/or replacing xorg.conf files may be of limited value given that the codebase in 5.3-stable & 5.4-beta are different beasts.

Apples & oranges.
Reply With Quote
  #7   (View Single Post)  
Old 24th July 2013
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
When 'X -configure' fails , I mean , it just freezes the machine (eg. iBook g3) is there some other way to generate the already working well xorg.conf file?
Do you mean that X -configure does not generate xorg.conf.new in /root or that when you startx using the newly generated file that your system fails?

If you have an xorg.conf.new it may be helpful to post it. Based on the cpu speed I scanned the wikipedia entry for ibook g3 and they indicate you should have a ati rage video card

You may want to read the r128(4) page and ensure that is the video driver utilized in the device section of your xorg.conf.

It may also be helpful is to look at the .xsession-errors in your home directory.
I tried current on a system with an sis video card and there were error messages about openbox and xinerama (It ran fine in 5.3). Edit2: .xsession is only generated if using an x session manager ie xdm - if you are using startx exclusively you will not have one.

Newer versions of Xorg can utilize entries in /etc/X11/xorg.conf.d. The advantage of this is that you can just make entries that deal with the problematic area. For example, I used the radeonhd driver on my system for a while and the only entry needed in /etc/X11/xorg.conf.d was
Code:
Bear$ cat /etc/X11/xorg.conf.d/20-radeon.conf
Section "Device"
    Identifier "RadeonCard"
    Driver "radeonhd"
EndSection
My understanding is that for rage128 cards you would use

Code:
Bear$ cat /etc/X11/xorg.conf.d/20-rage128.conf
Section "Device"
    Identifier "Rage128Card"
    Driver "r128"
EndSection
Lastly, is this recent entry from the openbsd-x11 mailing list
Quote:
Yes, not only XAA acceleration was removed in X server 1.14, but also
> the implementation of shadowfb used in the nv driver is broken.
>
> Currently you have to disable shadowfb via a small /etc/X11/xorg.conf
> file to get the nv driver working again on affected chipsets.
>
> -- Cut --
> Section "Device"
> Identifier "nvidia broken acceleration"
> Driver "nv"
> Option "NoAccel" "true"
> Option "ShadowFB" "false"
> EndSection
> -- Cut --
You may want to fiddle with "NoAccel" and disabling the FrameBuffer.

Last edited by shep; 24th July 2013 at 11:54 PM. Reason: added entry from openbsd-x11 mailing lists, edit 2 qualified .xsession-errors
Reply With Quote
  #8   (View Single Post)  
Old 27th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thanks shep , jggimi , ocicat !!!! Sorry for being late for an output.
Code:
Do you mean that X -configure does not generate xorg.conf.new in /root or that when you startx using the newly generated file that your system fails?
The generated xorg.conf.new at /root is but an empty file (0B)
startx actually works but with bad shape (on current) and this applies to iBook G3 and G4 which is now running current too... 'startx' doesn't freeze OS but 'X -configure' does .. the -current X screen has now a 1.8 cm height line at the bottom. it's not a big problem but I want to ensure an akways working X as I go using current and that's why I asked wether it's possible to have previous Xorg settings working on newer version of Xorg that's been installed.I remember Reinhold's help (thanks Reinhold !) providing a working xorg.conf for iMac g3 I always face this issue : now X is working .. tomorrow not working .. how can I ensure I have it always functional while still running current ?


Am I wrong thinking an old working xorg.conf file to always be used (regardlss of X version?) is a safety measure not to lose X after upgrades ?

Quote:
Xorg has an "Alt-Ctrl-Backspace" sequence which will stop X on other architectures.
for iBooks g3 g4 and iMacs I'm afraid I don't know any alternative combination neither for killing X nor for starting virtual screens ..


Ibook G4 dmesg (same issue)
Code:
[ using 500484 bytes of bsd ELF symbol table ]
console out [ATY,Via_A]console in [keyboard] , using ADB
using parent ATY,ViaParent:: memaddr 98000000 size 8000000, : consaddr 9c008000, : ioaddr 90020000, size 20000: memtag 8000, iotag 8000: width 1024 linebytes 1024 height 768 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4 (GENERIC) #26: Sun Jul 21 21:25:58 MDT 2013
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 1342177280 (1280MB)
avail mem = 1287766016 (1228MB)
mainbus0 at root: model PowerBook6,5
cpu0 at mainbus0: 7447A (Revision 0x101): 1066 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: no EEPROM found
spdmem1 at mem0: 1GB DDR SDRAM non-parity PC2700CL2.5
memc0 at mainbus0: uni-n rev 0xd2
"hw-clock" at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
adt0 at iic0 addr 0xae: adt7467 rev 0x71
mpcpcibr0 at mainbus0 pci: uni-north
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00
appleagp0 at pchb0
agp0 at appleagp0: aperture at 0x0, size 0x10000000
vgafb0 at pci0 dev 16 function 0 "ATI Radeon Mobility 9200" rev 0x01, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple UniNorth PCI" rev 0x00
bwi0 at pci1 dev 18 function 0 "Broadcom BCM4306" rev 0x03: irq 52, address 00:0d:93:ee:95:91
macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
"modem-reset" at macgpio0 offset 0x1d not configured
"modem-power" at macgpio0 offset 0x1c not configured
macgpio1 at macgpio0 offset 0x9: irq 47
"programmer-switch" at macgpio0 offset 0x11 not configured
dfs0 at macgpio0 offset 0x6b: speeds: 1066, 533 MHz
"gpio4" at macgpio0 offset 0x1e not configured
"gpio5" at macgpio0 offset 0x6f not configured
"gpio6" at macgpio0 offset 0x70 not configured
"gpio11" at macgpio0 offset 0x75 not configured
"extint-gpio15" at macgpio0 offset 0x67 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at macobio0 offset 0x10000: irq 30,1,2
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000: irq 25, via-pmu, 3 targets
apm0 at adb0: battery flags 0x5, 0% charged
piic0 at adb0
iic1 at piic0
akbd0 at adb0 addr 2: iBook keyboard with inverted T (ISO layout)
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad <tpad> 4-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: brightness/volume/eject buttons
"battery" at macobio0 offset 0x0 not configured
"backlight" at macobio0 offset 0xf300 not configured
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
wdc0 at macobio0 offset 0x20000 irq 24: DMA
atapiscsi0 at wdc0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, CD-RW CW-8123, CA0T> ATAPI 5/cdrom removable
cd0(wdc0:0:0): using BIOS timings, DMA mode 2
audio0 at snapper0
ohci0 at pci1 dev 24 function 0 "Apple Intrepid USB" rev 0x00: couldn't map interrupt
ohci1 at pci1 dev 25 function 0 "Apple Intrepid USB" rev 0x00: couldn't map interrupt
ohci2 at pci1 dev 26 function 0 "Apple Intrepid USB" rev 0x00: irq 29, version 1.0, legacy support
ohci3 at pci1 dev 27 function 0 "NEC USB" rev 0x43: irq 63, version 1.0
ohci4 at pci1 dev 27 function 1 "NEC USB" rev 0x43: irq 63, version 1.0
ehci0 at pci1 dev 27 function 2 "NEC USB" rev 0x04: irq 63
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1
usb1 at ohci2: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci3: USB revision 1.0
uhub2 at usb2 "NEC OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci4: USB revision 1.0
uhub3 at usb3 "NEC OHCI root hub" rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple UniNorth PCI" rev 0x00
kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid ATA" rev 0x00
wdc1 at kauaiata0 irq 39: DMA
wd0 at wdc1 channel 0 drive 0: <HTS421260H9AT00>
wd0: 16-sector PIO, LBA48, 57231MB, 117210240 sectors
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
"Apple UniNorth Firewire" rev 0x81 at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0 "Apple Uni-N2 GMAC" rev 0x80: irq 41, address 00:0d:93:b3:df:b0
bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@f4000000/ata-6@d/disk@0:/bsd
root on wd0a (5bf2d6abe0cbee49.a) swap on wd0b dump on wd0b
Xorg.0.log for -current G4 :
Code:
[    31.686] (--) no aperture driver access: only wsfb driver useable
[    31.687] (--) Using wscons driver on /dev/ttyC1 in pcvt compatibility mode (version 3.32)
[    31.897] 
X.Org X Server 1.14.1
Release Date: 2013-04-17
[    31.897] X Protocol Version 11, Revision 0
[    31.897] Build Operating System: OpenBSD 5.4 macppc 
[    31.898] Current Operating System: OpenBSD muspelheimr.my.domain 5.4 GENERIC#26 macppc
[    31.899] Build Date: 22 July 2013  10:06:16AM
[    31.899]  
[    31.899] Current version of pixman: 0.30.0
[    31.899] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    31.899] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.900] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 13 11:27:28 2013
[    32.007] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
[    32.044] (==) No Layout section.  Using the first Screen section.
[    32.044] (==) No screen section available. Using defaults.
[    32.044] (**) |-->Screen "Default Screen Section" (0)
[    32.044] (**) |   |-->Monitor "<default monitor>"
[    32.061] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    32.065] (==) Disabling SIGIO handlers for input devices
[    32.065] (==) Automatically adding devices
[    32.065] (==) Automatically enabling devices
[    32.065] (==) Not automatically adding GPU devices
[    32.289] (==) FontPath set to:
	/usr/X11R6/lib/X11/fonts/misc/,
	/usr/X11R6/lib/X11/fonts/TTF/,
	/usr/X11R6/lib/X11/fonts/OTF/,
	/usr/X11R6/lib/X11/fonts/Type1/,
	/usr/X11R6/lib/X11/fonts/100dpi/,
	/usr/X11R6/lib/X11/fonts/75dpi/
[    32.290] (==) ModulePath set to "/usr/X11R6/lib/modules"
[    32.290] (II) The server relies on wscons to provide the list of input devices.
	If no devices become available, reconfigure wscons or disable AutoAddDevices.
[    32.302] (II) Loader magic: 0x1a1b010
[    32.303] (II) Module ABI versions:
[    32.303] 	X.Org ANSI C Emulation: 0.4
[    32.303] 	X.Org Video Driver: 14.1
[    32.303] 	X.Org XInput driver : 19.1
[    32.303] 	X.Org Server Extension : 7.0
[    32.310] Initializing built-in extension Generic Event Extension
[    32.310] Initializing built-in extension SHAPE
[    32.311] Initializing built-in extension MIT-SHM
[    32.311] Initializing built-in extension XInputExtension
[    32.311] Initializing built-in extension XTEST
[    32.311] Initializing built-in extension BIG-REQUESTS
[    32.311] Initializing built-in extension SYNC
[    32.311] Initializing built-in extension XKEYBOARD
[    32.311] Initializing built-in extension XC-MISC
[    32.311] Initializing built-in extension SECURITY
[    32.311] Initializing built-in extension XINERAMA
[    32.311] Initializing built-in extension XFIXES
[    32.311] Initializing built-in extension RENDER
[    32.311] Initializing built-in extension RANDR
[    32.311] Initializing built-in extension COMPOSITE
[    32.311] Initializing built-in extension DAMAGE
[    32.312] Initializing built-in extension MIT-SCREEN-SAVER
[    32.312] Initializing built-in extension DOUBLE-BUFFER
[    32.312] Initializing built-in extension RECORD
[    32.312] Initializing built-in extension DPMS
[    32.312] Initializing built-in extension X-Resource
[    32.312] Initializing built-in extension XVideo
[    32.312] Initializing built-in extension XVideo-MotionCompensation
[    32.313] Initializing built-in extension XFree86-VidModeExtension
[    32.313] Initializing built-in extension XFree86-DGA
[    32.313] Initializing built-in extension XFree86-DRI
[    32.313] Initializing built-in extension DRI2
[    32.313] (II) LoadModule: "glx"
[    32.358] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[    32.400] (II) Module glx: vendor="X.Org Foundation"
[    32.400] 	compiled for 1.14.1, module version = 1.0.0
[    32.400] 	ABI class: X.Org Server Extension, version 7.0
[    32.400] (==) AIGLX enabled
[    32.401] Loading extension GLX
[    32.401] (==) Matched wsfb as autoconfigured driver 0
[    32.401] (==) Assigned the driver to the xf86ConfigLayout
[    32.401] (II) LoadModule: "wsfb"
[    32.403] (II) Loading /usr/X11R6/lib/modules/drivers/wsfb_drv.so
[    32.423] (II) Module wsfb: vendor="X.Org Foundation"
[    32.424] 	compiled for 1.14.1, module version = 0.4.1
[    32.424] 	ABI class: X.Org Video Driver, version 14.1
[    32.424] (II) wsfb: driver for wsdisplay framebuffer: wsfb
[    32.424] (WW) Falling back to old probe method for wsfb
[    32.434] (II) wsfb(0): using default device
[    32.437] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    32.437] (II) wsfb(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 8/8
[    32.437] (==) wsfb(0): Depth 8, (==) framebuffer bpp 8
[    32.437] (==) wsfb(0): Default visual is PseudoColor
[    32.441] (==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0)
[    32.441] (II) wsfb(0): Vidmem: 768k
[    32.441] (==) wsfb(0): DPI set to (96, 96)
[    32.441] (**) wsfb(0): Using "Shadow Framebuffer"
[    32.441] (II) Loading sub module "shadow"
[    32.441] (II) LoadModule: "shadow"
[    32.459] (II) Loading /usr/X11R6/lib/modules/libshadow.so
[    32.480] (II) Module shadow: vendor="X.Org Foundation"
[    32.480] 	compiled for 1.14.1, module version = 1.1.0
[    32.480] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    32.480] (II) Loading sub module "fb"
[    32.480] (II) LoadModule: "fb"
[    32.483] (II) Loading /usr/X11R6/lib/modules/libfb.so
[    32.502] (II) Module fb: vendor="X.Org Foundation"
[    32.502] 	compiled for 1.14.1, module version = 1.0.0
[    32.502] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    32.573] (==) wsfb(0): Backing store disabled
[    32.610] (==) RandR enabled
[    33.349] (II) AIGLX: Screen 0 is not DRI2 capable
[    33.350] (II) AIGLX: Screen 0 is not DRI capable
[    33.351] (EE) AIGLX error: dlopen of /usr/X11R6/lib/modules/dri/swrastg_dri.so failed (File not found)
[    33.720] (II) AIGLX: Loaded and initialized swrast
[    33.720] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    35.643] (II) config/wscons: checking input device /dev/wskbd
[    35.643] (II) wskbd: using layout us
[    35.643] (II) wskbd: using model macintosh
[    35.644] (II) LoadModule: "kbd"
[    35.647] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[    35.674] (II) Module kbd: vendor="X.Org Foundation"
[    35.674] 	compiled for 1.14.1, module version = 1.7.0
[    35.674] 	Module class: X.Org XInput Driver
[    35.674] 	ABI class: X.Org XInput driver, version 19.1
[    35.674] (II) Using input driver 'kbd' for '/dev/wskbd'
[    35.674] (**) /dev/wskbd: always reports core events
[    35.674] (**) /dev/wskbd: always reports core events
[    35.675] (**) Option "Protocol" "standard"
[    35.675] (**) Option "XkbRules" "base"
[    35.675] (**) Option "XkbModel" "macintosh"
[    35.675] (**) Option "XkbLayout" "us"
[    35.675] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6)
[    35.946] (II) config/wscons: checking input device /dev/wsmouse
[    35.947] (II) LoadModule: "ws"
[    35.950] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[    36.000] (II) Module ws: vendor="X.Org Foundation"
[    36.000] 	compiled for 1.14.1, module version = 1.3.0
[    36.000] 	Module class: X.Org XInput Driver
[    36.000] 	ABI class: X.Org XInput driver, version 19.1
[    36.001] (II) Using input driver 'ws' for '/dev/wsmouse'
[    36.001] (**) /dev/wsmouse: always reports core events
[    36.001] (II) ws: /dev/wsmouse: debuglevel 0
[    36.001] (**) Option "Device" "/dev/wsmouse"
[    36.001] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[    36.001] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[    36.001] (**) ws: /dev/wsmouse: associated screen: 0
[    36.002] (II) ws: /dev/wsmouse: minimum x position: 0
[    36.002] (II) ws: /dev/wsmouse: maximum x position: 1023
[    36.002] (II) ws: /dev/wsmouse: minimum y position: 0
[    36.002] (II) ws: /dev/wsmouse: maximum y position: 767
[    36.002] (==) ws: /dev/wsmouse: Buttons: 7
[    36.002] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[    36.003] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: MOUSE, id 7)
[    36.004] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[    36.004] (**) /dev/wsmouse: (accel) acceleration profile 0
[    36.004] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[    36.004] (**) /dev/wsmouse: (accel) acceleration threshold: 4
Xorg.0.log.old
Code:
[   536.138] (--) no aperture driver access: only wsfb driver useable
[   536.139] (--) Using wscons driver on /dev/ttyC1 in pcvt compatibility mode (version 3.32)
[   536.176] 
X.Org X Server 1.14.1
Release Date: 2013-04-17
[   536.177] X Protocol Version 11, Revision 0
[   536.177] Build Operating System: OpenBSD 5.4 macppc 
[   536.177] Current Operating System: OpenBSD muspelheimr.my.domain 5.4 GENERIC#26 macppc
[   536.178] Build Date: 22 July 2013  10:06:16AM
[   536.178]  
[   536.178] Current version of pixman: 0.30.0
[   536.178] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   536.178] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   536.179] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 13 11:21:36 2013
[   536.181] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
[   536.182] (==) No Layout section.  Using the first Screen section.
[   536.182] (==) No screen section available. Using defaults.
[   536.182] (**) |-->Screen "Default Screen Section" (0)
[   536.182] (**) |   |-->Monitor "<default monitor>"
[   536.183] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   536.184] (==) Disabling SIGIO handlers for input devices
[   536.184] (==) Automatically adding devices
[   536.184] (==) Automatically enabling devices
[   536.184] (==) Not automatically adding GPU devices
[   536.184] (==) FontPath set to:
	/usr/X11R6/lib/X11/fonts/misc/,
	/usr/X11R6/lib/X11/fonts/TTF/,
	/usr/X11R6/lib/X11/fonts/OTF/,
	/usr/X11R6/lib/X11/fonts/Type1/,
	/usr/X11R6/lib/X11/fonts/100dpi/,
	/usr/X11R6/lib/X11/fonts/75dpi/
[   536.185] (==) ModulePath set to "/usr/X11R6/lib/modules"
[   536.185] (II) The server relies on wscons to provide the list of input devices.
	If no devices become available, reconfigure wscons or disable AutoAddDevices.
[   536.185] (II) Loader magic: 0x1a1b010
[   536.185] (II) Module ABI versions:
[   536.185] 	X.Org ANSI C Emulation: 0.4
[   536.185] 	X.Org Video Driver: 14.1
[   536.185] 	X.Org XInput driver : 19.1
[   536.185] 	X.Org Server Extension : 7.0
[   536.186] Initializing built-in extension Generic Event Extension
[   536.186] Initializing built-in extension SHAPE
[   536.186] Initializing built-in extension MIT-SHM
[   536.186] Initializing built-in extension XInputExtension
[   536.186] Initializing built-in extension XTEST
[   536.186] Initializing built-in extension BIG-REQUESTS
[   536.186] Initializing built-in extension SYNC
[   536.186] Initializing built-in extension XKEYBOARD
[   536.186] Initializing built-in extension XC-MISC
[   536.186] Initializing built-in extension SECURITY
[   536.186] Initializing built-in extension XINERAMA
[   536.186] Initializing built-in extension XFIXES
[   536.186] Initializing built-in extension RENDER
[   536.186] Initializing built-in extension RANDR
[   536.187] Initializing built-in extension COMPOSITE
[   536.187] Initializing built-in extension DAMAGE
[   536.187] Initializing built-in extension MIT-SCREEN-SAVER
[   536.187] Initializing built-in extension DOUBLE-BUFFER
[   536.187] Initializing built-in extension RECORD
[   536.187] Initializing built-in extension DPMS
[   536.187] Initializing built-in extension X-Resource
[   536.187] Initializing built-in extension XVideo
[   536.188] Initializing built-in extension XVideo-MotionCompensation
[   536.188] Initializing built-in extension XFree86-VidModeExtension
[   536.188] Initializing built-in extension XFree86-DGA
[   536.188] Initializing built-in extension XFree86-DRI
[   536.188] Initializing built-in extension DRI2
[   536.188] (II) LoadModule: "glx"
[   536.191] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[   536.193] (II) Module glx: vendor="X.Org Foundation"
[   536.193] 	compiled for 1.14.1, module version = 1.0.0
[   536.193] 	ABI class: X.Org Server Extension, version 7.0
[   536.193] (==) AIGLX enabled
[   536.193] Loading extension GLX
[   536.194] (==) Matched wsfb as autoconfigured driver 0
[   536.194] (==) Assigned the driver to the xf86ConfigLayout
[   536.194] (II) LoadModule: "wsfb"
[   536.195] (II) Loading /usr/X11R6/lib/modules/drivers/wsfb_drv.so
[   536.196] (II) Module wsfb: vendor="X.Org Foundation"
[   536.196] 	compiled for 1.14.1, module version = 0.4.1
[   536.196] 	ABI class: X.Org Video Driver, version 14.1
[   536.197] (II) wsfb: driver for wsdisplay framebuffer: wsfb
[   536.197] (WW) Falling back to old probe method for wsfb
[   536.199] (II) wsfb(0): using default device
[   536.199] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   536.200] (II) wsfb(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 8/8
[   536.200] (==) wsfb(0): Depth 8, (==) framebuffer bpp 8
[   536.200] (==) wsfb(0): Default visual is PseudoColor
[   536.200] (==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0)
[   536.200] (II) wsfb(0): Vidmem: 768k
[   536.201] (==) wsfb(0): DPI set to (96, 96)
[   536.201] (**) wsfb(0): Using "Shadow Framebuffer"
[   536.201] (II) Loading sub module "shadow"
[   536.201] (II) LoadModule: "shadow"
[   536.204] (II) Loading /usr/X11R6/lib/modules/libshadow.so
[   536.206] (II) Module shadow: vendor="X.Org Foundation"
[   536.206] 	compiled for 1.14.1, module version = 1.1.0
[   536.206] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   536.206] (II) Loading sub module "fb"
[   536.206] (II) LoadModule: "fb"
[   536.209] (II) Loading /usr/X11R6/lib/modules/libfb.so
[   536.212] (II) Module fb: vendor="X.Org Foundation"
[   536.212] 	compiled for 1.14.1, module version = 1.0.0
[   536.212] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   536.222] (==) wsfb(0): Backing store disabled
[   536.223] (==) RandR enabled
[   536.912] (II) AIGLX: Screen 0 is not DRI2 capable
[   536.913] (II) AIGLX: Screen 0 is not DRI capable
[   536.913] (EE) AIGLX error: dlopen of /usr/X11R6/lib/modules/dri/swrastg_dri.so failed (File not found)
[   536.955] (II) AIGLX: Loaded and initialized swrast
[   536.955] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   537.997] (II) config/wscons: checking input device /dev/wskbd
[   537.997] (II) wskbd: using layout us
[   537.997] (II) wskbd: using model macintosh
[   537.997] (II) LoadModule: "kbd"
[   538.000] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[   538.002] (II) Module kbd: vendor="X.Org Foundation"
[   538.002] 	compiled for 1.14.1, module version = 1.7.0
[   538.002] 	Module class: X.Org XInput Driver
[   538.002] 	ABI class: X.Org XInput driver, version 19.1
[   538.002] (II) Using input driver 'kbd' for '/dev/wskbd'
[   538.002] (**) /dev/wskbd: always reports core events
[   538.002] (**) /dev/wskbd: always reports core events
[   538.002] (**) Option "Protocol" "standard"
[   538.003] (**) Option "XkbRules" "base"
[   538.003] (**) Option "XkbModel" "macintosh"
[   538.003] (**) Option "XkbLayout" "us"
[   538.003] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6)
[   538.177] (II) config/wscons: checking input device /dev/wsmouse
[   538.177] (II) LoadModule: "ws"
[   538.180] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[   538.182] (II) Module ws: vendor="X.Org Foundation"
[   538.182] 	compiled for 1.14.1, module version = 1.3.0
[   538.182] 	Module class: X.Org XInput Driver
[   538.182] 	ABI class: X.Org XInput driver, version 19.1
[   538.182] (II) Using input driver 'ws' for '/dev/wsmouse'
[   538.182] (**) /dev/wsmouse: always reports core events
[   538.182] (II) ws: /dev/wsmouse: debuglevel 0
[   538.182] (**) Option "Device" "/dev/wsmouse"
[   538.183] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[   538.183] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[   538.183] (**) ws: /dev/wsmouse: associated screen: 0
[   538.183] (II) ws: /dev/wsmouse: minimum x position: 0
[   538.183] (II) ws: /dev/wsmouse: maximum x position: 1023
[   538.183] (II) ws: /dev/wsmouse: minimum y position: 0
[   538.183] (II) ws: /dev/wsmouse: maximum y position: 767
[   538.183] (==) ws: /dev/wsmouse: Buttons: 7
[   538.184] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[   538.184] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: MOUSE, id 7)
[   538.185] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[   538.185] (**) /dev/wsmouse: (accel) acceleration profile 0
[   538.185] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[   538.185] (**) /dev/wsmouse: (accel) acceleration threshold: 4
[   850.428] (II) UnloadModule: "ws"
[   850.429] (II) UnloadModule: "kbd"
[   850.710] Server terminated successfully (0). Closing log file.
Reply With Quote
  #9   (View Single Post)  
Old 28th July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Both of your Xorg logs show that your platform is running in framebuffer mode. Your dmesg shows an ATI video card.

Read along with me in FAQ 11.2.10 for macppc. It appears you've missed this vital information:
Quote:
Supported Macintosh PPC systems can be run in one of two different ways: "accelerated" and "framebuffer" (unaccelerated).

In the "framebuffer" mode, the system will be running with 8 bits per pixel, and the video resolution is controlled by the Macintosh environment, so you will probably want to keep a small MacOS section on your disk to adjust these settings. This mode has the advantage of "Just Working", however it can be frustratingly inflexible (for example, altering resolution may require booting MacOS).

If your Macintosh has an ATI-based video system, it can run using an accelerated X server, which gives better performance and more control in the OpenBSD environment. The NVIDIA video cards in some macppc systems will also work in many cases. The README file has details on configuring the accelerated driver, start by using the sample file there.
Reply With Quote
Old 29th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thank you jggimi !

Quote:
for iBooks g3 g4 and iMacs I'm afraid I don't know any alternative combination neither for killing X nor for starting virtual screens ..
This is not true anymore for iMac g3 .. with usb keyboard now that I upgraded Puffy to latest snapshot (Tue Jul 30) and for the first time I can change screens with Alt-Ctrl-F1/F2/F3 but sometimes it freezes iMac ..

dmseg:
Code:
ot on wd0a (b8a080a7f444897f.a) swap on wd0b dump on wd0b
rum0 detached
uhidev2 at uhub0 port 2 configuration 1 interface 0 "vendor 0x1b1a USB Mouse" rev 1.10/1.10 addr 3
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
wsmouse0 detached
ums0 detached
uhidev2 detached
umass0 at uhub0 port 2 configuration 1 interface 0 "Kingston DataTraveler 2.0" rev 2.00/2.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd0 at scsibus4 targ 1 lun 0: <Kingston, DataTraveler 2.0, 1.00> SCSI2 0/direct removable serial.0951160300000000022B
sd0: 953MB, 512 bytes/sector, 1952768 sectors
sd0 detached
scsibus4 detached
umass0 detached
rum0 at uhub0 port 2 "Ralink 802.11 bg WLAN" rev 2.00/0.01 addr 3
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:19:5b:6c:d2:5e
syncing disks... done
[ using 500456 bytes of bsd ELF symbol table ]
console out [ATY,RagePro_C]console in [keyboard] USB and ADB found, using ADB
: memaddr 81000000 size 1000000, : consaddr 81000000, : ioaddr 80881000, size 1000: memtag 9000, iotag 9000: width 1024 linebytes 1024 height 768 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4 (GENERIC) #29: Thu Jul 25 18:56:24 MDT 2013
    deraadt@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 402653184 (384MB)
avail mem = 378896384 (361MB)
mainbus0 at root: model iMac,1
cpu0 at mainbus0: 750 (Revision 0x8202): 333 MHz: 512KB backside cache
mem0 at mainbus0
mpcpcibr0 at mainbus0 pci: grackle
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 0 function 0 "Motorola MPC106 PCI" rev 0x40
macobio0 at pci0 dev 16 function 0 "Apple Paddington" rev 0x00
macintr0 at macobio0 offset 0x10
mesh0 at macobio0 offset 0x10000 irq 12: 50MHz
scsibus0 at mesh0: 8 targets, initiator 7
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs0 at macobio0 offset 0x14000: irq 17,8,9 headphones
audio0 at awacs0
"fdc" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000: irq 18, via-cuda, 0 targets
wdc0 at macobio0 offset 0x20000 irq 13: DMA
wd0 at wdc0 channel 0 drive 0: <ST320011A>
wd0: 16-sector PIO, LBA, 19092MB, 39102336 sectors
wd0(wdc0:0:0): using BIOS timings, DMA mode 2
wdc1 at macobio0 offset 0x21000 irq 14: DMA
atapiscsi0 at wdc1 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <LG, CD-ROM CRN-8241B, LAD4> ATAPI 5/cdrom removable
cd0(wdc1:0:0): using BIOS timings, DMA mode 2
bm0 at macobio0 offset 0x11000 irq 42,33: address 00:50:e4:99:89:75
lxtphy0 at bm0 phy 0: LXT970 10/100 PHY, rev. 3
"nvram" at macobio0 offset 0x60000 not configured
vgafb0 at pci0 dev 18 function 0 "ATI Mach64" rev 0x5c, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
ohci0 at pci0 dev 20 function 0 "AT&T/Lucent USB" rev 0x12: irq 28, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "AT&T/Lucent OHCI root hub" rev 1.00/1.00 addr 1
uhidev0 at uhub0 port 1 configuration 1 interface 0 "USB USB Keykoard" rev 1.10/1.10 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
uhidev1 at uhub0 port 1 configuration 1 interface 1 "USB USB Keykoard" rev 1.10/1.10 addr 2
uhidev1: iclass 3/0, 2 report ids
uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
rum0 at uhub0 port 2 "Ralink 802.11 bg WLAN" rev 2.00/0.01 addr 3
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:19:5b:6c:d2:5e
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootpath: /pci/mac-io/ide@20000/disk@0:/bsd
root on wd0a (b8a080a7f444897f.a) swap on wd0b dump on wd0b
Unlike on iBooks, issuing 'startx' and 'Xorg -configure' doesn't hang machine .. X still not working though.
Reply With Quote
Old 29th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

sorry to vex anyone but my problem is : neither do I have a Xorg.conf.new to edit .. nor does my Xorg.0.log contain a Device Section where I should go & edit....

Last edited by daemonfowl; 29th July 2013 at 10:10 PM.
Reply With Quote
Old 29th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Xorg.0.log for iMac :
Code:
[   435.988] (--) Using wscons driver on /dev/ttyC1 in pcvt compatibility mode (version 3.32)
[   436.160] 
X.Org X Server 1.14.1
Release Date: 2013-04-17
[   436.160] X Protocol Version 11, Revision 0
[   436.160] Build Operating System: OpenBSD 5.4 macppc 
[   436.161] Current Operating System: OpenBSD jupiterstation.my.domain 5.4 GENERIC#29 macppc
[   436.163] Build Date: 22 July 2013  10:06:16AM
[   436.163]  
[   436.163] Current version of pixman: 0.30.0
[   436.163] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   436.163] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   436.165] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul 30 03:42:31 2013
[   436.211] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
[   436.217] (==) No Layout section.  Using the first Screen section.
[   436.217] (==) No screen section available. Using defaults.
[   436.217] (**) |-->Screen "Default Screen Section" (0)
[   436.218] (**) |   |-->Monitor "<default monitor>"
[   436.226] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   436.239] (==) Disabling SIGIO handlers for input devices
[   436.239] (==) Automatically adding devices
[   436.239] (==) Automatically enabling devices
[   436.239] (==) Not automatically adding GPU devices
[   436.251] (==) FontPath set to:
	/usr/X11R6/lib/X11/fonts/misc/,
	/usr/X11R6/lib/X11/fonts/TTF/,
	/usr/X11R6/lib/X11/fonts/OTF/,
	/usr/X11R6/lib/X11/fonts/Type1/,
	/usr/X11R6/lib/X11/fonts/100dpi/,
	/usr/X11R6/lib/X11/fonts/75dpi/
[   436.251] (==) ModulePath set to "/usr/X11R6/lib/modules"
[   436.251] (II) The server relies on wscons to provide the list of input devices.
	If no devices become available, reconfigure wscons or disable AutoAddDevices.
[   436.252] (II) Loader magic: 0x1a1b010
[   436.253] (II) Module ABI versions:
[   436.253] 	X.Org ANSI C Emulation: 0.4
[   436.253] 	X.Org Video Driver: 14.1
[   436.253] 	X.Org XInput driver : 19.1
[   436.253] 	X.Org Server Extension : 7.0
[   436.259] (--) PCI:*(0:0:18:0) 1002:4750:0000:0000 rev 92, Mem @ 0x81000000/16777216, 0x80881000/4096, I/O @ 0x00000c00/256
[   436.261] Initializing built-in extension Generic Event Extension
[   436.261] Initializing built-in extension SHAPE
[   436.261] Initializing built-in extension MIT-SHM
[   436.261] Initializing built-in extension XInputExtension
[   436.261] Initializing built-in extension XTEST
[   436.261] Initializing built-in extension BIG-REQUESTS
[   436.262] Initializing built-in extension SYNC
[   436.262] Initializing built-in extension XKEYBOARD
[   436.262] Initializing built-in extension XC-MISC
[   436.262] Initializing built-in extension SECURITY
[   436.262] Initializing built-in extension XINERAMA
[   436.262] Initializing built-in extension XFIXES
[   436.262] Initializing built-in extension RENDER
[   436.262] Initializing built-in extension RANDR
[   436.263] Initializing built-in extension COMPOSITE
[   436.263] Initializing built-in extension DAMAGE
[   436.263] Initializing built-in extension MIT-SCREEN-SAVER
[   436.263] Initializing built-in extension DOUBLE-BUFFER
[   436.263] Initializing built-in extension RECORD
[   436.264] Initializing built-in extension DPMS
[   436.264] Initializing built-in extension X-Resource
[   436.264] Initializing built-in extension XVideo
[   436.264] Initializing built-in extension XVideo-MotionCompensation
[   436.265] Initializing built-in extension XFree86-VidModeExtension
[   436.265] Initializing built-in extension XFree86-DGA
[   436.265] Initializing built-in extension XFree86-DRI
[   436.265] Initializing built-in extension DRI2
[   436.266] (II) LoadModule: "glx"
[   436.270] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[   436.344] (II) Module glx: vendor="X.Org Foundation"
[   436.344] 	compiled for 1.12.3, module version = 1.0.0
[   436.344] 	ABI class: X.Org Server Extension, version 6.0
[   436.345] (EE) module ABI major version (6) doesn't match the server's version (7)
[   436.345] (II) UnloadModule: "glx"
[   436.345] (II) Unloading glx
[   436.349] (EE) Failed to load module "glx" (module requirement mismatch, 0)
[   436.350] (==) Matched ati as autoconfigured driver 0
[   436.350] (==) Assigned the driver to the xf86ConfigLayout
[   436.350] (II) LoadModule: "ati"
[   436.351] (II) Loading /usr/X11R6/lib/modules/drivers/ati_drv.so
[   436.359] (II) Module ati: vendor="X.Org Foundation"
[   436.359] 	compiled for 1.12.3, module version = 6.14.6
[   436.359] 	Module class: X.Org Video Driver
[   436.359] 	ABI class: X.Org Video Driver, version 12.0
[   436.359] (EE) module ABI major version (12) doesn't match the server's version (14)
[   436.359] (II) UnloadModule: "ati"
[   436.360] (II) Unloading ati
[   436.360] (EE) Failed to load module "ati" (module requirement mismatch, 0)
[   436.360] (EE) No drivers available.
[   436.360] 
Fatal server error:
[   436.360] no screens found
[   436.361] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   436.361] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   436.361] (EE) 
[   436.379] Server terminated with error (1). Closing log file.
Reply With Quote
Old 29th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

http://ftp.openbsd.org/pub/OpenBSD/s...INSTALL.macppc
Quote:
The following cards will run an accelerated X server:
- ATI Mach64 GP
- ATI Mach64 GV
- ATI Mach64 128 PK
- ATI Mach64 128 VR AGP
- ATI Rage 128 Mobility M3
- ATI Rage Fury AGP4x
- ATI Radeon Mobility M7
- ATI Radeon Mobility 9200 (M9+)
- NVIDIA GeForce4 440 Go 64M
iMac g3 Bondie Blue :
# cat dmesg | grep ATI
Code:
vgafb0 at pci0 dev 18 function 0 "ATI Mach64" rev 0x5c, mmio
Reply With Quote
Old 29th July 2013
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Quote:
Originally Posted by daemonfowl View Post
neither do I have a Xorg.conf.new to edit .. nor does my Xorg.0.log contain a Device Section where I should go & edit....
So try to create your own.
And shep posted something you could use.

Or maybe you could find some interest in this xorg.conf
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
Old 30th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Hi LeFrettchen & thanks for trying to help.I've been playing with many xorg.conf cocktails but nothing worked .. server's versions &/or module requirement mismatches etc etc and it's hard for an simple user to quickly find the right settings.
(all in all : for iBooks g3/g4 OpenBSD 5.3 stable is fine but -current has a slight issue in display .. for iMac g3 X server fails both on 5.3 stable and on -current)
Reply With Quote
Old 30th July 2013
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

The version of X,org in 5.4 current is new enough that most configuration should be done automagically.

The advantage I alluded to is that using an /etc/xorg.conf.d is that you can override the automagic configuration one element at at time. When you try to use the older xorg.conf, the entire configuration has to to be both correct and complete. Commonly, it will indicate that screens are not configured.

If you use an xorg.conf.d, which is a directory and not a file, is that you can just change just the video driver. As in the example the rage128 driver over rides and leave the system to set up the input devices, screens, modules and fonts. The same short entry would also be where you could add the options for NoAccell and turn off the framebuffer.

From the Arch Linux wiki
Quote:
Configuration
Note: Arch supplies default configuration files in /etc/X11/xorg.conf.d, and no extra configuration is necessary for most setups.

Xorg uses a configuration file called xorg.conf and files ending in the suffix .conf for its initial setup: the complete list of the folders where these files are searched can be found at [1] or by running man xorg.conf, together with a detailed explanation of all the available options.
Using .conf files

The /etc/X11/xorg.conf.d/ directory stores user-specific configuration. You are free to add configuration files there, but they must have a .conf suffix: the files are read in ASCII order, and by convention their names start with XX- (two digits and a hyphen, so that for example 10 is read before 20). These files are parsed by the X server upon startup and are treated like part of the traditional xorg.conf configuration file. The X server essentially treats the collection of configuration files as one big file with entries from xorg.conf at the end.
Using xorg.conf

Last edited by shep; 30th July 2013 at 02:13 AM.
Reply With Quote
Old 30th July 2013
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Another resource is this page with various xorg.conf files for Mac's running linux.
http://mac.linux.be/content/xorgconf-files
The value is that you can just take the device section and put it into the /etc/xorg.conf.d directory using the rules from the Arch wiki. The Busi id's, device drivers and monitor settings will not change.

Since is it possible to damage a monitor, at least the older CRT's, with incorrect monitor settings, I would recommend that you try just device entries in the /etc/xorg.conf.d directory using the Arch linux naming conventions.
For example
For a 500mhz ibook g3 copy the device entry into /etc/xorg.conf.d/20-r128.conf
Code:
Section “Device”
Identifier    “Video”
Driver        “r128″
BusID        “PCI:0:16:0″
Option        “PanelWidth”    “1024″
Option        “PanelHeight”    “768″
Option        “UseFBDev”    “true”
Option        “NoInt10″    “true”
EndSection
Remove your xorg.conf file if it still exists. If left it is the last entry read and will over ride prior settings

Last edited by shep; 30th July 2013 at 02:27 AM.
Reply With Quote
Old 30th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Million thanks shep !!
I'd like to ask you about naming convention for file(s) to be put in xorg.conf.d directory ..
Reply With Quote
Old 30th July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

daemonfowl, your "working" X.org logs showed you were in framebuffer mode, and you've described the problem as "X has a bad display". I don't know what your symptoms are, since you never described them. As FAQ 11.2.10 states, and as I quoted above, in framebuffer mode resolution must be managed from MacOS.

The X.Org errors you are seing, "module requirement mismatch," are rare with OpenBSD. They occur when X.Org code modules are not in sync with each other.
  • It is possible that your snapshot was built during a time of transition within the Xenocara code base, such as during the XAA transition mentioned above.
  • You can wait for the next snapshot, or build Xenocara yourself, and see if this particular problem is resolved.

Last edited by jggimi; 30th July 2013 at 03:06 PM. Reason: clarity
Reply With Quote
Old 30th July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by daemonfowl View Post
Million thanks shep !!
I'd like to ask you about naming convention for file(s) to be put in xorg.conf.d directory ..
You don't need to ask shep. You just need to read the man page. Highlight mine:
Quote:
Originally Posted by xorg.conf.d(5)
Xorg uses a configuration file called xorg.conf and files ending in the suffix .conf from the directory xorg.conf.d for its initial setup.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg.conf doesn't exist & I want to keep record of my working Xorg setting daemonfowl OpenBSD General 14 28th August 2012 01:13 AM
xorg.conf with 1440x900 openBSDheart OpenBSD General 8 12th June 2012 07:06 PM
xorg.conf is not necessary ? sw2wolf OpenBSD General 5 1st June 2012 02:42 AM
xorg.conf overriden? delboy FreeBSD General 4 3rd February 2010 10:37 AM
Xorg freezes 7.0 PatrickBaer FreeBSD General 2 14th June 2008 09:41 AM


All times are GMT. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick