From owner-freebsd-mobile@freebsd.org Mon Mar 7 13:47:24 2016 Return-Path: Delivered-To: freebsd-mobile@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 EF77DAB9581; Mon, 7 Mar 2016 13:47:24 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::107]) by mx1.freebsd.org (Postfix) with ESMTP id C143FB76; Mon, 7 Mar 2016 13:47:24 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [IPv6:2001:470:1f11:617:8fe:6a13:797b:e9c9] (unknown [IPv6:2001:470:1f11:617:8fe:6a13:797b:e9c9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id 0A83A1F8E; Mon, 7 Mar 2016 13:47:23 +0000 (UTC) Subject: Librem 13 laptop initial report, issues to fix From: Eric McCorkle X-Mailer: iPad Mail (13D15) Message-Id: <43EB3527-B41B-4618-B7DF-25597CE1C214@metricspace.net> Date: Mon, 7 Mar 2016 08:47:22 -0500 To: freebsd-mobile@freebsd.org, "freebsd-hackers@freebsd.org" Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 13:47:25 -0000 Hello all, I have obtained one of the Librem 13 laptops (https://www.crowdsupply.com/pu= rism/librem-13), and have begun the process is setting up FreeBSD on it. He= re is an initial report of my findings, including the issues I've had. Sinc= e the hardware was chosen for things like open specifications, available for= are source, etc, I'm optimistic about getting all these addressed. The following devices Just Work(tm): * EFI boot/loader (with a pure ZFS system) * SD card reader * Realtek Ethernet (re) * SMBus (ichsmb) * coretemp and cpufreq * Intel HDA (speaker-test works with speakers and headphone jack, haven't te= sted recording yet) * Hard drive and SSD (I have ZFS with main storage on the drive, and swap, Z= FS cache, and a small intent log on the SSD) * USB ports * Bluetooth (though I seem to have disabled it in the latest kernel config b= y accident) * The keyboard fn keys actually work fine, which is the first time I've seen= that. This laptop also features hard-disconnect switches for the camera (a USB dev= ice). I've tested booting with them in various configuration, as well as fl= ipping them on/off. FreeBSD seems to handle this fairly well, however it co= mplains loudly about timeouts before disconnecting the bus. I wonder if the= re might me some setting to say "treat this bus as a hot-pluggable periphera= l" I tried Jean-Sebastian's Intel KMS patch, but it doesn't support the broadwe= ll cards. I have the following issues: * Atheros 9462 wireless card is detected, but the radio doesn't seem to work= . pciconf reports a few errors: receiver error, bad tlp, bad dllp. Just to= rule something like a bad solder, I'm going to try booting up a Linux memst= ick and see what happens. * Blank screen on resume, everything else is fine. This resembles an issue I= had with a Lenovo. I did some initial poking around, and acpi debugging tr= aces reveal some execution errors during the resume process. I will get a m= ore complete report to post to freebsd-acpi. * Sporadic boot-hang, USB timeouts. This seems to be dependent on kernel co= nfiguration. It happens for some configs, not for others, and turning on ve= rbose boot seems to stop it. Based on this, I strongly suspect a timing-rel= ated bug somewhere in the boot process. * VESA weirdness with X. Running X with the VESA driver starts and displays= fine, but when you switch back to a terminal, a few pixels around the borde= r of the X screen still show up in the terminal. Also, when shutting down X= , it hangs and the screen becomes unresponsive. This seemingly implicates t= he vga bios; fortunately, this can probably be fixed due to the nature of th= e Librem project. The blank screen on suspend is probably the most critical, with the Atheros c= ard issue being a close second. If anyone has suggestions about where to lo= ok/how to diagnose, I'd certainly appreciate them. I will also be in contac= t with the Librem developers after I do more diagnosis. Additionally, there are some things I want to look in to once everything is w= orking: * The laptop bios allows for custom signing keys to be configured. This set= s the stage for a secure boot process. * See if anything can be done (or needs to be done) in order to better suppo= rt the hard-off switches. They seem to work (for the camera/mic; can't tell= yet about the wireless), but complain to dmesg about timeouts when switched= off. See if some config exists/can be added to make them detachable.= From owner-freebsd-mobile@freebsd.org Wed Mar 9 01:32:08 2016 Return-Path: Delivered-To: freebsd-mobile@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 95C46AC8A0B for ; Wed, 9 Mar 2016 01:32:08 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8407CD7F for ; Wed, 9 Mar 2016 01:32:08 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from [192.168.42.104] (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 3F1D51C56 for ; Wed, 9 Mar 2016 01:32:08 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) From: "Jonathan Anderson" To: freebsd-mobile@freebsd.org Subject: HID over I2C Date: Tue, 08 Mar 2016 21:52:06 -0330 Message-ID: <0F2F1CD4-1327-4B72-BF6D-1358EEF03516@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable X-Mailer: MailMate (1.9.3r5187) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2016 01:32:08 -0000 Hi all, I have a shiny new notebook to run FreeBSD on (the ASUS Zenbook = UX305CA). I wasn't expecting accelerated graphics to work, so I'm happy = enough to get the native HD resolution with the scfb driver. The = wireless mostly works, too, with one known caveat [1] that isn't too = annoying. However, of all things, the touchpad doesn't work! It turns out that this notebook's touchpad is connected using HID over = I2C. This seems to be a pattern of increasing prevalence, so I'm hoping = that FreeBSD either has some support for it or else somebody is working = on it. However, besides the HID-over-I2C bit, I also need updated I2C = parts. I see that FreeBSD has the 'ig4' module (imported from Dragonfly) for = Haswell I2C, but I believe that there are some further changes with = Skylake (at least the Linux folks needed some changes [2]). I'm slightly = confused about the difference between SMBus and I2C... I believe they're = compatible, but they seem to be exposed as difference PCI devices [3]. = Is this because one is used with host-as-master only and the other = supports the multi-master mode for async transfer? I've tried simple = things like adding the Skylake PCI IDs to `ichsmb`, which causes a = `/dev/smb0` to be created, but when I try to use `consolehm` I get lots = of "Device not configured" errors. At any rate, it seems like I need to = be worried about I2C and not SMBus. So, I really have two questions for the list: 1. Where is the right place to make I2C changes? We have the 'ig4' module for the fourth-generation Intel PCH... are we = going to go down the road of creating an 'ig5', 'ig6', etc.? Should = 'ig4' be renamed to align with its path in the source tree = ('sys/dev/ichiic') and be extended to support more recent generations of = hardware too? 2. What else is required to support HID over I2C? Once I have a working Skylake I2C bus, how do I connect an input device = to it? We have code for dealing with HID over USB, but that seems pretty = tied into USB ('sys/dev/usb/input/uhid.c' and 'sys/dev/usb/usb_hid.c'). = Now, it's only ~1500 lines of code, so it mightn't be too hard to = re-implement the protocol, but ideally one wouldn't have to. If the = touchpad can be exposed directly as a device, can X itself speak the HID = protocol? Alternatively, if we get I2C working correctly, will psm = magically start to work with the touchpad? Thanks for your patience, Jon [1] = http://lists.freebsd.org/pipermail/freebsd-wireless/2016-March/006530.htm= l [2] https://bugzilla.kernel.org/show_bug.cgi?id=3D108581 [3] = https://download.01.org/future-platform-configuration-hub/skylake/registe= r-definitions/332219-002.pdf -- Jonathan Anderson jonathan@FreeBSD.org From owner-freebsd-mobile@freebsd.org Fri Mar 11 18:08:43 2016 Return-Path: Delivered-To: freebsd-mobile@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 C3A97ACCA82 for ; Fri, 11 Mar 2016 18:08:43 +0000 (UTC) (envelope-from firemandavid242@icloud.com) Received: from pv38p43im-ztdg05071201.me.com (pv38p43im-ztdg05071201.me.com [17.133.183.8]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB46BE2 for ; Fri, 11 Mar 2016 18:08:43 +0000 (UTC) (envelope-from firemandavid242@icloud.com) Received: from [10.172.169.82] (mobile-166-173-061-134.mycingular.net [166.173.61.134]) by pv38p43im-ztdg05071201.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O3V00MR0WYBK620@pv38p43im-ztdg05071201.me.com> for freebsd-mobile@freebsd.org; Fri, 11 Mar 2016 17:08:37 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-11_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=2 spamscore=2 clxscore=1011 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1603110242 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit From: David Brown MIME-version: 1.0 (1.0) Date: Fri, 11 Mar 2016 11:08:34 -0600 Subject: Re: DRIVE YOUR CAR AND GET PAID ADVERTISING FOR MONSTER ENERGY DRINK.($400 Weekly) Message-id: <8FBC3049-0AE7-4C8A-B8DE-426137BE8E16@icloud.com> To: freebsd-mobile@freebsd.org X-Mailer: iPhone Mail (13C75) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 18:08:43 -0000 Yes I will Sent from my iPhone From owner-freebsd-mobile@freebsd.org Fri Mar 11 19:01:30 2016 Return-Path: Delivered-To: freebsd-mobile@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 86CE1ACCF66 for ; Fri, 11 Mar 2016 19:01:30 +0000 (UTC) (envelope-from firemandavid242@icloud.com) Received: from pv38p43im-ztdg05071201.me.com (pv38p43im-ztdg05071201.me.com [17.133.183.8]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E964F8B for ; Fri, 11 Mar 2016 19:01:30 +0000 (UTC) (envelope-from firemandavid242@icloud.com) Received: from [10.172.169.82] (mobile-166-173-061-134.mycingular.net [166.173.61.134]) by pv38p43im-ztdg05071201.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O3W006RD26FBU20@pv38p43im-ztdg05071201.me.com> for freebsd-mobile@freebsd.org; Fri, 11 Mar 2016 19:01:29 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-11_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1603110263 From: David Brown Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit MIME-version: 1.0 (1.0) Date: Fri, 11 Mar 2016 13:01:27 -0600 Subject: Monster Message-id: <0A4F626E-2B1F-4FB9-95C3-1970FBE921B9@icloud.com> To: freebsd-mobile@freebsd.org X-Mailer: iPhone Mail (13C75) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 19:01:30 -0000 Sent from my iPhone