From owner-freebsd-current@FreeBSD.ORG Tue Jan 29 21:49:23 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DF07318F; Tue, 29 Jan 2013 21:49:23 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 2BBCF98B; Tue, 29 Jan 2013 21:49:23 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id t57so707956wey.27 for ; Tue, 29 Jan 2013 13:49:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Ww/pUTMZkw3cuAPnlbO9gi00e5H5B2fLMgh/iMgvEoI=; b=V2EqUZN1kpdxwgaVPOfYAYcqnVYNnVpsHG8ZEFLjcK1zpGFdQLbhyg5lAr4PK13C9b GWDchcfp0ERAUf0n4VbrJXmHTUCwWVanFVohKjpN1dd7Y47QxrA2HO3h/TtAEmhexfIj VzTCgzZ7OT3Ra8gmN8O0ecgTRZgS7aMd4/ow8e5pWrgzuZ4lXWaXgvN87CU8lxfpowrj uewqb3vYKcrEzaSHjktRNfRrfucVJtJucCvLuQx/rfexl6vxhCoeQzwU9K7mUtc/H4An xzdyIuXrWOx7VLU1YUgv5FPHX6QQcrvy9K3cqDNGfd2nfisEHrr/BVMopnqnsDhxjT0G 5M8g== MIME-Version: 1.0 X-Received: by 10.180.72.232 with SMTP id g8mr5218404wiv.0.1359496161730; Tue, 29 Jan 2013 13:49:21 -0800 (PST) Received: by 10.194.41.10 with HTTP; Tue, 29 Jan 2013 13:49:21 -0800 (PST) In-Reply-To: <4F6126A2.7050301@mehnert.org> References: <4E836C06.9070405@gmail.com> <4E8374A7.90105@gmail.com> <4E9BDF13.4040006@gmail.com> <4F38211D.4070305@mehnert.org> <4F40A2D4.6000000@gmail.com> <4F57A8FC.8090106@gmail.com> <20120308092234.M18590@martymac.org> <4F5AC96A.3050600@gmail.com> <4F5FE9C1.7010901@gmail.com> <4F6020C0.60405@gmail.com> <4F6126A2.7050301@mehnert.org> Date: Tue, 29 Jan 2013 21:49:21 +0000 Message-ID: Subject: Re: x220 notes From: Andrey Fesenko To: Hannes Mehnert Content-Type: text/plain; charset=UTF-8 Cc: matt , Vrachnis Ilias-Dimitrios , freebsd-current@freebsd.org, freebsd-mobile@freebsd.org, Ganael LAPLANCHE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 29 Jan 2013 21:49:23 -0000 On Wed, Mar 14, 2012 at 11:15 PM, Hannes Mehnert wrote: > Ciao, > > On 03/14/2012 00:38, matt wrote: >> I have brightness control through raw acpi..."\_BCL" and friends seem to >> do nothing. >> >> Most of the video methods differentiate between \VIGD (which seems to be >> a check for integrated graphics vs optimus, but that's still a guess) >> If \VIGD is true, brightness commands are sent to the EC, where they >> don't seem to do much yet. This is probably where we could enable >> something via EC/ibm-acpi? >> If \VIGD is false, brightness commands are handled in ACPI, although >> coarsely, via \VBRC. >> >> \VBRC seems to allow control over the backlight, at least, so those of >> you with sore eyes or the 3-cell battery may have some success using the >> acpi_call port (Danger!) >> kldload acpi_call >> acpi_call -p '\VBRC' -i n (where n is 0-10) > > Great news! Works for me. n is actually 0-16 (plus any other value which > turns the backlight off (-1 or 17 eg). > > > Thanks, > > Hannes Thanks, acpi_call -p '\VBRC' -i n [0-15] work fine, if set 17 black screen :) And other problems. 1) wi-fi standart rtl8192cu - not work change AR5B95 - work n-mode (thanks Adrian Chadd :) need hack BIOS dev.acpi_ibm.0.wlan: 1 <- read only hardware switch work, not send mesage 2) sound # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: (play/rec) pcm1: (play/rec) default pcm2: (play) pcm3: (play) pcm4: (play) sound headphones only, if set sysctl hw.snd.default_unit=0 and restart application, on's speakers (if remove headphones). Automatic switching possible? 2.2) sound control in mplayer automatic fine work multimedia key multimedia key and system mixer, and sysctl not work xev data VolUP, VolDn, mute (release event similar) KeyPress event, serial 27, synthetic NO, window 0x1e00001, root 0x120, subw 0x0, time 210234226, (623,634), root:(623,650), state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0x1e00001, root 0x120, subw 0x0, time 210235273, (623,634), root:(623,650), state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0x1e00001, root 0x120, subw 0x0, time 210241638, (623,634), root:(623,650), state 0x10, keycode 140 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False 3) ACPI work poorly 19 1 0xffffffff81f01000 37c7 acpi_video.ko 20 1 0xffffffff81f05000 330f acpi_ibm.ko 21 1 0xffffffff81f09000 1fc acpi_call.ko # sysctl -a | grep ibm acpi_ibm0: on acpi0 acpi_ibm0: detached acpi_ibm0: on acpi0 dev.acpi_ibm.0.%desc: IBM ThinkPad ACPI Extras dev.acpi_ibm.0.%driver: acpi_ibm dev.acpi_ibm.0.%location: handle=\_SB_.PCI0.LPC_.EC__.HKEY dev.acpi_ibm.0.%pnpinfo: _HID=LEN0068 _UID=0 dev.acpi_ibm.0.%parent: acpi0 dev.acpi_ibm.0.initialmask: 2060 dev.acpi_ibm.0.availmask: 134217727 dev.acpi_ibm.0.events: 1 dev.acpi_ibm.0.eventmask: 134217727 dev.acpi_ibm.0.hotkey: 3353 dev.acpi_ibm.0.lcd_brightness: 0 <- not work dev.acpi_ibm.0.volume: 0 <- not work dev.acpi_ibm.0.mute: 0 <- not work dev.acpi_ibm.0.thinklight: 0 <- work fine :) dev.acpi_ibm.0.bluetooth: 0 <- work LED (bt not use, not test) dev.acpi_ibm.0.wlan: 1 <- read only dev.acpi_ibm.0.fan_speed: 3880 <- not work or read only dev.acpi_ibm.0.fan_level: 0 dev.acpi_ibm.0.fan: 1 LED HDD may be work blink infrequently SSD :) 3) video work acceptable WITH_NEW_XORG=true WITH_KMS=true from terminal adjustable brightness acpi_call -p '\VBRC' -i n [0-15] I would like to consolidate these actions on the standard key # cat /var/run/devd.pipe !system=ACPI subsystem=IBM type=\_SB_.PCI0.LPC_.EC__.HKEY notify=0x10 ( Fn+Home) !system=ACPI subsystem=IBM type=\_SB_.PCI0.LPC_.EC__.HKEY notify=0x11 (Fn+End) 4) mouse Xorg with out config standard trackpad and other work fine if hook up USB mouse not work Jan 27 17:53:23 x220 kernel: ugen1.3: at usbus1 Jan 27 17:53:23 x220 kernel: ums0: on usbus1 Jan 27 17:53:23 x220 kernel: ums0: 8 buttons and [XYZ] coordinates ID=0 and disconnect Jan 27 17:53:42 x220 kernel: ugen1.3: at usbus1 (disconnected) Jan 27 17:53:42 x220 kernel: ums0: at uhub3, port 2, addr 3 (disconnected) 5) suspend/resume not test while, if there is a manual will be grateful Trick, to work without xorg.conf :) # cat /home/andrey/.xsession /usr/local/bin/xset +fp /usr/local/lib/X11/fonts/terminus-font/ <- need some applications xkbset -b <- hate beep setxkbmap -layout "us,ru" -option "grp:caps_toggle,grp_led:caps" <- for two layouts and indication ... <-favorite WM % uname -a FreeBSD x220.local 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r245946: Sat Jan 26 19:54:05 UTC 2013 root@x220.local:/usr/obj/usr/src/sys/W_BOOK amd64 kernel generic+wifi(n-mode) and ipfw dmesg http://www.nycbug.org/?action=dmesgd&dmesgid=2434