From owner-freebsd-current@freebsd.org Sun Jan 7 22:14:10 2018 Return-Path: Delivered-To: freebsd-current@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 0DB1AE61D75 for ; Sun, 7 Jan 2018 22:14:10 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 4323C7B86C for ; Sun, 7 Jan 2018 22:14:08 +0000 (UTC) (envelope-from freebsd@grem.de) Received: (qmail 68189 invoked by uid 89); 7 Jan 2018 22:14:07 -0000 Received: from unknown (HELO ?192.168.250.192?) (mg@grem.de@93.104.64.114) by mail.grem.de with ESMTPA; 7 Jan 2018 22:14:07 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Running FreeBSD on the Lenovo Thinkpad T470s (success) From: Michael Gmelin X-Mailer: iPhone Mail (14G60) In-Reply-To: <201801072140.w07Le9xS018601@pdx.rh.CN85.dnsmgr.net> Date: Sun, 7 Jan 2018 23:14:07 +0100 Cc: clutton , "freebsd-current@freebsd.org" , "freebsd-x11@freebsd.org" , "freebsd-mobile@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <201801072140.w07Le9xS018601@pdx.rh.CN85.dnsmgr.net> To: "Rodney W. Grimes" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2018 22:14:10 -0000 On 7. Jan 2018, at 22:40, Rodney W. Grimes wrote: >>=20 >>=20 >> On 7. Jan 2018, at 21:32, Rodney W. Grimes wrote: >>=20 >>>>=20 >>>>=20 >>>>>> On 7. Jan 2018, at 20:43, clutton wrote: >>>>>>=20 >>>>>> On Sat, 2017-12-30 at 15:58 +0100, Michael Gmelin wrote: >>>>>> Hi, >>>>>=20 >>>>> Running carbon 5th gen I can't call my setup a success. Wireless iwm >>>>> doesn't support even N and AC is not supported at all. The wifi is muc= h >>>>> slower then on my old machines. I'm going to replace the wifi card in >>>>> mean time, any suggestions which one to buy? >>>>>=20 >>>>> Graphics works perfectly. NVMe SSD with OPAL wouldn't allow machine to= >>>>> resume from sleep, sometimes it does after big timeout and writing >>>>> errors to console, sometime it just reboots. >>>>>=20 >>>>> Thinkpad Thunderbolt Dock Station, here is where things get >>>>> interesting. If I boot machine connected to dock station, peripheral >>>>> devices would work, external monitor, keyboard, and mouse. There's no >>>>> other way I know to make it work. Once detached - it wouldn't see >>>>> devices again. Booting and THEN attaching - the same, machine wouldn't= >>>>> see devices. >>>>>=20 >>>>> Here is the device being seen (a lot of pcib*): >>>>> pcib5@pci0:6:0:0: class=3D0x060400 card=3D0x11112222 chip=3D0x15d38= 086 >>>>> rev=3D0x02 hdr=3D0x01 >>>>> vendor =3D 'Intel Corporation' >>>>> device =3D 'JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge >>>>> 4C 2016]' >>>>> class =3D bridge >>>>> subclass =3D PCI-PCI >>>>>=20 >>>>>=20 >>>>> For me the main concern is Thunderbolt thought, docking station is >>>>> amazing thing. Any ideas and thought how to make it work would be >>>>> highly appreciated. >>>>=20 >>>> In my setup, plug/unplug events for display port don't work when dockin= g (usually I'm not using a dock though). This means: Mouse, Keyboard can be p= lugged/unplugged as many time as I want at any point, while displays connect= ed over display port only work when connected before starting X (and they do= n't disappear after disconnecting). Note that stopping X seems to fix this (= so no reboot required), but I don't have the docking station myself (this is= the Ultra Dock Pro or something - the one that connects at the bottom of th= e laptop). >>>>=20 >>>> Also, in my setup wifi didn't work without adding iwm0 explicitly to cl= oned interfaces (which isn't something I wouldn't expect I have to do, but i= n this case I had to). >>>=20 >>> Did you have a >>> wlans_iwm0=3D"wlan0" >>> in /etc/rc.conf? =20 >>> I do not know or see why putting iwm0 in cloned would do much of anythin= g >>> for a wlan device. >>>=20 >>> Also note that is wlans as in plural, not wlan_iwm0. A mistake I >>> often make from finger memory. >>>=20 >>=20 >> I have >>=20 >> wlans_iwm0=3D"wlan0" >> ifconfig_wlan0=3D"WPA DHCP country de" > I use just simply: > ifconfig_wlan0=3D"WPA SYNCDHCP" >=20 > I think without the SYNC you are not waiting for wpa to come up? I works ok, if I really wanted to wait for getting an IP that would make sen= se, yes. > I do not know of the /etc/rc.d/* stuff is prepared to deal with > your "country de" either. >=20 It is, as country DE shows up in ifconfig after boot and it can actually ass= ociate (which it couldn't before adding the country, probably the channel wa= s out of range with default settings). >>=20 >> in rc.conf. Without adding >>=20 >> cloned_interfaces=3D"iwm0" >>=20 >> wlan0 never shows up in ifconfig and wpa_supplicant never starts (that's c= urrent r326912, setup like described in my blog post). >>=20 >> I just double checked to confirm the behavior. >=20 > Something is broken some place. >=20 Well, if I actually add if_iwm_load=3D"YES" if_iwm3160fw_load=3D"YES" if_iwm7260fw_load=3D"YES" if_iwm7265Dfw_load=3D"YES" if_iwm7265fw_load=3D"YES" if_iwm8000Cfw_load=3D"YES" if_iwm8265fw_load=3D"YES" to /boot/loader.conf (like documented in the man page ^_^), it works without= adding iwm0 to cloned_interfaces. Funny how I forgot to do that and how clo= ned_interfaces just did the right thing by loading the correct modules. Sorr= y for creating confusion. -m >> Best, >> Michael >=20 > --=20 > Rod Grimes rgrimes@freebsd= .org