DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default xfce4 issue

Hello, I installed xfce4 on my HPC but the graphic environment does not work! I made a starxfce4 but I have errors here my output :
Code:
# startxfce4                                                                                                    
/usr/local/bin/startxfce4: Starting X server


X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 6.1 i386 
Current Operating System: OpenBSD hpc-tulipe.my.domain 6.1 GENERIC.MP#291 i386
Build Date: 01 April 2017  02:13:40PM
 
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep  9 02:36:43 2017
(==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
xf86TokenToOptinfo: table is NULL
xf86TokenToOptinfo: table is NULL
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
#
here is an excerpt on /var/log/Xorg.0.log
Code:
[    44.798] (==) MGA(0): Using SW cursor
[    44.798] (--) MGA(0): Linear framebuffer at 0xF9000000
[    44.798] (--) MGA(0): MMIO registers at 0xFBCFC000
[    44.798] (--) MGA(0): Pseudo-DMA transfer window at 0xFB000000
[    44.798] (EE) MGA(0): Unable to map Framebuffer F9000000 400000.  Bad file descriptor (9)
[    44.798] (II) MGA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 16/16
[    44.798] (**) MGA(0): Depth 16, (--) framebuffer bpp 16
[    44.798] (==) MGA(0): RGB weight 565
[    44.799] (II) MGA(0): Disabling MTRR support.
[    44.799] (==) MGA(0): Using XAA acceleration
[    44.799] (WW) MGA(0): Could not retrieve video BIOS!
[    44.799] (EE) MGA(0): Unable to detect video RAM.
[    44.799] (II) UnloadModule: "mga"
[    44.799] (II) UnloadSubModule: "vgahw"
[    44.799] (II) Unloading vgahw
[    44.799] (EE) Screen(s) found, but none have a usable configuration.
[    44.799] (EE)
Fatal server error:
[    44.799] (EE) no screens found(EE)
[    44.799] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    44.799] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    44.799] (EE)
[    44.802] (EE) Server terminated with error (1). Closing log file.
regards
philippe
Reply With Quote
  #2   (View Single Post)  
Old 9th September 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Are you running as root on purpose? Stop that.

Try this:
Code:
$ echo "exec startxfce4" > ~/.xinitrc
$ startx
Reply With Quote
  #3   (View Single Post)  
Old 9th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

i have do it but before i tried to install Gnome and i do this commands :
Quote:
# rcctl disable xdm
# rcctl enable multicast messagebus avahi_daemon gdm
Reply With Quote
  #4   (View Single Post)  
Old 11th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
(==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
There is an error this configuration file --> "no screens found".

I would try renaming xorg.conf.d to x_backup and rebooting. These days, in OpenBSD, xorg auto-configuration is pretty good and rarely needs manual configuration.
Reply With Quote
  #5   (View Single Post)  
Old 11th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

I followed your recommendations rename the file xorg.conf.d but this failed, did you have another idea?
Reply With Quote
  #6   (View Single Post)  
Old 13th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

If you are restricted to an mga(4) video card, I would review the linked man page and perhaps try to specify the type of chipset. Your Xorg.0.log also mentions it is unable to detect the amount of video ram - I wonder if you have a Millenium II chipset?
Quote:
CONFIGURATION DETAILS
Please refer to xorg.conf(5) for general configuration details. This
section only covers configuration details specific to this driver.

The driver auto-detects the chipset type, but the following ChipSet
names may optionally be specified in the config file "Device" section,
and will override the auto-detection:

"mga2064w", "mga1064sg", "mga2164w", "mga2164w agp", "mgag100",
"mgag200", "mgag200 pci", "mgag400", "mgag550".

The G450 is Chipset "mgag400" with ChipRev 0x80.

The driver will auto-detect the amount of video memory present for all
chips except the Millennium II. In the Millennium II case it defaults
to 4096*kBytes. When using a Millennium II, the actual amount of video
memory should be specified with a VideoRam entry in the config file
"Device" section.
Reply With Quote
  #7   (View Single Post)  
Old 14th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

My quad cores is an HP proliant ML150 G6, in a quik specs of HP i found only :

32MB shared supporting 1600x1200x16M resolution
Reply With Quote
  #8   (View Single Post)  
Old 14th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

with dmesg i found :
Quote:
vga1 at pci5 dev 0 function 0 "Matrox MGA G200e" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb5 at pci0 dev 28 function 5 "Intel 82801JI PCIE" rev 0x00: apic 8 int 17
Reply With Quote
  #9   (View Single Post)  
Old 14th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Try placing 10-mga.conf in /etc/X11/xorg.conf.d with the following contents:

Code:
Section "Device" 
          Identifier "Mga" 
          Driver "mgag200 pci"
EndSection
You may have to add some Options per mga(4):

1) Option "MGASDRAM" "boolean"
Specify whether G100, G200 or G400 cards have SDRAM. The driver
attempts to auto-detect this based on the card's PCI subsystem
ID. This option may be used to override that auto-detection.
The mga driver is not able to auto-detect the presence of of
SDRAM on secondary heads in multihead configurations so this
option will often need to be specified in multihead
configurations. Default: auto-detected.

