From owner-freebsd-questions@FreeBSD.ORG Tue May 15 07:38:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB9E416A400 for ; Tue, 15 May 2007 07:38:29 +0000 (UTC) (envelope-from jozsa@volny.cz) Received: from fest.stud.feec.vutbr.cz (fest.stud.feec.vutbr.cz [147.229.72.16]) by mx1.freebsd.org (Postfix) with ESMTP id A402913C45B for ; Tue, 15 May 2007 07:38:28 +0000 (UTC) (envelope-from jozsa@volny.cz) Received: from [147.229.145.45] (PC-Jozsa.urel.feec.vutbr.cz [147.229.145.45]) (user=xjozsa00 mech=PLAIN bits=0) by fest.stud.feec.vutbr.cz (envelope-from jozsa@volny.cz) (8.13.7/8.13.7) with ESMTP id l4F7cCl4093636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 May 2007 09:38:12 +0200 (CEST) Message-ID: <46496364.6030704@volny.cz> Date: Tue, 15 May 2007 09:38:12 +0200 From: Ladislav Jozsa User-Agent: Thunderbird 1.5.0.9 (X11/20070120) MIME-Version: 1.0 To: nawcom References: <4648D4AE.3090503@volny.cz> <4648E316.60600@nawcom.com> In-Reply-To: <4648E316.60600@nawcom.com> Content-Type: multipart/mixed; boundary="------------080808090701030808080107" X-Scanned-By: MIMEDefang 2.57 on 147.229.72.16 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: 3D acceleration within non-root account X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 07:38:30 -0000 This is a multi-part message in MIME format. --------------080808090701030808080107 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Thank you for your answer. I have checked write access to the device /dev/dri/card0, everything seems to be OK. # ls -l /dev/dri/card0 crw-rw-rw- 1 root wheel 0, 131 May 15 09:02 /dev/dri/card0 Because I don't know which device can cause the problem I also tried to set write access to the following devices: crw----rw- 1 root wheel 0, 29 May 15 09:02 /dev/agpgart crw-r--rw- 1 root wheel 0, 15 May 15 09:02 /dev/pci However it is still not working. Please see the Xorg.log file attached. Ladislav nawcom wrote: > Well, it shows that it has to do with device permissions; your root > can read and write to it, but your user account can't. be sure and > give your user write access to the device. Also your X log should be > able to describe in more detail on what the situation is that you are > having. check that and let me know if you got it working and also what > your X log says. > -Ben > > Ladislav Jozsa wrote: >> Hello there, >> >> I'm trying to get 3D acceleration working on my ThinkPad R40 with ATI >> Radeon Mobility 7500 graphic card. I'm running FreeBSD 6.1 and I'm >> able to run 3D under root account, where glxinfo tells me the following: >> >> # glxinfo | grep render >> direct rendering: Yes >> OpenGL renderer string: Mesa DRI Radeon 20050528 AGP 4x TCL >> >> But when I try the same under non-root account the result is: >> >> $ glxinfo | grep render >> direct rendering: No >> OpenGL renderer string: Mesa GLX Indirect >> >> Thus 3D acceleration is not running. I've got loaded the following >> graphic drivers : >> >> 9 1 0xc4c21000 1c000 radeon.ko >> 10 1 0xc4c47000 e000 drm.ko >> >> "dmesg | grep drm" gives me: >> >> drm0: port 0x3000-0x30ff mem >> 0xe0000000-0xe7ffffff,0xc0100000-0xc010ffff irq 11 at device 0.0 on pci1 >> info: [drm] AGP at 0xd0000000 256MB >> info: [drm] Initialized radeon 1.19.0 20050911 >> >> In Xorg configuration I have also loaded following modules and DRI >> set properly: >> >> Section "Module" >> Load "dbe" >> Load "dri" >> Load "extmod" >> Load "glx" >> Load "record" >> Load "xie" >> Load "pex5" >> Load "freetype" >> Load "type1" >> EndSection >> >> Section "DRI" >> Mode 0666 >> EndSection >> >> Does anyone know what else I need to run 3D under non-root account? >> >> Many thanks, >> >> Ladislav Jozsa >> >> >> >> >> >> >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > --------------080808090701030808080107--