From owner-freebsd-x11@FreeBSD.ORG Thu Aug 29 18:32:16 2013 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F374C9B3 for ; Thu, 29 Aug 2013 18:32:15 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 793462F30 for ; Thu, 29 Aug 2013 18:32:15 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id E77B740010 for ; Thu, 29 Aug 2013 20:32:12 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id DBF3D4000D; Thu, 29 Aug 2013 20:32:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 552D44000C; Thu, 29 Aug 2013 20:32:12 +0200 (CEST) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3cQsqb70lsz8hVn; Thu, 29 Aug 2013 20:32:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([IPv6:2001:470:dca9:0:1::3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) (amavisd-new, port 10025) with ESMTPS id u98cuwYOeJ8A; Thu, 29 Aug 2013 20:32:08 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id 3cQsqX4QS5z8hVm; Thu, 29 Aug 2013 20:32:08 +0200 (CEST) Received: from [IPv6:::1] (celes.daemonic.se [IPv6:2001:470:dca9:1::3]) by mail.daemonic.se (Postfix) with ESMTPSA id 3cQsqX3jHjz9Ctj; Thu, 29 Aug 2013 20:32:08 +0200 (CEST) Message-ID: <521F93A6.5040405@freebsd.org> Date: Thu, 29 Aug 2013 20:32:06 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: Matthew Rezny Subject: Re: ports/156405: x11-drivers/xf86-video-ati driver: no hardware rendering References: <20130829183929.00005478@unknown> In-Reply-To: <20130829183929.00005478@unknown> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 130829-0, 2013-08-29), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV using ClamSMTP Cc: Kevin Oberman , "freebsd-x11@freebsd.org" , Thomas Mueller 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: Thu, 29 Aug 2013 18:32:16 -0000 On 2013-08-29 18:39, Matthew Rezny wrote: > On Wed, 28 Aug 2013 22:31:42 -0700 > Kevin Oberman wrote: >> On Wed, Aug 28, 2013 at 5:26 PM, Thomas Mueller >> wrote: >> Starting X will load the driver at the proper time so that X can >> takeover the display, keyboard, and mouse properly. >> >> I might also note that Intel KMS requires: WITH_NEW_XORG, WITH_KMS, >> and the build of graphics/libdrm with the KMS config option enabled. >> >> If I sent this to you in the past, sorry. I have posted this >> information a few times and it may or may not make a difference for >> you. > > I have not tried the Intel KMS as I have no applicable hardware, but I > have read plenty of reports from people testing. I had assumed that > when the KMS driver loads, it owns the video card and the kernel never > gets to take it back. Does it also take over keyboard and mouse in some > way? If so, that makes the problem worse and explains why some seem to > have trouble getting a clean reboot/shutdown. I can't fathom why a > video driver would take ownership of input devices. > > The VT switching issue doesn't seem like it should be a big one to > solve. The kernel knows how to reinitialize the video card in text mode > as it already relies on that to switch to a text console while UMS Xorg > is running. I first thought the issue with KMS was simply that there > was not a provision for the kernel to tell the KMS driver to give up > the card. However, unloading the module still doesn't give the video > card back so there is something more than meets the eye. VT switching is being worked on, and hopefully will make it in time for FreeBSD 10.0. I doubt that the driver takes ownership of input devices, but maybe X does, and then fails to return them, in some configurations. I just tested on my laptop, which uses KMS, and I had no trouble exiting X, got a black screen, then blindly type "startx" and have it come back up again. Neither was there any trouble powering off the computer cleanly using the power button, so in the general case, the computer is clearly still alive and working, even after exiting X. The only thing not working is the console. Regards! -- Niclas