From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 23 16:07:19 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEB4F106566C; Tue, 23 Jun 2009 16:07:19 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 55FEE8FC15; Tue, 23 Jun 2009 16:07:18 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.24.11.59]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n5NG7FAH008825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jun 2009 20:07:16 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MJ8Wh-0004Eg-6b; Tue, 23 Jun 2009 20:07:15 +0400 From: Vladimir Grebenschikov To: gnome Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Tue, 23 Jun 2009 20:07:14 +0400 Message-Id: <1245773234.11855.22.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: mobile Subject: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 16:07:20 -0000 Hi I am wandering is there "right" way to pass "system" events, like brightness buttons, volume buttons reported with devd to gnome desktop to: 1. do appropriate changes (change volume, brightness, etc) 2. show nice informational popup (with volume bar and so on) ? Before I had simple script, called from devd, it configures system with xbacklight, mixer and sysctl's, and shows something with onscreend daemon. After Xorg update oscreend starts to freeze by some reason. So now I am thinking about more "sane" way to link system events to gnome desktop. Also xbacklight now does not works with radeonhd again. So far I've dig for following dbus calls to manage brihgtness: /usr/local/bin/dbus-send --system --type=method_call --print-reply=1 \ --dest=org.freedesktop.PowerManagement \ --session /org/freedesktop/PowerManagement/Backlight \ org.freedesktop.PowerManagement.Backlight.GetBrightness /usr/local/bin/dbus-send --system --type=method_call --print-reply=1 \ --dest=org.freedesktop.PowerManagement \ --session /org/freedesktop/PowerManagement/Backlight \ org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:$1 But, looks like they are not shows popup. And I've not found simple solution about volume yet. Hints will be appreciated. PS: Side question, can dbus work without DISPLAY and XAUTHORITY initialized ? (system bus ?, but above calls requires them) PPS: 8-CURRENT, Gnome, IBM T60. -- Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 23 16:36:55 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F61C1065670; Tue, 23 Jun 2009 16:36:55 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC298FC1E; Tue, 23 Jun 2009 16:36:55 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id B445F3878C; Tue, 23 Jun 2009 18:20:45 +0200 (CEST) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Tue, 23 Jun 2009 18:20:45 +0200 Message-ID: <20090623182045.7wu2p8zs0g88k8w0@0x20.net> X-Priority: 3 (Normal) Date: Tue, 23 Jun 2009 18:20:45 +0200 From: Lars Engels To: vova@fbsd.ru References: <1245773234.11855.22.camel@localhost> In-Reply-To: <1245773234.11855.22.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_4smvp7t3kruo"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) Cc: gnome , mobile Subject: Re: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 16:36:56 -0000 This message is in MIME format and has been PGP signed. --=_4smvp7t3kruo Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Vladimir Grebenschikov : > Hi > > I am wandering is there "right" way to pass "system" events, like > brightness buttons, volume buttons reported with devd to gnome desktop > to: > 1. do appropriate changes (change volume, brightness, etc) > 2. show nice informational popup (with volume bar and so on) > ? > > Before I had simple script, called from devd, it configures system with > xbacklight, mixer and sysctl's, and shows something with onscreend > daemon. > > After Xorg update oscreend starts to freeze by some reason. So now I am > thinking about more "sane" way to link system events to gnome desktop. > > Also xbacklight now does not works with radeonhd again. > > So far I've dig for following dbus calls to manage brihgtness: > =09/usr/local/bin/dbus-send --system --type=3Dmethod_call =20 > --print-reply=3D1 =09=09--dest=3Dorg.freedesktop.PowerManagement =09=09--s= ession =20 > /org/freedesktop/PowerManagement/Backlight =20 > =09=09org.freedesktop.PowerManagement.Backlight.GetBrightness > > =09/usr/local/bin/dbus-send --system --type=3Dmethod_call =20 > --print-reply=3D1 =09=09--dest=3Dorg.freedesktop.PowerManagement =09=09--s= ession =20 > /org/freedesktop/PowerManagement/Backlight =20 > =09=09org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:$1 > > But, looks like they are not shows popup. > And I've not found simple solution about volume yet. > > Hints will be appreciated. > > PS: > Side question, can dbus work without DISPLAY and XAUTHORITY initialized = ? > (system bus ?, but above calls requires them) > > PPS: > 8-CURRENT, Gnome, IBM T60. Just a side note: audio/osdmixer runs nicely in the background and =20 shows any change to mixer volume via misc/xosd. --=_4smvp7t3kruo Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkpBAN0ACgkQKc512sD3afjXIgCgnfPvlKwWHi0RMMC62b5ASp5d wYoAniMIz2Kdt0ChvHtMBQgcifeUs4xE =K0T6 -----END PGP SIGNATURE----- --=_4smvp7t3kruo-- From owner-freebsd-mobile@FreeBSD.ORG Wed Jun 24 12:09:09 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C20251065691 for ; Wed, 24 Jun 2009 12:09:09 +0000 (UTC) (envelope-from parv@pair.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 80ED68FC0A for ; Wed, 24 Jun 2009 12:09:09 +0000 (UTC) (envelope-from parv@pair.com) Received: from localhost.hawaii.res.rr.com ([98.150.187.245]) by hrndva-omta03.mail.rr.com with ESMTP id <20090624120908559.DXYE25879@hrndva-omta03.mail.rr.com> for ; Wed, 24 Jun 2009 12:09:08 +0000 Received: from holstein.holy.cow (localhost [127.0.0.1]) by localhost.hawaii.res.rr.com (Postfix) with ESMTP id 4C6883348 for ; Wed, 24 Jun 2009 02:10:37 -1000 (HST) Received: (from parv@localhost) by holstein.holy.cow (8.13.8/8.13.8/Submit) id n5OCAaRA004127 for freebsd-mobile@freebsd.org; Wed, 24 Jun 2009 02:10:36 -1000 (HST) (envelope-from parv@pair.com) X-Authentication-Warning: holstein.holy.cow: parv set sender to parv@pair.com using -f Date: Wed, 24 Jun 2009 02:10:36 -1000 From: parv@pair.com To: f-mobile Message-ID: <20090624121036.GA3661@holstein.holy.cow> Mail-Followup-To: f-mobile MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: eSATA and/or Firewire 800|400 card, cardbus or expresscard 54mm X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 12:09:10 -0000 Hi there, Currently I am using FreeBSD 6-STABLE/i386 on Thinkpad T61 laptop[0], which has 3 USB ports, and vertically combined PC card & 54mm ExpressCard slot(s). My current SATA hard disk is going to fill soon. On soon to be acquired SATA hard disk[1], I will try first 7-STABLE (and later 8.x). To continue to be able to reliably[2] use one of the SATA hard drives, I am looking for suggestions for a eSATA, or Firewire 800 or 400 card either be cardbus or ExpressCard type. How do the multiports (eSATA with USB sometimes, along with Firewire [48]00 ports) cards workout? Is the support for either eSATA or Firewire cards equivalent in 6-STABLE & 7-STABLE? I am in Hawaii if that matters (well, it does in terms of shipping & return; so Amazon.com would be my first place to check). - Parv [0] http://www103.pair.com/parv/comp/unix/freebsd/thinkpad-t61-8897-cto/sys/ [1] One of Hitachi 5k500 or 5k320 320GB SATA, or WD Scorpio Blue 320GB or 500GB SATA-ii. [2] I had tried an external USB ATA hard disk enclosure (Vantec Nexstar) and an USB/SATA hard disk adapter with my older T41 ATA drive. During heavy activity over USB connection, FreeBSD 6.[12] panics using any of the two. AFAIR, I had tried with both [ue]hci drivers. -- From owner-freebsd-mobile@FreeBSD.ORG Wed Jun 24 14:58:43 2009 Return-Path: Delivered-To: freebsd-mobile@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 258F9106564A; Wed, 24 Jun 2009 14:58:43 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 9D8A38FC0A; Wed, 24 Jun 2009 14:58:42 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from localhost.my.domain (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id E0CEF18105866; Wed, 24 Jun 2009 16:58:43 +0200 (CEST) Received: (from guru@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id n5OEwUAa005653; Wed, 24 Jun 2009 16:58:30 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 24 Jun 2009 16:58:28 +0200 From: Matthias Apitz To: Robert Noland Message-ID: <20090624145828.GA5614@current.Sisis.de> References: <20090615070448.GA1982@current.Sisis.de> <1245075642.1940.618.camel@balrog.2hip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1245075642.1940.618.camel@balrog.2hip.net> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: freebsd-x11@FreeBSD.org, freebsd-mobile@FreeBSD.org Subject: Re: EeePC 900 with TwinView/Xinerama mode X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 14:58:43 -0000 El día Monday, June 15, 2009 a las 09:20:42AM -0500, Robert Noland escribió: > On Mon, 2009-06-15 at 09:04 +0200, Matthias Apitz wrote: > > Hello, > > > > I'm running 8-CURRENT on my EeePC 900; it uses the xorg-server > > xorg-7.4_1.tbz and xf86-video-intel-2.6.3.tbz (from the ports) for the > > display of the netbook with 1024x600 resolution; My questions is: can I > > somehow configure a 2nd external display with 1024x768 resolution (for > > connecting a video beamer for presentations) and bring both screens > > together in a Xinerama mode, like I can do with my bigger laptop using > > the NVIDIA driver? Any ideas? Thanks in advance > > This should all be done with xrandr(1). Just make sure that your > Virtual line in your xorg.conf allows for enough space in the > framebuffer. > > robert. Robert, I wanted to play around with this on my other 8-CURRENT laptop, but it says: $ xrandr Xlib: extension "RANDR" missing on display ":0.0". RandR extension missing but it should be there: $ pkg_info | fgrep randr libXrandr-1.3.0 X Resize and Rotate extension library randrproto-1.3.0 Randr extension headers xrandr-1.3.0 Primitive command line interface to the RandR extension $ fgrep -i randr /var/log/Xorg.0.log (II) NVIDIA(0): will be available via XRandR and XF86VidMode): (II) NVIDIA(1): will be available via XRandR and XF86VidMode): (==) RandR enabled (==) RandR enabled (II) Initializing built-in extension RANDR What is wrong? Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. From owner-freebsd-mobile@FreeBSD.ORG Wed Jun 24 15:03:18 2009 Return-Path: Delivered-To: freebsd-mobile@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1757B106564A; Wed, 24 Jun 2009 15:03:18 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id AFA508FC08; Wed, 24 Jun 2009 15:03:17 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.4] (adsl-156-16-32.bna.bellsouth.net [70.156.16.32]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n5OF3FQY092740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jun 2009 11:03:15 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Matthias Apitz In-Reply-To: <20090624145828.GA5614@current.Sisis.de> References: <20090615070448.GA1982@current.Sisis.de> <1245075642.1940.618.camel@balrog.2hip.net> <20090624145828.GA5614@current.Sisis.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-1YUlypoFQDdzY0GjV+88" Organization: FreeBSD Date: Wed, 24 Jun 2009 10:03:06 -0500 Message-Id: <1245855786.1742.9.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@FreeBSD.org, freebsd-mobile@FreeBSD.org Subject: Re: EeePC 900 with TwinView/Xinerama mode X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 15:03:18 -0000 --=-1YUlypoFQDdzY0GjV+88 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable On Wed, 2009-06-24 at 16:58 +0200, Matthias Apitz wrote: > El d=EDa Monday, June 15, 2009 a las 09:20:42AM -0500, Robert Noland escr= ibi=F3: >=20 > > On Mon, 2009-06-15 at 09:04 +0200, Matthias Apitz wrote: > > > Hello, > > >=20 > > > I'm running 8-CURRENT on my EeePC 900; it uses the xorg-server > > > xorg-7.4_1.tbz and xf86-video-intel-2.6.3.tbz (from the ports) for th= e > > > display of the netbook with 1024x600 resolution; My questions is: can= I > > > somehow configure a 2nd external display with 1024x768 resolution (fo= r > > > connecting a video beamer for presentations) and bring both screens > > > together in a Xinerama mode, like I can do with my bigger laptop usin= g > > > the NVIDIA driver? Any ideas? Thanks in advance > >=20 > > This should all be done with xrandr(1). Just make sure that your > > Virtual line in your xorg.conf allows for enough space in the > > framebuffer. > >=20 > > robert. >=20 > Robert, >=20 > I wanted to play around with this on my other 8-CURRENT laptop, but it > says: >=20 > $ xrandr > Xlib: extension "RANDR" missing on display ":0.0". > RandR extension missing >=20 > but it should be there: >=20 > $ pkg_info | fgrep randr > libXrandr-1.3.0 X Resize and Rotate extension library > randrproto-1.3.0 Randr extension headers > xrandr-1.3.0 Primitive command line interface to the RandR extensi= on >=20 > $ fgrep -i randr /var/log/Xorg.0.log > (II) NVIDIA(0): will be available via XRandR and XF86VidMode): > (II) NVIDIA(1): will be available via XRandR and XF86VidMode): > (=3D=3D) RandR enabled > (=3D=3D) RandR enabled > (II) Initializing built-in extension RANDR >=20 > What is wrong? Thx Not sure really, I don't know anything about the Nvidia binary driver. You might try rebuilding xorg-server, but really I have no idea. robert. > matthias >=20 --=20 Robert Noland FreeBSD --=-1YUlypoFQDdzY0GjV+88 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkpCQCoACgkQM4TrQ4qfROP/EQCfZ9IITBluttONXcR3hSAQ8agv 7xgAnia6fDiC8rFLxs+lDuGhdOaetPeW =QJBn -----END PGP SIGNATURE----- --=-1YUlypoFQDdzY0GjV+88-- From owner-freebsd-mobile@FreeBSD.ORG Thu Jun 25 10:33:57 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968101065670 for ; Thu, 25 Jun 2009 10:33:57 +0000 (UTC) (envelope-from parv@pair.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 540B48FC1A for ; Thu, 25 Jun 2009 10:33:57 +0000 (UTC) (envelope-from parv@pair.com) Received: from localhost.hawaii.res.rr.com ([98.150.187.245]) by hrndva-omta02.mail.rr.com with ESMTP id <20090625103356463.LUGV17858@hrndva-omta02.mail.rr.com> for ; Thu, 25 Jun 2009 10:33:56 +0000 Received: from holstein.holy.cow (localhost [127.0.0.1]) by localhost.hawaii.res.rr.com (Postfix) with ESMTP id 2E912334F for ; Thu, 25 Jun 2009 00:35:26 -1000 (HST) Received: (from parv@localhost) by holstein.holy.cow (8.13.8/8.13.8/Submit) id n5PAZP6H001930 for freebsd-mobile@freebsd.org; Thu, 25 Jun 2009 00:35:25 -1000 (HST) (envelope-from parv@pair.com) X-Authentication-Warning: holstein.holy.cow: parv set sender to parv@pair.com using -f Date: Thu, 25 Jun 2009 00:35:25 -1000 From: Parv To: f-mobile Message-ID: <20090625103525.GA1445@holstein.holy.cow> Mail-Followup-To: f-mobile References: <20090624121036.GA3661@holstein.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090624121036.GA3661@holstein.holy.cow> Subject: Re: eSATA and/or Firewire 800|400 card, cardbus or expresscard 54mm X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 10:33:57 -0000 in message <20090624121036.GA3661@holstein.holy.cow>, wrote parv@pair.com thusly... > ... > On soon to be acquired SATA hard disk[1], I will try first > 7-STABLE (and later 8.x). To continue to be able to reliably[2] > use one of the SATA hard drives, I am looking for suggestions for > a eSATA, or Firewire 800 or 400 card either be cardbus or > ExpressCard type. ... Here are some of the likely candidates ... SIIG SC-SAEE22-S1 eSATA II 2-Port ExpressCard http://www.amazon.com/exec/obidos/tg/detail/-/B000LCZ2SW/ Addonics Cardbus Esata CONTROLLER2 Ports http://www.amazon.com/exec/obidos/tg/detail/-/B000AAZQQS/ Vantec UGT-ST350CB 2-Port eSATA II-150 PCMCIA CardBus http://www.amazon.com/exec/obidos/tg/detail/-/B000HJ75C0/ Startech Card Bus IEEE-1394 Firewire Notebook Card http://www.amazon.com/exec/obidos/tg/detail/-/B0000512GH/ ... Please let me know if you had/have good or bad experience with them. - Parv -- From owner-freebsd-mobile@FreeBSD.ORG Fri Jun 26 19:44:20 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D4A31065677; Fri, 26 Jun 2009 19:44:20 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id D67F08FC2B; Fri, 26 Jun 2009 19:44:19 +0000 (UTC) (envelope-from marcus@freebsd.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id n5QJMJ14006863; Fri, 26 Jun 2009 15:22:19 -0400 (EDT) Received: from [192.168.1.243] (jclarke-vpn.cisco.com [172.18.254.237]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id n5QJMHF8026292; Fri, 26 Jun 2009 15:22:18 -0400 (EDT) Message-ID: <4A451FE9.60002@freebsd.org> Date: Fri, 26 Jun 2009 15:22:17 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: vova@fbsd.ru References: <1245773234.11855.22.camel@localhost> In-Reply-To: <1245773234.11855.22.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome , mobile Subject: Re: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 19:44:20 -0000 Vladimir Grebenschikov wrote: > Hi > > I am wandering is there "right" way to pass "system" events, like > brightness buttons, volume buttons reported with devd to gnome desktop > to: > 1. do appropriate changes (change volume, brightness, etc) > 2. show nice informational popup (with volume bar and so on) > ? > > Before I had simple script, called from devd, it configures system with > xbacklight, mixer and sysctl's, and shows something with onscreend > daemon. > > After Xorg update oscreend starts to freeze by some reason. So now I am > thinking about more "sane" way to link system events to gnome desktop. > > Also xbacklight now does not works with radeonhd again. > > So far I've dig for following dbus calls to manage brihgtness: > /usr/local/bin/dbus-send --system --type=method_call --print-reply=1 \ > --dest=org.freedesktop.PowerManagement \ > --session /org/freedesktop/PowerManagement/Backlight \ > org.freedesktop.PowerManagement.Backlight.GetBrightness > > /usr/local/bin/dbus-send --system --type=method_call --print-reply=1 \ > --dest=org.freedesktop.PowerManagement \ > --session /org/freedesktop/PowerManagement/Backlight \ > org.freedesktop.PowerManagement.Backlight.SetBrightness uint32:$1 > > But, looks like they are not shows popup. > And I've not found simple solution about volume yet. I haven't done much with power management in a long time as I don't have a laptop with good working PM. However, the volume support is easy. Just go to your Keyboard Shortcuts capplet, and add a new hotkey for the volume up and volume down actions. I actually used the Dell buttons on my laptop for this, and it works very well in GNOME. Joe > > Hints will be appreciated. > > PS: > Side question, can dbus work without DISPLAY and XAUTHORITY initialized ? > (system bus ?, but above calls requires them) > > PPS: > 8-CURRENT, Gnome, IBM T60. > -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome From owner-freebsd-mobile@FreeBSD.ORG Fri Jun 26 21:38:01 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F31F5106566C; Fri, 26 Jun 2009 21:38:00 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 6655B8FC12; Fri, 26 Jun 2009 21:37:59 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([77.232.23.6]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n5QLbtNx032721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Jun 2009 01:37:57 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MKJ7K-0000cM-9A; Sat, 27 Jun 2009 01:37:54 +0400 From: Vladimir Grebenschikov To: Joe Marcus Clarke In-Reply-To: <4A451FE9.60002@freebsd.org> References: <1245773234.11855.22.camel@localhost> <4A451FE9.60002@freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Sat, 27 Jun 2009 01:37:53 +0400 Message-Id: <1246052273.2303.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: gnome , mobile Subject: Re: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 21:38:01 -0000 On Fri, 2009-06-26 at 15:22 -0400, Joe Marcus Clarke wrote: > > But, looks like they are not shows popup. > > And I've not found simple solution about volume yet. > > I haven't done much with power management in a long time as I don't have > a laptop with good working PM. However, the volume support is easy. > Just go to your Keyboard Shortcuts capplet, and add a new hotkey for the > volume up and volume down actions. I actually used the Dell buttons on > my laptop for this, and it works very well in GNOME. This will work only in case when volume keys generate keyboard events. In my case they generate devd events, as well as brightness keys. That's why I am seeking a way to send appropriate events to dbus. > Joe -- Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-mobile@FreeBSD.ORG Fri Jun 26 22:00:49 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0D24106566C; Fri, 26 Jun 2009 22:00:49 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 9476F8FC14; Fri, 26 Jun 2009 22:00:49 +0000 (UTC) (envelope-from marcus@freebsd.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id n5QM0lkM015249; Fri, 26 Jun 2009 18:00:47 -0400 (EDT) Received: from [192.168.1.243] (jclarke-vpn.cisco.com [172.18.254.237]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id n5QM0jXx004855; Fri, 26 Jun 2009 18:00:46 -0400 (EDT) Message-ID: <4A45450D.1040204@freebsd.org> Date: Fri, 26 Jun 2009 18:00:45 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: vova@fbsd.ru References: <1245773234.11855.22.camel@localhost> <4A451FE9.60002@freebsd.org> <1246052273.2303.6.camel@localhost> In-Reply-To: <1246052273.2303.6.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome , mobile Subject: Re: dbus and system events - howto X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 22:00:50 -0000 Vladimir Grebenschikov wrote: > On Fri, 2009-06-26 at 15:22 -0400, Joe Marcus Clarke wrote: > >>> But, looks like they are not shows popup. >>> And I've not found simple solution about volume yet. >> I haven't done much with power management in a long time as I don't have >> a laptop with good working PM. However, the volume support is easy. >> Just go to your Keyboard Shortcuts capplet, and add a new hotkey for the >> volume up and volume down actions. I actually used the Dell buttons on >> my laptop for this, and it works very well in GNOME. > > This will work only in case when volume keys generate keyboard events. > In my case they generate devd events, as well as brightness keys. > > That's why I am seeking a way to send appropriate events to dbus. One thing you might do is use dbus-monitor to watch the session and system buses. Then tie the volume actions to a usable key combination, and see what evens are generated. I don't think any dbus events will be generated for such events, but I could be wrong. Joe > >> Joe > -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome