x220 notes
Andrey Fesenko
f0andrey at gmail.com
Tue Jan 29 21:49:23 UTC 2013
On Wed, Mar 14, 2012 at 11:15 PM, Hannes Mehnert <hannes at mehnert.org> 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: <Conexant CX20590 (Analog)> (play/rec)
pcm1: <Conexant CX20590 (Analog)> (play/rec) default
pcm2: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm4: <Intel Cougar Point (HDMI/DP 8ch)> (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: <IBM ThinkPad ACPI Extras> on acpi0
acpi_ibm0: detached
acpi_ibm0: <IBM ThinkPad ACPI Extras> 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: <A4Tech> at usbus1
Jan 27 17:53:23 x220 kernel: ums0: <A4Tech USB Mouse, class 0/0, rev
1.10/0.14, addr 3> 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: <A4Tech> 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 at 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
More information about the freebsd-mobile
mailing list