From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 6 09:25:01 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D315316B617; Tue, 6 Jun 2006 09:21:03 +0000 (UTC) (envelope-from roth@droopy.unibe.ch) Received: from mailhub03.unibe.ch (mailhub.unibe.ch [130.92.9.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 213C043D49; Tue, 6 Jun 2006 09:21:02 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub01.unibe.ch [130.92.5.61]) by mailhub03.unibe.ch (Postfix) with ESMTP id CEDA3428AF; Tue, 6 Jun 2006 11:21:00 +0200 (CEST) X-Virus-checked: by University of Berne Received: from mailhub03.unibe.ch ([130.92.9.70]) by localhost (scanhub01.unibe.ch [130.92.5.61]) (amavisd-new, port 10024) with LMTP id audmgCa5RElh; Tue, 6 Jun 2006 11:20:57 +0200 (CEST) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub03.unibe.ch (Postfix) with ESMTP id 5267942885; Tue, 6 Jun 2006 11:20:57 +0200 (CEST) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.12.10+Sun/8.12.10) with ESMTP id k569KvJu001649; Tue, 6 Jun 2006 11:20:57 +0200 (MEST) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id k569KrN5012909; Tue, 6 Jun 2006 11:20:53 +0200 (MEST) Date: Tue, 6 Jun 2006 11:20:53 +0200 From: Tobias Roth To: Kevin Oberman Message-ID: <20060606092053.GA12873@droopy.unibe.ch> Mail-Followup-To: Kevin Oberman , freebsd-stable@freebsd.org, freebsd-mobile@freebsd.org References: <20060605195148.GJ99893@afflictions.org> <20060605203615.D321545043@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060605203615.D321545043@ptavv.es.net> User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. Cc: freebsd-stable@freebsd.org, freebsd-mobile@freebsd.org Subject: laptop multihoming [was: [OT] resolv.conf and dhclient] 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, 06 Jun 2006 09:25:08 -0000 On Mon, Jun 05, 2006 at 01:36:15PM -0700, Kevin Oberman wrote: > > I use Tobias Roth's profile.sh which is available from > https://secure.socket.ch/projects/profile/. It is less than perfect, but > works very well for me. It allows totally different user environments > depending on your network connection. > > It works by union mounting a different copy of /etc depending on what is > probed on the network. I have profiles for home (wireless), work (1 > location wired and 1 wired + wireless), and general random connections. > > Since the entire rc.conf as well as all other files in /etc may be > connection specific, you can do almost anything you want to vary the > config. Please allow me to make a remark about the current state of profile.sh. It currently works for me, and others. However, its architecture is based on the outdated assumption that location changes are only triggered at startup (startup in a new environment) or at resume (suspend and then resume somewhere else). Now, we are currently moving to a much more dynamic behaviour, where location changes can happen at any time. The new dhcp client as well as wpa supplicant are steps towards that direction. Profile.sh, though, is not suited for this. A better solution has to be found, that retains as much of the flexibility of profile.sh as possible. I am not yet actively working on this, and I don't know when I will have the time to start. But the topic of 'laptop multihoming' or whatever you want to call it is still important, I think. Thanks, Tobias From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 6 12:40:43 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D014F16ABA3 for ; Tue, 6 Jun 2006 12:40:43 +0000 (UTC) (envelope-from a.bittau@cs.ucl.ac.uk) Received: from darkircop.org (sorbo.cs.ucl.ac.uk [128.16.66.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 904C243D5C for ; Tue, 6 Jun 2006 12:40:35 +0000 (GMT) (envelope-from a.bittau@cs.ucl.ac.uk) Received: by darkircop.org (Postfix, from userid 0) id 60A6B861BCA; Tue, 6 Jun 2006 13:40:30 +0100 (BST) Date: Tue, 6 Jun 2006 13:40:30 +0100 From: Andrea Bittau To: freebsd-mobile@freebsd.org Message-ID: <20060606124030.GA32057@shorty.sorbonet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Echelon: Bush Bomb War KGB Subject: HDA sound driver mod for thinkpad x60s 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, 06 Jun 2006 12:40:47 -0000 [i sent this to fbsd multimedia. I noticed a discussion about sound on x60s on fbsd mobile so I decided to send here too. Lemme know if it worx.] this is an ultra crude mod of Stephane's hdac driver. It allows me to play music [and change the volume; w00t!] on my ibm x60s laptop. I posted it in case anyone wanted a 0day sound driver for this laptop without having to wait until a stable and proper version comes out. Doesn't support recording. I'll probably do that next if no one writes something in the near future. Stephane: if you are interested in me helping out with the "mainstream" driver, let me know. My time is very limited [you can tell by reading the code] but I have all the info I need about this card in my head now, so I might be able to produce something useful. [I'm not subscribed to the list---email me directly if you need to contact me.] Driver: fetch http://darkircop.org/hdac.tgz tar zxvf hdac.tgz cd hdac make kldload ./hdac.ko From owner-freebsd-mobile@FreeBSD.ORG Tue Jun 6 18:54:48 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE21016C5C5 for ; Tue, 6 Jun 2006 18:52:39 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F67E43D58 for ; Tue, 6 Jun 2006 18:52:38 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k56IqWcw053269; Tue, 6 Jun 2006 13:52:33 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4485CEF8.10201@centtech.com> Date: Tue, 06 Jun 2006 13:52:40 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.2 (X11/20060506) MIME-Version: 1.0 To: Andrea Bittau References: <20060606124030.GA32057@shorty.sorbonet.org> In-Reply-To: <20060606124030.GA32057@shorty.sorbonet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1515/Tue Jun 6 08:38:42 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-mobile@freebsd.org Subject: Re: HDA sound driver mod for thinkpad x60s 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, 06 Jun 2006 18:54:58 -0000 Andrea Bittau wrote: > [i sent this to fbsd multimedia. I noticed a discussion about sound on x60s on > fbsd mobile so I decided to send here too. Lemme know if it worx.] > > this is an ultra crude mod of Stephane's hdac driver. It allows me to play > music [and change the volume; w00t!] on my ibm x60s laptop. I posted it in case > anyone wanted a 0day sound driver for this laptop without having to wait until a > stable and proper version comes out. > > Doesn't support recording. I'll probably do that next if no one writes > something in the near future. > > Stephane: if you are interested in me helping out with the "mainstream" driver, > let me know. My time is very limited [you can tell by reading the code] but I > have all the info I need about this card in my head now, so I might be able to > produce something useful. > > [I'm not subscribed to the list---email me directly if you need to contact me.] > > Driver: > fetch http://darkircop.org/hdac.tgz > tar zxvf hdac.tgz > cd hdac > make > kldload ./hdac.ko Cool! I've got a Dell D820, and it builds and loads, making this dmesg output: Jun 6 13:40:37 neutrino kernel: pcm0: mem 0xdfffc000-0xdfffffff irq 21 at device 27.0 on pci0 Jun 6 13:40:37 neutrino kernel: init 0xc5011e80 Jun 6 13:40:37 neutrino kernel: pcm0: sndbuf_setmap 101000, 1000; 0xc4ecd000 -> 101000 Jun 6 13:40:37 neutrino kernel: pcm0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xdfffc000 Jun 6 13:40:37 neutrino kernel: ioapic0: routing intpin 21 (PCI IRQ 21) to vector 49 Jun 6 13:40:37 neutrino kernel: pcm0: [MPSAFE] Jun 6 13:40:37 neutrino kernel: pcm0: Output Streams: 4, Input Streams: 4, Bidirectional Streams: 0 Jun 6 13:40:37 neutrino kernel: pcm0: CORB Size: 256, RIRB Size: 256 [..snip..] Jun 6 13:40:37 neutrino kernel: pcm0: