From owner-freebsd-hardware@freebsd.org Mon Oct 16 12:17:46 2017 Return-Path: Delivered-To: freebsd-hardware@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 532F1E3916F; Mon, 16 Oct 2017 12:17:46 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22D7D7E352; Mon, 16 Oct 2017 12:17:45 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CFA7B20BC3; Mon, 16 Oct 2017 08:17:38 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 16 Oct 2017 08:17:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=x99O4Htp74kI/s3CRgzg1I1clTze7PvfNI3jQ2vA+8s=; b=YdZQXu3l 2yfe1ZFP5dKazSDyV0WRAXVvaCVWtIFeh7VDlUX3rqzKDQIzaOfxN7YrUchLI/9o 5EI2OoZAVv03OrOECyqeVSuieVZlLfU/E837rltyOMMBsJcBlcFcZYNWsgBiRZiy EARHc60wi4sBKWJehXajTnubK9oUM2EBY0oOlNXUDYUYchipJOacSKKJmR/1ekuB jmzl07IIwe79+RrpTAjXc7Js5MlTY6LFEZpRvR0esA+6w5O1e4hz2T1DTIGNVa2a JOy+GgYmPXnYFnFZudd1ka69N9AwievR+LZtRqetHF0NJDJ/ehXm/WppFzyOkNct lB5OS8n86kW7Yg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=x99O4Htp74kI/s3CRgzg1I1clTze7 PvfNI3jQ2vA+8s=; b=LFDTqmHe/7PrWknQdjTXv9E0+Yyv4sTg86qlo/sHwqIgP ugJNC83Hy/jWRTfD1UwnSiCEEmfoNFylmzNrY8NwH6+ZEtNVeokIj9EXcoRzhgII /fqo3PYr9sIUMhpJF43MyYGzRZndsnbX2SbrBABx8kpxTyHjDnN0bExmmHiHzM6V YZqOjDuy15Fj0uPZ2gysts+2OvcwAvCu+7EKyzomPNiHh99XA0eMnMVK9+PcDFU1 ayMidOh3kpjpWLaArSew6FHhrGeeYlsFcLgYSN/XAgpL/AniuRotYOFzytaB9bDe y9TOdA/gqzslEw4H9cVIGa5QNIGzIrjVC+QiNciyg== X-ME-Sender: Received: from acer.zyxst.net (parsley.growveg.org [82.70.91.97]) by mail.messagingengine.com (Postfix) with ESMTPA id 1DB547FA5C; Mon, 16 Oct 2017 08:17:38 -0400 (EDT) Date: Mon, 16 Oct 2017 13:17:36 +0100 From: tech-lists To: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: problems getting AMD C-70 APU working with powerd/cpufreq Message-ID: <20171016121735.GA73795@acer.zyxst.net> Mail-Followup-To: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org References: <20171013123721.GA27736@acer.zyxst.net> <20171014215317.K34192@sola.nimnet.asn.au> <20171014212602.GB92751@acer.zyxst.net> <20171016013155.I34192@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20171016013155.I34192@sola.nimnet.asn.au> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2017 12:17:46 -0000 Hi, On Mon, Oct 16, 2017 at 02:58:10AM +1100, Ian Smith wrote: >On Sat, 14 Oct 2017 22:26:02 +0100, tech-lists wrote: > > On Sat, Oct 14, 2017 at 10:36:02PM +1100, Ian Smith wrote: > > > On Fri, 13 Oct 2017 13:37:21 +0100, tech-lists wrote: >However, this is after you've booted, right? Might you need to add >cpufreq_load="YES" to /boot/loader.conf, so it's loaded before being >needed for detection / attachment during boot probing, perhaps? ok tried that. I get cpufreq.ko loaded in the kernel via /boot/loader.conf but still I get $ sudo powerd -v powerd: no cpufreq(4) support -- aborting: No such file or directory >I may again be misinterpreting how your dmesg arose .. you can select >verbose boot or add boot_verbose="YES" and maybe verbose_loading="YES" >to loader.conf too .. I often run that way and quote /var/run/dmesg.boot selected at boot >Again, might this be rather because cpufreq wasn't loaded before boot? unfortunately, with it loaded in loader.conf seems to not make any difference. >then battery life should be ok? Or maybe was, 3-4 years ago? difficult to say, and there is a story behind that. [0] >Well unless booting with cpufreq loaded - assuming you didn't before - >provides any more info on why powernow(0) (STILL no manpage!) didn't at >least try to attach, I'm out of ideas. > >If you do get any further, sysctl hw.acpi might shed some light too. I have set hw.acpi.verbose=1 in /etc/sysctl.conf for obvious reasons $ sudo sysctl -a | grep hw.acpi hw.acpi.thermal.tz0._TSP: 40 hw.acpi.thermal.tz0._TC2: 3 hw.acpi.thermal.tz0._TC1: 2 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._CRT: 100.1C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._PSV: 94.1C hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.temperature: 70.1C hw.acpi.thermal.user_override: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.min_runtime: 0 hw.acpi.battery.info_expire: 5 hw.acpi.battery.units: 1 hw.acpi.battery.state: 0 hw.acpi.battery.time: -1 hw.acpi.battery.life: 100 hw.acpi.acline: 1 hw.acpi.cpu.cx_lowest: C2 hw.acpi.reset_video: 0 hw.acpi.handle_reboot: 1 hw.acpi.disable_on_reboot: 0 hw.acpi.verbose: 1 hw.acpi.s4bios: 0 hw.acpi.sleep_delay: 1 hw.acpi.suspend_state: S3 hw.acpi.standby_state: NONE hw.acpi.lid_switch_state: NONE hw.acpi.sleep_button_state: S3 hw.acpi.power_button_state: S5 [0] would you beleive this netbook was set at the factory to load windows 8 installation!! When I saw how it was struggling, I aborted the process and installed linux mint as a stopgap, thinking maybe install freebsd later when there was more time. Leading to this situation [1] So for a while it was used as a mint netbook, then hd errors started happening, so installed freebsd with the then new option of root-on-zfs and used it as a hobby/dev server that came with built-in UPS (ie the netbook battery). While configured like this, it was permanently plugged into AC and wired ethernet. It was set up this way for a couple of years. Then my bigger, more powerful laptop died, so re-purposed the netbook to be a proper netbook, along the way replacing the hd with a SSD, upgrading ram from 4GB to 8GB [1]. It's now running smoothly but the battery needs replacing as the capacity is 70% of what it was. It manages about 2 hrs, longer if the screen is off, but this is another problem [3]. I'm persisting in trying to get this device working as I'd like because the form factor and build quality is excellent and the wireless is well supported (Atheros AR9485) [1] bios upgrades seem to require windows being present. It's a windows executable file [4] [5] [2] somehow the bios acquired a password. I don't know the password. [5] All I can do is to select bootable media, all other functions and access to the bios require a password. [3] there are function keys to turn up and down the brightness. Right now it's at 100% brightness and the function keys don't work under FreeBSD (they may have done under Mint, I can't remember). The screen will automatically turn off after 10 mins of keyboard non-use. [4] I have a windows 8 key but no windows, and I don't own any windows computers, not for a long time. [5] I think swapping out the hardware made it "acquire" a "password" I'll try to get some diagnostics via linux mint, booting from usb3. Have tried via booting to freedos but the executable seems to require actual windows :( ISTR acpi being turned on in the bios. But there's nothing much tunable in there. That and selecting boot media are about it. many thanks, -- J.