when i run skype or googletalk and start video-chatting, after a few minutes the whole laptop locks up, i dont get any response/reaction from any key and key combination(including caps lock).
do you know how to solve this issue? i didnt have this issue earlier, i think this is due to some updates lately. so please try it after updating.
]]>#!/bin/sh
# Default acpi script that takes an entry for all actions
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
set $*
case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
#PBTN|PWRF) logger "PowerButton pressed: $2" ;;
PBTN) /sbin/poweroff ;; #logger "PowerButton pressed: $2" ;; #works on x220t, evdev: XF86PowerOff
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/sleep)
case "$2" in
#SLPB) echo -n mem >/sys/power/state ;;
SBTN) echo -n mem >/sys/power/state ;; #Fn+F4 on x220t, evdev: XF86Sleep
*) logger "ACPI action undefined: $2" ;;
esac
;;
ac_adapter)
case "$2" in
#AC|ACAD|ADP0)
# case "$4" in
# 00000000)
# echo -n $minspeed >$setspeed
# #/etc/laptop-mode/laptop-mode start
# ;;
# 00000001)
# echo -n $maxspeed >$setspeed
# #/etc/laptop-mode/laptop-mode stop
# ;;
# esac
# ;;
#x220t gives the following on unplug/plug:
#ac_adapter ACPI0003:00 00000080 00000000
#ibm/hotkey LEN0068:00 00000080 00006040
#ibm/hotkey LEN0068:00 00000080 00006030
#thermal_zone LNXTHERM:00 00000081 00000000
#battery PNP0C0A:00 00000080 00000001
#ac_adapter ACPI0003:00 00000080 00000001
#ibm/hotkey LEN0068:00 00000080 00006040
#ibm/hotkey LEN0068:00 00000080 00006030
#thermal_zone LNXTHERM:00 00000081 00000000
#battery PNP0C0A:00 00000080 00000001
*) logger "ACPI action undefined: $2" ;;
esac
;;
battery)
case "$2" in
#x220t, haven't worked this one out yet.
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
;;
00000001) #echo "online" >/dev/tty5
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/lid)
case "$2" in
LID)
case "$3" in
close)
#echo "LID closed!">/dev/tty5
;;
open)
#echo "LID opened!">/dev/tty5
;;
*) logger "ACPI action undefined: $*" ;;
esac
;;
*) logger "ACPI action undefined: $*" ;;
esac
;;
#The following buttons are caught by ACPI on the Thinkpad X220 tablet:
#where it isn't obvious, I'll put the key combo that generates it.
#Also, I'll put some of the keycodes caught by evdev in X (you might find some additional info starting from /usr/share/X11/xkb/symbols/inet.)
button/volumeup) # + Volume, XF86AudioRaiseVolume
case "$2" in
VOLUP) volchange +2 ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/volumedown) # - Volume, XF86AudioLowerVolume
case "$2" in
VOLDN) volchange -2 ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/mute) #Mute, XF86AudioMute
case "$2" in
MUTE) amixer set Master toggle ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#note: the mic mute button doesn't register (kernel/showkey register it as keycode 248)
button/prog1) #ThinkVantage, XF86Launch1
case "$2" in
PROG1) #logger "ThinkVantage button pressed."
#Openbox config handles this one.
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#Fn+key combinations on the x220t:
button/fnf1) #Fn+F1, not registered by evdev
case "$2" in
FNF1) #logger "fnf1 button pressed."
chvt 1 #get unstuck from X in a pinch. Doesn't rely on X, unlike ctrl-alt-backspace!
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/screenlock) #Fn+F2, XF86ScreenSaver
case "$2" in
SCRNLCK) logger "screenlock button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/battery) #Fn+F3, XF86Battery, note: laptop-mode catches this too.
case "$2" in
BAT) logger "battery button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#Fn+F4 taken care of above (button/sleep SBTN)
button/wlan) #Fn+F5, XF86WLAN, note: toggles the wireless w/o using this script
case "$2" in
WLAN) logger "wlan button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#Fn+F6 not caught by ACPI. evdev: XF86WebCam
video/switchmode) #Fn+F7, XF86Display
case "$2" in
VMOD) logger "switchmode button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#Fn+F8 not caught by ACPI. XF86TouchpadToggle
button/f24) #Fn+F9, keycode 202 (NoSymbol)
case "$2" in
F24) logger "f24 button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#Fn+F10 is not caught by ACPI or evdev/X.
button/fnf11) #Fn+F11, not caught by evdev
case "$2" in
FF11) logger "fnf11 button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/suspend) #Fn+F12, XF86Suspend
case "$2" in
SUSP) logger "suspend button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#And a few more:
video/brightnessup) #Fn+Home, XF86MonBrightnessUp, works w/o script here
#note: this registers twice:
#video/brightnessup BRTUP 00000086 00000000 K
#video/brightnessup BRTUP 00000086 00000000
case "$2" in
BRTUP) #logger "brightness up button pressed."
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
video/brightnessdown) #Fn+End, XF86MonBrightnessUp, works w/o script here
#note: this registers twice:
#video/brightnessdown BRTDN 00000087 00000000 K
#video/brightnessdown BRTDN 00000087 00000000
case "$2" in
BRTDN) #logger "brightness down button pressed."
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#note: Fn+PgUp doesn't seem to be caught by ACPI or the kernel. (Keyboard light?)
button/zoom) #Fn+Space, not caught by evdev
case "$2" in
ZOOM) logger "zoom button pressed.";; #pass it on to X?
*) logger "ACPI action undefined: $2" ;;
esac
;;
cd/stop) #Fn+Up, XF86AudioStop
case "$2" in
CDSTOP) mpc stop;; #logger "Audio Stop button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
cd/play) #Fn+Down, XF86AudioPlay
case "$2" in
CDPLAY) mpc toggle;; #logger "Audio Play button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
cd/next) #Fn+Right, XF86AudioNext
case "$2" in
CDNEXT) mpc next;; #logger "Audio Next button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
cd/prev) #Fn+Left, XF86AudioPrev
case "$2" in
CDPREV) mpc prev;; #logger "Audio Stop button pressed.";;
*) logger "ACPI action undefined: $2" ;;
esac
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
esac
other notes:
evdev catches the Fn button as XF86WakeUp, and the back/forward keys as XF86Back/XF86Forward.
Fn+1 or Fn+2 register as keycode 240 with the kernel
The bezel buttons are not caught by the kernel, so I added these lines to my /etc/rc.local:
setkeycodes 0x67 171 & #set "circle arrow" bezel button keycode, so evdev reads it as XF86Tools (X220 tablet)
setkeycodes 0x6c 154 & #set "orientation button" bezel button keycode, so evdev reads it as XF86RotateWindows (X220 tablet)
It is extremely annoying because it means I can't really use PM runtime and so am shortening battery life...
]]>I notice that powering off my laptop works fine when plugged in, but does resume automatically as you describe when on battery.
]]>PowerTOP 1.98 Overview Idle stats Frequency stats Device stats Tunables
The battery reports a discharge rate of 9.71 W
Summary: 75.7 wakeups/second, 0.0 GPU ops/second and 0.0 VFS ops/sec
Usage Events/s Category Description
5.8 pkts/s Device Network interface: wlan0 (iwlwifi)
1963 rpm Device Laptop fan
539.8 µs/s 25.0 Interrupt [43] i915
75.8 µs/s 10.1 kWork ieee80211_iface_work
0.8 ms/s 9.8 Interrupt [6] tasklet(softirq)
202.4 µs/s 8.8 Timer tick_sched_timer
1.8 ms/s 4.9 Process /usr/bin/tpb -d
177.0 µs/s 4.3 Timer hrtimer_wakeup
163.9 µs/s 2.0 Process emerald --replace
279.1 µs/s 1.4 Process /home/david/.local/lib/opera/opera
136.5 µs/s 1.1 Process /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
84.2 µs/s 1.0 Process compiz --replace --sm-disable --ignore-desktop-hints ccp
33.4 µs/s 0.9 kWork iwl_bg_run_time_calib_work
46.5 µs/s 0.8 Process /usr/lib/upower/upowerd
19.5 µs/s 0.8 kWork pci_pme_list_scan
49.0 µs/s 0.5 Process Thunar --sm-client-id 22d7155a9-213d-40aa-997a-9832dd5a6056 --daemon
44.0 µs/s 0.4 Interrupt [9] acpi
4.3 µs/s 0.4 kWork mei_timer
31.6 µs/s 0.3 Process gpg-agent --daemon --enable-ssh-support --write-env-file /home/dkb/.cache/gpg-a
9.0 µs/s 0.30 Process /usr/lib/rtkit-daemon
21.5 µs/s 0.25 Process /usr/bin/Terminal
16.6 µs/s 0.25 Process xfdesktop --display :0.0 --sm-client-id 290770c3d-6aa0-45f0-9a13-36d9ed37db70
12.7 µs/s 0.20 Process init [5]
4.9 µs/s 0.20 Process [flush-8:0]
3.2 µs/s 0.20 kWork i915_gem_retire_work_handler
12.9 µs/s 0.15 Process /usr/bin/dbus-daemon --system
1.0 µs/s 0.15 Process [sync_supers]
PowerTOP 1.98 Overview Idle stats Frequency stats Device stats Tunables
>> Bad Enable Audio codec power management
Bad Power Aware CPU scheduler
Bad VM writeback timeout
Bad Wake-on-lan status for device eth0
Good Wireless Power Saving for interface wlan0
Good Enable SATA link power management for /dev/sda
Good NMI watchdog should be turned off
Good Autosuspend for USB device EHCI Host Controller [usb1]
Good Autosuspend for USB device EHCI Host Controller [usb2]
Good Autosuspend for unknown USB device 1-1 (8087:0024)
Good Autosuspend for unknown USB device 2-1 (8087:0024)
Good Autosuspend for USB device Biometric Coprocessor [UPEK]
Good Autosuspend for USB device Integrated Camera [Chicony Electronics Co., Ltd.]
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
Good Runtime PM for PCI Device Ricoh Co Ltd MMC/SD Host Controller
Good Runtime PM for PCI Device Intel Corporation Centrino Advanced-N 6205
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller
Good Runtime PM for PCI Device Intel Corporation 82579LM Gigabit Network Connection
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4
Good Runtime PM for PCI Device Intel Corporation 2nd Generation Core Processor Family DRAM Controller
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2
Good Runtime PM for PCI Device Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1
Good Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family KT Controller
Good Wake-on-lan status for device wlan0
Good Using 'ondemand' cpufreq governor
This is after waiting a minute or two for things to settle down. This is at full brightness with WiFi on, my browser open, a couple of terminal windows open, and thunar file manager open. Using XFCE with Compiz.
EDIT: I toggled the 4 "Bad" tunables above to "Good". Didn't make any significant differerence. Maybe a 10th of a point or 2.
]]>Can you perhaps try installing powertop2 now, because the package is patched...
patching file Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 38 with fuzz 2.
gcc -o csstoh csstoh.c
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1: error while loading shared libraries: libcloog-isl.so.2: cannot open shared object file: No such file or directory
make: *** [csstoh] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Not yet ready for primetime.
EDIT: It was I that was not ready for primetime. Googled the error and found out I did not have multilib enabled in the pacman.conf file (as it was previously) after a recent pacman update.
]]>Not sure it's so straightforward in Arch. In my experience, using the Fn + hotkey combos doesn't work out of the box in Arch. You have to edit /etc/acpi/handler.sh. Haven't got around to figuring out exactly how to edit it yet.
https://wiki.archlinux.org/index.php/Acpid
I think there is a BIOS setting to change what the switch does. You could have the switch apply to BT and the key apply to wireless.
]]># uname -a
Linux myhost 3.2.6-2-ARCH #1 SMP PREEMPT Thu Feb 16 10:10:02 CET 2012 x86_64 Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz GenuineIntel GNU/Linux
I am showing 1 watt power consumption on battery (I believe that is off by a factor of 10). So 10 watts power consumption at full brightness is what I am getting on my X220 Core i5 2540M / 2.6 GHz. This is with Powertop. I had Powertop2 installed from AUR, but the last set of updates broke it. Uninstalled Powertop2 and replaced with Powertop.
]]>I do not know how and why, but today my battery lasted about 7 hours ( on 6cell), maybe because of an update. haven't changed anything.
]]>My boot parameters are pcie_aspm=force i915.i915_enable_rc6=1 i915.lvds_downclock=1 i915.i915_enable_fbc=1 acpi_backlight=vendor
(the latter disables the auto backlight dim, you may not want that) Some of these may no longer be applicable on 3.2.5.
Another thing is to install powertop2 from AUR, use right arrow to navigate to 'Tunables' and set them all to 'Good', if you haven't already
]]>