From owner-freebsd-acpi@FreeBSD.ORG Sat Aug 2 21:58:20 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0CE575F6 for ; Sat, 2 Aug 2014 21:58:20 +0000 (UTC) Received: from nm14-vm2.access.bullet.mail.bf1.yahoo.com (nm14-vm2.access.bullet.mail.bf1.yahoo.com [216.109.115.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A539723DA for ; Sat, 2 Aug 2014 21:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s2048; t=1407016544; bh=7r+BS6UZEP42g5n2FNswSTm5hgwX99+SEc7Mvc5xpQ8=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=dJeRgxWOPyhg9W8lXRAA1yQ9Y4bOXIxmid/75sPm0VvY2B8FSnPo3T052gwUQIyp17Wf9iDrdAV46CAIqxPC3WBSwuKjoMFZfMavH9LnuWd3sOabI6LC5MprpBW1/kutKiUm8zzP7o8v6/HlZnfiTUYLXTs+su93jFpEP4FK/VCB90MNIIeYoi2Qwc7LClONeaxYB1IEDhTqHzRLL+RPaNWAsmS5YLo20c9Py3odvUvt22Bv91q08qn/s9UOgXMf4rlIltfGpWwZaV6CzSIKj+FtLwzCQ72NyD04n4qVH45RsMqaB7Yuh8YQKV37tK1WmbMnlsJ9FRdTcgOE6lRemw== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=att.net; b=RchFKVhh5BfPnVqBLotWgKNoryxi2Q++IQm/YaM/Bl4Q+hVDeaXAO1CFd9+ybxDGIXVdcKnrKty9YUcxI4htMRTMiEtu9ptEdiBl4xSZVoYrIv3o3rZmIHxQowPKpMByRxpDBR86uxEQq55RE85b8bOJ8x7DS2m4ZzLL04HS4uHhu9eyojlDk/qhF0qE9qaAKLXzw4BgIv/s6FpLxRWYYKiqN73nHOONVz6LJGPvQ9jaR+Qc22i4mYJBnjg0E+CHGVazV1BW7TV1mUpintlV0CF8qQPCa6EHbvpPNP+br3zmvA572IBieawkZLoJBC+HIfjT5o2zUvMeuhv3B12JXQ==; Received: from [66.196.81.163] by nm14.access.bullet.mail.bf1.yahoo.com with NNFMP; 02 Aug 2014 21:55:44 -0000 Received: from [98.138.226.242] by tm9.access.bullet.mail.bf1.yahoo.com with NNFMP; 02 Aug 2014 21:55:44 -0000 Received: from [127.0.0.1] by smtp113.sbc.mail.ne1.yahoo.com with NNFMP; 02 Aug 2014 21:55:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1407016544; bh=7r+BS6UZEP42g5n2FNswSTm5hgwX99+SEc7Mvc5xpQ8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DmB+tiRI/7iSGW5Wju9DsSi1hN4K+8GuWIxZGxwOOwav1LuVdkmE77wGguWaw4+6PKJYWdOKfb8byM0aLGRS/TKO7fcKqxjd4VHXmxB5dFe7VXzUPKp0zzfcNo2OIYjQERDZUtIcvr4cKsDdj3jBMWZ0Um0d7MNj5GmLCE5eHuQ= X-Yahoo-Newman-Id: 479526.74214.bm@smtp113.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: nXOjD1YVM1kTqbBRlV8nvpX2fnpbGNwzNBuCkWjWBfiD2N_ lphmx_ECWW_NEgfnXOhWnx4OlB6F1p_KjIUz5bjnc1clD0xy9DjOrTDEWAil 0gTEf1Tw95s56Ml6jzlbf6Vwmyfv_9jiGKr4ZP3q7ZPHqYGzP9ARSbwoi2Oz THmyNXWHrrGsKI02LTB8ZnNCcPBwoJ4LPtje1_AJHdns3mzrX_B8EUQKuwEp pGF2zDrXNyviEDGW1g_EF0z0VNwgJydGUKAL00M1ExFoPyq4AdJMX2T3opas 2meUT4ayq.oQYtRRyGo7LEvHKWkWPmgG_GlCpGyIIsXre61CyKFxGTYutdpk RGjRvvqg2RspZYMJYWTgmIwKXGtYuYGX41ALH9FH8yzAsKZJy6WgUZNBLm5V wCe7twbjxo4E8dbXRUZ72s7hh4HI5H981lDKsleKuePP._VHe2W3RFhlvGkI sF9gDxDvecY5t.QBwUmnoQistzZFylwvzu9p.jzBJxE1qW3KUUjQn9kWR3jB .jcWEUO.MpguBFw4ydqyfYjciedC03qieFypkDvAvJCEXorEeCsY54lBEHPN 8ZX0- X-Yahoo-SMTP: OKD1keCswBBTAmAF1s00hLyKW3wE3YfSK0Eazl6b4VZG4LTqJxg- Message-ID: <53DD5E4D.3070505@att.net> Date: Sat, 02 Aug 2014 17:55:25 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Daniele Mazzotti , Kevin Oberman Subject: Re: ACPI support - Freebsd 10 on Sony Vaio VPCCA3C5E References: <20140722033156.E8638@sola.nimnet.asn.au> <1405965655.15937.YahooMailAndroidMobile@web181606.mail.ne1.yahoo.com> <20140721213352.GA64025@hell> <20140722180506.GA67094@hell> <20140725221954.GA42012@hell> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-acpi@freebsd.org" X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 21:58:20 -0000 Awesome! The battery thing is kind of baffling, as a developer I'd start by tracking down where we're (FreeBSD) getting the bogus values (I don't recall the battery problem details). i'm gonna work to get my ACPI CMOS region support patch into the codebase, seems to be helpful to a lot of people. Looks like a lot of manufacturers use CMOS to implement their suspend/resume functionality. Good luck, I'll try to think of stuff to try with the battery. Anthony On 08/01/2014 15:40, Daniele Mazzotti wrote: > Hello everybody, > > after several tries I finally managed to fix two out of three issue I had > on my Sony Vaio. After I switched to Intel driver I was forced to update my > system to STABLE (@Kevin: thanks for the support - I tried to write a set > of scripts to download the required VT sources and copy them to the correct > folders, but after two nights of work I decided that it was more the > efforts than the benefits). > > Then I recompiled the GENERIC Kernel from STABLE and added the support for > VT instead of the original SC and I am now able to switch through different > terminals (@all: thanks for suggesting me to remove Vesa and use proper > video drivers). > > Finally I have applied Anthony's patch and the suspend/resume mode works > like a charm! > The only thing which is now missing is the battery support, but debugging > that stuff is definitively out of my skill set! Would you think is it worth > trying? > > Cheers, > Daniele. > > > > 2014-07-26 19:40 GMT+02:00 Daniele Mazzotti : > >> Hi Kevin, >> >> that is a good news but I have a RELEASE therefore if I am not wrong I >> should recompile my kernel. Did I miss something? >> >> Cheers, >> Daniele. >> >> >> 2014-07-26 18:52 GMT+02:00 Kevin Oberman : >> >> On Sat, Jul 26, 2014 at 9:31 AM, Kevin Oberman >>> wrote: >>> >>>> On Sat, Jul 26, 2014 at 1:46 AM, Daniele Mazzotti >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> thanks again for your precious help. The suspend mode is not working >>>>> yet as VESA option is still in my kernel configuration. I wanted to wait >>>>> before removing it as I was not sure that intel video driver would have >>>>> worked. My intention was to have a working setup with intel and being able >>>>> to switch amongst vt(s) before getting rid of vesa, as I would peferer >>>>> having the possibility to switch amongst vt(s) than putting my laptop to >>>>> suspend. >>>>> >>>>> By the way I have a 10-RELEASE therefore I suspect I will have to >>>>> recompile the kernel with VT. Did I get you right? >>>>> >>>>> I googled a bit and it seems that the only thing I have to do is to add >>>>> these devices to my kernel: >>>>> >>>>> device vt >>>>> device vt_vga >>>>> >>>>> This is the source I am referring to: https://wiki.freebsd.org/Newcons. >>>>> Is this it? >>>>> >>>>> Cheers and thanks again, >>>>> Daniele. >>>>> >>>>> >>>> Maybe and maybe not. The wiki page needs updating. >>>> >>>> Look at /sys/ARCH/conf for a VT configuration. If it is there, just >>>> build a kernel with: >>>> # make buildkernel kernconf=VT && make installkernel kernconf=VT >>>> (You probably want to add a reasonable -j option for your hardware to >>>> the buildkernel.) >>>> >>>> If you don't have a VT config file, than just set the kern.vty=vt >>>> loadable in /boot/loader.conf. No need to build a new kernel. >>>> >>> I just looked at teh repo an can say that just adding kern.vty=vt to >>> /boot/loader.conf will work on head r 267965 or newer and 10-Stable r268366 >>> or newer. Looks like this has not been MFCed to 9. >>> >>> -- >>> R. Kevin Oberman, Network Engineer, Retired >>> E-mail: rkoberman@gmail.com >>> >>> >>> >>>>> 2014-07-26 8:14 GMT+02:00 Kevin Oberman : >>>>> >>>>>> On Fri, Jul 25, 2014 at 3:19 PM, Bykov Vladislav <> < >>>>>> envolyse@gmail.com> wrote: >>>>>> >>>>>>> On Fri, Jul 25, 2014 at 10:43:11PM +0200, Daniele Mazzotti wrote: >>>>>>>> The error I get anytime I try to switch between terminals is the >>>>>>> following >>>>>>>> one " drmDropMaster failed: Unknown error: -22" >>>>>>> This is okay, if you can't switch back to tty after starting Xorg in >>>>>>> KMS >>>>>>> mode using old syscons driver. There is already work going on with new >>>>>>> driver, vt. I didn't test it though. >>>>>>> >>>>>>> At least, suspend is works now? >>>>>>> >>>>>> Try adding kern.vty=vt to /boot/loader.conf. In recent 9-stable, >>>>>> 10-stable, and head kernels, this is all it takes to switch to vt(4). If >>>>>> you have an older kernel or are running any release, you will need to >>>>>> rebuild the kernel using the VT configuration. The loader option may have >>>>>> made 9.3, but I'm not sure. I don't believe vt(4) is available for 8. >>>>>> -- >>>>>> R. Kevin Oberman, Network Engineer, Retired >>>>>> E-mail: rkoberman@gmail.com >>>>>> >>>>>> >>>>> > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" >