From owner-freebsd-gnome@FreeBSD.ORG Fri Oct 19 17:20:42 2007 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3782416A468 for ; Fri, 19 Oct 2007 17:20:42 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.190]) by mx1.freebsd.org (Postfix) with ESMTP id B46A013C494 for ; Fri, 19 Oct 2007 17:20:37 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: by rn-out-0102.google.com with SMTP id s42so316188rnb for ; Fri, 19 Oct 2007 10:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:sender; bh=1XSTlU9lqygWPFKguxx/GUeYawMPwX8Ef5hGbhxNhlE=; b=FrMYlc1oQfoH/VaTJ/SavdIDEdfhtfjJDRMHfpLN6luHrcV2mZ3ssyaQtFplRQKDGBILjs7wYFaOUHMh1/PWWd39XXCx+eOPRlzMk7akwJZXeTouZm3szZKGZuxrKsKPSckK7y1O07Xhcy7dsttBACZFwd7e3nQN0hGZhpnyJ7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:sender; b=ZHLhhfVbaPqHGXKh0xknUtkQvEkaA+lXV7zm19PQI5Eeh40BT2FtRj/vWhX5I/h7fHPhqWEYC4jI7/23cs6Pb9JujOQyJV86E6vYvN2LyGyioVJ0uNPxLfjL5rMKa25T+jzg9mP5twS8FwC6PgHH20HlML97SC7PzCyP1h2Romw= Received: by 10.143.16.9 with SMTP id t9mr795711wfi.1192814436281; Fri, 19 Oct 2007 10:20:36 -0700 (PDT) Received: from ?192.168.10.195? ( [218.162.194.179]) by mx.google.com with ESMTPS id 33sm3431141wra.2007.10.19.10.20.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Oct 2007 10:20:34 -0700 (PDT) From: "Eric L. Chen" To: Joe Marcus Clarke In-Reply-To: <4718E2F2.1070204@freebsd.org> References: <1192583665.1562.10.camel@localhost> <1192631342.1656.6.camel@localhost> <1192671994.1471.0.camel@localhost> <1192750918.401.1.camel@shumai.marcuscom.com> <1192778221.1480.2.camel@localhost> <4718A989.7020205@freebsd.org> <1192812483.1741.7.camel@localhost> <4718E2F2.1070204@freebsd.org> Content-Type: text/plain Date: Sat, 20 Oct 2007 01:20:27 +0800 Message-Id: <1192814427.2336.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Sender: "Eric L. Chen" Cc: "gnome@freebsd.org" Subject: Re: gnome-volume-manager-2.17 in gnome-2.20 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 17:20:42 -0000 On Fri, 2007-10-19 at 13:01 -0400, Joe Marcus Clarke wrote: > Eric L. Chen wrote: > > On Fri, 2007-10-19 at 08:56 -0400, Joe Marcus Clarke wrote: > >> Eric L. Chen wrote: > >>> On Thu, 2007-10-18 at 19:41 -0400, Joe Marcus Clarke wrote: > >>>> On Thu, 2007-10-18 at 09:46 +0800, Eric L. Chen wrote: > >>>>> On Wed, 2007-10-17 at 22:29 +0800, Eric L. Chen wrote: > >>>>>> On Wed, 2007-10-17 at 09:14 +0800, Eric L. Chen wrote: > >>>>>>> Hi, > >>>>>>> My gnome-volume-manager cannot startup after upgrade to gnome-2.20. > >>>>>>> That caused gnome will not mount USB disk automatically, this is a > >>>>>>> little problem because I've be using gnome+freebsd as my desktop > >>>>>>> for a long time. > >>>>>>> > >>>>>>> After googled, this is not FreeBSD specified problem, it happened > >>>>>>> in archlinux, too. See http://bbs.archlinux.org/viewtopic.php?id=37544 > >>>>>>> Discuss more at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428810 > >>>>>>> I applied their patch and my gnome now can mount USB disk/CDROM > >>>>>>> automatically. > >>>>>> Hi Marcus, > >>>>>> I saw you committed patch to solve local user problem. > >>>>>> ---- > >>>>>> Fix a dumb bug where we would not be able to detect the local user > >>>>>> properly. > >>>>>> This bug was exposed when the integer overflow bug was fixed. This should > >>>>>> prevent g-v-m from terminating on startup. > >>>>>> ---- > >>>>>> But I still cannot startup g-v-m successfully, like: > >>>>>> ---- > >>>>>> ~> gnome-volume-manager > >>>>>> ~> ps -ax|grep gnome-volume-manager > >>>>>> ~> gnome-volume-manager -n > >>>>>> ~> ps -ax | grep gnome-volume-manager > >>>>>> 2232 p1 R+ 0:00.00 grep gnome-volume-manager > >>>>>> ~> gnome-volume-manager --sm-disable > >>>>>> ~> ps -ax | grep gnome-volume-manager > >>>>>> 2236 p1 R+ 0:00.00 grep gnome-volume-manager > >>>>>> ~> ps -ax | grep gnome-volume-manager > >>>>>> ~> gnome-volume-manager -d yes > >>>>>> ~> ps -ax | grep gnome-volume-manager > >>>>>> ---- > >>>>>> I am using Intel 2200BG wireless card, maybe it still has problem with wireless connection. > >>>>>> > >>>>> After more test, sometimes g-v-m cannot startup automatically, but > >>>>> sometimes not. > >>>> I cannot reproduce this behavior on either my i386 or amd64 GNOME 2.20 > >>>> machines. At the very least you will need to provide ktrace output of > >>>> when g-v-m does not start properly. Preferably, you should use gdb to > >>>> set breakpoints, and figure out why g-v-m is exiting prematurely. > >>>> > >>>> Joe > >>>> > >>> ktrace attached. > >>> g-v-m cannot auto startup, set in > >>> [System]->[Preferences]->[Sessions]->[Startup Programs]. > >>> But can start by [Alt]-[F2] "Run Application". > >> Looks like /var/run/utmp is 0 bytes. g-v-m opens this file, and scans > >> through it to confirm whether or not the current user is logged in > >> locally on the console. To do this, it looks for a utmp record on > >> either one of the ttyv devices or connected from :0.X where X is >= 0 > >> and <= 9. > >> > >> Looks like there might be some issue with the way you run X, or some > >> other problem manipulating /var/run/utmp. > >> > >> Joe > > I login via gdm by set gnome_enable="YES" in /etc/rc.conf. > > The man said /var/run/utmp is used by rwho, users, w and who. > > Here is my laptop's output, it seem no problem: > > ~> rwho > > ~> users > > lihong > > ~> w > > 12:42AM up 1:19, 1 user, load averages: 0.21, 0.33, 0.31 > > USER TTY FROM LOGIN@ IDLE WHAT > > lihong p0 :0.0 12:19AM - w > > ~> who > > lihong ttyp0 Oct 20 00:19 (:0.0) > > ~> hexdump -C /var/run/utmp > > 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 000002c0 74 74 79 70 30 00 00 00 6c 69 68 6f 6e 67 00 00 > > 000002d0 00 00 00 00 00 00 00 00 3a 30 2e 30 00 00 00 00 > > 000002e0 00 00 00 00 00 00 00 00 02 d9 18 47 74 74 79 70 > > 000002f0 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00000300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00000310 00 00 00 00 a0 dc 18 47 > > This looks fine, but the ktrace says that this file is zero bytes. Else > you've modified g-v-m's code, and then all bets are off. > > Joe Yes, so, I think the problem is that I login via gdm not any TTY, Because login via gdm will produce zero byte /var/run/utmp. /Eric