From owner-freebsd-hackers@FreeBSD.ORG Thu May 26 07:08:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C586106566B for ; Thu, 26 May 2011 07:08:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id B6C8A8FC14 for ; Thu, 26 May 2011 07:08:33 +0000 (UTC) Received: from outgoing.leidinger.net (p5B155E9A.dip.t-dialin.net [91.21.94.154]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 0E631844015; Thu, 26 May 2011 09:08:20 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 560DB2CCD; Thu, 26 May 2011 09:08:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1306393697; bh=WHq7JNtZ/UdsvQdxP1Mv2Z3wxIK2HWsVwmguU+2f53w=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=e1U/6JRFtw2E3Y4Mp//1hh7XPP3PXbWGn7JHk54pKQ1cd4Y3XKPQg0OfS2iQyJ3sH FPNn1JM86DyxiOeHHabWDtDUUAB0UGy1imC6R7Cfk4YcIbtFg7rZM/7jD4KFZxoldI Ag8fxORbRHH3cUeUACC4P2VkiRj84oqxebV/0XpMAmvTO7lLnwrPQ1iBfnDUMpijPX oZmuwqA5uIYleIA2eYVIyuoGTUlMgpooheumSOkyvQFGkWC1x9lTh6NGO86OMnvcqm mpKJXgjofu7+zd4uDPb36aCjATAhHM5TypX3j3uZCaljQsN5I6Lbhsm2rcgkXS3dKc YxOS77iInJ0LA== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.14.4/Submit) id p4Q78G2T062220; Thu, 26 May 2011 09:08:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 26 May 2011 09:08:16 +0200 Message-ID: <20110526090816.21102eh1d7ighug0@webmail.leidinger.net> Date: Thu, 26 May 2011 09:08:16 +0200 From: Alexander Leidinger To: Doug Ambrisko References: <201105251642.p4PGgKWL062917@ambrisko.com> In-Reply-To: <201105251642.p4PGgKWL062917@ambrisko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 0E631844015.A1645 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.177, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, J_CHICKENPOX_32 0.60, J_CHICKENPOX_55 0.60, TW_GL 0.08) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1306998500.56351@vbUklB1q6hTxJF5KlaiWeg X-EBL-Spam-Status: No X-Mailman-Approved-At: Thu, 26 May 2011 11:08:32 +0000 Cc: "freebsd-hackers@freebsd.org" , jails@freebsd.org Subject: X11 in a jail (was: Re: NFS mount inside jail fails) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 07:08:34 -0000 Quoting Doug Ambrisko (from Wed, 25 May 2011 09:42:20 -0700 (PDT)): CCing jails@ > Alexander Leidinger writes: > | Quoting Doug Ambrisko (from Thu, 19 May 2011 > | 14:38:40 -0700 (PDT)): > | > | > Alexander Leidinger writes: > | > | On Thu, 19 May 2011 10:24:59 -0700 (PDT) Doug Ambrisko > | > | wrote: > | > | > | > | > doesn't have access to it anymore either. Running an X server in a > | > | > vimage has some issues. Most are pretty easy to over-come. > | > | > | > | Are you using my patch > | > | (http://www.leidinger.net/FreeBSD/current-patches/0_jail.diff) + a > | > | custom devfs.rules to get the 2D part (the last time I tried the DRI > | > | part of my patch, it paniced the machine) of the X server working in a > | > | jail, or did you come up with something yourself? If it is the later, I > | > | would be interested how you did it. > | > > | > Nope, didn't know about it when I played with it. I should try it. > | > I added > | > case PRIV_IO: > | > return (0); > | > > | > to kern_jail.c to get X to work. This was with the Intel graphics. > | > The main problem I have now is on resume the X server dies and restarts. > | > I use xdm. Without jail with vimage then it works okay. > | > | I use it without vimage in a jail. This is with a radeon card > | (corresponding kernel module loaded at boot to get 2D acceleration, as > | the X server obviously can not load modules in a jail). > | > | > My laptop can use either Intel or ATI graphics. I just switched it to > | > ATI to see what happens. I should try some more tests. It seems > | > my BIOS likes to reset this setting and enable both :-( > | > > | > I don't seem to have panics. This is with a month or so old -current. > | > | You do not allow access to the dri device, so I do not expect a panic. > | If you give access to the dri device (which can be enabled separately > | in my patch), I would not be surprised to see a panic (the last time I > | tried it is a year or two ago, I didn't take the time to investigate > | why it panics). > > Okay, I have an update. With Intel graphics and using dri things > work better and I don't get panics. I load drm.ko & i915.ko before Just to make sure we talk about the same things: Did you configure the X server to use 3D (dri and glx in the modules section, dri section in the X11 config, dri device visible in devfs)? xdriinfo shows some valid hardware acceleration? If yes, I definitively have to test the 3D part again with my radeon (with a normal jail and with a vimage jail in case the normal jail fails). > starting the vimage jail. X sees it and uses it. This solves the > suspend/resume issue I had. The dri issue also prevented suspend and > resume fail to work in a chroot. > > I have not tried switching to using the ATI option. On a plus side > my laptop is running cooler and faster now. If you didn't had loaded i915.ko before, you have at least 2D accel now, and probably the power management of the chip got activated too. Bye, Alexander. -- Hope that the day after you die is a nice day. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137