2) Option "PciRetry" "boolean"
Enable or disable PCI retries. Default: off.

3) Option "ForcePciDma" "boolean"
This forces the use of PCI DMA even if AGP DMA could be used.
This option is primarily intended for testing purposes, but it
could also be used on systems with a buggy or poorly function
AGP implementation. Default: off.
Reply With Quote
Old 14th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

hello I have added the section 10-mga.conf in /etc/X11/xorg.conf.d,
I always have mistakes! here is my /var/log/Xorg.0.log


Quote:
[ 83.136] ABI class: X.Org Video Driver, version 20.0
[ 83.136] (II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w
,
mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
mgag200 SE A PCI, mgag200 SE B PCI, mgag200 EV Maxim,
mgag200 ER SH7757, mgag200 eW Nuvoton, mgag200 eW3 Nuvoton,
mgag200eH, mgag400, mgag550
[ 83.136] (II) VESA: driver for VESA chipsets: vesa
[ 83.136] (WW) Falling back to old probe method for vesa
[ 83.136] (II) Loading sub module "vgahw"
[ 83.136] (II) LoadModule: "vgahw"
[ 83.138] (II) Loading /usr/X11R6/lib/modules/libvgahw.so
[ 83.138] (II) Module vgahw: vendor="X.Org Foundation"
[ 83.138] compiled for 1.18.4, module version = 0.1.0
[ 83.138] ABI class: X.Org Video Driver, version 20.0
[ 83.138] (--) MGA(0): Chipset: "mgag200 SE A PCI"
[ 83.138] (II) MGA(0): HW cursor is not supported with video redirection onG2
00 server chips.
If you don't intend to use video redirection enable with Option "HWCursor" "On"
[ 83.139] xf86TokenToOptinfo: table is NULL
[ 83.139] xf86TokenToOptinfo: table is NULL
[ 83.139] (==) MGA(0): Using SW cursor
[ 83.139] (--) MGA(0): Linear framebuffer at 0xF9000000
[ 83.139] (--) MGA(0): MMIO registers at 0xFBCFC000
[ 83.139] (--) MGA(0): Pseudo-DMA transfer window at 0xFB000000
[ 83.139] (EE) MGA(0): Unable to map Framebuffer F9000000 400000. Bad file d
escriptor (9)
[ 83.139] (II) MGA(0): Creating default Display subsection in Screen section
"Builtin Default mga Screen 0" for depth/fbbpp 16/16
[ 83.139] (**) MGA(0): Depth 16, (--) framebuffer bpp 16
[ 83.139] (==) MGA(0): RGB weight 565
[ 83.139] (II) MGA(0): Disabling MTRR support.
[ 83.139] (==) MGA(0): Using XAA acceleration
[ 83.139] (WW) MGA(0): Could not retrieve video BIOS!
[ 83.139] (EE) MGA(0): Unable to detect video RAM.
[ 83.139] (II) UnloadModule: "mga"
[ 83.139] (II) UnloadSubModule: "vgahw"
[ 83.139] (II) Unloading vgahw
[ 83.139] (EE) Screen(s) found, but none have a usable configuration.
[ 83.139] (EE)
Fatal server error:
[ 83.139] (EE) no screens found(EE)
[ 83.140] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 83.140] (EE) Please also check the log file at "/var/log/Xorg.0.log" for ad
ditional information.
[ 83.140] (EE)
[ 83.142] (EE) Server terminated with error (1). Closing log file.
the BSD does not detect the video card that is on the motherboard because the port pci-express 16 is the one to receive raid card, the proliant has chipset that does not manage the video, like on a workstation.
I do not understand why you send me the file /etc/X11/xorg.conf.d instead of xorg.conf?
regards
philippe
Reply With Quote
Old 14th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
I do not understand why you send me the file /etc/X11/xorg.conf.d instead of xorg.conf?
/etc/X11/xorg.conf.d just changes the troublesome sections of xorg autoconfiguration. The intent was to avoid issues with mouse/installed fonts etc. You can use a /etc/X11/xorg.conf and just change the "Device" portion as described in my prior post.
Reply With Quote
Old 14th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

I reformat my hard drive and install Gnome, without errors during the instalation, Gnome this load automatically, but with the settings that you indicated to me in the xorg.conf.
I think there is not enough parameter in the xorg.conf, as for example the name of the video card which is "matrox" the ram is 32 mega bits and according to the manufacturer the maximum resolution is of 1600 * 1200 pixels and 16 million colors.
I made a Gnome instalation procedure it works on several of my computers, but my video output is directly on the motherboard. I do not understand why we address a "PCI" in the xorg.conf because the video card is in the motherboard?
I can not mount an additional video card because the motherboard has its two chipsets unable to manage a video card in port "PCI".
my blade works under windows SBS, Debian 9, Centos 7, and I have another hard drive for BSDs (NetBSD, OpenBSD, FreeBSD).
Not easy to get information on this video card.

What should I do to complete the xorg.conf




the /var/log/Xorg.0.log file :
Code:
[    24.211] (II) Loader magic: 0x34e6a020
[    24.212] (II) Module ABI versions:
[    24.212]    X.Org ANSI C Emulation: 0.4
[    24.212]    X.Org Video Driver: 20.0
[    24.212]    X.Org XInput driver : 22.1
[    24.212]    X.Org Server Extension : 9.0
[    24.212] (--) PCI:*(0:3:0:0) 102b:0522:103c:31fa rev 2, Mem @ 0xf9000000/16$
[    24.212] (II) LoadModule: "glx"
[    24.231] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[    24.306] (II) Module glx: vendor="X.Org Foundation"
[    24.306]    compiled for 1.18.4, module version = 1.0.0
[    24.306]    ABI class: X.Org Server Extension, version 9.0
[    24.306] (==) AIGLX enabled
[    24.306] (II) LoadModule: "mgag200pci"
[    24.310] (WW) Warning, couldn't open module mgag200pci
[    24.310] (II) UnloadModule: "mgag200pci"
[    24.310] (II) Unloading mgag200pci
[    24.310] (EE) Failed to load module "mgag200pci" (module does not exist, 0)
[    24.310] (EE) No drivers available.
[    24.310] (EE)
Fatal server error:
[    24.310] (EE) no screens found(EE)
[    24.310] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    24.310] (EE) Please also check the log file at "/var/log/Xorg.0.log" for a$
[    24.310] (EE)
[    24.311] (EE) Server terminated with error (1). Closing log file.

Code:
[    24.310] (EE) Failed to load module "mgag200pci" (module does not exist, 0)
[    24.310] (EE) No drivers available.
we can see that a driver is missing in the /var/log/Xorg.0.log >> (EE) Failed to load module "mgag200pci" (module does not exist, 0), I do not understand why you tell me to address a 'PCI' port.
it lacks a module!

Best regards
Philippe
Reply With Quote
Old 15th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

My Mistake - I thought that "vga1 at pci5 dev 0 function 0 "Matrox MGA G200e" rev 0x02" meant you had a pci card.

For an agp card try
Code:
Section "Device" 
          Identifier "Matrox" 
          Driver "mgag200"
EndSection
Reply With Quote
Old 15th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

I have error Failed to load module "mgag200" (module does not exist, 0)
the module does not exist in the OpenBSD database, where i can find the module "mgag200", you have to go to the site of the manufacturer, how to procure such a module?

Quote:
[ 24.171] (II) Loader magic: 0x39cbd020
[ 24.171] (II) Module ABI versions:
[ 24.171] X.Org ANSI C Emulation: 0.4
[ 24.171] X.Org Video Driver: 20.0
[ 24.171] X.Org XInput driver : 22.1
[ 24.171] X.Org Server Extension : 9.0
[ 24.173] (--) PCI:*(0:3:0:0) 102b:0522:103c:31fa rev 2, Mem @ 0xf9000000/1$
[ 24.173] (II) LoadModule: "glx"
[ 24.190] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[ 24.249] (II) Module glx: vendor="X.Org Foundation"
[ 24.249] compiled for 1.18.4, module version = 1.0.0
[ 24.249] ABI class: X.Org Server Extension, version 9.0
[ 24.249] (==) AIGLX enabled
[ 24.249] (II) LoadModule: "mgag200"
[ 24.271] (WW) Warning, couldn't open module mgag200
[ 24.271] (II) UnloadModule: "mgag200"
[ 24.271] (II) Unloading mgag200
[ 24.271] (EE) Failed to load module "mgag200" (module does not exist, 0)
[ 24.271] (EE) No drivers available.
[ 24.271] (EE)
Fatal server error:
[ 24.271] (EE) no screens found(EE)
[ 24.271] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 24.271] (EE) Please also check the log file at "/var/log/Xorg.0.log" for $
[ 24.271] (EE)
[ 24.272] (EE) Server terminated with error (1). Closing log file.
Regards
Philippe
Reply With Quote
Old 15th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

In this Ubuntu thread it indicates that XAA rendering was removed by Xorg. You can try EXA (below) or disabling Acceleration entirely.
Code:
Section "Device" 
          Identifier "Mga" 
          Driver "mga"
          Option "AccelMethod" "EXA"
