From owner-freebsd-x11@FreeBSD.ORG Tue May 21 20:44:13 2013 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2BB94B34; Tue, 21 May 2013 20:44:13 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49]) by mx1.freebsd.org (Postfix) with ESMTP id E2F19D00; Tue, 21 May 2013 20:44:12 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id k14so1460761oag.22 for ; Tue, 21 May 2013 13:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ZGHTalokEccS4aZIDQ991Z9f/6AlutFEqGVF6LnzkEM=; b=sW1Px4uHV7oneIjMR6oklMZmKAbZbPdWRVBJgRCqd4rqli0MofytFWQ301t1BPYTAi 1dka6diZqgIFudvF/tfym5USJuq86LhtPE+2COZIUakXr8ZP0K7/wK7+cf6+wtnJNnXZ PextXvRkMgQJKX3WiF3aBb1k/GtPboQbo5MzVE0uoWVD99+xXkT4HunKTv3sbzEOajp5 ZKhu/jZDoNGWelRv9p9zT2+H+Jbh6Be3K9bIyB3AogBellSCd0vMAABk6YIu2mgbxIP8 Qs5Wpjf2sxZTRM1U5aDSvmNTL9FBbXzkStt5EMM/3ExlgRm1IVs9Fv+k1h1JUeG2Scvt z65Q== MIME-Version: 1.0 X-Received: by 10.60.59.74 with SMTP id x10mr2642837oeq.48.1369169052309; Tue, 21 May 2013 13:44:12 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.76.182.76 with HTTP; Tue, 21 May 2013 13:44:12 -0700 (PDT) In-Reply-To: <1601171.hWXcdG7J9D@notebook.alkar.net> References: <1601171.hWXcdG7J9D@notebook.alkar.net> Date: Tue, 21 May 2013 13:44:12 -0700 X-Google-Sender-Auth: kcY9FPQSMrTheq1vL-ID6bNaGKU Message-ID: Subject: Re: FreeBSD-head hang when shutdown by ACPI with Intel GPU and new Xorg and SandyBridge From: Kevin Oberman To: Artyom Mirgorodskiy Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-x11@freebsd.org" , FreeBSD Current X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2013 20:44:13 -0000 On Tue, May 21, 2013 at 12:50 PM, Artyom Mirgorodskiy < artyom.mirgorodsky@gmail.com> wrote: > Hi > More than a month I can not shutdown FreeBSD on my laptop correctly when > running Xorg with Intel GPU. However reboot work correctly. Shutdown work > fine if I choose Vesa driver in xorg.conf. So I can run with intel, then > edit xorg.conf, kill Xorg server and shutdown correctly. If I shut down > immediately after loading Xorg - everything is fine too. > Without the text console is difficult to provide any information :( Why > would still not recover mode when kill Xorg? > > PS > I try to disable RC6 states -without any changes. > FreeBSD shutdown correctly before January. > I am seeing similar issues on my Sandybridge running Xorg with KMS, but I see it on 9-Stable. The main difference between shutdown and reboot is that shutdown goes through the rc.d files and issues a 'stop' for each. reboot simply kills running processes, first by sending SIGTERM and then sending SIGKILL to those that still live. So something is failing to die and that "something" is probably X. The system still responds to ICMP ECHOREQUEST (i.e. ping), but I can't fire up an ssh session. As the KMS code does not switch the display mode back, once X with KMS starts, you can't get a console back. Since the system is deadlocked in this state, I suspect something bad is happening in the KMS code that leaves the system hung. I may try to run a firewire console. Never tried it, but it should work.