Bug 206924 - x11/xorg: X server refuses to die when shutdown command is submitted.
Summary: x11/xorg: X server refuses to die when shutdown command is submitted.
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.2-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-04 13:10 UTC by takumi001.m
Modified: 2018-05-20 15:14 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description takumi001.m 2016-02-04 13:10:00 UTC
shutdown -p/h now works well without X.
The same command hangs with X running.
/var/log/xorg.0.log describes as follows.

  (WW) config/devd:  devd socket is lost
  (EE) config/devd:  fail to connect to devd

I hope this is not a bug, and only some configuration can help.

CPU:  i7-4771
motherboard:  BIOSTER HiFi H87S3+
Comment 1 Jan Bramkamp 2016-02-05 16:30:06 UTC
(In reply to takumi001.m from comment #0)

How do you start Xorg? Do you invoke a login/display manager from /etc/ttys or from a rc.d script?

Can you return to a text console from Xorg?

Do you have access to the system via SSH or a non-video console to debug this?

Can you log the console output?

if it requires devd than your X server should shutdown before devd and Xorg shouldn't just hang if it looses access to devd. The rc.shutdown script should send the X server process as SIGKILL after a timeout of iirc 90s. Did you wait long enough for this to happen and did the SIGKILL fail to terminate the process?
Comment 2 takumi001.m 2016-02-06 09:43:56 UTC
Xorg is started by typing "startx" from login terminal.
And I can not return to any one of ttys when trying to log-out,  shutdown and even to change console(by cntrl-alt-fnX) neither.
I do not have access the system via SSH for a difficulty to fix the IP address.
The screen turns black immediately after invoking "shutdown" or "others".  And I could not have screen log, sorry.
I am waiting for text console more than several minutes every time.
Should I go back to 9.x?
Comment 3 takumi001.m 2016-02-07 12:37:28 UTC
Now I can ssh to the system from another PC.
And reinstall two releases of FreeBSD, 9.3R, 10.2R.
And have the same result from Xorg -configure.
They makde xorg.conf.new file with error as follows.

 "Number of created screens does not match number of detected devices.
  Configuration failed"

What can I do for X server to run correctly?

Xorg.0.log and erroneous xorg.conf.new are as follows.

[  1732.329] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmm
ouse' will be disabled.
[  1732.329] (WW) Disabling Mouse0
[  1732.329] (WW) Disabling Keyboard0
[  1732.332] Number of created screens does not match number of detected devices.
  Configuration failed.
[  1732.332] (EE) Server terminated with error (2). Closing log file.

The last portion of /root/xorg.conf.new is

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     "AccelMethod"               # <str>
        #Option     "Backlight"                 # <str>
        #Option     "DRI"                       # <str>
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "TearFree"                  # [<bool>]
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        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
        EndSubSection
EndSection

(In reply to Jan Bramkamp from comment #1)
Comment 4 Niclas Zeising freebsd_committer 2018-01-12 22:29:27 UTC
Hi!
Is this still an issue with an updated xorg stack?

There should be no need these days to create an xorg.conf or similar file at all.
Comment 5 Niclas Zeising freebsd_committer 2018-05-20 15:10:42 UTC
Feedback timeout