From owner-freebsd-mobile@FreeBSD.ORG Mon May 24 17:05:16 2010 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 0E9D51065676 for ; Mon, 24 May 2010 17:05:16 +0000 (UTC) (envelope-from lambert@lambertfam.org) Received: from sysmon.tcworks.net (sysmon.tcworks.net [65.66.76.4]) by mx1.freebsd.org (Postfix) with ESMTP id B23E18FC23 for ; Mon, 24 May 2010 17:05:15 +0000 (UTC) Received: from sysmon.tcworks.net (localhost [127.0.0.1]) by sysmon.tcworks.net (8.13.1/8.13.1) with ESMTP id o4OH5E5I080117; Mon, 24 May 2010 12:05:14 -0500 (CDT) (envelope-from lambert@lambertfam.org) Received: (from lambert@localhost) by sysmon.tcworks.net (8.13.1/8.13.1/Submit) id o4OH5E7K080116; Mon, 24 May 2010 12:05:14 -0500 (CDT) (envelope-from lambert@lambertfam.org) X-Authentication-Warning: sysmon.tcworks.net: lambert set sender to lambert@lambertfam.org using -f Date: Mon, 24 May 2010 12:05:14 -0500 From: Scott Lambert To: Geoffrey Ferrari Message-ID: <20100524170514.GD34184@sysmon.tcworks.net> Mail-Followup-To: Geoffrey Ferrari , freebsd-mobile@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-mobile@freebsd.org Subject: Re: Suspend/Resume problem on Thinkpad X201 (8-STABLE) 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: Mon, 24 May 2010 17:05:16 -0000 On Sat, May 22, 2010 at 06:20:15PM +0100, Geoffrey Ferrari wrote: > Hi folks, > > I've just bought a Lenovo Thinkpad X201 which I plan to use as my main > work machine (mainly, all I need is emacs + latex) I've a little past > experience with FreeBSD (and Linux), but this is the first time I've > committed to trying to use FreeBSD for my main work computer. I > Now for my request for help :) My Thinkpad successfully enters sleep > mode (that's ACPI level S3 - suspend to ram), but there are problems > with resuming out of sleep mode. The main problem is that the LCD does > not wake up upon resume, and simply stays black. The computer is > actually awake when this happens though! I can e.g. logout (typing > blindly) and I can even log in via ssh. However, the screen stays > switched off. I read on some forums that some people have experienced > a similar problem where their screen switches on but displays nothing, > only a black background. But no, my screen doesn't even switch on! > > I've searched numerous forums and tried various things, but none of > them resolve the problem and some make it worse! Here's a sample of > what I've tried so far. > > Setting hw.acpi.video_reset=1 to loader.conf. This makes things worse. > When I do this, my laptop refuses to wake from sleep at all. > Loading the i915 driver in loader.conf. This seems to do nothing. > Loading acpi_ibm in loader.conf. This seems to do nothing. > Setting debug.acpi.disabled="YES" in sysctl.conf . This seems to do nothing. > > I've also tried switching from one virtual console to another, both > via the keyboard, and by running "vidcontrol -s 2 > /dev/console". > > I've checked /var/log/messages after resume and it reports "Interrupt > storm detected on irq9" - that's seems to be associated with ACPI. > > So, I'm writing to ask if anyone can help me to get my laptop to > resume properly. I'm including some info below that my help someone to > understand what's going on. I really love FreeBSD so I hope someone > will be able to help me to get my laptop to sleep and wake reliably! Are you in X when you sleep? Have you tried after switching to ttyv0 first? CTRL-ALT-F1 from X. I have this in my rc.suspend, right after the creation of the /var/run/rc.suspend.pid file. /usr/sbin/vidcontrol -s 1 < /dev/ttyv0 I also unload the wireless driver in rc.suspend, and load it in rc.resume. But my wireless card's microPCI slot doesn't seem to get fully renabled on resume yet. -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org From owner-freebsd-mobile@FreeBSD.ORG Mon May 24 18:16:44 2010 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from [127.0.0.1] (unknown [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 064E51065673; Mon, 24 May 2010 18:16:44 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Geoffrey Ferrari , freebsd-mobile@freebsd.org Date: Mon, 24 May 2010 14:16:22 -0400 User-Agent: KMail/1.6.2 References: <20100524170514.GD34184@sysmon.tcworks.net> In-Reply-To: <20100524170514.GD34184@sysmon.tcworks.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201005241416.28882.jkim@FreeBSD.org> Cc: Subject: Re: Suspend/Resume problem on Thinkpad X201 (8-STABLE) 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: Mon, 24 May 2010 18:16:44 -0000 On Monday 24 May 2010 01:05 pm, Scott Lambert wrote: > On Sat, May 22, 2010 at 06:20:15PM +0100, Geoffrey Ferrari wrote: > > Hi folks, > > > > I've just bought a Lenovo Thinkpad X201 which I plan to use as my > > main work machine (mainly, all I need is emacs + latex) I've a > > little past experience with FreeBSD (and Linux), but this is the > > first time I've committed to trying to use FreeBSD for my main > > work computer. I > > > > > Now for my request for help :) My Thinkpad successfully enters > > sleep mode (that's ACPI level S3 - suspend to ram), but there are > > problems with resuming out of sleep mode. The main problem is > > that the LCD does not wake up upon resume, and simply stays > > black. The computer is actually awake when this happens though! I > > can e.g. logout (typing blindly) and I can even log in via ssh. > > However, the screen stays switched off. I read on some forums > > that some people have experienced a similar problem where their > > screen switches on but displays nothing, only a black background. > > But no, my screen doesn't even switch on! > > > > I've searched numerous forums and tried various things, but none > > of them resolve the problem and some make it worse! Here's a > > sample of what I've tried so far. > > > > Setting hw.acpi.video_reset=1 to loader.conf. This makes things > > worse. When I do this, my laptop refuses to wake from sleep at > > all. Loading the i915 driver in loader.conf. This seems to do > > nothing. Loading acpi_ibm in loader.conf. This seems to do > > nothing. Setting debug.acpi.disabled="YES" in sysctl.conf . This > > seems to do nothing. > > > > I've also tried switching from one virtual console to another, > > both via the keyboard, and by running "vidcontrol -s 2 > > > /dev/console". > > > > I've checked /var/log/messages after resume and it reports > > "Interrupt storm detected on irq9" - that's seems to be > > associated with ACPI. > > > > So, I'm writing to ask if anyone can help me to get my laptop to > > resume properly. I'm including some info below that my help > > someone to understand what's going on. I really love FreeBSD so I > > hope someone will be able to help me to get my laptop to sleep > > and wake reliably! > > Are you in X when you sleep? Have you tried after switching to > ttyv0 first? CTRL-ALT-F1 from X. > > I have this in my rc.suspend, right after the creation of the > /var/run/rc.suspend.pid file. > > /usr/sbin/vidcontrol -s 1 < /dev/ttyv0 --- >8 --- SNIP!!! --- >8 --- Actually it may not be necessary because syscons is automagically switched to 0 unless you set SC_NO_SUSPEND_VTYSWITCH in kernel configuration or 'hw.syscons.sc_no_suspend_vtswitch' tunable. Also, 'hw.acpi.video_reset' tunable is not recommended. If you want something similar, you should load vesa (maybe dpms as well) and it should be able to handle video reset more gracefully. FYI, talking about syscons, I committed another patch few days ago: http://docs.freebsd.org/cgi/mid.cgi?201005220735.o4M7ZHwk086790 Please test the patch if possible. Jung-uk Kim From owner-freebsd-mobile@FreeBSD.ORG Mon May 24 21:07:18 2010 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 590D51065676 for ; Mon, 24 May 2010 21:07:18 +0000 (UTC) (envelope-from geoffrey.ferrari@googlemail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id E82B38FC1D for ; Mon, 24 May 2010 21:07:17 +0000 (UTC) Received: by wwb28 with SMTP id 28so728234wwb.13 for ; Mon, 24 May 2010 14:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=zfxh9Zk5wzdIPAaCLPgCvXGJ4J3Ghxts22w+Dhk5/hk=; b=GbYDYGC4LuSVn2VY22dy+KbKBaFTo1HFY0af+WbZhxW/Fyn6cwlrqvED4zDWgpqdYL lFRfgHt83B64TMFdZVHF10PF9DjnR1k17i9odI59o6WzjlUu/l8MGzBD5aS5/Vpt9/CY YuQGlNC2fTYwmgEx+3L+1SFDbvYHp8yGXCepw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AGWqXwA6Jll/ehnzwGU7yqzLKE5+1ca/uSxNcIxsdQVN+nzpy4/NI9P3UlZLwud6mz 95VaxziUYtQKPxsPnI+AsFf3Bt+wfyHY5Rg/yyZfI5RqHYqG9bkMs1c9tztuoxqhdL1A eBq+y6fseHSW2P8pF7IOQQzf+GeRMJ/zP4K7g= MIME-Version: 1.0 Received: by 10.216.181.195 with SMTP id l45mr1941180wem.156.1274735236856; Mon, 24 May 2010 14:07:16 -0700 (PDT) Received: by 10.216.177.13 with HTTP; Mon, 24 May 2010 14:07:16 -0700 (PDT) Date: Mon, 24 May 2010 22:07:16 +0100 Message-ID: From: Geoffrey Ferrari To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Suspend/Resume problem on Thinkpad X201 (8-STABLE) 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: Mon, 24 May 2010 21:07:18 -0000 On Monday 24 May 2010 01:05 pm, Scott Lambert wrote: > Are you in X when you sleep? Have you tried after switching to ttyv0 > first? CTRL-ALT-F1 from X. I've tried suspending/resuming both from the console and from X. The same problem with the screen not re-awakening occurs in both cases. > I have this in my rc.suspend, right after the creation of the > /var/run/rc.suspend.pid file. > > /usr/sbin/vidcontrol -s 1 < /dev/ttyv0 > > I also unload the wireless driver in rc.suspend, and load it in > rc.resume. But my wireless card's microPCI slot doesn't seem to get > fully renabled on resume yet. I tried both of these suggestions but sadly no luck. Thanks for your suggestions, Scott, anyway. By the way, what is your machine? Is it a Thinkpad X201 or something similar? Two other pieces of information that may be useful: 1) Suspend/resume works perfectly under the latest Ubuntu, without any special configuration. 2) I've upgraded the machine's BIOS using the latest update from Lenovo. From owner-freebsd-mobile@FreeBSD.ORG Mon May 24 21:45:13 2010 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 7E608106566C for ; Mon, 24 May 2010 21:45:13 +0000 (UTC) (envelope-from rex1fernando@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 15FC08FC20 for ; Mon, 24 May 2010 21:45:12 +0000 (UTC) Received: by fxm4 with SMTP id 4so3717173fxm.13 for ; Mon, 24 May 2010 14:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=qUPLZqU0R3UX49MmPkt+67HOQVLqh+hTzD5lIa6f2GM=; b=NMrnjm5UrvPF0IhzkF9LYqYcffjtyQYqn5cHxti9ybZYlqSXWVq1swUxfvWeU2DqW4 SYL1kAiw/tKVPR+ymRx6xFOdWl73C6iU81fL7UPmc7wynx0N1dpab1epbq91dw3BJwZC fa/1ncdvnNk2a7PPb9Hh1l6VYjwe0NE2/mxow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=E0/5YtxGDGWkhmLul+KTYYlUnoB4Tc2GdjMtp4LPbeOugSapo+cW2VwX7YU04E6PWw etGBhuwVcP2GLEK4NkcGK0MwzPNdm/bJXuSJKtaGVp4LkYllp5rOb3LhSGgzRo2QV0w3 9d2lln+NqOXZueLr3I59tRBqUG7PaB9llX5Y4= MIME-Version: 1.0 Received: by 10.223.40.136 with SMTP id k8mr5169453fae.24.1274735821756; Mon, 24 May 2010 14:17:01 -0700 (PDT) Received: by 10.223.118.76 with HTTP; Mon, 24 May 2010 14:17:01 -0700 (PDT) Date: Mon, 24 May 2010 16:17:01 -0500 Message-ID: From: Rex Fernando To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 802.11n PCI card for access point 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: Mon, 24 May 2010 21:45:13 -0000 I have an old computer I want to configure as an access point. I need to buy a PCI card for 802.11n. As far as I can tell from reading the manual, only certain wireless cards will support this; could someone point me to a list of supported cards? Thanks, Rex Fernando From owner-freebsd-mobile@FreeBSD.ORG Mon May 24 21:52:00 2010 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 5A4B2106567B for ; Mon, 24 May 2010 21:52:00 +0000 (UTC) (envelope-from me@janh.de) Received: from mailhost.uni-hamburg.de (mailhost.uni-hamburg.de [134.100.32.155]) by mx1.freebsd.org (Postfix) with ESMTP id CFD2F8FC15 for ; Mon, 24 May 2010 21:51:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailhost.uni-hamburg.de (Postfix) with ESMTP id E82AC9010D; Mon, 24 May 2010 23:51:57 +0200 (CEST) X-Virus-Scanned: by University of Hamburg (RRZ/mailhost) Received: from mailhost.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pG2X0gZP24yi; Mon, 24 May 2010 23:51:57 +0200 (CEST) Received: from nb895.math (g224011225.adsl.alicedsl.de [92.224.11.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmjv004) by mailhost.uni-hamburg.de (Postfix) with ESMTPSA id 8BBA2900FF; Mon, 24 May 2010 23:51:57 +0200 (CEST) Message-ID: <4BFAF4F5.3040401@janh.de> Date: Mon, 24 May 2010 23:51:49 +0200 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100514 Thunderbird/3.0.4 MIME-Version: 1.0 To: Geoffrey Ferrari References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: mobile-list freebsd Subject: Re: Suspend/Resume problem on Thinkpad X201 (8-STABLE) 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: Mon, 24 May 2010 21:52:00 -0000 On 01/-10/63 20:59, Geoffrey Ferrari wrote: > I tried both of these suggestions but sadly no luck. Thanks for your > suggestions, Scott, anyway. By the way, what is your machine? Is it a > Thinkpad X201 or something similar? > > Two other pieces of information that may be useful: > 1) Suspend/resume works perfectly under the latest Ubuntu, without any > special configuration. > 2) I've upgraded the machine's BIOS using the latest update from Lenovo. Unfortunately, I can only provide a "me, too". I have got a Thinkpad T510 (i7-620M, 4GB RAM, Nvidia NVS 3100M) on 8-STABLE amd64 with exactly the same issue. I did compare your dmesg and sysctl with mine -- everything but the graphics is practically the same (you got ATA+ZFS, I got AHCI+journaling UFS, I enabled hda, C2 states, and changed the clockrate). What could be interesting: - The issue does not seem to be due to the on CPU graphics. It happens with the proprietary Nvidia driver, too. - The issue does not seem to be due to amd64. In the beginning, I had i386 installed and saw the same. I also installed the latest BIOS ("BIOS: 1.18 / ECP: 1.10") a few days ago hoping that this would be it: "(Fix) Fixed an issue where system might not be resumed on non-Windows ACPI OS." Unfortunatelly, nothing changed. BTW: Since your laptop is so similar, the March/April thread I started "Thinkpad T510: LAN? CPU-C3?" probably applies to you, too. Most important: What FreeBSD calls C2 is probably C3, which you might want to activate. Cheers, Jan Henrik From owner-freebsd-mobile@FreeBSD.ORG Tue May 25 13:58:06 2010 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 9F242106566B for ; Tue, 25 May 2010 13:58:06 +0000 (UTC) (envelope-from scrubby@scrubtheweb.com) Received: from scrubby.scrubtheweb.com (scrubby.scrubtheweb.com [66.93.156.36]) by mx1.freebsd.org (Postfix) with ESMTP id 738218FC12 for ; Tue, 25 May 2010 13:58:06 +0000 (UTC) Received: from scrubby.scrubtheweb.com (scrubby.scrubtheweb.com [66.93.156.36]) by scrubby.scrubtheweb.com (8.13.8/8.13.8) with ESMTP id o4PDvsdH001927 for ; Tue, 25 May 2010 06:57:54 -0700 Received: (from scrubweb@localhost) by scrubby.scrubtheweb.com (8.13.8/8.13.8/Submit) id o4PDvslc001926; Tue, 25 May 2010 06:57:54 -0700 Message-Id: <201005251357.o4PDvslc001926@scrubby.scrubtheweb.com> From: "ScrubTheWeb.com(tm)" To: mobile@freebsd.org Date: Tue, 25 May 2010 06:57:54 -0700 MIME-Version: 1.0 X-ID: 14fc5c21bc9153b28bb05afd2a2aa6ef X-Mailer: Scrubby Mail (http://www.scrubtheweb.com/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Confirmation Required by JUN 1, 2010 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, 25 May 2010 13:58:06 -0000 CONFIRMATION IS REQUIRED BY JUN 1, 2010 - SEE BELOW! Thanks again for submitting your URL to ScrubTheWeb(tm). Please read this entire email message to complete your no cost submission. The following URL was submitted to ScrubTheWeb.com(tm): http://www.galiciagaiteira.com/galeria4.html If you wish to CONFIRM, EDIT or DELETE this submission point your browser to: http://www.scrubtheweb.com/confirm/id/14fc5c21bc9153b28bb05afd2a2aa6ef/ We do NOT maintain a mailing list of any kind and we do NOT sell, rent or use your email address for any other purpose than this confirmation email. Note: Please do not reply to this email, as your reply will not be received. If you need to contact us for any reason please point your browser to: http://www.scrubtheweb.com/feedback/ Thanks again, ScrubTheWeb.com(tm) http://www.scrubtheweb.com/ Meta Tag Analyzer http://www.scrubtheweb.com/abs/meta-check.html Meta Tag Builder http://www.scrubtheweb.com/abs/builder.html ------------------- End of Document ------------------- From owner-freebsd-mobile@FreeBSD.ORG Wed May 26 04:20:07 2010 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 9B8B41065670 for ; Wed, 26 May 2010 04:20:07 +0000 (UTC) (envelope-from lambert@lambertfam.org) Received: from sysmon.tcworks.net (sysmon.tcworks.net [65.66.76.4]) by mx1.freebsd.org (Postfix) with ESMTP id 661F08FC0C for ; Wed, 26 May 2010 04:20:07 +0000 (UTC) Received: from sysmon.tcworks.net (localhost [127.0.0.1]) by sysmon.tcworks.net (8.13.1/8.13.1) with ESMTP id o4Q4K6xg057765; Tue, 25 May 2010 23:20:06 -0500 (CDT) (envelope-from lambert@lambertfam.org) Received: (from lambert@localhost) by sysmon.tcworks.net (8.13.1/8.13.1/Submit) id o4Q4K5mW057764; Tue, 25 May 2010 23:20:05 -0500 (CDT) (envelope-from lambert@lambertfam.org) X-Authentication-Warning: sysmon.tcworks.net: lambert set sender to lambert@lambertfam.org using -f Date: Tue, 25 May 2010 23:20:05 -0500 From: Scott Lambert To: Geoffrey Ferrari Message-ID: <20100526042005.GH34184@sysmon.tcworks.net> Mail-Followup-To: Geoffrey Ferrari , freebsd-mobile@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-mobile@freebsd.org Subject: Re: Suspend/Resume problem on Thinkpad X201 (8-STABLE) 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, 26 May 2010 04:20:07 -0000 On Mon, May 24, 2010 at 10:07:16PM +0100, Geoffrey Ferrari wrote: > On Monday 24 May 2010 01:05 pm, Scott Lambert wrote: > > Are you in X when you sleep? Have you tried after switching to ttyv0 > > first? CTRL-ALT-F1 from X. > > I've tried suspending/resuming both from the console and from X. The > same problem with the screen not re-awakening occurs in both cases. Bummer. > > I have this in my rc.suspend, right after the creation of the > > /var/run/rc.suspend.pid file. > > > > /usr/sbin/vidcontrol -s 1 < /dev/ttyv0 > > > > I also unload the wireless driver in rc.suspend, and load it in > > rc.resume. But my wireless card's microPCI slot doesn't seem to get > > fully renabled on resume yet. > > I tried both of these suggestions but sadly no luck. Thanks for your > suggestions, Scott, anyway. By the way, what is your machine? Is it a > Thinkpad X201 or something similar? No, I am running an Acer TravelMate 5720. My only problem is with that darn wireless card not being usable on resume. I am quite happy with FreeBSD 8 amd64. Someday I'll get time to figure out what info I need to give the brains on this list to get that fixed. -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org From owner-freebsd-mobile@FreeBSD.ORG Wed May 26 22:43:51 2010 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 411F01065670 for ; Wed, 26 May 2010 22:43:51 +0000 (UTC) (envelope-from mira@chlastak.cz) Received: from mail.intime.cz (mail.intime.cz [88.208.96.252]) by mx1.freebsd.org (Postfix) with ESMTP id F25308FC1F for ; Wed, 26 May 2010 22:43:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.intime.cz (Postfix) with ESMTP id 1861982EDF0 for ; Thu, 27 May 2010 00:25:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.intime.cz Received: from mail.intime.cz ([127.0.0.1]) by localhost (mail.intime.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NKSGXzHegOgG for ; Thu, 27 May 2010 00:25:46 +0200 (CEST) Received: from [192.168.200.100] (192.13.broadband2.iol.cz [83.208.13.192]) by mail.intime.cz (Postfix) with ESMTPSA id 2542C82EDE6 for ; Thu, 27 May 2010 00:25:46 +0200 (CEST) Message-ID: <4BFD9FE4.3090309@chlastak.cz> Date: Thu, 27 May 2010 00:25:40 +0200 From: Miroslav Chlastak User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100308 Lightning/1.0b1 Shredder/3.0.4pre MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 26 May 2010 22:53:31 +0000 Subject: Atheros and how to convert RSSI to dBm 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, 26 May 2010 22:43:51 -0000 Hello, is there a way how to convert RSSI from output of "ifconfig ath0 list sta" to dBm?: [snip] ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A [snip] I my test enviroment I use this function: noise floor + RSSI*2 = signal of client in dBm Then i get the same value as from "tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": [snip] 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049 > 192.168.100.2.123: NTPv3, Client, length 48 [snip] Right? Or is this conversion "stupid"? Some better idea? Is there a way how to get noise floor via "ifconfig"? I get it from output of "athstats" :( -- Mira From owner-freebsd-mobile@FreeBSD.ORG Thu May 27 00:36:44 2010 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 39BC2106564A for ; Thu, 27 May 2010 00:36:44 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id F23288FC0A for ; Thu, 27 May 2010 00:36:43 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 44FA611B7BB; Wed, 26 May 2010 19:16:58 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id YAF7NKZBIA9J; Wed, 26 May 2010 19:16:58 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <4BFD9FE4.3090309@chlastak.cz> Date: Thu, 27 May 2010 01:16:55 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4BFD9FE4.3090309@chlastak.cz> To: Miroslav Chlastak X-Mailer: Apple Mail (2.1078) Cc: freebsd-mobile@freebsd.org Subject: Re: Atheros and how to convert RSSI to dBm 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, 27 May 2010 00:36:44 -0000 On 26 May 2010, at 23:25, Miroslav Chlastak wrote: > Hello, >=20 > is there a way how to convert RSSI from output of "ifconfig ath0 list = sta" to dBm?: >=20 > [snip] >=20 > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A >=20 > [snip] >=20 > I my test enviroment I use this function: > noise floor + RSSI*2 =3D signal of client in dBm >=20 > Then i get the same value as from "tcpdump -n -i ath0 -p -y = IEEE802_11_RADIO": >=20 > [snip] >=20 > 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB = signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049 > = 192.168.100.2.123: NTPv3, Client, length 48 >=20 > [snip] >=20 >=20 > Right? Or is this conversion "stupid"? Some better idea? >=20 > Is there a way how to get noise floor via "ifconfig"? I get it from = output of "athstats" :( No, there's no way right now. Check this: = http://lists.freebsd.org/pipermail/freebsd-stable/2006-September/028895.ht= ml Regards, -- Rui Paulo From owner-freebsd-mobile@FreeBSD.ORG Thu May 27 07:58:10 2010 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 2603D106564A for ; Thu, 27 May 2010 07:58:10 +0000 (UTC) (envelope-from mira@chlastak.cz) Received: from mail.intime.cz (mail.intime.cz [88.208.96.252]) by mx1.freebsd.org (Postfix) with ESMTP id 0872B8FC0A for ; Thu, 27 May 2010 07:58:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.intime.cz (Postfix) with ESMTP id AFAE8814856; Thu, 27 May 2010 09:58:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.intime.cz Received: from mail.intime.cz ([127.0.0.1]) by localhost (mail.intime.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q5ILk-C6ZzPH; Thu, 27 May 2010 09:58:08 +0200 (CEST) Received: from [192.168.200.100] (192.13.broadband2.iol.cz [83.208.13.192]) by mail.intime.cz (Postfix) with ESMTPSA id 0AFA7833458; Thu, 27 May 2010 09:58:08 +0200 (CEST) Message-ID: <4BFE260D.1090701@chlastak.cz> Date: Thu, 27 May 2010 09:58:05 +0200 From: Miroslav Chlastak User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100308 Lightning/1.0b1 Shredder/3.0.4pre MIME-Version: 1.0 To: Rui Paulo References: <4BFD9FE4.3090309@chlastak.cz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: Atheros and how to convert RSSI to dBm 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, 27 May 2010 07:58:10 -0000 On 27.5.2010 02:16, Rui Paulo wrote: > On 26 May 2010, at 23:25, Miroslav Chlastak wrote: > > >> Hello, >> >> is there a way how to convert RSSI from output of "ifconfig ath0 list sta" to dBm?: >> >> [snip] >> >> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >> 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A >> >> [snip] >> >> I my test enviroment I use this function: >> noise floor + RSSI*2 = signal of client in dBm >> >> Then i get the same value as from "tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": >> >> [snip] >> >> 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> 192.168.100.2.123: NTPv3, Client, length 48 >> >> [snip] >> >> >> Right? Or is this conversion "stupid"? Some better idea? >> >> Is there a way how to get noise floor via "ifconfig"? I get it from output of "athstats" :( >> > No, there's no way right now. > > Check this: http://lists.freebsd.org/pipermail/freebsd-stable/2006-September/028895.html > > Regards, > -- > Rui Paulo > > > But this mail was sent on September 2006 - it's still impossible? :( And how to do it tcpdump? tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": [snip] 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> 192.168.100.2.123: NTPv3, Client, length 48 [snip] Signal -61dB is right signal of my connected wireless client. Tcpdump this signal "know", but system (via ifconfig) doesn't? -- Mira Chlastak From owner-freebsd-mobile@FreeBSD.ORG Thu May 27 08:24:00 2010 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 CB582106564A for ; Thu, 27 May 2010 08:24:00 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id EF9D48FC22 for ; Thu, 27 May 2010 08:23:59 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 60D7615755F; Thu, 27 May 2010 03:23:58 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id W2ES9TH6EG2R; Thu, 27 May 2010 03:23:58 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <4BFE260D.1090701@chlastak.cz> Date: Thu, 27 May 2010 09:23:54 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4BFD9FE4.3090309@chlastak.cz> <4BFE260D.1090701@chlastak.cz> To: Miroslav Chlastak X-Mailer: Apple Mail (2.1078) Cc: freebsd-mobile@freebsd.org Subject: Re: Atheros and how to convert RSSI to dBm 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, 27 May 2010 08:24:00 -0000 On 27 May 2010, at 08:58, Miroslav Chlastak wrote: > On 27.5.2010 02:16, Rui Paulo wrote: >> On 26 May 2010, at 23:25, Miroslav Chlastak wrote: >>=20 >> =20 >>> Hello, >>>=20 >>> is there a way how to convert RSSI from output of "ifconfig ath0 = list sta" to dBm?: >>>=20 >>> [snip] >>>=20 >>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>> 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A >>>=20 >>> [snip] >>>=20 >>> I my test enviroment I use this function: >>> noise floor + RSSI*2 =3D signal of client in dBm >>>=20 >>> Then i get the same value as from "tcpdump -n -i ath0 -p -y = IEEE802_11_RADIO": >>>=20 >>> [snip] >>>=20 >>> 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB = signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> = 192.168.100.2.123: NTPv3, Client, length 48 >>>=20 >>> [snip] >>>=20 >>>=20 >>> Right? Or is this conversion "stupid"? Some better idea? >>>=20 >>> Is there a way how to get noise floor via "ifconfig"? I get it from = output of "athstats" :( >>> =20 >> No, there's no way right now. >>=20 >> Check this: = http://lists.freebsd.org/pipermail/freebsd-stable/2006-September/028895.ht= ml >>=20 >> Regards, >> -- >> Rui Paulo >>=20 >>=20 >> =20 >=20 > But this mail was sent on September 2006 - it's still impossible? :( >=20 > And how to do it tcpdump? >=20 > tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": >=20 > [snip] >=20 > 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB = signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> = 192.168.100.2.123: NTPv3, Client, length 48 >=20 > [snip] >=20 >=20 > Signal -61dB is right signal of my connected wireless client. Tcpdump = this signal "know", but system (via ifconfig) doesn't? Yes, that's right. The changes were not done yet to support displaying = this data in ifconfig. It's not hard to change ifconfig, what's hard is = changing every driver to provide useful info. ath passes this = information to radiotap the same way it provides this information to = athstats. Regards, -- Rui Paulo From owner-freebsd-mobile@FreeBSD.ORG Thu May 27 21:40:18 2010 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 CBD91106566B for ; Thu, 27 May 2010 21:40:18 +0000 (UTC) (envelope-from mira@chlastak.cz) Received: from mail.intime.cz (mail.intime.cz [88.208.96.252]) by mx1.freebsd.org (Postfix) with ESMTP id 5C93E8FC19 for ; Thu, 27 May 2010 21:40:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.intime.cz (Postfix) with ESMTP id CDFAB82E0FF for ; Thu, 27 May 2010 23:40:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.intime.cz Received: from mail.intime.cz ([127.0.0.1]) by localhost (mail.intime.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CvZrWZeuEm2D for ; Thu, 27 May 2010 23:40:22 +0200 (CEST) Received: from [192.168.200.100] (192.13.broadband2.iol.cz [83.208.13.192]) by mail.intime.cz (Postfix) with ESMTPSA id C486681FB08 for ; Thu, 27 May 2010 23:40:21 +0200 (CEST) Message-ID: <4BFEE6C5.8080807@chlastak.cz> Date: Thu, 27 May 2010 23:40:21 +0200 From: Miroslav Chlastak User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9pre) Gecko/20100308 Lightning/1.0b1 Shredder/3.0.4pre MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Atheros and how to convert RSSI to dBm 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, 27 May 2010 21:40:18 -0000 On 27.5.2010 10:23, Rui Paulo wrote: > On 27 May 2010, at 08:58, Miroslav Chlastak wrote: > > >> On 27.5.2010 02:16, Rui Paulo wrote: >> >>> On 26 May 2010, at 23:25, Miroslav Chlastak wrote: >>> >>> >>> >>>> Hello, >>>> >>>> is there a way how to convert RSSI from output of "ifconfig ath0 list sta" to dBm?: >>>> >>>> [snip] >>>> >>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>> 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A >>>> >>>> [snip] >>>> >>>> I my test enviroment I use this function: >>>> noise floor + RSSI*2 = signal of client in dBm >>>> >>>> Then i get the same value as from "tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": >>>> >>>> [snip] >>>> >>>> 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> 192.168.100.2.123: NTPv3, Client, length 48 >>>> >>>> [snip] >>>> >>>> >>>> Right? Or is this conversion "stupid"? Some better idea? >>>> >>>> Is there a way how to get noise floor via "ifconfig"? I get it from output of "athstats" :( >>>> >>>> >>> No, there's no way right now. >>> >>> Check this: http://lists.freebsd.org/pipermail/freebsd-stable/2006-September/028895.html >>> >>> Regards, >>> -- >>> Rui Paulo >>> >>> >>> >>> >> But this mail was sent on September 2006 - it's still impossible? :( >> >> And how to do it tcpdump? >> >> tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": >> >> [snip] >> >> 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> 192.168.100.2.123: NTPv3, Client, length 48 >> >> [snip] >> >> >> Signal -61dB is right signal of my connected wireless client. Tcpdump this signal "know", but system (via ifconfig) doesn't? >> > Yes, that's right. The changes were not done yet to support displaying this data in ifconfig. It's not hard to change ifconfig, what's hard is changing every driver to provide useful info. ath passes this information to radiotap the same way it provides this information to athstats. > > Regards, > -- > Rui Paulo > > > And why not display a new column name "Signal"? Card with "supported features" display right signal of wireless client and others display "NaN"? Atheros drivers have this support? Is my converting algoritmus right for ath devices (noise floor + RSSI*2 = signal of wireless client in dBm)? -- Mira Chlastak From owner-freebsd-mobile@FreeBSD.ORG Fri May 28 17:10:49 2010 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 D9567106566C for ; Fri, 28 May 2010 17:10:49 +0000 (UTC) (envelope-from alex323@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8B2B48FC0A for ; Fri, 28 May 2010 17:10:49 +0000 (UTC) Received: by vws12 with SMTP id 12so1510373vws.13 for ; Fri, 28 May 2010 10:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type; bh=8oEJkPgECIfz5PXk/FHVysM9+hHvpPTcHKkwIEZ+ZWg=; b=spKheVofhquVbSN9ch9a4VvF5FcfI3JtK33iGx07QeXawAWzjh3CJYhJi8VBs3SVKv WgWEOY8BoWjFxcvBYWBFEEcowTuiaUWM5WbWWNTBiedvEhjUe66oAZNRypYyQ4kF3N36 hDWX4if4D68KakJHxPb4hLLXtiSOzab+VVvxU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=P6YDA2EOVM2SHNDIbJfddd0JM6HtWwGch6ZjmKDRJAuwt8hZlNn2zkI+aNzzLvDk8m 5bcuDlADgQD33Zuev6zKFKbuFYbjmS8UFfWusmh9jHxLEc5aR80tgT8BrC+a+OjXqicg Qyd/EQr8wl2UxMou3zYRXl0IGVkb7zVlqD4BE= Received: by 10.220.121.152 with SMTP id h24mr352124vcr.221.1275066648550; Fri, 28 May 2010 10:10:48 -0700 (PDT) Received: from localhost (ool-44c14b8e.dyn.optonline.net [68.193.75.142]) by mx.google.com with ESMTPS id s9sm10527515vcr.3.2010.05.28.10.10.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 28 May 2010 10:10:47 -0700 (PDT) Date: Fri, 28 May 2010 13:10:38 -0400 From: Alex To: freebsd-mobile@freebsd.org Message-ID: <20100528131038.41a41645@gmail.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/xq558.+a5m6r_O07b6oXpMx"; protocol="application/pgp-signature" Subject: Intel 5300AGN 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, 28 May 2010 17:10:49 -0000 --Sig_/xq558.+a5m6r_O07b6oXpMx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi. I am about to purchase an Intel 5300AGN. Is it compatible with FreeBSD 8.0-RELEASE amd64? Thank you. --=20 Alex --Sig_/xq558.+a5m6r_O07b6oXpMx Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- iF0EAREKAAYFAkv/+RUACgkQVj+V+maJPJGk+AD9H00Zyne7PifHBd+x4mWrFtRH NRlYHd0Xw4a63f3RjjgA+MjzGZzIoPuWVGbhC0MnhYgIq4xQmH8sfhbpstqtUJ8= =lEN6 -----END PGP SIGNATURE----- --Sig_/xq558.+a5m6r_O07b6oXpMx-- From owner-freebsd-mobile@FreeBSD.ORG Sat May 29 14:14:50 2010 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 D65FA1065679 for ; Sat, 29 May 2010 14:14:50 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8695E8FC14 for ; Sat, 29 May 2010 14:14:50 +0000 (UTC) Received: by vws12 with SMTP id 12so2823161vws.13 for ; Sat, 29 May 2010 07:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=d3oc7C0BzMdVRjZUSujLEaQRHGCDimj3tBKZcss98hs=; b=UvOUaII5DEV/lt+ScoVQ8xBui66sYrRUL/EVi/fMu8kD1iAfObEz4HtdeqKq0lOfZJ R5caN8ngeyY5EHpZplY69XvwszjfF2CvZnFOMy/FsCgM7/h6/izqU2IdH+Hv0q7LhPBd pRPguhS0DrZbsi2Ej/P/TQYc4bk9JjfWvOTfY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Tlhj9jmqlB6CI8k1zck9JlUTpi9Qw7XKehhXYRVbXJ4Od9C7wlnBnpM94kuwGdv1P3 KDjqQNKkI8WG1oXDBfLoUNZGE3w2mWDgYb3ut8qMgaQHjWrq5+qxXKsMxa2P8JtTZFV+ Anq88/tEAUWKfMvbM/vOmMnArAYZhUK+JYsJg= Received: by 10.220.59.74 with SMTP id k10mr1303467vch.259.1275141081606; Sat, 29 May 2010 06:51:21 -0700 (PDT) Received: from n2-150-149.dhcp.drexel.edu (n2-150-149.dhcp.drexel.edu [144.118.150.149]) by mx.google.com with ESMTPS id z22sm14837973vco.10.2010.05.29.06.51.19 (version=SSLv3 cipher=RC4-MD5); Sat, 29 May 2010 06:51:19 -0700 (PDT) Message-ID: <4C011BD5.5010605@gmail.com> Date: Sat, 29 May 2010 09:51:17 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Alex References: <20100528131038.41a41645@gmail.com> In-Reply-To: <20100528131038.41a41645@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: Intel 5300AGN 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: Sat, 29 May 2010 14:14:50 -0000 Hi, On 5/28/10 1:10 PM, Alex wrote: > Hi. I am about to purchase an Intel 5300AGN. Is it compatible with > FreeBSD 8.0-RELEASE amd64? > > Thank you. > You would have better luck with 8.1-PRERELEASE, as the iwn(4) driver was ported to 8-STABLE after -RELEASE was already out. Regards, -- Glen Barber From owner-freebsd-mobile@FreeBSD.ORG Sat May 29 14:21:00 2010 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 E88CC106566C for ; Sat, 29 May 2010 14:21:00 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 992808FC1C for ; Sat, 29 May 2010 14:20:59 +0000 (UTC) Received: by vws12 with SMTP id 12so2830086vws.13 for ; Sat, 29 May 2010 07:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=QxevwWMPvigfS7QSD+IMl55hupThVMUPmvoaTEBRoA8=; b=A3199Sxz7FNgsnjRzZZo/urypmKLd2eYZuGmSpTbm8I1TOeadIJrBsrKGUEAqEQpuo L0WLumITQVS4AEQld06ft4JG/hA+FWmfuUBw134xUrCtMDu4DN/V+PKBp3/hNtLQxKIN ZeNhG788JwplPbUxCU25yNLHmRkIt4yCHUJl8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=oabYPBbxFox+5WskZGxaesLNjDoBDLK1JV5DrWU6m/v/bbRi/LtP2cEsHoeSWWunVx RC1c+dIfDh2kne0mWGpjRbBPcQrbjIs/+rg3tw3ufinNfzah9HcN/OaFKq2ZIX04eoBx Jv49eByNXFcPt2xhOn/x4TeopBsLzY3KyUqE4= Received: by 10.220.47.220 with SMTP id o28mr1290995vcf.146.1275141228662; Sat, 29 May 2010 06:53:48 -0700 (PDT) Received: from n2-150-149.dhcp.drexel.edu (n2-150-149.dhcp.drexel.edu [144.118.150.149]) by mx.google.com with ESMTPS id i29sm14841411vcr.12.2010.05.29.06.53.47 (version=SSLv3 cipher=RC4-MD5); Sat, 29 May 2010 06:53:47 -0700 (PDT) Message-ID: <4C011C69.6020100@gmail.com> Date: Sat, 29 May 2010 09:53:45 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Alex References: <20100528131038.41a41645@gmail.com> <4C011BD5.5010605@gmail.com> In-Reply-To: <4C011BD5.5010605@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: Intel 5300AGN 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: Sat, 29 May 2010 14:21:01 -0000 On 5/29/10 9:51 AM, Glen Barber wrote: > Hi, > > On 5/28/10 1:10 PM, Alex wrote: >> Hi. I am about to purchase an Intel 5300AGN. Is it compatible with >> FreeBSD 8.0-RELEASE amd64? >> >> Thank you. >> > > You would have better luck with 8.1-PRERELEASE, as the iwn(4) driver was > ported to 8-STABLE after -RELEASE was already out. > > Regards, > Just to clarify, 5100/5300AGN support was added to iwn(4) after -RELEASE was out; the driver already existed for previous chipsets. Regards, -- Glen Barber From owner-freebsd-mobile@FreeBSD.ORG Sat May 29 20:47:24 2010 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 4CBB61065675 for ; Sat, 29 May 2010 20:47:24 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 21EC98FC08 for ; Sat, 29 May 2010 20:47:24 +0000 (UTC) Received: from Macintosh-4.local ([10.0.0.195]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id o4TKlMmS083573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 May 2010 13:47:23 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4C017D58.10800@freebsd.org> Date: Sat, 29 May 2010 13:47:20 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-mobile@freebsd.org References: <4BFD9FE4.3090309@chlastak.cz> In-Reply-To: <4BFD9FE4.3090309@chlastak.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-USENIX-Metrics: ebb.errno.com; whitelist Subject: Re: Atheros and how to convert RSSI to dBm 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: Sat, 29 May 2010 20:47:24 -0000 On 5/26/10 3:25 PM, Miroslav Chlastak wrote: > Hello, > > is there a way how to convert RSSI from output of "ifconfig ath0 list > sta" to dBm?: > > [snip] > > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A > > [snip] > > I my test enviroment I use this function: > noise floor + RSSI*2 = signal of client in dBm > > Then i get the same value as from "tcpdump -n -i ath0 -p -y > IEEE802_11_RADIO": > > [snip] > > 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal > -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049 > 192.168.100.2.123: > NTPv3, Client, length 48 > > [snip] > > > Right? Or is this conversion "stupid"? Some better idea? > > Is there a way how to get noise floor via "ifconfig"? I get it from > output of "athstats" :( > > tcpdump calculates the signal value using rssi as you described. I personally never cared much for this value because getting an accurate measure for noise floor is hard (especially when you consider 11n) and for ath at least the available noise floor dat is only approximate. I can think of very few situations where you want signal and NOT rssi. Sam From owner-freebsd-mobile@FreeBSD.ORG Sat May 29 20:49:29 2010 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 925EE106566C for ; Sat, 29 May 2010 20:49:29 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 455D68FC14 for ; Sat, 29 May 2010 20:49:29 +0000 (UTC) Received: from Macintosh-4.local ([10.0.0.195]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id o4TKnSQL083583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 May 2010 13:49:28 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4C017DD7.5000901@freebsd.org> Date: Sat, 29 May 2010 13:49:27 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-mobile@freebsd.org References: <4BFD9FE4.3090309@chlastak.cz> <4BFE260D.1090701@chlastak.cz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-USENIX-Metrics: ebb.errno.com; whitelist Subject: Re: Atheros and how to convert RSSI to dBm 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: Sat, 29 May 2010 20:49:29 -0000 On 5/27/10 1:23 AM, Rui Paulo wrote: > On 27 May 2010, at 08:58, Miroslav Chlastak wrote: > >> On 27.5.2010 02:16, Rui Paulo wrote: >>> On 26 May 2010, at 23:25, Miroslav Chlastak wrote: >>> >>> >>>> Hello, >>>> >>>> is there a way how to convert RSSI from output of "ifconfig ath0 list sta" to dBm?: >>>> >>>> [snip] >>>> >>>> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG >>>> 00:4f:62:1d:d8:5d 14 9 11M 18.5 0 15932 22400 ES A >>>> >>>> [snip] >>>> >>>> I my test enviroment I use this function: >>>> noise floor + RSSI*2 = signal of client in dBm >>>> >>>> Then i get the same value as from "tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": >>>> >>>> [snip] >>>> >>>> 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> 192.168.100.2.123: NTPv3, Client, length 48 >>>> >>>> [snip] >>>> >>>> >>>> Right? Or is this conversion "stupid"? Some better idea? >>>> >>>> Is there a way how to get noise floor via "ifconfig"? I get it from output of "athstats" :( >>>> >>> No, there's no way right now. >>> >>> Check this: http://lists.freebsd.org/pipermail/freebsd-stable/2006-September/028895.html >>> >>> Regards, >>> -- >>> Rui Paulo >>> >>> >>> >> >> But this mail was sent on September 2006 - it's still impossible? :( >> >> And how to do it tcpdump? >> >> tcpdump -n -i ath0 -p -y IEEE802_11_RADIO": >> >> [snip] >> >> 10:41:04.746395 86402611933us tsft short preamble 58.5 Mb/s -61dB signal -98dB noise antenna 1 [0x00000012] IP 10.0.0.1.2049> 192.168.100.2.123: NTPv3, Client, length 48 >> >> [snip] >> >> >> Signal -61dB is right signal of my connected wireless client. Tcpdump this signal "know", but system (via ifconfig) doesn't? > > Yes, that's right. The changes were not done yet to support displaying this data in ifconfig. It's not hard to change ifconfig, what's hard is changing every driver to provide useful info. ath passes this information to radiotap the same way it provides this information to athstats. I believe every driver does already report rssi in .5 dBm units but not every device exports noise floor. rssi is used by net80211 during scanning so if it's inaccurate then it can affect the scanning algorithm. Sam