EndSection
I would try these options listed in the man page:
Quote:
Option "NoAccel" "boolean"
Disable or enable acceleration. Default: acceleration is enabled.
Option "AccelMethod" "string"
Chooses between available acceleration architectures. Valid options are XAA and EXA. XAA is the traditional acceleration architecture and support for it is very stable. EXA is a newer acceleration architecture with better performance for the Render and Composite extensions, but the rendering code for it is newer and possibly unstable. The default is XAA.
If you have an xorg.conf or Xorg.0.log from Centos, I would look at it and see if the values could be specified in your OpenBSD Xorg. If none of these thing work, then you will be stuck with vesa.

Last edited by shep; 16th September 2017 at 11:00 PM. Reason: Options -> Option
Reply With Quote
Old 16th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

it's better not still good !

Quote:
[ 24.045] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem
(Operation not permitted)
Check that you have set 'machdep.allowaperture=1'
in /etc/sysctl.conf and reboot your machine
refer to xf86(4) for details
[ 24.045] linear framebuffer access unavailable
[ 24.058] (--) Using wscons driver on /dev/ttyC4
[ 24.097]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 24.097] X Protocol Version 11, Revision 0
[ 24.097] Build Operating System: OpenBSD 6.1 i386
[ 24.097] Current Operating System: OpenBSD hpc-hapocalipse.my.domain 6.1 G$
[ 24.097] Build Date: 01 April 2017 02:13:40PM
[ 24.097]
[ 24.097] Current version of pixman: 0.34.0
[ 24.097] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 24.097] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 24.098] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 16 07:14:03 2$
[ 24.151] (==) Using config file: "/etc/X11/xorg.conf"
[ 24.151] (==) Using system config directory "/usr/X11R6/share/X11/xorg.con$
[ 24.165] Parse error on line 4 of section Device in file /etc/X11/xorg.conf
"Options" is not a valid keyword in this section.
[ 24.165] (EE) Problem parsing the config file
[ 24.165] (EE) Error parsing the config file
[ 24.165] (EE)
Fatal server error:
[ 24.165] (EE) no screens found(EE)
[ 24.165] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 24.165] (EE) Please also check the log file at "/var/log/Xorg.0.log" for $
[ 24.165] (EE)
[ 24.167] (EE) Server terminated with error (1). Closing log file.

later I will reconnect my disk with the linux, see the files of Centos 7 and Debian 9.1.

thank you for your help !!! I go to bed !

with NetBSD 7.0.2 and pkgsrc2017Q2, I successfully compiled xfce4-desktop, it works!

Regards
Philippe
Reply With Quote
Old 16th September 2017
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Quote:
Originally Posted by philo_neo71 View Post
Code:
[ 24.165] Parse error on line 4 of section Device in file /etc/X11/xorg.conf
"Options" is not a valid keyword in this section.
The keyword is not Options but Option, without s.
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
Old 19th September 2017
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

i have deactivate Option "AccelMethod" "EXA" but Gnome doesn't load !
Reply With Quote
Old 19th September 2017
puffymon puffymon is offline
Real Name: Leonid
Port Guard
 
Join Date: Apr 2017
Location: Earth
Posts: 37
Default

One of your logs tells to make sure that machdep.allowaperture=1
So, add "machdep.allowaperture=1" to /etc/sysctl.conf and reboot.
If it still doesn't work, give us your dmesg outpud and Xorg.0.log
So, maybe it wasn't necessary to edit xorg's configuration.
BTW, running DE as root is really dumb idea.
__________________
mazocomp$ uname -a
OpenBSD mazocomp.lan 6.3 GENERIC.MP#47 amd64
mazocomp$
Reply With Quote
Old 19th September 2017
puffymon puffymon is offline
Real Name: Leonid
Port Guard
 
Join Date: Apr 2017
Location: Earth
Posts: 37
Default

Also note that machdep.allowaperture should be 1 or 2 only if it's necessary, because it's secure to keep it 0.
__________________
mazocomp$ uname -a
OpenBSD mazocomp.lan 6.3 GENERIC.MP#47 amd64
mazocomp$
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
xfce4 issue philo_neo71 NetBSD Package System (pkgsrc) 6 28th May 2018 12:11 PM
xfce4 work fine, but gnome issue philo_neo71 OpenBSD Packages and Ports 10 9th September 2016 01:12 AM
xfce4 issue on sun blade philo_neo71 NetBSD Package System (pkgsrc) 1 30th May 2016 02:56 AM
OpenBSD xfce4 kaschei OpenBSD General 5 28th June 2009 08:45 PM
XFCE4 on 7.0 TMD3 FreeBSD Ports and Packages 3 26th July 2008 03:22 AM


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