DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th April 2012
marconi marconi is offline
Port Guard
 
Join Date: Mar 2012
Posts: 10
Default Xorg problem

I have problem with xorg, with or without xorg.conf. After creating xorg.conf I add Depth and Modes in xorg.conf as indicated in FAQ. Because I use gnome in .xinitrc is exec gnome-session. When run startx I get only black screen. CTRL-ALT-Backspace don't work, only when try to restart computer on the black screen appears gnome window that the computer will shut down within 60s or i can click cancel. Also mouse on usb port Genius 100x don't work, only touch pad work.
What i can do now?

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/OTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
	Load  "dbe"
	Load  "dri"
	Load  "dri2"
	Load  "extmod"
	Load  "glx"
	Load  "record"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

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

Section "Monitor"
	#DisplaySize	  340   190	# mm
	Identifier   "Monitor0"
	VendorName   "LGD"
	ModelName    "LP156WH1-TLA3"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "Dac8Bit"            	# [<bool>]
        #Option     "BusType"            	# [<str>]
        #Option     "CPPIOMode"          	# [<bool>]
        #Option     "CPusecTimeout"      	# <i>
        #Option     "AGPMode"            	# <i>
        #Option     "AGPFastWrite"       	# [<bool>]
        #Option     "AGPSize"            	# <i>
        #Option     "GARTSize"           	# <i>
        #Option     "RingSize"           	# <i>
        #Option     "BufferSize"         	# <i>
        #Option     "EnableDepthMoves"   	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "NoBackBuffer"       	# [<bool>]
        #Option     "DMAForXv"           	# [<bool>]
        #Option     "FBTexPercent"       	# <i>
        #Option     "DepthBits"          	# <i>
        #Option     "PCIAPERSize"        	# <i>
        #Option     "AccelDFS"           	# [<bool>]
        #Option     "IgnoreEDID"         	# [<bool>]
        #Option     "DisplayPriority"    	# [<str>]
        #Option     "PanelSize"          	# [<str>]
        #Option     "ForceMinDotClock"   	# <freq>
        #Option     "ColorTiling"        	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "RageTheatreCrystal" 	# <i>
        #Option     "RageTheatreTunerPort" 	# <i>
        #Option     "RageTheatreCompositePort" 	# <i>
        #Option     "RageTheatreSVideoPort" 	# <i>
        #Option     "TunerType"          	# <i>
        #Option     "RageTheatreMicrocPath" 	# <str>
        #Option     "RageTheatreMicrocType" 	# <str>
        #Option     "ScalerWidth"        	# <i>
        #Option     "RenderAccel"        	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "DynamicClocks"      	# [<bool>]
        #Option     "VGAAccess"          	# [<bool>]
        #Option     "ReverseDDC"         	# [<bool>]
        #Option     "LVDSProbePLL"       	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI"                	# [<bool>]
        #Option     "ConnectorTable"     	# <str>
        #Option     "DefaultConnectorTable" 	# [<bool>]
        #Option     "DefaultTMDSPLL"     	# [<bool>]
        #Option     "TVDACLoadDetect"    	# [<bool>]
        #Option     "ForceTVOut"         	# [<bool>]
        #Option     "TVStandard"         	# <str>
        #Option     "IgnoreLidStatus"    	# [<bool>]
        #Option     "DefaultTVDACAdj"    	# [<bool>]
        #Option     "Int10"              	# [<bool>]
        #Option     "EXAVSync"           	# [<bool>]
        #Option     "ATOMTVOut"          	# [<bool>]
        #Option     "R4xxATOM"           	# [<bool>]
	Identifier  "Card0"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes	"1280x1024"	
	EndSubSection
EndSection

Last edited by marconi; 8th April 2012 at 11:28 AM.
Reply With Quote
  #2   (View Single Post)  
Old 8th April 2012
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

What version of OpenBSD are you running: 4.9, 5.0 or 5.1current? Xorg configuration and the supported radeon cards have been evolving. What does dmesg reveal about the radeon card?
Reply With Quote
  #3   (View Single Post)  
Old 8th April 2012
marconi marconi is offline
Port Guard
 
Join Date: Mar 2012
Posts: 10
Default

On this computer is OpenBSD 5.0 stable, graphics card is ATI Mobility Radeon HD 4570.

From dmesg:
Code:
vga1 at pci1 dev 0 function 0 "ATI Mobility Radeon HD 4500" rev 0x00
Reply With Quote
  #4   (View Single Post)  
Old 8th April 2012
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Should be supported although there has been driver updates and some back and forth changes (radeon vs radeonhd) in 5.1 current.
Any clues in /var/log/Xorg.0.log? If you substitute
Code:
radeonhd
for
Code:
radeon
in your xorg.conf
Code:
	Identifier  "Card0"
	Driver      "radeonhd"
	BusID       "PCI:1:0:0"
does it help?
Reply With Quote
  #5   (View Single Post)  
Old 8th April 2012
marconi marconi is offline
Port Guard
 
Join Date: Mar 2012
Posts: 10
Default

Nothing, the same problem. In /var/log/Xorg.0.log i don't find any error or somethink unusual.

Code:
(II) LoadModule: "radeon"
(II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.so
(II) Module radeon: vendor="X.Org Foundation"
compiled for 1.9.5, module version = 6.12.2
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 8.0
(II) RADEON: Driver for ATI Radeon chipsets:
etc...

I will wate 5.1 and then I'll try.

Last edited by marconi; 8th April 2012 at 02:19 PM.
Reply With Quote
  #6   (View Single Post)  
Old 8th April 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Hi Marconi !
I remember I had once an isssue like this so I dropped using startx script and just did :
xinit /usr/local/bin/gnome-session
it worked fine ..
as for gnome on openbsd-current .. I upgraded two days ago , and installed gnome* , but for some reason I received a dialog box reading :
Code:
gnome : can't publish discovery information on the network
I click on the close button there in .. to see a badly shaped monochrome gnome desktop .. (even though I installed the menus/themes/extra ...etc ) ..
kde is working fine though .. you can try your way ..
Reply With Quote
  #7   (View Single Post)  
Old 8th April 2012
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

This probably needs a new thread
Code:
gnome : can't publish discovery information on the network
I think this is dependent on the dbus and avahi daemons. Are they started in /etc/rc.conf.local?
Code:
cat /etc/rc.conf.local
ntpd_flags="-s"         # enabled during install
xdm_flags=              # enabled during install
lpd_flags=""            # Start print daemon
pkg_scripts="dbus_daemon avahi_daemon mpd"

Last edited by shep; 8th April 2012 at 05:59 PM. Reason: suggest a new thread
Reply With Quote
  #8   (View Single Post)  
Old 8th April 2012
marconi marconi is offline
Port Guard
 
Join Date: Mar 2012
Posts: 10
Default

Quote:
I remember I had once an isssue like this so I dropped using startx script and just did :
xinit /usr/local/bin/gnome-session
it worked fine ..
Same problem with this command.

Quote:
I think this is dependent on the dbus and avahi daemons. Are they started in /etc/rc.conf.local?
I forget this time to add in rc.conf.local, this solve the problem with the mouse.
Code:
xdm_flags=NO
gnome_enable=YES
After adding this I get a login screen and after that xorg.
Code:
ntpd_flags="-s"         # enabled during install
xdm_flags=              # enabled during install
lpd_flags=""            # Start print daemon
pkg_scripts="dbus_daemon avahi_daemon mpd"
Reply With Quote
  #9   (View Single Post)  
Old 8th April 2012
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

If an incorrect .xinitrc/.xsession was the problem it suggests you took some short cuts. When I am trying OBSD on new hardware I use the default settings (fvwm, xclock,xterm) first to see if X works at all. Having posted this would focused attention on the /etc/rc.conf.local, /home/user/.xinitrc or /home/user/.xsession scripts rather than your xorg configuration.
Reply With Quote
Old 8th April 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thanks shep ! I wasn't hijacking the thread.I just wanted to let Marconi a gnome-related note to consider
Marconi .. you don't have to have xdm/gdm or rc.conf.local line(s) for gnome to start. I just use :
xinit /usr/local/bin/gnome-session
likewise , kdm is not a necessity .. it's a beautifier login screen ..
xinit /usr/local/bin/startkde
would work ..
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 problem riotnrrd FreeBSD General 0 21st February 2012 04:29 PM
FreeBSD 7.1 Ati Xpress 200M Xorg 7.4 problem raduenea FreeBSD Installation and Upgrading 11 1st July 2009 12:46 AM
Xorg + Xfce4 resolution problem sniper007 FreeBSD General 4 30th April 2009 04:38 PM
4.4 on macmini ppc xorg problem gosha OpenBSD Installation and Upgrading 27 14th February 2009 10:06 PM
Xorg very slow (problem with DRI?) Hihihi OpenBSD General 6 18th July 2008 06:21 PM


All times are GMT. The time now is 02: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