Trouble getting X to work on openBSD 6.4 on a g3 iBook clamshell. reddit / BSD ---------------------------------------------------------------------- Jahael · 2019-01-19 22:02 I've been working on this for a couple of days but I can't make heads or tails of what's wrong. Has anyone else installed openbsd on an iBook clamshell 300mhz? ---------------------------------------------------------------------- esbenab · 2019-01-19 22:52 I’m just surprised you made it boot. ---------------------------------------------------------------------- LocalRefuse · 2019-01-19 23:49 no idea what this failure is, but I know that a lot of apple's hardware requires you to take the EDID from OS X and then hard-code it, which might help. ---------------------------------------------------------------------- davidandrade227 · 2019-01-20 03:43 Seems ok to me ---------------------------------------------------------------------- Jahael · 2019-01-20 04:50 If so I hope I can get the Edid info from someone else's install, because I no longer have osx on this machine and lack the install discs. ---------------------------------------------------------------------- Jahael · 2019-01-20 04:51 Everything works great in the console. It's just X11 that doesn't want to cooperate ---------------------------------------------------------------------- IAmThe11 · 2019-01-20 21:05 Did you properly set the sysctl machdep.allowaperture=2. This had to be set in sysctl.conf at startup. ---------------------------------------------------------------------- Jahael · 2019-01-20 21:59 Yes it was set automatically. ---------------------------------------------------------------------- IAmThe11 · 2019-01-21 00:22 Okay .... Hmmmm. I am stumped. LOL! ---------------------------------------------------------------------- Kernigh · 2019-01-22 01:43 Please show us your dmesg and Xorg.0.log. (I have [my dmesg and Xorg.0.log of a PowerBook G4](https://gist.github.com/kernigh/ec48ceda 302d4bdfdd5411cc7f29e133).) I don't know if you have ATI or nVidia graphics. My G4 has an ATI Radeon, so the kernel uses radeondrm(4) and Xorg uses radeon(4). This works well and accelerates 3D, but requires some firmware. After I installed OpenBSD, [fw\_update(1)](https://man.openbsd.org/fw_update) downloaded the firmware during the first boot, but I needed to reboot one more time. Older models, like some G3s, might have an ATI Rage 128 or earlier device. The kernel has no drm, but uses the generic vgafb(4). If the aperture is open (`machdep.allowaperture=2` in /etc/sysctl.conf), then Xorg might try a driver like r128(4). For models with nVidia, the kernel has no drm. If the aperture is open, Xorg might try nv(4). If you don't have radeondrm(4), and if Xorg can't use a driver like r128 or nv, then Xorg falls back to wsfb(4), a generic driver that draws on vgafb(4). This is bad because vgafb has only 256 colors. I don't know whether wsfb still works. A few months ago, I disabled radeondrm on my G4 and tried to use wsfb, but wsfb didn't work. It might have worked in an old version of OpenBSD. With your machine, if another driver doesn't work, then you might try wsfb. ---------------------------------------------------------------------- Jahael · 2019-01-22 18:29 Here is the dmesg: http://termbin.com/alzp And here is the Xorg.0.log: http://termbin.com/we3p It looks like this model of iBook has a 4mb ati rage card. ---------------------------------------------------------------------- LocalRefuse · 2019-01-23 07:16 you can see it's trying & rejecting a lot of modes, the chosen mode is not good for other reasons it isn't detecting apparently. I'm not enough of a graphical wiz to tell you what's going wrong here, but it suggests you need to try a few others. 4mb is very little (i think) so maybe try forcing modes that use less memory, like startx -- -depth 16 ---------------------------------------------------------------------- Kernigh · 2019-01-25 01:32 **Change the mode?** Your Xorg.0.log shows multiple modelines; you might try the `xrandr` command to change the mode. If you can't see an xterm, you might use a terminal outside X, either a virtual terminal (try Ctrl+Alt+F4 and Ctrl+Alt+F5; the Alt key might be Option) or ssh. Do `export DISPLAY=:0`, then `xrandr` should show a list of modes. My PowerBook G4 has ghostborough$ xrandr Screen 0: minimum 320 x 200, current 1280 x 854, maximum 4096 x 4096 LVDS connected primary 1280x854+0+0 (normal left inverted right x axis y axis) 321mm x 214mm 1280x854 60.00*+ 1280x800 59.81 1280x720 59.86 1152x768 59.78 1024x768 59.92 800x600 59.86 848x480 59.66 720x480 59.71 640x480 59.38 DVI-0 disconnected (normal left inverted right x axis y axis) S-video disconnected (normal left inverted right x axis y axis) `xrandr --output LVDS --mode 1024x768` would change the mode to 1024x768, or `xrandr --output LVDS --mode 1024x768 --rate 60` would change it to 1024x768 with the rate near 60 (here 59.92). **Try wsfb(4)?** If you create /etc/X11/xorg.conf containing Section "Device" Identifier "d" Driver "wsfb" EndSection (where "d" can be any name), then restart xenodm, then it should use the [wsfb(4)](https://man.openbsd.org/wsfb) driver. This driver doesn't set the mode but draws on the same framebuffer as the virtual terminals -- but it has only 256 colors. **Try NetBSD?** The ATI Mach64 in your PowerBook2,1 might work with the machdrm/[machfb](http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/ macppc/conf/GENERIC?rev=1.329&content-type=text/x-cvsweb- markup&only_with_tag=MAIN) driver in NetBSD 8. (OpenBSD doesn't have such driver.) It is difficult to install NetBSD/macppc New World machines (like your iBook). The trick is to create partitions in NetBSD pdisk, then run the regular "Install NetBSD to hard disk", but tell it to "Use existing partition sizes". You also need to manually install the bootloader. I was able to [install NetBSD/macppc inside qemu](https://www.reddit.c om/r/BSD/comments/a0re4e/tip_to_install_netbsdmacppc_in_qemusystemppc/ ). I put NetBSD's bootloader on a partition of type Apple\_HFS but formatted as ISO 9660. (A partition of type Apple\_HFS but formatted as DOS might work in a real New World Mac, but not in qemu.) ---------------------------------------------------------------------- Bogsveigir · 2019-01-30 17:05 All of the suggestions I'd make have been made. You said it works fine on the CLI, so that leaves xenocara/X . . . I don't know how much overlap there is here with r/openbsd . . . Maybe you could cross-post there? I didn't see any posting about 'g3 ibook' in there.