List Info

Thread: Xorg issues with PowerBook G4 and OpenBSD 4.1




Xorg issues with PowerBook G4 and OpenBSD 4.1
user name
2007-07-27 19:50:24
Hey all,

First post in this mailing list and I would like to take
the
opportunity to thank all the OpenBSD developers for a
wonderful OS.

I have recently switched over to running OpenBSD full time
on my
PowerBook G4 500MHz. OpenBSD has been running great! It
seems like all
the hardware has ben detected automatically. However, I had
some
issues with xorg.conf. After some tweaking, I was finally
able to get
hardware acceleration as well as native resolution. But now,
whenever
I exit FVWM, X doesn't seem to properly quit. I get flashing
white
lines and I can't see anything. I am however still able to
type 'sudo
reboot' so I can get back to my system without hard powering
it off.

Any one has any ideas or familiarity with this issue?
Another
Powerbook user out there that has a working xorg.conf?
Thanks.

******xorg.conf*********
Section "ServerLayout"
	Identifier	"Sample Config"
	Screen	0	"Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0"
"CoreKeyboard"
EndSection
	
Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
    Load        "freetype"
    Load        "glx"
    Load        "extmod"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "Protocol" 	  "standard"
	Option	    "XkbRules" 	  "xorg"
	Option	    "XkbModel" 	  "macintosh"
	Option	    "XkbLayout"   "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Protocol" "wsmouse"
	Option      "Device"   "/dev/wsmouse"
	Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier   "Monitor"
	VendorName   "Generic"
	ModelName    "TwentyOneInches"
# Adjust those to your monitor before using another device
than wsfb
# or you can destroy it !!
	#HorizSync    30.0-160.0
#	VertRefresh  50.0-160.0
	HorizSync    31.5-60
	VertRefresh  50-70
	Modeline "1152x768" 78.741 1152 1173 1269 1440 
768 769 772 800 +HSync +VSync
#	Modeline "1152x768" 64.995 1152 1213 1349 1472
768 771 777 806 +HSync +VSync
EndSection

Section "Device"
	Identifier	"Card0"
	Driver		"r128"
	VendorName	"ATI"
	BusID		"PCI:0:16:0"
	Option		"PanelWidth" "1152"
	Option		"PanelHeight" "768"	
EndSection
	
Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor"
	DefaultDepth 24
	SubSection "Display"
		Depth     8
		Modes	"1152x768"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes	"1152x768"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes	"1152x768"
	EndSubSection
EndSection
***********end xorg.conf************


Re: Xorg issues with PowerBook G4 and OpenBSD 4.1
user name
2007-07-28 10:31:26
On 7/28/07, Amit <amit.uttamgmail.com> wrote:
> Hey all,
>
> First post in this mailing list and I would like to
take the
> opportunity to thank all the OpenBSD developers for a
wonderful OS.
>
> I have recently switched over to running OpenBSD full
time on my
> PowerBook G4 500MHz. OpenBSD has been running great! It
seems like all
> the hardware has ben detected automatically. However, I
had some
> issues with xorg.conf. After some tweaking, I was
finally able to get
> hardware acceleration as well as native resolution. But
now, whenever
> I exit FVWM, X doesn't seem to properly quit. I get
flashing white
> lines and I can't see anything. I am however still able
to type 'sudo
> reboot' so I can get back to my system without hard
powering it off.
>
> Any one has any ideas or familiarity with this issue?
Another
> Powerbook user out there that has a working xorg.conf?
Thanks.
>
> ******xorg.conf*********
> Section "ServerLayout"
>         Identifier      "Sample Config"
>         Screen  0       "Screen0" 0 0
>         InputDevice    "Mouse0"
"CorePointer"
>         InputDevice    "Keyboard0"
"CoreKeyboard"
> EndSection
>
> Section "Files"
>         RgbPath     
"/usr/X11R6/lib/X11/rgb"
>         FontPath    
"/usr/X11R6/lib/X11/fonts/misc/"
>         FontPath    
"/usr/X11R6/lib/X11/fonts/Type1/"
>         FontPath    
"/usr/X11R6/lib/X11/fonts/CID/"
>         FontPath    
"/usr/X11R6/lib/X11/fonts/75dpi/"
> EndSection
>
> Section "Module"
>     Load        "freetype"
>     Load        "glx"
>     Load        "extmod"
> EndSection
>
> Section "InputDevice"
>         Identifier  "Keyboard0"
>         Driver      "kbd"
>         Option      "Protocol"   
"standard"
>         Option      "XkbRules"   
"xorg"
>         Option      "XkbModel"   
"macintosh"
>         Option      "XkbLayout"  
"us"
> EndSection
>
> Section "InputDevice"
>         Identifier  "Mouse0"
>         Driver      "mouse"
>         Option      "Protocol"
"wsmouse"
>         Option      "Device"  
"/dev/wsmouse"
>         Option      "ZAxisMapping" "4
5"
> EndSection
>
> Section "Monitor"
>         Identifier   "Monitor"
>         VendorName   "Generic"
>         ModelName    "TwentyOneInches"
> # Adjust those to your monitor before using another
device than wsfb
> # or you can destroy it !!
>         #HorizSync    30.0-160.0
> #       VertRefresh  50.0-160.0
>         HorizSync    31.5-60
>         VertRefresh  50-70
>         Modeline "1152x768" 78.741 1152 1173
1269 1440  768 769 772 800 +HSync +VSync
> #       Modeline "1152x768" 64.995 1152 1213
1349 1472 768 771 777 806 +HSync +VSync
> EndSection
>
> Section "Device"
>         Identifier      "Card0"
>         Driver          "r128"
>         VendorName      "ATI"
>         BusID           "PCI:0:16:0"
>         Option          "PanelWidth"
"1152"
>         Option          "PanelHeight"
"768"
> EndSection
>
> Section "Screen"
>         Identifier "Screen0"
>         Device     "Card0"
>         Monitor    "Monitor"
>         DefaultDepth 24
>         SubSection "Display"
>                 Depth     8
>                 Modes   "1152x768"
>         EndSubSection
>         SubSection "Display"
>                 Depth     16
>                 Modes   "1152x768"
>         EndSubSection
>         SubSection "Display"
>                 Depth     24
>                 Modes   "1152x768"
>         EndSubSection
> EndSection
> ***********end xorg.conf************
>
>

Known problem, for which I don't have a solution. The r128
driver
relies on values found in the BIOS to restore the text mode
on exit.
The cards found in Macs have OpenFirmware but no BIOS, so
the driver
has to guess timing values (or find them in OF) and this was
never
done right afaict.


Re: Xorg issues with PowerBook G4 and OpenBSD 4.1
user name
2007-07-31 18:11:20
Thanks for your help!

I will look into this a little more and post if I have any
success.

Thanks,
Amit

On 7/30/07, Matthieu Herrb <mherrbgmail.com> wrote:
> On 7/29/07, Amit <amit.uttamgmail.com> wrote:
> > Thank you all for the quick response.
> >
> > So do you think it is ok that I stick with it?
Because I don't really
> > mind the flashing while I quit X. I usually just
shut the machine down
> > from xterm. So do you think there will be any
damages to the display?
> >
>
> I don't want to be liable for any damage that could
happen, but I
> think there's no risk if you only have the unsynced
display for short
> periods of time before powering down (or restarting
X).


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )