Laptop-mode kills boot process on battery

hej,
when my laptop (acer tm 4502lci) is on battery it fails to boot because of laptop-mode.
the boot process simply stops while indicating that laptop-mode is busy.
when on AC this problem does not occur.
any idea why that is?
thanks

yes i can, but which is the file of interest?

Similar Messages

  • Laptop-mode doesn't want to start when work on AC

    Hi all,
    I've noticed, than dispite I've set ENABLE_LAPTOP_MODE_ON_AC variable in /etc/laptop-mode/laptop-mode.conf on 1, when I'm switching on my laptop being on AC power, laptop-mode is not actually activated.
    So, if I check /proc/sys/vm/laptop-mode, I'll get 0 value. After rc.d restart laptop-mode or after workin on battery, everything is ok, and cat /proc/sys/vm/laptop-mode prints 2.
    Does anyone faced with this problem? May be, there is a way to make laptop-mode daemon do restart on system boot?
    Thank you!

    flan_suse wrote:Do you have acpid installed and acpid in your DAEMONS array? I would also place acpid before laptop-mode in the DAEMONS array.
    Sure.
    But today I've noticed, that laptop-mode is actually running before I login KDE. Looks like a problem is in KDE power management tools.

  • XServe and 10.5 won't boot..."syncing disks killing all processes"

    Hey Everybody,
    Have an Xserve Intel Quad-Core Xenon 2.8 GHz, 80gb, 2 Gb RAM. 10.5 Server.
    2 Gb of RAM has been anemic. The server runs a few Cold Fusion Web Sites, DNS, OD, FTP, AFP, and Mail Services. Our mail is not light duty as we send out almost daily 70,000 e-mails to our customers.
    Last week I added 2 x 4gb DIMM to bring up the RAM to 10 Gb. I added the RAM to slots 3 & 4. Saw great improvement right away. The night after, I noticed the server rebooted during the night. (Didn't look into why )
    Well, I came in this morning and was checking up on the server (via ARD) and couldn't connect. Went to the server room and saw the machine was off. Not good. I restarted it and went back to my office. Checked again on ARD, and still wasn't available. Went back to server, rebooted in verbose mode (after booting with a monitor and seeing the screen show the apple with the spinning gear) and It's hanging then shutting down within three minutes of boot.
    Attached is a pic of what is shown, at around 3 minutes from boot the screen will then say "syncing disks killing all processes" and the server shuts down.
    I've googled all morning and have tried various methods to boot to no avail.
    I removed the RAM that I added and the problem persists. I also removed the drive sled and reinserted it into the xserve and also tried bay 2.
    Other things...
    Yesterday added two more web sites and the DNS for it in Server Admin.
    Any suggestions? Bad drive?
    Shaun

    OK, having exactly same issue - but on a much older and much less duty machine. Dual G4 1Ghz running 10.5 Server. Noticed that I could not connect via ARD and did hard shutdown, notice identifier light was on as well. The system did reboot as I could get my mail, but when I connected a monitor to it all I had was gray screen.
    Did another hard shutdown after pressing IL and not just gets to logo and spinning wheel for a short while and shuts down.
    It has been up and running flawlessly for long time prior to this.
    My name is Sean too, maybe that is the issue...

  • Laptop mode -- where to find error messages on boot

    Hi guys,
    I get some error messages when booting. I have the time to read that they are related to laptop-mode, but they quickly disappear.
    I have activated the ENABLE_LAPTOP_MODE_TOOLS in my laptop-mode.conf file, but I can't find the error messages in /var/log :
    /var/log » ll nico@cotier
    total 2152
    -rw-r--r-- 1 root users 24082 20 mars 11:30 Xorg.0.log
    -rw-r--r-- 1 root users 24084 20 mars 10:35 Xorg.0.log.old
    -rw-r--r-- 1 root users 28050 1 juin 2013 Xorg.1.log
    -rw-r--r-- 1 root users 27492 1 juin 2013 Xorg.1.log.old
    -rw-r--r-- 1 root bumblebee 13679 1 juin 2013 Xorg.8.log
    -rw------- 1 root utmp 18816 20 mars 10:18 btmp
    -rw------- 1 root root 32032 20 mars 11:29 faillog
    drwxr-xr-x 2 root root 4096 16 juin 2013 httpd
    drwxr-sr-x+ 3 root systemd-journal 4096 1 juin 2013 journal
    -rw-r--r-- 1 root root 292292 20 mars 11:29 lastlog
    drwxr-xr-x 2 root root 4096 14 mars 2013 old
    -rw-r--r-- 1 root root 159892 19 mars 14:55 pacman.log
    -rw-r--r-- 1 root root 77572 5 oct. 00:47 pm-powersave.log
    -rw-r--r-- 1 root root 3586 1 juin 2013 slim.log
    drwxr-xr-x 2 root root 4096 9 mars 2013 speech-dispatcher
    -rw-rw-r-- 1 root utmp 1745280 20 mars 11:45 wtmp
    Do you know where they might be?
    Thanks!

    grep all these logs and systemd's journal.
    If you have 'quiet' on the kernel line of your bootloader, remove it.
    Last edited by karol (2014-03-20 11:52:42)

  • Dv 6809wm laptop. Computer still does not boot up when battery out and ac adapter plugged in?

    dv 6809wm laptop. Computer still does not boot up when battery out and ac adapter plugged in?
    It lights up initially for a split second when I push power button, but does not continue to boot up. When ac adaptor is put in it glows blue like it is supposed to. Any suggestions?

    i'm going to try to see if a different ac adaptor will work hopefully that solves the issue.

  • Slow boot with systemd due to NetworkManager and laptop-mode-tools

    ernestas ~ $ systemd-analyze blame
    25787ms NetworkManager.service
      3440ms laptop-mode-tools.service
      1792ms systemd-logind.service
      1573ms systemd-modules-load.service
      1519ms home.mount
      1305ms polkit.service
       977ms systemd-udevd.service
       903ms systemd-sysctl.servic
    What could be the underlying problem? How do I solve it?

    Okay. I no longer use laptop-mode-tools, but NetworkManager still seems to be slow:
    ernestas ~ $ systemd-analyze blame
      3592ms NetworkManager.service
      3013ms systemd-logind.service
       869ms dev-sda7.swap
       762ms home.mount
       666ms systemd-modules-load.service
       546ms systemd-udev-trigger.service
       523ms systemd-udevd.service
       500ms dev-hugepages.mount
       479ms sys-kernel-debug.mount
    Last edited by ernetas (2012-11-03 16:01:44)

  • Laptop-mode: Failed

    Hey there
    I recently installed laptop-mode-tools on my dell vostro 1520. I seems to work pretty good, however my error log shows me "laptop-mode: Failed". So my question is now, what does this mean an what could cause this error?
    Below is a verbose output of a laptop-mode start process:
    Nov 7 10:17:49 localhost laptop-mode: Determining power state from /sys/class/power_supply/ACAD/online.
    Nov 7 10:17:49 localhost laptop-mode: Not trying other options, already found a power supply.
    Nov 7 10:17:49 localhost laptop-mode: Battery level polling is disabled.
    Nov 7 10:17:49 localhost laptop-mode: Prelim lock acquisition on descriptor 8 with pid 3028
    Nov 7 10:17:49 localhost laptop-mode: Prelim lock acquisition on descriptor 9 with pid 3028
    Nov 7 10:17:49 localhost laptop-mode: Now invoking lmt_main_function with arguments -- auto
    Nov 7 10:17:49 localhost laptop-mode: On AC power: Deactivating, because ENABLE_LAPTOP_MODE_ON_AC is not set.
    Nov 7 10:17:49 localhost laptop-mode: Laptop mode
    Nov 7 10:17:49 localhost laptop-mode: Checking if desired state is different from current state.
    Nov 7 10:17:49 localhost laptop-mode: enabled, not active
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/ac97-powersave.
    Nov 7 10:17:49 localhost laptop-mode: AC97 power saving is not available. Perhaps CONFIG_SND_AC97_POWER_SAVE option
    Nov 7 10:17:49 localhost laptop-mode: is not set in the kernel config, or the snd_ac97_codec module is not loaded.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/battery-level-polling.
    Nov 7 10:17:49 localhost laptop-mode: Battery level polling is disabled.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/bluetooth.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/configuration-file-control.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/cpufreq.
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu0 to 2534000.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 2534000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu0 to 800000.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu0 to ondemand.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    Nov 7 10:17:49 localhost laptop-mode: Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu0.
    Nov 7 10:17:49 localhost laptop-mode: File /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load does not exist.
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu1 to 2534000.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 2534000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu1 to 800000.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 800000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu1 to ondemand.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
    Nov 7 10:17:49 localhost laptop-mode: Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu1.
    Nov 7 10:17:49 localhost laptop-mode: File /sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load does not exist.
    Nov 7 10:17:49 localhost laptop-mode: Setting CPU ignore_nice_load for all cpus
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/dpms-standby.
    Nov 7 10:17:49 localhost laptop-mode: Determining Xauthority for display 0
    Nov 7 10:17:49 localhost laptop-mode: Set screen :0 for the user roman to standby in 1200 s, suspend in 1500 s, powerdown in 1800 s using Xauthority /home/roman/.Xauthority
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/eee-superhe.
    Nov 7 10:17:49 localhost laptop-mode: Control file is /sys/devices/platform/eeepc/cpufv
    Nov 7 10:17:49 localhost laptop-mode: Platform does not support SuperHe
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/ethernet.
    Nov 7 10:17:49 localhost laptop-mode: ethernet: /sys/devices/pci0000:00/0000:00:1c.1/0000:08:00.0/net/eth0
    Nov 7 10:17:49 localhost laptop-mode: ethernet: /sys/devices/pci0000:00/0000:00:1c.1/0000:08:00.0
    Nov 7 10:17:49 localhost laptop-mode: /usr/share/laptop-mode-tools/modules/ethernet: line 74: ethtool: command not found
    Nov 7 10:17:49 localhost laptop-mode: Could not enable wakeup-on-LAN for eth0
    Nov 7 10:17:49 localhost laptop-mode: /usr/share/laptop-mode-tools/modules/ethernet: line 135: ethtool: command not found
    Nov 7 10:17:49 localhost laptop-mode: Could not set auto-negotiation to on for eth0
    Nov 7 10:17:49 localhost laptop-mode: /usr/share/laptop-mode-tools/modules/ethernet: line 145: ethtool: command not found
    Nov 7 10:17:49 localhost laptop-mode: Could not restore speed for eth0
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/exec-commands.
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Executing comand
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/hal-polling.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/hdparm.
    Nov 7 10:17:49 localhost laptop-mode: Setting powermanagement on drives to 254.
    Nov 7 10:17:49 localhost laptop-mode: Querying /dev/sda media type using udevinfo:
    Nov 7 10:17:49 localhost laptop-mode: type 'disk' on bus 'ata' detected
    Nov 7 10:17:49 localhost laptop-mode: Querying /dev/sda media type using udevinfo:
    Nov 7 10:17:49 localhost laptop-mode: type 'disk' on bus 'ata' detected
    Nov 7 10:17:49 localhost laptop-mode: Executing: hdparm -B 254 /dev/sda
    Nov 7 10:17:49 localhost laptop-mode:
    Nov 7 10:17:49 localhost laptop-mode: Setting spindown timeout on drives to 7200 seconds.
    Nov 7 10:17:49 localhost laptop-mode: (hdparm configuration value = 244.)
    Nov 7 10:17:49 localhost laptop-mode: Querying /dev/sda media type using udevinfo:
    Nov 7 10:17:49 localhost laptop-mode: type 'disk' on bus 'ata' detected
    Nov 7 10:17:49 localhost laptop-mode: Querying /dev/sda media type using udevinfo:
    Nov 7 10:17:49 localhost laptop-mode: type 'disk' on bus 'ata' detected
    Nov 7 10:17:49 localhost laptop-mode: Executing: hdparm -S 244 /dev/sda
    Nov 7 10:17:49 localhost laptop-mode:
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/intel-hda-powersave.
    Nov 7 10:17:49 localhost laptop-mode: Intel HDA power save mode disabled.
    Nov 7 10:17:49 localhost laptop-mode: Intel HDA Controller power save set to N.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/intel-sata-powermgmt.
    Nov 7 10:17:49 localhost laptop-mode: Intel SATA link power saving set to max_performance for /sys/class/scsi_host/host0/link_power_management_policy.
    Nov 7 10:17:49 localhost laptop-mode: Intel SATA link power saving set to max_performance for /sys/class/scsi_host/host1/link_power_management_policy.
    Nov 7 10:17:49 localhost laptop-mode: Intel SATA link power saving set to max_performance for /sys/class/scsi_host/host2/link_power_management_policy.
    Nov 7 10:17:49 localhost laptop-mode: Intel SATA link power saving set to max_performance for /sys/class/scsi_host/host3/link_power_management_policy.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/laptop-mode.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 0 > /proc/sys/vm/laptop_mode
    Nov 7 10:17:49 localhost laptop-mode: Adjusting 2.6+ kernel parameters to disable laptop mode.
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 500 > /proc/sys/vm/dirty_writeback_centisecs
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 3000 > /proc/sys/vm/dirty_expire_centisecs
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 40 > /proc/sys/vm/dirty_ratio
    Nov 7 10:17:49 localhost laptop-mode: Executing: echo 10 > /proc/sys/vm/dirty_background_ratio
    Nov 7 10:17:49 localhost laptop-mode: Remounting filesystems.
    Nov 7 10:17:49 localhost laptop-mode: proc not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /proc not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking proc against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: sys not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /sys not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking sys against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: udev not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /dev not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking udev against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: run not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /run not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking run against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: /dev/disk/by-uuid/eee19e9b-0c32-452e-adb3-a43880fa4f7f not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: / not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking /dev/disk/by-uuid/eee19e9b-0c32-452e-adb3-a43880fa4f7f against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: devpts not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /dev/pts not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking devpts against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: shm not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /dev/shm not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking shm against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: tmpfs not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /tmp not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking tmpfs against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: /dev/sda1 not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /boot not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking /dev/sda1 against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: /dev/sda1 contains /dev/sda, which is in HD, so we will remount it.
    Nov 7 10:17:49 localhost laptop-mode: Original options: rw
    Nov 7 10:17:49 localhost laptop-mode: Reducing file system type.
    Nov 7 10:17:49 localhost laptop-mode: No saved mount options, so apparently we never remounted this filesystem during this session.
    Nov 7 10:17:49 localhost laptop-mode: Not remounting.
    Nov 7 10:17:49 localhost laptop-mode: Executing: /sbin/blockdev --setfra 256 /dev/sda1
    Nov 7 10:17:49 localhost laptop-mode: /dev/sda4 not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: /home not found in PARTITIONS.
    Nov 7 10:17:49 localhost laptop-mode: Checking /dev/sda4 against HD because PARTITIONS contains "auto".
    Nov 7 10:17:49 localhost laptop-mode: Considering /dev/sda.
    Nov 7 10:17:49 localhost laptop-mode: /dev/sda4 contains /dev/sda, which is in HD, so we will remount it.
    Nov 7 10:17:49 localhost laptop-mode: Original options: rw,commit=0
    Nov 7 10:17:49 localhost laptop-mode: Reducing file system type.
    Nov 7 10:17:49 localhost laptop-mode: No saved mount options, so apparently we never remounted this filesystem during this session.
    Nov 7 10:17:49 localhost laptop-mode: Not remounting.
    Nov 7 10:17:49 localhost laptop-mode: Executing: /sbin/blockdev --setfra 256 /dev/sda4
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/lcd-brightness.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/nmi-watchdog.
    Nov 7 10:17:49 localhost laptop-mode: On AC power: setting NMI Watchdog Timer to 1
    Nov 7 10:17:49 localhost laptop-mode: NMI Watchdog timer enabled
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/runtime-pm.
    Nov 7 10:17:49 localhost laptop-mode: Activating Runtime PM for device type PCI
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:00.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:01.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1a.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1a.1
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1a.2
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1a.7
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1b.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.1
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.2
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.3
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.4
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.5
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1d.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1d.1
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1d.2
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1d.7
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1e.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.2
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.3
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:01:00.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:08:00.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:0e:00.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:1a:00.0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:1a:00.1
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/pci/devices/0000:1a:00.2
    Nov 7 10:17:49 localhost laptop-mode: Activating Runtime PM for device type SPI
    Nov 7 10:17:49 localhost laptop-mode: /sys/bus/spi/devices/* does not support Runtime PM
    Nov 7 10:17:49 localhost laptop-mode: Activating Runtime PM for device type i2c
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-0
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-1
    Nov 7 10:17:49 localhost laptop-mode: Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-2
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/sched-mc-power-savings.
    Nov 7 10:17:49 localhost laptop-mode: On AC power: setting scheduler power saving to 0.
    Nov 7 10:17:49 localhost laptop-mode: Scheduler power saving is not available.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/sched-smt-power-savings.
    Nov 7 10:17:49 localhost laptop-mode: On AC power: setting scheduler power saving to 0.
    Nov 7 10:17:49 localhost laptop-mode: Scheduler SMT power saving is not available.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/start-stop-programs.
    Nov 7 10:17:49 localhost laptop-mode: START_SERVICES =
    Nov 7 10:17:49 localhost laptop-mode: STOP_SERVICES =
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/syslog-conf.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/terminal-blanking.
    Nov 7 10:17:49 localhost laptop-mode: Set terminal blanking timeout to 10 min, powerdown timeout to 50 min.
    Nov 7 10:17:49 localhost laptop-mode: Terminal /dev/tty1 found, adjusting.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/usb-autosuspend.
    Nov 7 10:17:49 localhost laptop-mode: Disabling autosuspend mode for USBCORE Controller, with timeout 0.
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 1-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 1-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 2-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 2-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device 2-2.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device 2-2.
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 2-2:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 2-2:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 2-2:1.1
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 2-2:1.1
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 3-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 3-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 4-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 4-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device 4-1.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device 4-1.
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 4-1:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 4-1:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 4-1:1.1
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 4-1:1.1
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 5-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 5-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 6-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 6-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 7-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 7-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-0:1.0
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device 8-1.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device 8-1.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device 8-1.1.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device 8-1.1.
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1.1:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1.1:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1.1:1.1
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1.1:1.1
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1.1:1.2
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1.1:1.2
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1.1:1.3
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1.1:1.3
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device 8-1.2.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device 8-1.2.
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1.2:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1.2:1.0
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device 8-1.3.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device 8-1.3.
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1.3:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1.3:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not disabling auto suspend mode for usb device 8-1:1.0
    Nov 7 10:17:49 localhost laptop-mode: Not enabling ON power level for usb device 8-1:1.0
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb1.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb1.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb2.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb2.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb3.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb3.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb4.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb4.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb5.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb5.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb6.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb6.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb7.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb7.
    Nov 7 10:17:49 localhost laptop-mode: Disabling auto suspend mode for usb device usb8.
    Nov 7 10:17:49 localhost laptop-mode: Enabling ON power level for usb device usb8.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/video-out.
    Nov 7 10:17:49 localhost laptop-mode: video-out module is disabled.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/wireless-ipw-power.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/wireless-iwl-power.
    Nov 7 10:17:49 localhost laptop-mode: Setting power levels for iwlwifi wireless interfaces.
    Nov 7 10:17:49 localhost laptop-mode: Invoking module /usr/share/laptop-mode-tools/modules/wireless-power.
    Nov 7 10:17:49 localhost laptop-mode: Setting power saving for generic wireless interfaces.
    Nov 7 10:17:49 localhost laptop-mode: On AC power: setting power saving mode for wlan0 to off.
    Nov 7 10:17:49 localhost laptop-mode: Failed.
    Nov 7 10:17:49 localhost laptop-mode: Module /usr/local/lib/laptop-mode-tools/modules/* is not executable or is to be skipped.
    Nov 7 10:17:49 localhost laptop-mode: Module /usr/local/share/laptop-mode-tools/modules/* is not executable or is to be skipped.
    Nov 7 10:17:49 localhost laptop-mode: Module /etc/laptop-mode/modules/* is not executable or is to be skipped.

    Try to reproduce:
    $ sudo iwconfig wlan0 power on
    Error for wireless request "Set Power Management" (8B2C) :
    SET failed on device wlan0 ; Operation not supported.
    This may mean that power management on the wlan hardware is not supported, and we should turn it off in /etc/laptop-mode/conf.d/wireless-power.conf:
    CONTROL_WIRELESS_POWER_SAVING=0
    Now I don't get the error anymore, and still in hope wireless saves power automagically.
    PS.
    Odd is that /etc/laptop-mode/modules/ is empty as all the other dirs mentioned in 3 latter log items.

  • Laptop-mode-tools fixes and improvements

    I have been in contact with the autor of laptop-mode-tools and new version is coming some time next month or maybe even in March. So I decided to share my tweaks because some things are broken right now and some need improvements.
    There are some modules I don't use and so didn't notice any problems with them, if there are any (lcd-brightness, video-out and those for which I don't have suitable hardware like cpufreq, iwl/ipw and sched-mc).
    Alright then, first is the problem with systems where the battery doesn't report events and has no alarm support on which the auto-hibernate module depends. There is a script from gentoo-wiki which is quite popular among people with lousy batteries. It would be great if the package manager would take care of it for us. Author of laptop-mode-tools also said (on debian lists) that such script could be included in future versions, for now the common "solution" is to create a cronjob that calls /usr/sbin/laptop_mode every few minutes. I don't quite like it compared to the gentoo script. For now I include the script in the package as /usr/sbin/battery_mode and call it from rc.local on boot.
    Currently there is a module called ac97-powersave that controls power management on those sound cards. Intel HDA sound cards also support this and in the future versions a module them will probably be included. For now I patch the ac97-powersave module to include the support for Intel HDA.
    Bluetooth module removes bluetooth and hci_usb modules when disabling the device. However on my system it's not enough to completly turn it off. For now I patch the bluetooth module to include rfkill support. Only then the system reports a USB disconnect and the LED goes off. The default path in the patch is for my acer system with acer-wmi rfkill support.
    Due to w differences the dpms-standby module is broken on many systems. The module uses xset and arguments are piped from the command w -hs where the third field is supposed to be DPMS_SCREEN but it's actually IDLE time, so xset command fails because the argument passed to xset -d is something like 4:54. On Debian/Ubuntu they went around this by including this in their acpi-support package. I didn't bother to see what they actually did, to backport it. It should be done in future laptop-mode-tools anyway. For now I just hardcode the display value for my single-user/one-X-screen system in the dpms-standby module.
    Due to a simple mistake LM_VERBOSE was broken. Meaning that none of those informative status messages from laptop-mode-tools were logged when VERBOSE LOGGING was enabled. Only the output of called commands was logged. For now I fix this in the build process.
    Speaking of logging, default output for verbose is /dev/stdout, and I would like to log everything to a file. So I modify it in the build process to log everything to /var/log/laptop-mode.log, and also include a logrotate script in the package. With the above fix I have a complete and informative log file.
    It's not a bad idea to stop/restart laptop-mode-tools when suspending, so a pm-utils hook is helpful. Arch PKGBUILD already includes installing pm-utils support but it's actually pbbuttonsd/pmud support and not pm-utils. Such a script/hook could one day be included in laptop-mode-tools however there is/was a debate going if it's their job to provide it. I read somewhere that Ubuntu already provides such script/hook but I'm not sure if it's provided by acpi-support or laptop-mode-tools package. For now I wrote my own pm-utils hook and I include it in the build process.
    Powertop suggests usbcore.autosuspend=1 sysctl, but it would be nice if we have all this power management control in one place. Usb-autosuspend module will be included in future versions of laptop-mode-tools, but for now someone wrote a module and posted it to the Debian bug tracker. I keep the module and configuration in my build dir but don't include it in the final package for now. I'll wait a bit and see how things will develop.
    To help you start hacking on laptop-mode-tools you can take a look at all the above patches and my PKGBUILD. Every step is documented in PKGBUILD comments, and please do check them because some things I patch but some I modify inline with sed. I also don't install acpid handlers and before mentioned false pm-utils support... everything is commented: http://sysphere.org/~anrxc/local/softwa … ode-tools/

    Hello,
    this was one year ago, and I helped the author improve these things. Today I don't have to patch my laptop-mode-tools... (I still do with some minor things, but that's just to satisfy some personal preferences . Use the arch package, even the battery polling helper is included.

  • Start/stop user programs with laptop-mode

    Hi,
    i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac.
    I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas?
    #!/bin/bash
    case "$1" in
    start)
    su pschw -c
    /opt/dropbox/dropbox &
    stop)
    killall dropbox
    echo failed!
    esac

    Hi,
    i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac.
    I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas?
    #!/bin/bash
    case "$1" in
    start)
    su pschw -c
    /opt/dropbox/dropbox &
    stop)
    killall dropbox
    echo failed!
    esac

  • [Solved] Laptop hangs at boot.

    Hi,
    Since today, my laptop hangs at boot (after I input my password for disk encryption). If I boot without 'quiet' the last message is "Started LVM2 PV scan on device 254:0" as well as some messages about Bluetooth. After these, simply nothing happens.
    The last change I made to my system before this problem started to occur was to patch xf86-input-synaptics with this patch for palm detection: https://gist.github.com/silverhammermba … caa63c86f1 I'm not sure if this is related, but I can't think of anything else I changed.
    Is there a way I can at least get a shell so I can view dmesg output or try to revert to the default synaptics driver?
    Regards,
    wo0p
    Last edited by wo0p (2015-06-19 21:06:53)

    Thanks, I managed to get to a shell using CTRL + ALT + F2. I was certain I tried that, but I might have been hitting CTRL + ALT + 2 the whole time, quite embarrassing...
    Can I just revert to the repository version of xf86-input-synaptics by removing it with pacman -R and then reinstalling with pacman -S ? If so, this doesn't fix my problem.
    I looked through dmesg and the journal but couldn't see any errors. Is there something I missed?
    EDIT: Thanks for the help, I think the problem was that installing the package had created a config (with .pacnew) in the /etc/X11/xorg.conf.d/ directory which caused the problems.
    I would still like to know if I can revert to the repository version of a package in the way I outlined above though.
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.0.5-1-ARCH (builduser@tobias) (gcc version 5.1.0 (GCC) ) #1 SMP PREEMPT Sat Jun 6 18:37:49 CEST 2015
    [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=abe988d4-2da5-481b-a713-939e77dfb317 rw cryptdevice=/dev/sda3:luks:allow-discards quiet i915.enable_execlists=0
    [ 0.000000] e820: BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
    [ 0.000000] BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x0000000000059000-0x000000000009dfff] usable
    [ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000c71d9fff] usable
    [ 0.000000] BIOS-e820: [mem 0x00000000c71da000-0x00000000c7541fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000c7542000-0x00000000caa82fff] usable
    [ 0.000000] BIOS-e820: [mem 0x00000000caa83000-0x00000000caae1fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000caae2000-0x00000000cb2e3fff] usable
    [ 0.000000] BIOS-e820: [mem 0x00000000cb2e4000-0x00000000cc46bfff] ACPI NVS
    [ 0.000000] BIOS-e820: [mem 0x00000000cc46c000-0x00000000ccee4fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000ccee5000-0x00000000ccffefff] type 20
    [ 0.000000] BIOS-e820: [mem 0x00000000ccfff000-0x00000000ccffffff] usable
    [ 0.000000] BIOS-e820: [mem 0x00000000cd800000-0x00000000cfffffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000fed00000-0x00000000fed03fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
    [ 0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
    [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000022effffff] usable
    [ 0.000000] NX (Execute Disable) protection: active
    [ 0.000000] efi: EFI v2.40 by American Megatrends
    [ 0.000000] efi: ACPI=0xcb6e8000 ACPI 2.0=0xcb6e8000 SMBIOS=0xcce2d998
    [ 0.000000] efi: mem00: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x0000000000000000-0x0000000000058000) (0MB)
    [ 0.000000] efi: mem01: [Reserved | | | | | |WB|WT|WC|UC] range=[0x0000000000058000-0x0000000000059000) (0MB)
    [ 0.000000] efi: mem02: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x0000000000059000-0x000000000009e000) (0MB)
    [ 0.000000] efi: mem03: [Reserved | | | | | |WB|WT|WC|UC] range=[0x000000000009e000-0x00000000000a0000) (0MB)
    [ 0.000000] efi: mem04: [Loader Data | | | | | |WB|WT|WC|UC] range=[0x0000000000100000-0x0000000000f29000) (14MB)
    [ 0.000000] efi: mem05: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x0000000000f29000-0x0000000010000000) (240MB)
    [ 0.000000] efi: mem06: [Boot Code | | | | | |WB|WT|WC|UC] range=[0x0000000010000000-0x000000001000b000) (0MB)
    [ 0.000000] efi: mem07: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x000000001000b000-0x000000003675a000) (615MB)
    [ 0.000000] efi: mem08: [Loader Data | | | | | |WB|WT|WC|UC] range=[0x000000003675a000-0x00000000373a5000) (12MB)
    [ 0.000000] efi: mem09: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x00000000373a5000-0x000000008da14000) (1382MB)
    [ 0.000000] efi: mem10: [Loader Data | | | | | |WB|WT|WC|UC] range=[0x000000008da14000-0x00000000bf558000) (795MB)
    [ 0.000000] efi: mem11: [Boot Data | | | | | |WB|WT|WC|UC] range=[0x00000000bf558000-0x00000000bf598000) (0MB)
    [ 0.000000] efi: mem12: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x00000000bf598000-0x00000000c62f8000) (109MB)
    [ 0.000000] efi: mem13: [Loader Code | | | | | |WB|WT|WC|UC] range=[0x00000000c62f8000-0x00000000c6316000) (0MB)
    [ 0.000000] efi: mem14: [Boot Data | | | | | |WB|WT|WC|UC] range=[0x00000000c6316000-0x00000000c71da000) (14MB)
    [ 0.000000] efi: mem15: [Runtime Data |RUN| | | | |WB|WT|WC|UC] range=[0x00000000c71da000-0x00000000c7542000) (3MB)
    [ 0.000000] efi: mem16: [Boot Data | | | | | |WB|WT|WC|UC] range=[0x00000000c7542000-0x00000000c7548000) (0MB)
    [ 0.000000] efi: mem17: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x00000000c7548000-0x00000000c8419000) (14MB)
    [ 0.000000] efi: mem18: [Boot Data | | | | | |WB|WT|WC|UC] range=[0x00000000c8419000-0x00000000ca483000) (32MB)
    [ 0.000000] efi: mem19: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x00000000ca483000-0x00000000ca7de000) (3MB)
    [ 0.000000] efi: mem20: [Boot Code | | | | | |WB|WT|WC|UC] range=[0x00000000ca7de000-0x00000000caa83000) (2MB)
    [ 0.000000] efi: mem21: [Reserved | | | | | |WB|WT|WC|UC] range=[0x00000000caa83000-0x00000000caae2000) (0MB)
    [ 0.000000] efi: mem22: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x00000000caae2000-0x00000000cb2da000) (7MB)
    [ 0.000000] efi: mem23: [Loader Data | | | | | |WB|WT|WC|UC] range=[0x00000000cb2da000-0x00000000cb2e4000) (0MB)
    [ 0.000000] efi: mem24: [ACPI Memory NVS | | | | | |WB|WT|WC|UC] range=[0x00000000cb2e4000-0x00000000cc46c000) (17MB)
    [ 0.000000] efi: mem25: [Runtime Data |RUN| | | | |WB|WT|WC|UC] range=[0x00000000cc46c000-0x00000000ccee5000) (10MB)
    [ 0.000000] efi: mem26: [Runtime Code |RUN| | | | |WB|WT|WC|UC] range=[0x00000000ccee5000-0x00000000ccfff000) (1MB)
    [ 0.000000] efi: mem27: [Boot Data | | | | | |WB|WT|WC|UC] range=[0x00000000ccfff000-0x00000000cd000000) (0MB)
    [ 0.000000] efi: mem28: [Conventional Memory| | | | | |WB|WT|WC|UC] range=[0x0000000100000000-0x000000022f000000) (4848MB)
    [ 0.000000] efi: mem29: [Reserved | | | | | | | | | ] range=[0x00000000cd800000-0x00000000d0000000) (40MB)
    [ 0.000000] efi: mem30: [Memory Mapped I/O |RUN| | | | | | | |UC] range=[0x00000000f8000000-0x00000000fc000000) (64MB)
    [ 0.000000] efi: mem31: [Memory Mapped I/O |RUN| | | | | | | |UC] range=[0x00000000fec00000-0x00000000fec01000) (0MB)
    [ 0.000000] efi: mem32: [Memory Mapped I/O |RUN| | | | | | | |UC] range=[0x00000000fed00000-0x00000000fed04000) (0MB)
    [ 0.000000] efi: mem33: [Memory Mapped I/O |RUN| | | | | | | |UC] range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
    [ 0.000000] efi: mem34: [Memory Mapped I/O |RUN| | | | | | | |UC] range=[0x00000000fee00000-0x00000000fee01000) (0MB)
    [ 0.000000] efi: mem35: [Memory Mapped I/O |RUN| | | | | | | |UC] range=[0x00000000ff000000-0x0000000100000000) (16MB)
    [ 0.000000] SMBIOS 2.8 present.
    [ 0.000000] DMI: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.203 12/10/2014
    [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
    [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
    [ 0.000000] AGP: No AGP bridge found
    [ 0.000000] e820: last_pfn = 0x22f000 max_arch_pfn = 0x400000000
    [ 0.000000] MTRR default type: uncachable
    [ 0.000000] MTRR fixed ranges enabled:
    [ 0.000000] 00000-9FFFF write-back
    [ 0.000000] A0000-DFFFF uncachable
    [ 0.000000] E0000-FFFFF write-protect
    [ 0.000000] MTRR variable ranges enabled:
    [ 0.000000] 0 base 0000000000 mask 7F80000000 write-back
    [ 0.000000] 1 base 0080000000 mask 7FC0000000 write-back
    [ 0.000000] 2 base 00C0000000 mask 7FF8000000 write-back
    [ 0.000000] 3 base 00C8000000 mask 7FFC000000 write-back
    [ 0.000000] 4 base 00CC000000 mask 7FFF000000 write-back
    [ 0.000000] 5 base 0100000000 mask 7F00000000 write-back
    [ 0.000000] 6 base 0200000000 mask 7FC0000000 write-back
    [ 0.000000] 7 base 0230000000 mask 7FF0000000 uncachable
    [ 0.000000] 8 base 022F000000 mask 7FFF000000 uncachable
    [ 0.000000] 9 disabled
    [ 0.000000] PAT configuration [0-7]: WB WC UC- UC WB WC UC- UC
    [ 0.000000] e820: update [mem 0xcd000000-0xffffffff] usable ==> reserved
    [ 0.000000] e820: last_pfn = 0xcd000 max_arch_pfn = 0x400000000
    [ 0.000000] Scanning 1 areas for low memory corruption
    [ 0.000000] Base memory trampoline at [ffff880000098000] 98000 size 24576
    [ 0.000000] Using GB pages for direct mapping
    [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
    [ 0.000000] [mem 0x00000000-0x000fffff] page 4k
    [ 0.000000] BRK [0x01b1d000, 0x01b1dfff] PGTABLE
    [ 0.000000] BRK [0x01b1e000, 0x01b1efff] PGTABLE
    [ 0.000000] BRK [0x01b1f000, 0x01b1ffff] PGTABLE
    [ 0.000000] init_memory_mapping: [mem 0x22ee00000-0x22effffff]
    [ 0.000000] [mem 0x22ee00000-0x22effffff] page 2M
    [ 0.000000] BRK [0x01b20000, 0x01b20fff] PGTABLE
    [ 0.000000] init_memory_mapping: [mem 0x220000000-0x22edfffff]
    [ 0.000000] [mem 0x220000000-0x22edfffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x200000000-0x21fffffff]
    [ 0.000000] [mem 0x200000000-0x21fffffff] page 2M
    [ 0.000000] init_memory_mapping: [mem 0x00100000-0xc71d9fff]
    [ 0.000000] [mem 0x00100000-0x001fffff] page 4k
    [ 0.000000] [mem 0x00200000-0x3fffffff] page 2M
    [ 0.000000] [mem 0x40000000-0xbfffffff] page 1G
    [ 0.000000] [mem 0xc0000000-0xc6ffffff] page 2M
    [ 0.000000] [mem 0xc7000000-0xc71d9fff] page 4k
    [ 0.000000] init_memory_mapping: [mem 0xc7542000-0xcaa82fff]
    [ 0.000000] [mem 0xc7542000-0xc75fffff] page 4k
    [ 0.000000] [mem 0xc7600000-0xca9fffff] page 2M
    [ 0.000000] [mem 0xcaa00000-0xcaa82fff] page 4k
    [ 0.000000] BRK [0x01b21000, 0x01b21fff] PGTABLE
    [ 0.000000] BRK [0x01b22000, 0x01b22fff] PGTABLE
    [ 0.000000] init_memory_mapping: [mem 0xcaae2000-0xcb2e3fff]
    [ 0.000000] [mem 0xcaae2000-0xcabfffff] page 4k
    [ 0.000000] [mem 0xcac00000-0xcb1fffff] page 2M
    [ 0.000000] [mem 0xcb200000-0xcb2e3fff] page 4k
    [ 0.000000] init_memory_mapping: [mem 0xccfff000-0xccffffff]
    [ 0.000000] [mem 0xccfff000-0xccffffff] page 4k
    [ 0.000000] init_memory_mapping: [mem 0x100000000-0x1ffffffff]
    [ 0.000000] [mem 0x100000000-0x1ffffffff] page 1G
    [ 0.000000] RAMDISK: [mem 0x3675a000-0x373a4fff]
    [ 0.000000] ACPI: Early table checksum verification disabled
    [ 0.000000] ACPI: RSDP 0x00000000CB6E8000 000024 (v02 _ASUS_)
    [ 0.000000] ACPI: XSDT 0x00000000CB6E80B0 0000DC (v01 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: FACP 0x00000000CB701590 00010C (v05 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: DSDT 0x00000000CB6E8218 019372 (v02 _ASUS_ Notebook 01072009 INTL 20120913)
    [ 0.000000] ACPI: FACS 0x00000000CC469F80 000040
    [ 0.000000] ACPI: APIC 0x00000000CB7016A0 000084 (v03 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: FPDT 0x00000000CB701728 000044 (v01 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: FIDT 0x00000000CB701770 00009C (v01 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: ECDT 0x00000000CB701810 0000C1 (v01 _ASUS_ Notebook 01072009 AMI. 00000005)
    [ 0.000000] ACPI: MCFG 0x00000000CB7018D8 00003C (v01 _ASUS_ Notebook 01072009 MSFT 00000097)
    [ 0.000000] ACPI: HPET 0x00000000CB701918 000038 (v01 _ASUS_ Notebook 01072009 AMI. 00000005)
    [ 0.000000] ACPI: SSDT 0x00000000CB701950 000315 (v01 SataRe SataTabl 00001000 INTL 20120913)
    [ 0.000000] ACPI: UEFI 0x00000000CB701C68 000042 (v01 00000000 00000000)
    [ 0.000000] ACPI: SSDT 0x00000000CB701CB0 000C7D (v02 Ther_R Ther_Rvp 00001000 INTL 20120913)
    [ 0.000000] ACPI: ASF! 0x00000000CB702930 0000A0 (v32 INTEL HCG 00000001 TFSM 000F4240)
    [ 0.000000] ACPI: SSDT 0x00000000CB7029D0 000539 (v02 PmRef Cpu0Ist 00003000 INTL 20120913)
    [ 0.000000] ACPI: SSDT 0x00000000CB702F10 000B74 (v02 CpuRef CpuSsdt 00003000 INTL 20120913)
    [ 0.000000] ACPI: SSDT 0x00000000CB703A88 003245 (v02 DptfTa DptfTabl 00001000 INTL 20120913)
    [ 0.000000] ACPI: SSDT 0x00000000CB706CD0 000394 (v02 CppcTa CppcTabl 00001000 INTL 20120913)
    [ 0.000000] ACPI: PCCT 0x00000000CB707068 00006E (v05 PcctTa PcctTabl 00001000 INTL 20120913)
    [ 0.000000] ACPI: SSDT 0x00000000CB7070D8 000AC4 (v02 Cpc_Ta Cpc_Tabl 00001000 INTL 20120913)
    [ 0.000000] ACPI: SSDT 0x00000000CB707BA0 006622 (v02 SaSsdt SaSsdt 00003000 INTL 20120913)
    [ 0.000000] ACPI: SSDT 0x00000000CB70E1C8 0006CE (v02 SgRef SgPch 00001000 INTL 20120913)
    [ 0.000000] ACPI: DMAR 0x00000000CB70E898 0000A8 (v01 INTEL BDW 00000001 INTL 00000001)
    [ 0.000000] ACPI: BGRT 0x00000000CB70E940 000038 (v01 _ASUS_ Notebook 01072009 AMI 00010013)
    [ 0.000000] ACPI: SSDT 0x00000000CB70E978 001914 (v01 OptRef OptTabl 00001000 INTL 20120913)
    [ 0.000000] ACPI: MSDM 0x00000000CAAE0E18 000055 (v03 _ASUS_ Notebook 00000000 ASUS 00000001)
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] No NUMA configuration found
    [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000022effffff]
    [ 0.000000] NODE_DATA(0) allocated [mem 0x22eff8000-0x22effbfff]
    [ 0.000000] [ffffea0000000000-ffffea0008bfffff] PMD -> [ffff880226600000-ffff88022e5fffff] on node 0
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
    [ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
    [ 0.000000] Normal [mem 0x0000000100000000-0x000000022effffff]
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000000001000-0x0000000000057fff]
    [ 0.000000] node 0: [mem 0x0000000000059000-0x000000000009dfff]
    [ 0.000000] node 0: [mem 0x0000000000100000-0x00000000c71d9fff]
    [ 0.000000] node 0: [mem 0x00000000c7542000-0x00000000caa82fff]
    [ 0.000000] node 0: [mem 0x00000000caae2000-0x00000000cb2e3fff]
    [ 0.000000] node 0: [mem 0x00000000ccfff000-0x00000000ccffffff]
    [ 0.000000] node 0: [mem 0x0000000100000000-0x000000022effffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000022effffff]
    [ 0.000000] On node 0 totalpages: 2072250
    [ 0.000000] DMA zone: 64 pages used for memmap
    [ 0.000000] DMA zone: 22 pages reserved
    [ 0.000000] DMA zone: 3996 pages, LIFO batch:0
    [ 0.000000] DMA32 zone: 12925 pages used for memmap
    [ 0.000000] DMA32 zone: 827166 pages, LIFO batch:31
    [ 0.000000] Normal zone: 19392 pages used for memmap
    [ 0.000000] Normal zone: 1241088 pages, LIFO batch:31
    [ 0.000000] Reserving Intel graphics stolen memory at 0xce000000-0xcfffffff
    [ 0.000000] ACPI: PM-Timer IO Port: 0x1808
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high res lint[0x24])
    [ 0.000000] ACPI: NMI not connected to LINT 1!
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] low dfl lint[0x48])
    [ 0.000000] ACPI: NMI not connected to LINT 1!
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] low res lint[0x49])
    [ 0.000000] ACPI: NMI not connected to LINT 1!
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x04] low dfl lint[0x4c])
    [ 0.000000] ACPI: NMI not connected to LINT 1!
    [ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
    [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-39
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
    [ 0.000000] ACPI: IRQ0 used by override.
    [ 0.000000] ACPI: IRQ9 used by override.
    [ 0.000000] Using ACPI (MADT) for SMP configuration information
    [ 0.000000] ACPI: HPET id: 0x8086a701 base: 0xfed00000
    [ 0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
    [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x00058000-0x00058fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xc71da000-0xc7541fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xcaa83000-0xcaae1fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xcb2e4000-0xcc46bfff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xcc46c000-0xccee4fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xccee5000-0xccffefff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xcd000000-0xcd7fffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xcd800000-0xcfffffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xd0000000-0xf7ffffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfc000000-0xfebfffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfec01000-0xfecfffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfed00000-0xfed03fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfed04000-0xfed1bfff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfed1c000-0xfed1ffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfed20000-0xfedfffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xfee01000-0xfeffffff]
    [ 0.000000] PM: Registered nosave memory: [mem 0xff000000-0xffffffff]
    [ 0.000000] e820: [mem 0xd0000000-0xf7ffffff] available for PCI devices
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:4 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 31 pages/cpu @ffff88022ec00000 s86232 r8192 d32552 u524288
    [ 0.000000] pcpu-alloc: s86232 r8192 d32552 u524288 alloc=1*2097152
    [ 0.000000] pcpu-alloc: [0] 0 1 2 3
    [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 2039847
    [ 0.000000] Policy zone: Normal
    [ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=abe988d4-2da5-481b-a713-939e77dfb317 rw cryptdevice=/dev/sda3:luks:allow-discards quiet i915.enable_execlists=0
    [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340 using standard form
    [ 0.000000] AGP: Checking aperture...
    [ 0.000000] AGP: No AGP bridge found
    [ 0.000000] Calgary: detecting Calgary via BIOS EBDA area
    [ 0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
    [ 0.000000] Memory: 8015668K/8289000K available (5629K kernel code, 840K rwdata, 1784K rodata, 1160K init, 1152K bss, 273332K reserved, 0K cma-reserved)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=4.
    [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [ 0.000000] NR_IRQS:8448 nr_irqs:728 16
    [ 0.000000] Console: colour dummy device 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] hpet clockevent registered
    [ 0.000000] tsc: Fast TSC calibration using PIT
    [ 0.000000] spurious 8259A interrupt: IRQ7.
    [ 0.000000] tsc: Detected 2394.256 MHz processor
    [ 0.000023] Calibrating delay loop (skipped), value calculated using timer frequency.. 4790.03 BogoMIPS (lpj=7980853)
    [ 0.000025] pid_max: default: 32768 minimum: 301
    [ 0.000029] ACPI: Core revision 20150204
    [ 0.026322] ACPI: All ACPI Tables successfully acquired
    [ 0.028669] Security Framework initialized
    [ 0.028673] Yama: becoming mindful.
    [ 0.029045] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
    [ 0.030311] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
    [ 0.030856] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.030863] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.031022] Initializing cgroup subsys blkio
    [ 0.031024] Initializing cgroup subsys memory
    [ 0.031029] Initializing cgroup subsys devices
    [ 0.031030] Initializing cgroup subsys freezer
    [ 0.031032] Initializing cgroup subsys net_cls
    [ 0.031051] CPU: Physical Processor ID: 0
    [ 0.031051] CPU: Processor Core ID: 0
    [ 0.031056] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
    [ 0.031056] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
    [ 0.031963] mce: CPU supports 7 MCE banks
    [ 0.031974] CPU0: Thermal monitoring enabled (TM1)
    [ 0.032002] process: using mwait in idle threads
    [ 0.032005] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8
    [ 0.032006] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
    [ 0.032281] Freeing SMP alternatives memory: 20K (ffffffff819f6000 - ffffffff819fb000)
    [ 0.033915] ftrace: allocating 21316 entries in 84 pages
    [ 0.041185] dmar: Host address width 39
    [ 0.041187] dmar: DRHD base: 0x000000fed90000 flags: 0x0
    [ 0.041194] dmar: IOMMU 0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 7e1ff0505e
    [ 0.041195] dmar: DRHD base: 0x000000fed91000 flags: 0x1
    [ 0.041199] dmar: IOMMU 1: reg_base_addr fed91000 ver 1:0 cap d2008c20660462 ecap f010da
    [ 0.041199] dmar: RMRR base: 0x000000cce3e000 end: 0x000000cce4cfff
    [ 0.041200] dmar: RMRR base: 0x000000cd800000 end: 0x000000cfffffff
    [ 0.041202] IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1
    [ 0.041203] HPET id 0 under DRHD base 0xfed91000
    [ 0.041484] Your BIOS is broken and requested that x2apic be disabled.
    This will slightly decrease performance.
    Use 'intremap=no_x2apic_optout' to override BIOS request.
    [ 0.041495] Enabled IRQ remapping in xapic mode
    [ 0.041496] x2apic: IRQ remapping doesn't support X2APIC mode
    [ 0.042099] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
    [ 0.075131] TSC deadline timer enabled
    [ 0.075133] smpboot: CPU0: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (fam: 06, model: 3d, stepping: 04)
    [ 0.075153] Performance Events: PEBS fmt2+, generic architected perfmon, full-width counters, Intel PMU driver.
    [ 0.075157] ... version: 3
    [ 0.075158] ... bit width: 48
    [ 0.075159] ... generic registers: 4
    [ 0.075159] ... value mask: 0000ffffffffffff
    [ 0.075160] ... max period: 0000ffffffffffff
    [ 0.075161] ... fixed-purpose events: 3
    [ 0.075161] ... event mask: 000000070000000f
    [ 0.095289] x86: Booting SMP configuration:
    [ 0.095291] .... node #0, CPUs: #1
    [ 0.109467] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
    [ 0.116159] #2 #3
    [ 0.150974] x86: Booted up 1 node, 4 CPUs
    [ 0.150977] smpboot: Total of 4 processors activated (19161.13 BogoMIPS)
    [ 0.154621] devtmpfs: initialized
    [ 0.156400] PM: Registering ACPI NVS region [mem 0xcb2e4000-0xcc46bfff] (18382848 bytes)
    [ 0.156672] pinctrl core: initialized pinctrl subsystem
    [ 0.156705] RTC time: 20:30:15, date: 06/19/15
    [ 0.156793] NET: Registered protocol family 16
    [ 0.167829] cpuidle: using governor ladder
    [ 0.181188] cpuidle: using governor menu
    [ 0.181212] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
    [ 0.181214] ACPI: bus type PCI registered
    [ 0.181215] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
    [ 0.181275] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
    [ 0.181277] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
    [ 0.181347] PCI: Using configuration type 1 for base access
    [ 0.194800] ACPI: Added _OSI(Module Device)
    [ 0.194802] ACPI: Added _OSI(Processor Device)
    [ 0.194803] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.194804] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.197821] ACPI : EC: EC description table is found, configuring boot EC
    [ 0.200562] ACPI: Executed 8 blocks of module-level executable AML code
    [ 0.206934] ACPI: Dynamic OEM Table Load:
    [ 0.206939] ACPI: SSDT 0xFFFF880224F79000 0003D3 (v02 PmRef Cpu0Cst 00003001 INTL 20120913)
    [ 0.207792] ACPI: Dynamic OEM Table Load:
    [ 0.207796] ACPI: SSDT 0xFFFF880224EFA000 0005AA (v02 PmRef ApIst 00003000 INTL 20120913)
    [ 0.208691] ACPI: Dynamic OEM Table Load:
    [ 0.208695] ACPI: SSDT 0xFFFF880224F59800 000119 (v02 PmRef ApCst 00003000 INTL 20120913)
    [ 0.210219] ACPI: Interpreter enabled
    [ 0.210227] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150204/hwxface-580)
    [ 0.210234] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150204/hwxface-580)
    [ 0.210245] ACPI: (supports S0 S3 S4 S5)
    [ 0.210246] ACPI: Using IOAPIC for interrupt routing
    [ 0.210268] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
    [ 0.212136] ACPI: Power Resource [PG00] (on)
    [ 0.212420] ACPI: Power Resource [PG01] (on)
    [ 0.212693] ACPI: Power Resource [PG02] (on)
    [ 0.213679] ACPI: Power Resource [PC05] (on)
    [ 0.220550] ACPI: Power Resource [FN00] (off)
    [ 0.220603] ACPI: Power Resource [FN01] (off)
    [ 0.220655] ACPI: Power Resource [FN02] (off)
    [ 0.220707] ACPI: Power Resource [FN03] (off)
    [ 0.220759] ACPI: Power Resource [FN04] (off)
    [ 0.221480] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
    [ 0.221485] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
    [ 0.221893] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
    [ 0.222200] PCI host bridge to bus 0000:00
    [ 0.222202] pci_bus 0000:00: root bus resource [bus 00-3e]
    [ 0.222204] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
    [ 0.222205] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
    [ 0.222206] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
    [ 0.222208] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000c3fff window]
    [ 0.222209] pci_bus 0000:00: root bus resource [mem 0x000c4000-0x000c7fff window]
    [ 0.222210] pci_bus 0000:00: root bus resource [mem 0x000c8000-0x000cbfff window]
    [ 0.222211] pci_bus 0000:00: root bus resource [mem 0x000cc000-0x000cffff window]
    [ 0.222212] pci_bus 0000:00: root bus resource [mem 0x000d0000-0x000d3fff window]
    [ 0.222213] pci_bus 0000:00: root bus resource [mem 0x000d4000-0x000d7fff window]
    [ 0.222214] pci_bus 0000:00: root bus resource [mem 0x000d8000-0x000dbfff window]
    [ 0.222215] pci_bus 0000:00: root bus resource [mem 0x000dc000-0x000dffff window]
    [ 0.222216] pci_bus 0000:00: root bus resource [mem 0xd0000000-0xfeafffff window]
    [ 0.222222] pci 0000:00:00.0: [8086:1604] type 00 class 0x060000
    [ 0.222300] pci 0000:00:02.0: [8086:1616] type 00 class 0x030000
    [ 0.222309] pci 0000:00:02.0: reg 0x10: [mem 0xf5000000-0xf5ffffff 64bit]
    [ 0.222314] pci 0000:00:02.0: reg 0x18: [mem 0xd0000000-0xdfffffff 64bit pref]
    [ 0.222318] pci 0000:00:02.0: reg 0x20: [io 0xf000-0xf03f]
    [ 0.222391] pci 0000:00:03.0: [8086:160c] type 00 class 0x040300
    [ 0.222397] pci 0000:00:03.0: reg 0x10: [mem 0xf721c000-0xf721ffff 64bit]
    [ 0.222476] pci 0000:00:04.0: [8086:1603] type 00 class 0x118000
    [ 0.222486] pci 0000:00:04.0: reg 0x10: [mem 0xf7210000-0xf7217fff 64bit]
    [ 0.222580] pci 0000:00:14.0: [8086:9cb1] type 00 class 0x0c0330
    [ 0.222595] pci 0000:00:14.0: reg 0x10: [mem 0xf7200000-0xf720ffff 64bit]
    [ 0.222648] pci 0000:00:14.0: PME# supported from D3hot D3cold
    [ 0.222690] pci 0000:00:14.0: System wakeup disabled by ACPI
    [ 0.222719] pci 0000:00:16.0: [8086:9cba] type 00 class 0x078000
    [ 0.222734] pci 0000:00:16.0: reg 0x10: [mem 0xf7224000-0xf722401f 64bit]
    [ 0.222786] pci 0000:00:16.0: PME# supported from D0 D3hot D3cold
    [ 0.222854] pci 0000:00:1b.0: [8086:9ca0] type 00 class 0x040300
    [ 0.222869] pci 0000:00:1b.0: reg 0x10: [mem 0xf7218000-0xf721bfff 64bit]
    [ 0.222918] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
    [ 0.222959] pci 0000:00:1b.0: System wakeup disabled by ACPI
    [ 0.222986] pci 0000:00:1c.0: [8086:9c90] type 01 class 0x060400
    [ 0.223048] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
    [ 0.223089] pci 0000:00:1c.0: System wakeup disabled by ACPI
    [ 0.223118] pci 0000:00:1c.3: [8086:9c96] type 01 class 0x060400
    [ 0.223184] pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold
    [ 0.223224] pci 0000:00:1c.3: System wakeup disabled by ACPI
    [ 0.223250] pci 0000:00:1c.4: [8086:9c98] type 01 class 0x060400
    [ 0.223307] pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
    [ 0.223348] pci 0000:00:1c.4: System wakeup disabled by ACPI
    [ 0.223382] pci 0000:00:1f.0: [8086:9cc3] type 00 class 0x060100
    [ 0.223542] pci 0000:00:1f.2: [8086:9c83] type 00 class 0x010601
    [ 0.223554] pci 0000:00:1f.2: reg 0x10: [io 0xf0b0-0xf0b7]
    [ 0.223559] pci 0000:00:1f.2: reg 0x14: [io 0xf0a0-0xf0a3]
    [ 0.223565] pci 0000:00:1f.2: reg 0x18: [io 0xf090-0xf097]
    [ 0.223571] pci 0000:00:1f.2: reg 0x1c: [io 0xf080-0xf083]
    [ 0.223576] pci 0000:00:1f.2: reg 0x20: [io 0xf060-0xf07f]
    [ 0.223582] pci 0000:00:1f.2: reg 0x24: [mem 0xf7222000-0xf72227ff]
    [ 0.223613] pci 0000:00:1f.2: PME# supported from D3hot
    [ 0.223670] pci 0000:00:1f.3: [8086:9ca2] type 00 class 0x0c0500
    [ 0.223682] pci 0000:00:1f.3: reg 0x10: [mem 0xf7221000-0xf72210ff 64bit]
    [ 0.223697] pci 0000:00:1f.3: reg 0x20: [io 0xf040-0xf05f]
    [ 0.223776] pci 0000:00:1f.6: [8086:9ca4] type 00 class 0x118000
    [ 0.223805] pci 0000:00:1f.6: reg 0x10: [mem 0xf7220000-0xf7220fff 64bit]
    [ 0.224013] acpiphp: Slot [1] registered
    [ 0.224017] pci 0000:00:1c.0: PCI bridge to [bus 01]
    [ 0.224292] pci 0000:02:00.0: [8086:095a] type 00 class 0x028000
    [ 0.224423] pci 0000:02:00.0: reg 0x10: [mem 0xf7100000-0xf7101fff 64bit]
    [ 0.224907] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
    [ 0.231440] pci 0000:00:1c.3: PCI bridge to [bus 02]
    [ 0.231445] pci 0000:00:1c.3: bridge window [mem 0xf7100000-0xf71fffff]
    [ 0.231518] pci 0000:03:00.0: [10de:1341] type 00 class 0x030200
    [ 0.231534] pci 0000:03:00.0: reg 0x10: [mem 0xf6000000-0xf6ffffff]
    [ 0.231547] pci 0000:03:00.0: reg 0x14: [mem 0xe0000000-0xefffffff 64bit pref]
    [ 0.231561] pci 0000:03:00.0: reg 0x1c: [mem 0xf0000000-0xf1ffffff 64bit pref]
    [ 0.231570] pci 0000:03:00.0: reg 0x24: [io 0xe000-0xe07f]
    [ 0.231579] pci 0000:03:00.0: reg 0x30: [mem 0xf7000000-0xf707ffff pref]
    [ 0.231660] pci 0000:03:00.0: System wakeup disabled by ACPI
    [ 0.237972] pci 0000:00:1c.4: PCI bridge to [bus 03]
    [ 0.237975] pci 0000:00:1c.4: bridge window [io 0xe000-0xefff]
    [ 0.237977] pci 0000:00:1c.4: bridge window [mem 0xf6000000-0xf70fffff]
    [ 0.237982] pci 0000:00:1c.4: bridge window [mem 0xe0000000-0xf1ffffff 64bit pref]
    [ 0.238138] acpi PNP0A08:00: Disabling ASPM (FADT indicates it is unsupported)
    [ 0.239089] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 11 12) *0, disabled.
    [ 0.239130] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239168] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239209] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239247] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239285] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239323] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239360] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 12) *0, disabled.
    [ 0.239770] ACPI: Enabled 4 GPEs in block 00 to 7F
    [ 0.239827] ACPI : EC: GPE = 0xa, I/O: command/status = 0x66, data = 0x62
    [ 0.239900] vgaarb: setting as boot device: PCI:0000:00:02.0
    [ 0.239901] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.239903] vgaarb: loaded
    [ 0.239904] vgaarb: bridge control possible 0000:00:02.0
    [ 0.239990] PCI: Using ACPI for IRQ routing
    [ 0.241093] PCI: pci_cache_line_size set to 64 bytes
    [ 0.241127] e820: reserve RAM buffer [mem 0x00058000-0x0005ffff]
    [ 0.241128] e820: reserve RAM buffer [mem 0x0009e000-0x0009ffff]
    [ 0.241129] e820: reserve RAM buffer [mem 0xc71da000-0xc7ffffff]
    [ 0.241129] e820: reserve RAM buffer [mem 0xcaa83000-0xcbffffff]
    [ 0.241130] e820: reserve RAM buffer [mem 0xcb2e4000-0xcbffffff]
    [ 0.241131] e820: reserve RAM buffer [mem 0xcd000000-0xcfffffff]
    [ 0.241132] e820: reserve RAM buffer [mem 0x22f000000-0x22fffffff]
    [ 0.241211] NetLabel: Initializing
    [ 0.241212] NetLabel: domain hash size = 128
    [ 0.241213] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.241222] NetLabel: unlabeled traffic allowed by default
    [ 0.241240] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
    [ 0.241244] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
    [ 0.243265] Switched to clocksource hpet
    [ 0.246853] pnp: PnP ACPI init
    [ 0.246992] system 00:00: [io 0x0240-0x0259] has been reserved
    [ 0.246995] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.247057] pnp 00:01: Plug and Play ACPI device, IDs FLT0102 SYN0a00 SYN0002 PNP0f03 PNP0f13 PNP0f12 (active)
    [ 0.247087] pnp 00:02: Plug and Play ACPI device, IDs ATK3001 PNP030b (active)
    [ 0.247149] system 00:03: [io 0x0680-0x069f] has been reserved
    [ 0.247151] system 00:03: [io 0xffff] has been reserved
    [ 0.247153] system 00:03: [io 0xffff] has been reserved
    [ 0.247154] system 00:03: [io 0xffff] has been reserved
    [ 0.247155] system 00:03: [io 0x1800-0x18fe] could not be reserved
    [ 0.247156] system 00:03: [io 0x164e-0x164f] has been reserved
    [ 0.247158] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.247192] pnp 00:04: Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.247218] system 00:05: [io 0x1854-0x1857] has been reserved
    [ 0.247220] system 00:05: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
    [ 0.247329] system 00:06: [mem 0xfed1c000-0xfed1ffff] has been reserved
    [ 0.247330] system 00:06: [mem 0xfed10000-0xfed17fff] has been reserved
    [ 0.247332] system 00:06: [mem 0xfed18000-0xfed18fff] has been reserved
    [ 0.247334] system 00:06: [mem 0xfed19000-0xfed19fff] has been reserved
    [ 0.247335] system 00:06: [mem 0xf8000000-0xfbffffff] has been reserved
    [ 0.247336] system 00:06: [mem 0xfed20000-0xfed3ffff] has been reserved
    [ 0.247338] system 00:06: [mem 0xfed90000-0xfed93fff] could not be reserved
    [ 0.247339] system 00:06: [mem 0xfed45000-0xfed8ffff] has been reserved
    [ 0.247340] system 00:06: [mem 0xff000000-0xffffffff] has been reserved
    [ 0.247341] system 00:06: [mem 0xfee00000-0xfeefffff] could not be reserved
    [ 0.247343] system 00:06: [mem 0xf7fe0000-0xf7feffff] has been reserved
    [ 0.247344] system 00:06: [mem 0xf7ff0000-0xf7ffffff] has been reserved
    [ 0.247346] system 00:06: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.247731] system 00:07: Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.248169] pnp: PnP ACPI: found 8 devices
    [ 0.253940] pci 0000:00:1c.0: PCI bridge to [bus 01]
    [ 0.253949] pci 0000:00:1c.3: PCI bridge to [bus 02]
    [ 0.253952] pci 0000:00:1c.3: bridge window [mem 0xf7100000-0xf71fffff]
    [ 0.253958] pci 0000:00:1c.4: PCI bridge to [bus 03]
    [ 0.253960] pci 0000:00:1c.4: bridge window [io 0xe000-0xefff]
    [ 0.253963] pci 0000:00:1c.4: bridge window [mem 0xf6000000-0xf70fffff]
    [ 0.253966] pci 0000:00:1c.4: bridge window [mem 0xe0000000-0xf1ffffff 64bit pref]
    [ 0.253970] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
    [ 0.253972] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
    [ 0.253973] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
    [ 0.253974] pci_bus 0000:00: resource 7 [mem 0x000c0000-0x000c3fff window]
    [ 0.253975] pci_bus 0000:00: resource 8 [mem 0x000c4000-0x000c7fff window]
    [ 0.253976] pci_bus 0000:00: resource 9 [mem 0x000c8000-0x000cbfff window]
    [ 0.253977] pci_bus 0000:00: resource 10 [mem 0x000cc000-0x000cffff window]
    [ 0.253979] pci_bus 0000:00: resource 11 [mem 0x000d0000-0x000d3fff window]
    [ 0.253980] pci_bus 0000:00: resource 12 [mem 0x000d4000-0x000d7fff window]
    [ 0.253981] pci_bus 0000:00: resource 13 [mem 0x000d8000-0x000dbfff window]
    [ 0.253982] pci_bus 0000:00: resource 14 [mem 0x000dc000-0x000dffff window]
    [ 0.253983] pci_bus 0000:00: resource 15 [mem 0xd0000000-0xfeafffff window]
    [ 0.253984] pci_bus 0000:02: resource 1 [mem 0xf7100000-0xf71fffff]
    [ 0.253986] pci_bus 0000:03: resource 0 [io 0xe000-0xefff]
    [ 0.253987] pci_bus 0000:03: resource 1 [mem 0xf6000000-0xf70fffff]
    [ 0.253988] pci_bus 0000:03: resource 2 [mem 0xe0000000-0xf1ffffff 64bit pref]
    [ 0.254009] NET: Registered protocol family 2
    [ 0.254153] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
    [ 0.254258] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
    [ 0.254368] TCP: Hash tables configured (established 65536 bind 65536)
    [ 0.254382] TCP: reno registered
    [ 0.254390] UDP hash table entries: 4096 (order: 5, 131072 bytes)
    [ 0.254411] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
    [ 0.254449] NET: Registered protocol family 1
    [ 0.254459] pci 0000:00:02.0: Video device with shadowed ROM
    [ 0.254627] PCI: CLS 64 bytes, default 64
    [ 0.254658] Unpacking initramfs...
    [ 0.419468] Freeing initrd memory: 12588K (ffff88003675a000 - ffff8800373a5000)
    [ 0.419489] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
    [ 0.419492] software IO TLB [mem 0xc2316000-0xc6316000] (64MB) mapped at [ffff8800c2316000-ffff8800c6315fff]
    [ 0.419632] RAPL PMU detected, hw unit 2^-14 Joules, API unit is 2^-32 Joules, 4 fixed counters 655360 ms ovfl timer
    [ 0.419670] microcode: CPU0 sig=0x306d4, pf=0x40, revision=0x13
    [ 0.419675] microcode: CPU1 sig=0x306d4, pf=0x40, revision=0x13
    [ 0.419681] microcode: CPU2 sig=0x306d4, pf=0x40, revision=0x13
    [ 0.419686] microcode: CPU3 sig=0x306d4, pf=0x40, revision=0x13
    [ 0.419721] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
    [ 0.419738] Scanning for low memory corruption every 60 seconds
    [ 0.419899] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [ 0.419912] Initialise system trusted keyring
    [ 0.420141] HugeTLB registered 2 MB page size, pre-allocated 0 pages
    [ 0.421107] zpool: loaded
    [ 0.421109] zbud: loaded
    [ 0.421228] VFS: Disk quotas dquot_6.5.2
    [ 0.421250] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [ 0.421369] Key type big_key registered
    [ 0.421511] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [ 0.421537] io scheduler noop registered
    [ 0.421539] io scheduler deadline registered
    [ 0.421558] io scheduler cfq registered (default)
    [ 0.421962] pcieport 0000:00:1c.0: Signaling PME through PCIe PME interrupt
    [ 0.421965] pcie_pme 0000:00:1c.0:pcie01: service driver pcie_pme loaded
    [ 0.421974] pcieport 0000:00:1c.3: Signaling PME through PCIe PME interrupt
    [ 0.421975] pci 0000:02:00.0: Signaling PME through PCIe PME interrupt
    [ 0.421977] pcie_pme 0000:00:1c.3:pcie01: service driver pcie_pme loaded
    [ 0.421986] pcieport 0000:00:1c.4: Signaling PME through PCIe PME interrupt
    [ 0.421987] pci 0000:03:00.0: Signaling PME through PCIe PME interrupt
    [ 0.421990] pcie_pme 0000:00:1c.4:pcie01: service driver pcie_pme loaded
    [ 0.421994] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    [ 0.422004] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
    [ 0.422016] efifb: probing for efifb
    [ 0.422032] efifb: framebuffer at 0xd0000000, mapped to 0xffffc90004f00000, using 8128k, total 8128k
    [ 0.422033] efifb: mode is 1920x1080x32, linelength=7680, pages=1
    [ 0.422034] efifb: scrolling: redraw
    [ 0.422035] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
    [ 0.425476] Console: switching to colour frame buffer device 240x67
    [ 0.429197] fb0: EFI VGA frame buffer device
    [ 0.429204] intel_idle: MWAIT substates: 0x11142120
    [ 0.429205] intel_idle: v0.4 model 0x3D
    [ 0.429205] intel_idle: lapic_timer_reliable_states 0xffffffff
    [ 0.429389] GHES: HEST is not enabled!
    [ 0.429438] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.429759] Linux agpgart interface v0.103
    [ 0.429798] rtc_cmos 00:04: RTC can wake from S4
    [ 0.429904] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
    [ 0.429928] rtc_cmos 00:04: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
    [ 0.429937] Intel P-state driver initializing.
    [ 0.430057] ledtrig-cpu: registered to indicate activity on CPUs
    [ 0.430573] TCP: cubic registered
    [ 0.430824] NET: Registered protocol family 10
    [ 0.431247] NET: Registered protocol family 17
    [ 0.431931] Loading compiled-in X.509 certificates
    [ 0.431964] registered taskstats version 1
    [ 0.433023] Magic number: 3:29:549
    [ 0.433038] clockevents clockevent0: hash matches
    [ 0.433067] acpi PNP0C0F:00: hash matches
    [ 0.433191] rtc_cmos 00:04: setting system clock to 2015-06-19 20:30:16 UTC (1434745816)
    [ 0.433387] PM: Hibernation image not present or could not be loaded.
    [ 0.434000] Freeing unused kernel memory: 1160K (ffffffff818d4000 - ffffffff819f6000)
    [ 0.434003] Write protecting the kernel read-only data: 8192k
    [ 0.434643] Freeing unused kernel memory: 504K (ffff880001582000 - ffff880001600000)
    [ 0.434865] Freeing unused kernel memory: 264K (ffff8800017be000 - ffff880001800000)
    [ 0.441392] random: systemd-tmpfile urandom read with 1 bits of entropy available
    [ 0.458172] sdhci: Secure Digital Host Controller Interface driver
    [ 0.458174] sdhci: Copyright(c) Pierre Ossman
    [ 0.461368] i8042: PNP: PS/2 Controller [PNP030b:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
    [ 0.464831] i8042: Detected active multiplexing controller, rev 1.1
    [ 0.466075] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 0.466090] serio: i8042 AUX0 port at 0x60,0x64 irq 12
    [ 0.466093] serio: i8042 AUX1 port at 0x60,0x64 irq 12
    [ 0.466095] serio: i8042 AUX2 port at 0x60,0x64 irq 12
    [ 0.466097] serio: i8042 AUX3 port at 0x60,0x64 irq 12
    [ 0.467331] ACPI: bus type USB registered
    [ 0.467357] usbcore: registered new interface driver usbfs
    [ 0.467367] usbcore: registered new interface driver hub
    [ 0.467449] usbcore: registered new device driver usb
    [ 0.467882] SCSI subsystem initialized
    [ 0.469036] libata version 3.00 loaded.
    [ 0.469212] xhci_hcd 0000:00:14.0: xHCI Host Controller
    [ 0.469219] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
    [ 0.469295] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x00009810
    [ 0.469300] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
    [ 0.469567] hub 1-0:1.0: USB hub found
    [ 0.469579] hub 1-0:1.0: 11 ports detected
    [ 0.472290] AVX2 version of gcm_enc/dec engaged.
    [ 0.472292] AES CTR mode by8 optimization enabled
    [ 0.473751] xhci_hcd 0000:00:14.0: xHCI Host Controller
    [ 0.473755] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
    [ 0.473912] hub 2-0:1.0: USB hub found
    [ 0.473922] hub 2-0:1.0: 4 ports detected
    [ 0.475776] ahci 0000:00:1f.2: version 3.0
    [ 0.486870] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 4 ports 6 Gbps 0x1 impl SATA mode
    [ 0.486873] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo only pio slum part deso sadm sds apst
    [ 0.487298] scsi host0: ahci
    [ 0.487404] scsi host1: ahci
    [ 0.487499] scsi host2: ahci
    [ 0.487602] scsi host3: ahci
    [ 0.487645] ata1: SATA max UDMA/133 abar m2048@0xf7222000 port 0xf7222100 irq 46
    [ 0.487646] ata2: DUMMY
    [ 0.487647] ata3: DUMMY
    [ 0.487648] ata4: DUMMY
    [ 0.518177] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 0.807120] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    [ 0.808148] ata1.00: ATA-9: SanDisk SD7SB3Q256G1002, X2150000, max UDMA/133
    [ 0.808151] ata1.00: 500118192 sectors, multi 1: LBA48 NCQ (depth 31/32), AA
    [ 0.809886] ata1.00: configured for UDMA/133
    [ 0.810105] scsi 0:0:0:0: Direct-Access ATA SanDisk SD7SB3Q2 0000 PQ: 0 ANSI: 5
    [ 0.811845] sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
    [ 0.811926] sd 0:0:0:0: [sda] Write Protect is off
    [ 0.811929] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 0.811949] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 0.813282] sda: sda1 sda2 sda3
    [ 0.813602] sd 0:0:0:0: [sda] Attached SCSI disk
    [ 0.833270] device-mapper: uevent: version 1.0.3
    [ 0.833364] device-mapper: ioctl: 4.30.0-ioctl (2014-12-22) initialised: [email protected]
    [ 0.833785] usb 1-5: new high-speed USB device number 2 using xhci_hcd
    [ 1.207444] usb 1-8: new full-speed USB device number 3 using xhci_hcd
    [ 1.381488] usb 1-8: No LPM exit latency info found, disabling LPM.
    [ 1.420941] tsc: Refined TSC clocksource calibration: 2394.457 MHz
    [ 2.422042] Switched to clocksource tsc
    [ 4.601817] NET: Registered protocol family 38
    [ 5.500920] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
    [ 5.557255] systemd[1]: systemd 219 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
    [ 5.557386] systemd[1]: Detected architecture 'x86-64'.
    [ 5.557569] systemd[1]: Set hostname to <WOOP-PLUTO>.
    [ 5.581258] systemd[1]: Unit type .busname is not supported on this system.
    [ 5.609266] systemd[1]: Cannot add dependency job for unit vmware-USBArbitrator.service, ignoring: Unit vmware-USBArbitrator.service failed to load: No such file or directory.
    [ 5.609648] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 5.609656] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    [ 5.609676] systemd[1]: Reached target Login Prompts.
    [ 5.609681] systemd[1]: Starting Login Prompts.
    [ 5.609691] systemd[1]: Reached target Remote File Systems.
    [ 5.609695] systemd[1]: Starting Remote File Systems.
    [ 5.609816] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    [ 5.609824] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
    [ 5.609831] systemd[1]: Reached target Encrypted Volumes.
    [ 5.609836] systemd[1]: Starting Encrypted Volumes.
    [ 5.610016] systemd[1]: Created slice Root Slice.
    [ 5.610022] systemd[1]: Starting Root Slice.
    [ 5.610045] systemd[1]: Listening on udev Control Socket.
    [ 5.610051] systemd[1]: Starting udev Control Socket.
    [ 5.610064] systemd[1]: Listening on LVM2 metadata daemon socket.
    [ 5.610069] systemd[1]: Starting LVM2 metadata daemon socket.
    [ 5.610116] systemd[1]: Created slice User and Session Slice.
    [ 5.610121] systemd[1]: Starting User and Session Slice.
    [ 5.610163] systemd[1]: Created slice System Slice.
    [ 5.610171] systemd[1]: Starting System Slice.
    [ 5.610222] systemd[1]: Created slice system-systemd\x2dfsck.slice.
    [ 5.610228] systemd[1]: Starting system-systemd\x2dfsck.slice.
    [ 5.610271] systemd[1]: Created slice system-rfkill\x2dblock.slice.
    [ 5.610276] systemd[1]: Starting system-rfkill\x2dblock.slice.
    [ 5.610318] systemd[1]: Created slice system-getty.slice.
    [ 5.610323] systemd[1]: Starting system-getty.slice.
    [ 5.610340] systemd[1]: Listening on Delayed Shutdown Socket.
    [ 5.610345] systemd[1]: Starting Delayed Shutdown Socket.
    [ 5.610365] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ 5.610370] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    [ 5.612312] random: nonblocking pool is initialized
    [ 5.620499] systemd[1]: Listening on Journal Audit Socket.
    [ 5.620536] systemd[1]: Listening on Device-mapper event daemon FIFOs.
    [ 5.620543] systemd[1]: Starting Device-mapper event daemon FIFOs.
    [ 5.620550] systemd[1]: Reached target Slices.
    [ 5.620555] systemd[1]: Starting Slices.
    [ 5.620589] systemd[1]: Listening on Journal Socket.
    [ 5.620598] systemd[1]: Starting Journal Socket.
    [ 5.620608] systemd[1]: Started File System Check on Root Device.
    [ 5.620937] systemd[1]: Mounting Debug File System...
    [ 5.621251] systemd[1]: Mounting Huge Pages File System...
    [ 5.621859] systemd[1]: Started Load Kernel Modules.
    [ 5.621874] systemd[1]: Mounted FUSE Control File System.
    [ 5.622224] systemd[1]: Starting Remount Root and Kernel File Systems...
    [ 5.622646] systemd[1]: Starting Apply Kernel Variables...
    [ 5.623622] systemd[1]: Starting Set Up Additional Binary Formats...
    [ 5.623961] systemd[1]: Mounting POSIX Message Queue File System...
    [ 5.624013] systemd[1]: Listening on Journal Socket (/dev/log).
    [ 5.624026] systemd[1]: Starting Journal Socket (/dev/log).
    [ 5.624427] systemd[1]: Starting Journal Service...
    [ 5.624747] systemd[1]: Mounting Configuration File System...
    [ 5.625120] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    [ 5.625185] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [ 5.625194] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    [ 5.625202] systemd[1]: Reached target Paths.
    [ 5.625207] systemd[1]: Starting Paths.
    [ 5.625476] systemd[1]: Starting Setup Virtual Console...
    [ 5.625513] systemd[1]: Listening on udev Kernel Socket.
    [ 5.625525] systemd[1]: Starting udev Kernel Socket.
    [ 5.625917] systemd[1]: Starting udev Coldplug all Devices...
    [ 5.626783] systemd[1]: Started Create list of required static device nodes for the current kernel.
    [ 5.626862] systemd[1]: Got automount request for /proc/sys/fs/binfmt_misc, triggered by 214 (systemd-binfmt)
    [ 5.627145] systemd[1]: Mounting Arbitrary Executable File Formats File System...
    [ 5.631100] systemd[1]: Started Setup Virtual Console.
    [ 5.637366] systemd[1]: Started Apply Kernel Variables.
    [ 5.638348] systemd[1]: Mounted Huge Pages File System.
    [ 5.638376] systemd[1]: Mounted POSIX Message Queue File System.
    [ 5.638392] systemd[1]: Mounted Configuration File System.
    [ 5.639302] EXT4-fs (dm-2): re-mounted. Opts: data=ordered
    [ 5.639530] systemd-journald[216]: Failed to set file attributes: Inappropriate ioctl for device
    [ 5.640253] systemd[1]: Mounted Arbitrary Executable File Formats File System.
    [ 5.640287] systemd[1]: Mounted Debug File System.
    [ 5.642518] systemd[1]: Started Remount Root and Kernel File Systems.
    [ 5.642721] systemd[1]: Started Set Up Additional Binary Formats.
    [ 5.642901] systemd[1]: Started udev Coldplug all Devices.
    [ 5.650745] systemd[1]: Starting Load/Save Random Seed...
    [ 5.650775] systemd[1]: Started Rebuild Dynamic Linker Cache.
    [ 5.651626] systemd[1]: Started Rebuild Hardware Database.
    [ 5.651645] systemd[1]: Started First Boot Wizard.
    [ 5.651659] systemd[1]: Started Create System Users.
    [ 5.651982] systemd[1]: Starting Create Static Device Nodes in /dev...
    [ 5.655137] systemd[1]: Started Load/Save Random Seed.
    [ 5.673398] systemd[1]: Started Create Static Device Nodes in /dev.
    [ 5.673906] systemd[1]: Starting udev Kernel Device Manager...
    [ 5.673930] systemd[1]: Reached target Local File Systems (Pre).
    [ 5.673941] systemd[1]: Starting Local File Systems (Pre).
    [ 5.674530] systemd[1]: Mounting /tmp...
    [ 5.676222] systemd[1]: Mounted /tmp.
    [ 5.714702] systemd[1]: Started udev Kernel Device Manager.
    [ 5.731901] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input5
    [ 5.732762] ACPI: Lid Switch [LID]
    [ 5.732815] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input6
    [ 5.732819] ACPI: Sleep Button [SLPB]
    [ 5.732867] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input7
    [ 5.732870] ACPI: Power Button [PWRF]
    [ 5.735236] systemd[1]: Started Journal Service.
    [ 5.739454] ACPI: AC Adapter [AC0] (off-line)
    [ 5.740472] systemd-journald[216]: Received request to flush runtime journal from PID 1
    [ 5.741401] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
    [ 5.791768] [drm] Initialized drm 1.1.0 20060810
    [ 5.797640] ACPI: Battery Slot [BAT0] (battery present)
    [ 5.797836] wmi: Mapper loaded
    [ 5.824171] hidraw: raw HID events driver (C) Jiri Kosina
    [ 5.845805] sound hdaudioC1D0: CX20751/2: BIOS auto-probing.
    [ 5.846099] sound hdaudioC1D0: autoconfig for CX20751/2: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
    [ 5.846103] sound hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
    [ 5.846105] sound hdaudioC1D0: hp_outs=1 (0x16/0x0/0x0/0x0/0x0)
    [ 5.846107] sound hdaudioC1D0: mono: mono_out=0x0
    [ 5.846108] sound hdaudioC1D0: inputs:
    [ 5.846111] sound hdaudioC1D0: Internal Mic=0x1a
    [ 5.846113] sound hdaudioC1D0: Mic=0x19
    [ 5.846718] sound hdaudioC1D0: Enable sync_write for stable communication
    [ 5.846766] [drm] Memory usable by graphics device = 4096M
    [ 5.846770] checking generic (d0000000 7f0000) vs hw (d0000000 10000000)
    [ 5.846773] fb: switching to inteldrmfb from EFI VGA
    [ 5.846791] Console: switching to colour dummy device 80x25
    [ 5.846944] [drm] Replacing VGA console driver
    [ 5.849342] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card1/hdaudioC1D0/input8
    [ 5.849463] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input9
    [ 5.849490] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input10
    [ 5.855615] thermal LNXTHERM:00: registered as thermal_zone2
    [ 5.855618] ACPI: Thermal Zone [THRM] (48 C)
    [ 5.858016] thermal LNXTHERM:01: registered as thermal_zone3
    [ 5.858018] ACPI: Thermal Zone [TZ00] (28 C)
    [ 5.858296] thermal LNXTHERM:02: registered as thermal_zone4
    [ 5.858298] ACPI: Thermal Zone [TZ01] (30 C)
    [ 5.858483] cfg80211: Calling CRDA to update world regulatory domain
    [ 5.862994] Bluetooth: Core ver 2.20
    [ 5.863009] NET: Registered protocol family 31
    [ 5.863010] Bluetooth: HCI device and connection manager initialized
    [ 5.863015] Bluetooth: HCI socket layer initialized
    [ 5.863018] Bluetooth: L2CAP socket layer initialized
    [ 5.863024] Bluetooth: SCO socket layer initialized
    [ 5.866422] input: PC Speaker as /devices/platform/pcspkr/input/input11
    [ 5.867516] Intel(R) Wireless WiFi driver for Linux
    [ 5.867518] Copyright(c) 2003- 2014 Intel Corporation
    [ 5.867886] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 5.867888] [drm] Driver supports precise vblank timestamp query.
    [ 5.868042] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
    [ 5.870016] usbcore: registered new interface driver btusb
    [ 5.877889] iwlwifi 0000:02:00.0: loaded firmware version 25.17.12.0 op_mode iwlmvm
    [ 5.880266] intel_rapl: Found RAPL domain package
    [ 5.880269] intel_rapl: Found RAPL domain core
    [ 5.880272] intel_rapl: Found RAPL domain uncore
    [ 5.880274] intel_rapl: Found RAPL domain dram
    [ 5.882922] media: Linux media interface: v0.10
    [ 5.884691] Bluetooth: hci0: read Intel version: 370810011002270d00
    [ 5.886215] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.2.27.d.bseq
    [ 5.918064] Linux video capture interface: v2.00
    [ 5.921474] iTCO_vendor_support: vendor-support=0
    [ 5.922849] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
    [ 5.922892] iTCO_wdt: Found a Wildcat Point_LP TCO device (Version=2, TCOBASE=0x1860)
    [ 5.922978] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
    [ 5.923412] asus_wmi: ASUS WMI generic driver loaded
    [ 5.930495] fbcon: inteldrmfb (fb0) is primary device
    [ 5.932627] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 7265, REV=0x184
    [ 5.933078] iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
    [ 5.933238] iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
    [ 5.933985] asus_wmi: Initialization: 0x1
    [ 5.934961] asus_wmi: BIOS WMI version: 7.9
    [ 5.935116] asus_wmi: SFUN value: 0xa2077
    [ 5.936702] EXT4-fs (sda2): mounting ext2 file system using the ext4 subsystem
    [ 5.937631] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
    [ 5.937749] Adding 8388604k swap on /dev/mapper/vg0-swap. Priority:-1 extents:1 across:8388604k SSFS
    [ 5.938748] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
    [ 5.941016] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input16
    [ 5.943447] uvcvideo: Found UVC 1.00 device USB2.0 UVC HD Webcam (064e:9700)
    [ 5.945744] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input17
    [ 5.945833] ACPI Exception: AE_NOT_FOUND, Evaluating _DOD (20150204/video-1257)
    [ 5.945834] ACPI: Video Device [PEGP] (multi-head: no rom: yes post: no)
    [ 5.945879] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:22/LNXVIDEO:01/input/input18
    [ 5.945995] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
    [ 5.945999] [drm] Initialized i915 1.6.0 20150130 for 0000:00:02.0 on minor 0
    [ 5.946115] ACPI Warning: SystemIO range 0x000000000000F040-0x000000000000F05F conflicts with OpRegion 0x000000000000F040-0x000000000000F04F (\SMB0) (20150204/utaddress-254)
    [ 5.946120] ACPI Warning: SystemIO range 0x000000000000F040-0x000000000000F05F conflicts with OpRegion 0x000000000000F040-0x000000000000F04F (\_SB_.PCI0.SBUS.SMBI) (20150204/utaddress-254)
    [ 5.946121] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    [ 5.949372] input: USB2.0 UVC HD Webcam as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input19
    [ 5.949434] usbcore: registered new interface driver uvcvideo
    [ 5.949435] USB Video Class driver (1.1.1)
    [ 6.030252] usb 1-8: USB disconnect, device number 3
    [ 6.030362] Bluetooth: hci0 sending Intel patch command (0xfc8e) failed (-19)
    [ 6.030393] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input20
    [ 6.030780] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input21
    [ 6.030895] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input22
    [ 6.030945] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 6.031170] asus_wmi: Backlight controlled by ACPI video driver
    [ 6.032320] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
    [ 6.036491] iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0
    [ 6.054693] input: FocalTechPS/2 FocalTech FocalTech Touchpad as /devices/platform/i8042/serio4/input/input15
    [ 6.056212] mousedev: PS/2 mouse device common for all mice
    [ 6.497765] bbswitch: version 0.8
    [ 6.497769] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
    [ 6.497773] bbswitch: Found discrete VGA device 0000:03:00.0: \_SB_.PCI0.RP05.PEGP
    [ 6.497783] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
    [ 6.497854] bbswitch: detected an Optimus _DSM function
    [ 6.497904] bbswitch: Succesfully loaded. Discrete card 0000:03:00.0 is on
    [ 6.499057] bbswitch: disabling discrete graphics
    [ 6.499065] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
    [ 6.794166] /dev/vmmon[384]: Module vmmon: registered with major=10 minor=165
    [ 6.794169] /dev/vmmon[384]: Module vmmon: initialized
    [ 6.816392] Guest personality initialized and is inactive
    [ 6.816436] VMCI host device registered (name=vmci, major=10, minor=56)
    [ 6.816437] Initialized host personality
    [ 6.847875] NET: Registered protocol family 40
    [ 6.870900] fuse init (API version 7.23)
    [ 6.898024] ppdev: user-space parallel port driver
    [ 7.106012] Console: switching to colour frame buffer device 240x67
    [ 7.110124] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
    [ 7.110125] i915 0000:00:02.0: registered panic notifier
    [ 7.148418] iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
    [ 7.148675] iwlwifi 0000:02:00.0: L1 Disabled - LTR Enabled
    [ 7.159323] /dev/vmnet: open called by PID 505 (vmnet-bridge)
    [ 7.159334] /dev/vmnet: hub 0 does not exist, allocating memory.
    [ 7.159355] /dev/vmnet: port on hub 0 successfully opened
    [ 7.159363] bridge-wlp2s0: device is wireless, enabling SMAC
    [ 7.159366] bridge-wlp2s0: up
    [ 7.159370] bridge-wlp2s0: attached
    [ 7.161385] bridge-wlp2s0: disabling the bridge
    [ 7.172268] bridge-wlp2s0: down
    [ 7.172274] bridge-wlp2s0: detached
    [ 7.549177] cfg80211: Calling CRDA to update world regulatory domain
    [ 7.631166] /dev/vmnet: open called by PID 526 (vmnet-netifup)
    [ 7.631172] /dev/vmnet: hub 1 does not exist, allocating memory.
    [ 7.631183] /dev/vmnet: port on hub 1 successfully opened
    [ 7.649431] /dev/vmnet: open called by PID 528 (vmnet-dhcpd)
    [ 7.649442] /dev/vmnet: port on hub 1 successfully opened
    [ 7.659803] /dev/vmnet: open called by PID 536 (vmnet-natd)
    [ 7.659810] /dev/vmnet: hub 8 does not exist, allocating memory.
    [ 7.659822] /dev/vmnet: port on hub 8 successfully opened
    [ 7.662044] /dev/vmnet: open called by PID 537 (vmnet-netifup)
    [ 7.662051] /dev/vmnet: port on hub 8 successfully opened
    [ 7.672419] /dev/vmnet: open called by PID 542 (vmnet-dhcpd)
    [ 7.672431] /dev/vmnet: port on hub 8 successfully opened
    [ 8.032979] Bluetooth: hci0 command 0xfc8e tx timeout
    [ 8.033056] Bluetooth: hci0 sending frame failed (-19)
    [ 8.140139] cfg80211: Calling CRDA to update world regulatory domain
    [ 10.041263] Bluetooth: hci0 command 0xfc11 tx timeout
    [ 16.036148] Bluetooth: hci0 exiting Intel manufacturer mode failed (-110)
    [ 421.253320] usb 1-1: new high-speed USB device number 4 using xhci_hcd
    [ 421.429257] usb 1-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
    [ 421.429265] usb 1-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
    [ 421.439571] usb-storage 1-1:1.0: USB Mass Storage device detected
    [ 421.439662] scsi host4: usb-storage 1-1:1.0
    [ 421.439732] usbcore: registered new interface driver usb-storage
    [ 421.440704] usbcore: registered new interface driver uas
    [ 422.802584] scsi 4:0:0:0: Direct-Access PQ: 0 ANSI: 4
    [ 422.803405] sd 4:0:0:0: [sdb] 31129600 512-byte logical blocks: (15.9 GB/14.8 GiB)
    [ 422.804030] sd 4:0:0:0: [sdb] Write Protect is off
    [ 422.804039] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
    [ 422.804680] sd 4:0:0:0: [sdb] No Caching mode page found
    [ 422.809996] sd 4:0:0:0: [sdb] Assuming drive cache: write through
    [ 422.816610] sdb:
    [ 422.818457] sd 4:0:0:0: [sdb] Attached SCSI removable disk
    -- Logs begin at Sat 2015-05-02 12:41:07 CEST, end at Fri 2015-06-19 22:40:49 CEST. --
    Jun 19 22:30:21 WOOP-PLUTO systemd-journal[216]: Runtime journal is using 8.0M (max allowed 394.6M, trying to leave 591.9M free of 3.8G available → current limit 394.6M).
    Jun 19 22:30:21 WOOP-PLUTO systemd-journal[216]: Permanent journal is using 1.4G (max allowed 4.0G, trying to leave 4.0G free of 120.7G available → current limit 4.0G).
    Jun 19 22:30:21 WOOP-PLUTO systemd-journal[216]: Time spent on flushing to /var is 31.618ms for 2 entries.
    Jun 19 22:30:21 WOOP-PLUTO kernel: Initializing cgroup subsys cpuset
    Jun 19 22:30:21 WOOP-PLUTO kernel: Initializing cgroup subsys cpu
    Jun 19 22:30:21 WOOP-PLUTO kernel: Initiali

  • G580 (2189) Stuck on Splash Screen during Boot process

    Recently my G580 (2189) hangs on Boot.  Get the spash screen and pressing F2 or F12 does nothing.  Have to keep power cycling the laptop up to 10 times before the boot process succeeds and loads windows.
    Running Win7 Professional on G580 (2189) laptop.
    Problem only recently started in the past couple of months after a series of Windows updates were installed. 
    Disk Check reports no errors.
    I have read this is a BIOS issue.  I have tried changing BIOS to EFI instead of UEFI, but the intermittent problem persists.  No updates to my BIOS are available through Lenovo, and I have found no insight when searching the forums.  I have found numerous people with the exact same problem, but what I read is that a new motherboard is called for from the people who have contacted Tech Support.  I have tried the battery removal, power button 30 seconds, etc. but it does nothing to fix the problem.
    Everything worked perfectly up until about 2 months ago.  Never an issue.  Now my laptop stall on boot, and one stop doesn't even work when the spash screen is stuck and windows does not load.
    Anyone know of the "cause" of the problem?  Is it truely a BIOS issue?
    Any suggestions as to a solution.  Laptop only recently went out of warranty, and I find it bizzare that it won't even boot.  if it is a BIOS issue, I am guessing reinstalling Win7 Pro won't help.

    Follow the below mentioned steps to resolve the issue:
    Check if there are any external devices connected to the computer, if yes remove them and restart the system to check if the issue occurs.
    Perform Startup Repair:
    http://windows.microsoft.com/en-us/windows7/products/features/startup-repair
    If the issue persists, then start the system in safe mode with networking and check if the Windows load successfully.
    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mf...
    If it works fine in safe mode try performing a clean boot to find the root cause.
    To help troubleshoot error messages and other issues, you can start Windows 7 by using a minimal set of drivers and startup programs. This kind of startup is known as a "clean boot." A clean boot helps eliminate software conflicts.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.microsoft.com/kb/929135
    Note: After troubleshooting, make sure to start the computer as mentioned in Step 4 from the above provided KB article.
    GuruAid.com

  • Laptop-mode-tools no longer adjusts LCD brightness

    I just discovered that laptop-mode-tools no longer adjusts the brightness of the LCD when switched to battery. This is not a general issue. laptop-mode is active on battery (as well as being enabled via the systemd service), the computer knows it is on battery (checking with on_ac_power and reading from /sys/class/power_supply/*/* give the expected results) and other things are correctly adjusted e.g. bluetooth is blocked with rfkill. Moreover, as root I can adjust the brightness in the usual way by hand:
    echo 10 >| /sys/class/backlight/acpi_video0/brightness
    works just fine. The >| is needed because for interactive shell's, root's .bashrc sets noclobber. This obviously doesn't affect laptop-mode tools because it doesn't run an interactive shell. In contrast:
    $ cat /etc/laptop-mode/conf.d/lcd-brightness.conf | grep -v "^#"
    DEBUG=1
    CONTROL_BRIGHTNESS=1
    BATT_BRIGHTNESS_COMMAND="echo 7"
    LM_AC_BRIGHTNESS_COMMAND="echo 10"
    NOLM_AC_BRIGHTNESS_COMMAND="echo 12"
    BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"
    DEBUG wasn't 1 when the problem started. I tried setting it to get more info but haven't found anything more in the journal/logs.
    KDE is set to not touch the default brightness at all. All it does is (further) dim the display after so many minutes depending on the power supply and status.
    This did work fine but I haven't been on battery for a while so I'm not sure when exactly it stopped working. My brightness is set by default to 12 on boot or wake from sleep which suggests laptop-mode tools does something or something else is now handling this which I'm not aware of. But the switch to battery does not trigger any alteration in the brightness and laptop-mode status does not even mention LCD brightness as one of the things laptop-mode tools controls.
    Have I missed a change in how this is handled somewhere?

    I doubt this is related but it is currently my only lead so here goes. I set the LCD brightness control for debug so I've been trying to watch it. However, so far it is all smiles e.g. on boot it all works fine and says so.
    However, I found I'm getting another error on boot which is
    /usr/share/laptop-mode-tools/modules/pcie-aspm: line 10: write error: Operation not permitted
    Note that I copied that by eye from VT1 so if a colon is out of place, that's why.
    The contents of that file is:
    #! /bin/sh
    # Laptop mode tools module: PCIe Active State Power Management
    if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCIE_ASPM = xauto ]; then
    if [ $ON_AC -eq 1 ]; then
    log "VERBOSE" "On AC power: setting pcie_aspm to default"
    if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
    echo default > /sys/module/pcie_aspm/parameters/policy
    if [ $? -eq 0 ]; then
    log "VERBOSE" "PCIe ASPM set to 'default'"
    else
    log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel"
    fi
    else
    log "VERBOSE" "PCIe ASPM is not available"
    fi
    else
    log "VERBOSE" "On battery: setting pcie_aspm to powersave"
    if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
    echo powersave > /sys/module/pcie_aspm/parameters/policy
    if [ $? -eq 0 ]; then
    log "VERBOSE" "PCIe ASPM set to 'powersave'"
    else
    log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel"
    fi
    else
    log "VERBOSE" "PCIe ASPM is not available"
    fi
    fi
    else
    log "VERBOSE" "PCIe ASPM power savings module is disabled"
    fi
    So I assume it is saying it cannot write to /sys/module/pcie_aspm/parameters/policy but the permissions etc. on that, at least, don't look strange:
    l /sys/module/pcie_aspm/parameters/
    total 0
    drwxr-xr-x 2 root root 0 Gor 25 21:24 ./
    drwxr-xr-x 3 root root 0 Gor 25 21:23 ../
    -rw-r--r-- 1 root root 4.0K Gor 25 21:24 policy
    Last edited by cfr (2013-07-25 20:47:13)

  • Laptop-mode-tools/cpufrequtils Questions [SOLVED]

    I am running a Sony Vaio VGN-FW480J and am trying to optimize these two tools to save battery life and hard drive life span.   I have added @laptop-mode to my daemon array and acpi-cpufreq to modules. A few issues I immediately notice:
    1) cpufreq doesn't revert back to higher frequencies if I unplug and plug power source back in (before unplugging: CPU 0 - 800 MHz, CPU 1 - 2.00 GHz; after both are 800 and won't change if I plug power source back in)
    2) I believe the hard disk is actually spinning down more frequently (and fan is almost always on, even when no work is being done).  Here are the relevant files/the ones that I have altered.
    laptop-mode.conf
    # Configuration for Laptop Mode Tools
    # There is a "system" to the configuration setting names:
    # CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
    # something
    # LM_something=value Value of "something" when laptop mode is active
    # NOLM_something=value Value of "something" when laptop mode is NOT
    # active
    # AC_something=value Value of "something" when the computer is running
    # on AC power
    # BATT_something=value Value of "something when the computer is running
    # on battery power
    # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
    # available prefixes are different for each setting. The available ones are
    # documented in the manual page, laptop-mode.conf(8). If there is no LM_/
    # NOLM_ in a setting name, then the value is used independently of laptop
    # mode state, and similarly, if there is no AC_/BATT_, then the value is used
    # independently of power state.
    # Some options only work on ACPI systems. They are marked ACPI-ONLY.
    # Note that this configuration file is a fragment of shell script: you
    # can use all the features of the shell scripting language to achieve your
    # desired configuration.
    # Modules
    # Laptop Mode Tools modules have separate configuration files, that can be
    # found in /etc/laptop-mode/conf.d. Please look through these configuration
    # files as well, there are many useful power saving tools in there!
    # Enable/Disable laptop-mode-tools execution
    # Set it to 0 to completely disable laptop-mode-tools from running
    ENABLE_LAPTOP_MODE_TOOLS=1
    # Configuration debugging
    # Set this to 1 if you want to see a lot of information when you start/stop
    # laptop_mode.
    VERBOSE_OUTPUT=0
    # Set this to 1 if you want to log messages to syslog
    LOG_TO_SYSLOG=1
    # Run in shell debug mode
    # Enable this if you would like to execute the entire laptop-mode-tools program
    # in shell debug mode. Warning: This will create a lot of text output
    # If you are debugging an individual module, perhaps you would want to enable
    # each module specific debug mode (available in module conf files)
    DEBUG=0
    # When to enable laptop mode
    # "Laptop mode" is the mode in which laptop mode tools makes the computer
    # consume less power. This includes the kernel "laptop_mode" feature, which
    # allows your hard drives to spin down, as well as various other settings which
    # can be tweaked by laptop mode tools. You can enable or disable all of these
    # settings using the CONTROL_... options further down in this config file.
    # Enable laptop mode when on battery power.
    ENABLE_LAPTOP_MODE_ON_BATTERY=1
    # Enable laptop mode when on AC power.
    ENABLE_LAPTOP_MODE_ON_AC=1
    # Enable laptop mode when the laptop's lid is closed, even when we're on AC
    # power? (ACPI-ONLY)
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
    # Enable all simple zero-configuration auto modules
    # This option enables all simple modules (listed below) without requiring
    # the user to enable each module individually
    # List of modules which can be automatically enabled with this setting are:
    # ac97-powersave
    # cpufreq
    # dpms-standby
    # eee-superhe
    # ethernet
    # exec-commands
    # hal-polling
    # hdparm
    # intel-hda-powersave
    # intel-sata-powermgmt
    # runtime-pm
    # sched-mc-power-savings
    # sched-smt-power-savings
    # terminal-blanking
    # usb-autosuspend
    # wireless-ipw-power
    # wireless-iwl-power
    # wireless-power
    # Set this to 1 to enable all simple zero-configuration auto modules listed above.
    # NOTE: You can explicitly enable/disable any of the above modules by changing their
    # values in the individual settings file
    ENABLE_AUTO_MODULES=1
    # When to enable data loss sensitive features
    # When data loss sensitive features are disabled, laptop mode tools acts as if
    # laptop mode were disabled, for those features only.
    # Data loss sensitive features include:
    # - laptop_mode (i.e., delayed writes)
    # - hard drive write cache
    # All of the options that follow can be set to 0 in order to prevent laptop
    # mode tools from using them to stop data loss sensitive features. Use this
    # when you have a battery that reports the wrong information, that confuses
    # laptop mode tools.
    # Disabling data loss sensitive features is ACPI-ONLY, and it only works if
    # your battery gives off frequent ACPI events to indicate a change in battery
    # level.
    # NOTE: If your battery does NOT give off battery events often enough, you can
    # enable the battery-level-polling module to make this work. Look at the
    # file /etc/laptop-mode/conf.d/battery-level-polling.conf for more information.
    # Disable all data loss sensitive features when the battery level (in % of the
    # battery capacity) reaches this value.
    MINIMUM_BATTERY_CHARGE_PERCENT=3
    # Disable data loss sensitive features when the battery reports its state
    # as "critical".
    DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
    # Controlled hard drives and partitions
    # For spinning down your hard drives, laptop mode will remount file systems and
    # adjust hard drive spindown timeouts. These parameters specify which
    # devices and partitions are affected by laptop mode.
    # The drives that laptop mode controls.
    # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
    # wildcard, which will get you all your IDE and SCSI/SATA drives.
    HD="/dev/[hs]d[abcdefgh]"
    # The partitions (or mount points) that laptop mode controls.
    # Separate the values by spaces. Use "auto" to indicate all partitions on drives
    # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
    # also specify mount points, e.g. "/mnt/data".
    PARTITIONS="auto /dev/mapper/*"
    # If this is enabled, laptop mode tools will assume that SCSI drives are
    # really SATA drives that only _look_ like SCSI drives, and will use hdparm
    # to control them. Set this to 0 if you have /dev/sd devices and you want
    # laptop mode tools to use the "sdparm" command to control them.
    ASSUME_SCSI_IS_SATA=1
    # Hard drive behaviour settings
    # These settings specify how laptop mode tools will adjust the various
    # parameters of your hard drives and file systems.
    # Maximum time, in seconds, of work that you are prepared to lose when your
    # system crashes or power runs out. This is the maximum time that Laptop Mode
    # will keep unsaved data waiting in memory before spinning up your hard drive.
    LM_BATT_MAX_LOST_WORK_SECONDS=600
    LM_AC_MAX_LOST_WORK_SECONDS=360
    # Should laptop mode tools control readahead?
    CONTROL_READAHEAD=1
    # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
    # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
    # Effectively, the disk will read a complete MP3 at once, and will then spin
    # down while the MP3/OGG is playing. Don't set this too high, because the
    # readahead is applied to _all_ files that are read from disk.
    LM_READAHEAD=3072
    NOLM_READAHEAD=128
    # Should laptop mode tools add the "noatime" option to the mount options when
    # laptop mode is enabled?
    CONTROL_NOATIME=0
    # Should laptop use relatime instead of noatime? The "relatime" mount option has
    # more standards-compliant semantics, and allows more applications to work,
    # while retaining a low level of atime updates (i.e., disk writes).
    USE_RELATIME=0
    # Should laptop mode tools control the hard drive idle timeout settings?
    CONTROL_HD_IDLE_TIMEOUT=1
    # Idle timeout values. (hdparm -S)
    # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
    # for battery and for AC with laptop mode on.
    LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
    LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
    NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
    # Should laptop mode tools control the hard drive power management settings?
    # Set to 0 to disable
    CONTROL_HD_POWERMGMT="auto"
    # Power management for HD (hdparm -B values)
    BATT_HD_POWERMGMT=128
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    # Should laptop mode tools control the hard drive write cache settings?
    CONTROL_HD_WRITECACHE=0
    # Write cache settings for HD (hdparm -W values)
    NOLM_AC_HD_WRITECACHE=1
    NOLM_BATT_HD_WRITECACHE=0
    LM_HD_WRITECACHE=0
    # Settings you probably don't want to touch
    # It is usually not necessary to change these parameters. They are included
    # for completeness' sake.
    # Change mount options on partitions in PARTITIONS? You don't really want to
    # disable this. If you do, then your hard drives will probably not spin down
    # anymore.
    CONTROL_MOUNT_OPTIONS=1
    # Dirty synchronous ratio. At this percentage of dirty pages the process
    # which calls write() does its own writeback.
    LM_DIRTY_RATIO=60
    NOLM_DIRTY_RATIO=40
    # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
    # exceeded, the kernel will wake pdflush which will then reduce the amount
    # of dirty memory to dirty_background_ratio. Set this nice and low, so once
    # some writeout has commenced, we do a lot of it.
    LM_DIRTY_BACKGROUND_RATIO=1
    NOLM_DIRTY_BACKGROUND_RATIO=10
    # kernel default settings -- don't touch these unless you know what you're
    # doing.
    DEF_UPDATE=5
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    DEF_MAX_AGE=30
    # This must be adjusted manually to the value of HZ in the running kernel
    # on 2.4, until the XFS people change their 2.4 external interfaces to work in
    # centisecs. This can be automated, but it's a work in progress that still
    # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
    # external interfaces, and that is currently always set to 100. So you don't
    # need to change this on 2.6.
    XFS_HZ=100
    # Seconds laptop mode has to to wait after the disk goes idle before doing
    # a sync.
    LM_SECONDS_BEFORE_SYNC=2
    cpufreq.conf
    # Configuration file for Laptop Mode Tools module cpufreq.
    # For more information, consult the laptop-mode.conf(8) manual page.
    # CPU frequency scaling and throttling
    # Laptop mode tools can automatically adjust your kernel CPU frequency
    # settings. This includes upper and lower limits and scaling governors.
    # There is also support for CPU throttling, on systems that don't support
    # frequency scaling.
    # This feature only works on 2.6 kernels.
    # IMPORTANT: In versions 1.36 and earlier, these settings were included in the
    # main laptop-mode.conf configuration file. If they are still present, they
    # overrule the settings in this file. To fix this, simply delete the settings
    # from the main config file.
    # Enable debug mode for this module
    # Set to 1 if you want to debug this module
    DEBUG=0
    # Should laptop mode tools control the CPU frequency settings?
    # Set to 0 to disable
    CONTROL_CPU_FREQUENCY="auto"
    # Legal values are "slowest" for the slowest speed that your
    # CPU is able to operate at, "fastest" for the fastest speed,
    # "medium" for some value in the middle, or any value listed in
    # /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
    # The "governor" can be any governor installed on your system, this usually
    # includes "ondemand", "conservative", and "performance". The
    # "IGNORE_NICE_LOAD" setting specifies that background programs that have
    # a low priority ("nice level") should not cause the CPU frequency to
    # be increased. (You generally want this to be enabled in battery mode.)
    BATT_CPU_MAXFREQ=fastest
    BATT_CPU_MINFREQ=slowest
    BATT_CPU_GOVERNOR=ondemand
    BATT_CPU_IGNORE_NICE_LOAD=1
    LM_AC_CPU_MAXFREQ=fastest
    LM_AC_CPU_MINFREQ=slowest
    LM_AC_CPU_GOVERNOR=ondemand
    LM_AC_CPU_IGNORE_NICE_LOAD=1
    NOLM_AC_CPU_MAXFREQ=fastest
    NOLM_AC_CPU_MINFREQ=slowest
    NOLM_AC_CPU_GOVERNOR=ondemand
    NOLM_AC_CPU_IGNORE_NICE_LOAD=0
    # Should laptop mode tools control the CPU throttling? This is only useful
    # on processors that don't have frequency scaling.
    # (Only works when you have /proc/acpi/processor/CPU*/throttling.)
    # This is only useful on older P4 processors that do not support frequency
    # scaling. On such processors, this is the only way to reduce power consumption
    # but at the cost of higher performance penalty.
    # Enable this only if you have a processor that does not support frequency scaling
    # On most new processors, you might want to disable it.
    # Set to 0 to disable.
    CONTROL_CPU_THROTTLING=0
    # Legal values are "maximum" for the maximum (slowest) throttling level,
    # "minimum" for minimum (fastest) throttling level, "medium" for a value
    # somewhere in the middle (this is usually 50% for P4s), or any value listed
    # in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
    # this may be _very_ slow (in fact, with P4s it slows down the processor
    # by a factor 8).
    BATT_CPU_THROTTLING=medium
    LM_AC_CPU_THROTTLING=medium
    NOLM_AC_CPU_THROTTLING=minimum
    battery-level-polling.conf
    # Configuration file for Laptop Mode Tools module battery-level-polling.
    # For more information, consult the laptop-mode.conf(8) manual page.
    # Battery level polling settings
    # This module allows laptop mode to react to battery level changes, even if the
    # battery does not send out frequent ACPI events for such battery level changes.
    # Note that this does NOT make ACPI-only features work on non-ACPI hardware.
    # Enable debug mode for this module
    # Set to 1 if you want to debug this module
    DEBUG=0
    # Enable this setting to enable battery level polling.
    ENABLE_BATTERY_LEVEL_POLLING=1
    hal-polling.conf
    # Configuration file for Laptop Mode Tools module hal-polling.
    # For more information, consult the laptop-mode.conf(8) manual page.
    # HAL polling settings
    # If you enable this module, laptop mode tools will control the polling of
    # your CD/DVD drives by HAL. Disabling polling saves a considerable amount of
    # power, but for some older CD/DVD drives it means that inserted CDs are no
    # longer autodetected. In such cases, you must turn this option off.
    # Alternatively, you can configure laptop mode tools to turn HAL polling on only
    # when the laptop is running on AC power. This would mean that CDs are not
    # autodetected while the laptop is running on battery power, but the power
    # savings may be worth the extra manual labour when you insert a CD.
    # Enable debug mode for this module
    # Set to 1 if you want to debug this module
    DEBUG=0
    # Control HAL polling?
    # Set to 0 to disablei, vs "auto".
    CONTROL_HAL_POLLING=0
    # Disable HAL polling on battery?
    BATT_DISABLE_HAL_POLLING=0
    # Disable HAL polling on AC?
    AC_DISABLE_HAL_POLLING=0
    # Drives to apply HAL polling settings to
    HAL_POLLING_DEVICES="/dev/scd?"
    Please let me know if you require any additional information. Thank you in advance for any help.
    Last edited by Aesir (2011-04-14 14:35:09)

    Aesir wrote:Can I make BATT_CPU_GOVERNOR=conservative even if it is not listed in the scaling_available_governors file?
    If your governor isn't listed in scaling_available_governors, it won't work.  See stqn's link for info on adding governors.
    stqn wrote:Edit2: oh well, scrolling a bit up, the wiki says you don't need to add governors if you're using laptop-mode-tools... I don't know.
    You do need governors if you're using laptop-mode-tools, because all laptop-mode-tools does is flip between them automatically.
    If you're using cpufrequtils, you'll need the userspace governor for it to work properly.  I don't use cpufrequtils personally, so I'm not sure how to get it to work in conjunction with laptop-mode-tools.  You may have to disable frequency scaling in laptop-mode-tools by changing CONTROL_CPU_FREQUENCY to 0 in cpufreq.conf
    Edit - now that I think about it, maybe laptop-mode-tools and cpufrequtils know how to load the modules themselves automatically.  I guess try it and see if they can.  You can check which governor is in use with:
    $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    You can also manually change governors by running (as root):
    #  echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    Of course, substitue the governor you want.
    Last edited by redden0t8 (2011-03-29 19:27:12)

  • Laptop mode tools problem with kernel 3.0

    today I just updated the system and my laptop runs dramatically hotter after that. I read the archwiki, it does talk about the laptop mode tools problem with kernel 3.0 but when I opened the file /usr/sbin/laptop_mode, the lines which the wiki mentions are not there. Does anyone here have the same problem and can you offer the solution?
    Here is my /usr/sbin/laptop_mode
    #! /bin/sh
    # Script to start or stop laptop_mode, and to control various settings of the
    # kernel, hardware etc. that influence power consumption.
    # This script is a part of Laptop Mode Tools. If you are running a supported
    # power management daemon, this script will be automatically called on power
    # state change.
    # Configure laptop mode tools in /etc/laptop-mode/laptop-mode.conf, and in
    # the broken-out config files in /etc/laptop-mode/conf.d.
    # Please consult the manual pages laptop-mode.conf(8) and laptop_mode(8) for
    # additional information.
    # Maintainer: Ritesh Raj Sarraf ([email protected])
    # Original Author: Bart Samwel ([email protected])
    # Project home page: http://samwel.tk/laptop_mode
    # Contributors to this script: Bart Samwel
    # Kiko Piris
    # Micha Feigin
    # Andrew Morton
    # Herve Eychenne
    # Dax Kelson
    # Jan Polacek
    # ... and many others that I've stopped
    # keeping track of.
    # Based on a script for Linux 2.4 written by Jens Axboe.
    set -a
    # The laptop mode tools version number. Extracted by the installer makefile
    # as well, so don't change the format!
    LMTVERSION=1.59
    # This script is loaded from multiple scripts to set the config defaults
    # and to read the configuration on top of those. Only when the command is
    # recognized does this script do anything else.
    VERBOSE_OUTPUT=0
    ENABLE_LAPTOP_MODE_ON_BATTERY=1
    ENABLE_LAPTOP_MODE_ON_AC=0
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
    PARTITIONS="auto /dev/mapper/*"
    LM_BATT_MAX_LOST_WORK_SECONDS=600
    LM_AC_MAX_LOST_WORK_SECONDS=360
    DEF_MAX_AGE=30
    LM_READAHEAD=3072
    NOLM_READAHEAD=128
    CONTROL_READAHEAD=1
    CONTROL_NOATIME=0
    USE_RELATIME=1
    CONTROL_HD_IDLE_TIMEOUT=1
    LM_AC_HD_IDLE_TIMEOUT=4 # 20 seconds
    LM_BATT_HD_IDLE_TIMEOUT=4 # 20 seconds
    NOLM_HD_IDLE_TIMEOUT=244 # 2 hours
    DEF_UPDATE=5
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    XFS_HZ=100
    CONTROL_MOUNT_OPTIONS=1
    BATT_HD_POWERMGMT=1
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    CONTROL_HD_POWERMGMT=0
    CONTROL_HD_WRITECACHE=0
    NOLM_AC_HD_WRITECACHE=1
    NOLM_BATT_HD_WRITECACHE=0
    LM_HD_WRITECACHE=0
    LM_DIRTY_RATIO=60
    LM_DIRTY_BACKGROUND_RATIO=1
    NOLM_DIRTY_BACKGROUND_RATIO=10
    NOLM_DIRTY_RATIO=40
    LM_SECONDS_BEFORE_SYNC=2
    BATT_CPU_MAXFREQ=medium
    BATT_CPU_MINFREQ=slowest
    BATT_CPU_GOVERNOR=ondemand
    BATT_CPU_IGNORE_NICE_LOAD=1
    LM_AC_CPU_MAXFREQ=fastest
    LM_AC_CPU_MINFREQ=slowest
    LM_AC_CPU_GOVERNOR=ondemand
    LM_AC_CPU_IGNORE_NICE_LOAD=1
    NOLM_AC_CPU_MAXFREQ=fastest
    NOLM_AC_CPU_MINFREQ=slowest
    NOLM_AC_CPU_GOVERNOR=ondemand
    NOLM_AC_CPU_IGNORE_NICE_LOAD=0
    CONTROL_CPU_FREQUENCY=0
    HD="/dev/[hs]d[abcdefgh]"
    CONTROL_SYSLOG_CONF=0
    LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
    NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
    BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf
    SYSLOG_CONF_SIGNAL_PROGRAM=syslogd
    SYSLOG_CONF=/etc/syslog.conf
    CONTROL_DPMS_STANDBY=0
    BATT_DPMS_STANDBY=300
    LM_AC_DPMS_STANDBY=1200
    NOLM_AC_DPMS_STANDBY=1200
    CONTROL_CPU_THROTTLING=0
    BATT_CPU_THROTTLING=medium
    LM_AC_CPU_THROTTLING=minimum
    NOLM_AC_CPU_THROTTLING=minimum
    CONTROL_START_STOP=1
    CONTROL_TERMINAL=0
    TERMINALS="/dev/vc/1 /dev/vcs1"
    BATT_TERMINAL_BLANK_MINUTES=1
    BATT_TERMINAL_POWERDOWN_MINUTES=2
    LM_AC_TERMINAL_BLANK_MINUTES=10
    LM_AC_TERMINAL_POWERDOWN_MINUTES=10
    NOLM_AC_TERMINAL_BLANK_MINUTES=10
    NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50
    ENABLE_AUTO_HIBERNATION=0
    HIBERNATE_COMMAND=/usr/sbin/hibernate
    AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
    DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
    AUTO_HIBERNATION_BATTERY_CHARGE_MAH=0
    AUTO_HIBERNATION_BATTERY_CHARGE_MWH=0
    MINIMUM_BATTERY_CHARGE_MAH=0
    MINIMUM_BATTERY_CHARGE_MWH=0
    ASSUME_SCSI_IS_SATA=1
    CONTROL_BRIGHTNESS=0
    BATT_BRIGHTNESS_COMMAND=false
    LM_AC_BRIGHTNESS_COMMAND=false
    NOLM_AC_BRIGHTNESS_COMMAND=false
    LOG_TO_SYSLOG=1
    DEBUG=0
    ENABLE_LAPTOP_MODE_TOOLS=1
    # Initialize the PATH Variable
    export PATH="${PATH}":/bin:/sbin:/usr/bin:/usr/sbin
    # This is a 2 phase locking approach. LMT_REQ_LOCK is the outer lock and LMT_INVOC_LOCK is the inner lock
    # We take this approach to ensure the scenario that, "At any point when an event occurs (AC/BATT), the
    # kernel can generate multiple events spanning over a couple of events. The first event is honored and
    # lmt executes. If the last event triggered at the 9th second, there is a fair chance that a good amount
    # of state change would have occured in the OS, to honor that state, we keep an outer lock (LMT_REQ_LOCK)
    # handy, so that those changes can also be applied and not forgotten.
    # Workflow:
    # Event-1 is generated and lmt executes (lmt runtime could span 5-10 seconds)
    # At seventh second, 4 events generate. But Event-1 is still running.
    # We don't want to discard all the remaining 4 events, but at least honor 1 so that we can act to the changes
    # that occured in the last 7 seconds.
    # So, Event-2 acquire LMT_REQ_LOCK and waits to acquire LMT_INVOC_LOCK (which is acquire by Event-1)
    LMT_REQ_LOCK="/var/lock/lmt-req.lock"
    LMT_INVOC_LOCK="/var/lock/lmt-invoc.lock"
    FLOCK=`which flock`
    checkint ()
    # $1 arg should be the string/integer
    # that you want to check for as an integer.
    echo $1 | grep "[^0-9]" > /dev/null 2>&1
    return $?;
    # Returns 1 if it is an integer
    # Function to handle logging
    LOGGER=`which logger`;
    log ()
    # $1 should be msg type
    # $2 should be the real msg
    if [ x$LOG_TO_SYSLOG = x1 ]; then
    # NOTE: Add the check on $2 being empty, once you are confident
    # that there aren't any bugs in logging. And no bugs in executing
    # modules and logging
    if [ -x $LOGGER -a "$1" != "STATUS" ]; then
    #if [ -z $2 ]; then
    # continue
    #elif [ "$1" = "MSG" ]; then
    if [ "$1" = "MSG" ]; then
    logger -p daemon.info -t laptop-mode "$2";
    elif [ "$1" = "ERR" ]; then
    logger -p daemon.err -t laptop-mode "$2";
    elif [ "$1" = "VERBOSE" ]; then
    if [ x$VERBOSE_OUTPUT = x1 ]; then
    logger -p daemon.debug -t laptop-mode "$2";
    fi
    else
    logger -p daemon.notice -t laptop-mode "$2";
    fi
    fi
    fi
    if [ "$1" = "VERBOSE" ]; then
    $LM_VERBOSE && echo "$2" >/dev/fd/2;
    elif [ "$1" = "ERR" ]; then
    echo "$2" >/dev/fd/2;
    else
    # Message of type MSG and STATUS can go to stdout.
    echo "$2" >/dev/fd/1;
    fi
    enableDebug ()
    # Check if debug is enabled
    if [ x$(($(basename $1 | cut -d . -f1 | tr "[:lower:]" "[:upper:]" | sed 's/-/_/g')_DEBUG)) = x1 ]; then
    set -vx
    fi
    disableDebug ()
    # Check if debug is enabled
    if [ x$(($(basename $1 | cut -d . -f1 | tr "[:lower:]" "[:upper:]" | sed 's/-/_/g')_DEBUG)) = x1 ]; then
    set +vx
    fi
    # No default on these ones -- we need to detect if they have been set, for
    # backward compatibility with MINIMUM_BATTERY_MINUTES etc.
    AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=
    MINIMUM_BATTERY_CHARGE_PERCENT=
    # Backward compatibility variable that is sometimes
    # set externally (Debian init system)
    unset VERBOSE
    lmt_load_config ()
    # Source config. Some config settings have been moved from the main config file
    # to modular configuration files, and to support existing laptop-mode.conf
    # files from earlier versions, we source the modular configuration files FIRST.
    if [ -d /etc/laptop-mode/conf.d ] ; then
    for CONF in /etc/laptop-mode/conf.d/*.conf ; do
    if [ -r "$CONF" ] ; then
    . "$CONF"
    #Handle individual module debug settings
    if [ "$DEBUG" -eq 1 ]; then
    export $(basename $CONF | cut -d . -f1 | tr "[:lower:]" "[:upper:]" | sed 's/-/_/g')_DEBUG=1
    log "VERBOSE" "Enabling debug mode for module $CONF"
    fi
    DEBUG=0
    else
    log "MSG" "Warning: Configuration file $CONF is not readable, skipping."
    fi
    done
    fi
    if [ -r /etc/laptop-mode/laptop-mode.conf ] ; then
    . /etc/laptop-mode/laptop-mode.conf
    else
    log "ERR" "$0: Configuration file /etc/laptop-mode/laptop-mode.conf not present or not readable."
    exit 1
    fi
    if [ x$ENABLE_LAPTOP_MODE_TOOLS = x0 ]; then
    log "MSG" "laptop-mode-tools is disabled in config file. Exiting"
    exit 0;
    fi
    # Add a simple bash debug mode switch
    if [ "$DEBUG" -eq 1 ]; then
    set -vx;
    fi
    # Support for old config settings
    if [ "$AC_HD" != "" ] ; then
    AC_HD_WITHOUT_LM="$AC_HD"
    AC_HD_WITH_LM="$AC_HD"
    fi
    if [ "$VERBOSE" != "" ] ; then
    VERBOSE_OUTPUT="$VERBOSE"
    fi
    if [ "$CPU_MAXFREQ" != "" ] ; then
    BATT_CPU_MAXFREQ="$CPU_MAXFREQ"
    fi
    if [ "$MAX_AGE" != "" ] ; then
    LM_BATT_MAX_LOST_WORK_SECONDS="$MAX_AGE"
    LM_AC_MAX_LOST_WORK_SECONDS="$MAX_AGE"
    fi
    if [ "$DEF_AGE" != "" ] ; then
    DEF_MAX_AGE="$DEF_AGE"
    fi
    if [ "$LAPTOP_MODE_ALWAYS_ON" != "" ] ; then
    ENABLE_LAPTOP_MODE_ALWAYS="$LAPTOP_MODE_ALWAYS_ON"
    fi
    if [ "$LM_WHEN_LID_CLOSED" != "" ] ; then
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED="$LM_WHEN_LID_CLOSED"
    fi
    if [ "$REMOUNT_PARTITIONS" != "" ] ; then
    PARTITIONS="$REMOUNT_PARTITIONS"
    fi
    if [ "$READAHEAD" != "" ] ; then
    LM_READAHEAD="$READAHEAD"
    fi
    if [ "$DO_REMOUNT_NOATIME" != "" ] ; then
    CONTROL_NOATIME="$DO_REMOUNT_NOATIME"
    fi
    if [ "$DO_HD" != "" ] ; then
    CONTROL_HD_IDLE_TIMEOUT="$DO_HD"
    fi
    if [ "$AC_HD_WITH_LM" != "" ] ; then
    LM_AC_HD_IDLE_TIMEOUT="$AC_HD_WITH_LM"
    fi
    if [ "$AC_HD_WITHOUT_LM" != "" ] ; then
    NOLM_HD_IDLE_TIMEOUT="$AC_HD_WITHOUT_LM"
    fi
    if [ "$BATT_HD" != "" ] ; then
    LM_BATT_HD_IDLE_TIMEOUT="$BATT_HD"
    fi
    if [ "$DO_REMOUNTS" != "" ] ; then
    CONTROL_MOUNT_OPTIONS="$DO_REMOUNTS"
    fi
    if [ "$DO_HD_POWERMGMT" != "" ] ; then
    CONTROL_HD_POWERMGMT="$DO_HD_POWERMGMT"
    fi
    if [ "$AC_HDPARM_POWERMGMT_WITH_LM" != "" ] ; then
    LM_AC_HD_POWERMGMT="$AC_HDPARM_POWERMGMT_WITH_LM"
    fi
    if [ "$AC_HDPARM_POWERMGMT_WITHOUT_LM" != "" ] ; then
    NOLM_AC_HD_POWERMGMT="$AC_HDPARM_POWERMGMT_WITHOUT_LM"
    fi
    if [ "$BATT_HDPARM_POWERMGMT" != "" ] ; then
    BATT_HD_POWERMGMT="$BATT_HDPARM_POWERMGMT"
    fi
    if [ "$DO_WRITECACHE" != "" ] ; then
    CONTROL_HD_WRITECACHE="$DO_WRITECACHE"
    fi
    if [ "$AC_WRITECACHE_WITHOUT_LM" != "" ] ; then
    NOLM_AC_HD_WRITECACHE="$AC_WRITECACHE_WITHOUT_LM"
    fi
    if [ "$BATT_WRITECACHE" != "" ] ; then
    LM_HD_WRITECACHE="$BATT_WRITECACHE"
    fi
    if [ "$DIRTY_RATIO" != "" ]; then
    LM_DIRTY_RATIO="$DIRTY_RATIO"
    fi
    if [ "$DIRTY_BACKGROUND_RATIO" != "" ] ; then
    LM_DIRTY_BACKGROUND_RATIO="$DIRTY_BACKGROUND_RATIO"
    fi
    if [ "$DEF_DIRTY_RATIO" != "" ]; then
    NOLM_DIRTY_RATIO="$DEF_DIRTY_RATIO"
    fi
    if [ "$DEF_DIRTY_BACKGROUND_RATIO" != "" ] ; then
    NOLM_DIRTY_BACKGROUND_RATIO="$DEF_DIRTY_BACKGROUND_RATIO"
    fi
    if [ "$DO_CPU" != "" ] ; then
    CONTROL_CPU_FREQUENCY="$DO_CPU"
    fi
    if [ "$CONTROL_CPU_MAXFREQ" != "" ] ; then
    CONTROL_CPU_FREQUENCY="$CONTROL_CPU_MAXFREQ"
    fi
    if [ "$AC_CPU_MAXFREQ_WITH_LM" != "" ] ; then
    LM_AC_CPU_MAXFREQ="$AC_CPU_MAXFREQ_WITH_LM"
    fi
    if [ "$AC_CPU_MAXFREQ_WITHOUT_LM" != "" ] ; then
    NOLM_AC_CPU_MAXFREQ="$AC_CPU_MAXFREQ_WITHOUT_LM"
    fi
    if [ "$DO_SYSLOG" != "" ] ; then
    CONTROL_SYSLOG_CONF="$DO_SYSLOG"
    fi
    if [ "$SYSLOG_SIGNAL_PROGRAM" != "" ] ;then
    SYSLOG_CONF_SIGNAL_PROGRAM="$SYSLOG_SIGNAL_PROGRAM"
    fi
    if [ "$AC_SYSLOG_WITH_LM" != "" ] ; then
    LM_AC_SYSLOG_CONF="$AC_SYSLOG_WITH_LM"
    fi
    if [ "$AC_SYSLOG_WITHOUT_LM" != "" ] ; then
    NOLM_AC_SYSLOG_CONF="$AC_SYSLOG_WITHOUT_LM"
    fi
    if [ "$BATT_SYSLOG" != "" ] ; then
    BATT_SYSLOG_CONF="$BATT_SYSLOG"
    fi
    if [ "$ENABLE_LAPTOP_MODE_ALWAYS" != "" ] ; then
    ENABLE_LAPTOP_MODE_ON_AC="$ENABLE_LAPTOP_MODE_ALWAYS"
    fi
    if [ "$MINIMUM_BATTERY_MINUTES" != "" -a "$MINIMUM_BATTERY_CHARGE_PERCENT" = "" ] ; then
    # Use a very conservative estimate (1% = 1 battery minute, 100 minutes in a battery)
    # for backward compatibility.
    MINIMUM_BATTERY_CHARGE_PERCENT="$MINIMUM_BATTERY_MINUTES"
    fi
    if [ -z "$MINIMUM_BATTERY_CHARGE_PERCENT" ] ; then
    # Apply the default, now that we've determined that this is the minimum.
    MINIMUM_BATTERY_CHARGE_PERCENT=3
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_MINUTES" != "" -a "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" = "" ] ; then
    # Use a very conservative estimate (1% = 1 battery minute, 100 minutes in a battery)
    # for backward compatibility.
    AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT="$AUTO_HIBERNATION_BATTERY_MINUTES"
    fi
    if [ -z "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" ] ; then
    # Apply the default, now that we've determined that this is the minimum.
    AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2
    fi
    # Postprocessing
    if [ "$VERBOSE_OUTPUT" -ne 0 ] ; then
    OUTPUT="/dev/stdout"
    LM_VERBOSE="[ 1 = 1 ]"
    else
    OUTPUT="/dev/null"
    LM_VERBOSE="[ 1 = 0 ]"
    fi
    if [ "$PARTITIONS" = "" ] ; then
    PARTITIONS="auto /dev/mapper/*"
    fi
    # Expand shell wild cards immediately.
    PARTITIONS=$( echo $PARTITIONS )
    TERMINALS=$( echo $TERMINALS )
    # Convert seconds to hdparm -S format
    # Everything over 20 minutes is interpreted as 2 hours.
    seconds_to_hdparm_S() {
    if [ "$1" -eq 0 ] ; then
    # disable.
    echo 0
    elif [ "$1" -gt 0 -a "$1" -lt 5 ] ; then
    # 5 seconds minimum
    echo 1
    elif [ "$1" -le $((240*5)) ] ; then
    # Values between 1 and 240 signify increments of 5 seconds
    echo $(($1 / 5))
    elif [ "$1" -lt $((30*60)) ] ; then
    # Values between 20 and 30 minutes are rounded up to 30 minutes.
    echo 241
    elif [ "$1" -lt $((12*30*60)) ] ; then
    # Values between 30 minutes and 6 hours (exclusive) yield values between
    # 241 and 251, in 30-minute increments.
    echo $(( 240 + ($1 / (30*60)) ))
    else
    # Larger values effectively indicate no timeout at all.
    echo 0
    fi
    # Convert configured idle timeouts to hdparm -S format.
    if [ "$LM_AC_HD_IDLE_TIMEOUT_SECONDS" != "" ] ; then
    LM_AC_HD_IDLE_TIMEOUT=$(seconds_to_hdparm_S $LM_AC_HD_IDLE_TIMEOUT_SECONDS)
    fi
    if [ "$LM_BATT_HD_IDLE_TIMEOUT_SECONDS" != "" ] ; then
    LM_BATT_HD_IDLE_TIMEOUT=$(seconds_to_hdparm_S $LM_BATT_HD_IDLE_TIMEOUT_SECONDS)
    fi
    if [ "$NOLM_HD_IDLE_TIMEOUT_SECONDS" != "" ] ; then
    NOLM_HD_IDLE_TIMEOUT=$(seconds_to_hdparm_S $NOLM_HD_IDLE_TIMEOUT_SECONDS)
    fi
    # The main workhorse.
    lmt_main_function ()
    if [ "$1" = "status" ] ; then
    # Display a status report.
    log "STATUS" "Mounts:"
    mount | sed "s/^/ /"
    log "STATUS" " "
    log "STATUS" "Drive power status:"
    for disk in $HD; do
    if [ -r $disk ]; then
    hdparm -C $disk 2>/dev/null | sed "s/^/ /"
    else
    log "STATUS" " Cannot read $disk, permission denied - $0 needs to be run as root"
    fi
    done
    log "STATUS" " "
    log "STATUS" "(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)"
    log "STATUS" " "
    log "STATUS" "Readahead states:"
    cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
    # skip funny stuff
    case "$FST" in
    rootfs|unionfs|tmpfs|squashfs|sysfs|usbfs|proc|devpts) continue
    esac
    if [ -b $DEV ] ; then
    if [ -r $DEV ] ; then
    log "STATUS" " $DEV: $((`blockdev --getra $DEV` / 2)) kB"
    else
    log "STATUS" " Cannot read $DEV, permission denied - $0 needs to be run as root"
    fi
    fi
    done
    log "STATUS" " "
    if [ -e /var/run/laptop-mode-tools/enabled ] ; then
    log "STATUS" "Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists."
    else
    log "STATUS" "Laptop Mode Tools is NOT allowed to run: /var/run/laptop-mode-tools/enabled does not exist."
    fi
    log "STATUS" " "
    STATFILES="/proc/sys/vm/laptop_mode /proc/apm /proc/pmu/info /proc/sys/vm/bdflush /proc/sys/vm/dirty_ratio /proc/sys/fs/xfs/age_buffer /proc/sys/fs/xfs/sync_interval /proc/sys/fs/xfs/lm_age_buffer /proc/sys/fs/xfs/lm_sync_interval /proc/sys/vm/pagebuf/lm_flush_age /proc/sys/fs/xfs/xfsbufd_centisecs /proc/sys/fs/xfs/xfssyncd_centisecs /proc/sys/vm/dirty_background_ratio /proc/sys/vm/dirty_expire_centisecs /proc/sys/fs/xfs/age_buffer/centisecs /proc/sys/vm/dirty_writeback_centisecs /sys/devices/system/cpu/*/cpufreq/cpuinfo_*_freq /sys/devices/system/cpu/*/cpufreq/scaling_governor /proc/acpi/button/lid/*/state /proc/acpi/ac_adapter/*/state /proc/acpi/battery/*/state /sys/class/power_supply/*/online /sys/class/power_supply/*/state"
    for THISFILE in $STATFILES ; do
    if [ -e "$THISFILE" ] ; then
    log "STATUS" "$THISFILE:"
    if [ -r "$THISFILE" ] ; then
    cat "$THISFILE" | sed "s/^/ /"
    else
    log "STATUS" " Not accessible, permission denied - $0 needs to be run as root."
    fi
    log "STATUS" " "
    fi
    done
    elif [ "$1" != "readconfig" -a "$1" != "defaults" ] ; then
    KLEVEL="$(uname -r |
    IFS='.-' read a b c
    echo $a.$b
    KMINOR="$(uname -r |
    IFS='.-' read a b c d
    # Strip any stuff from the end -- only the initial digits are part of the KMINOR.
    echo $c | sed -e 's/\([[:digit:]]*\).*/\1/'
    # Stop exporting everything -- what we do from here is private.
    set +a
    if [ "$1" = "--version" ] ; then
    log "MSG" "Laptop Mode Tools $LMTVERSION"
    exit 0
    fi
    if [ ! -e /proc/sys/vm/laptop_mode ] ; then
    log "ERR" "Kernel does not have support for laptop mode. Please apply the laptop mode"
    log "ERR" "patch or install a newer kernel."
    exit 1
    fi
    if [ ! -w /proc/sys/vm/laptop_mode ] ; then
    log "ERR" "You do not have enough privileges to enable laptop_mode."
    exit 1
    fi
    INIT=0 # Display info in init script format?
    FORCE=0 # Force reapplying the current state?
    while [ "$1" != "" ] ; do
    case "$1" in
    init) INIT=1 ;;
    force) FORCE=1 ;;
    # Old options. We always do "auto" for any option now, but
    # we still have to accept the options.
    start) ;;
    stop) ;;
    auto) ;;
    modules=*)
    MODULES=$1
    MODULES=${MODULES#"modules="}
    devices=*)
    DEVICES=$1
    DEVICES=${DEVICES#"devices="}
    *) log "ERR" "Unrecognized option $1."
    exit 1 ;;
    esac
    shift
    done
    mkdir -p /var/run/laptop-mode-tools
    # Used to display laptop mode state later on. This is the enabled/disabled
    # state for laptop mode processing, it tells us nothing about whether laptop
    # mode is actually _active_.
    STATE=enabled
    if [ "$ENABLE_LAPTOP_MODE_ON_BATTERY" -eq 0 -a "$ENABLE_LAPTOP_MODE_ON_AC" -eq 0 -a "$ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED" -eq 0 ] ; then
    STATE=disabled
    fi
    # Determine the power state.
    # First try /sys/class/power_supply/*
    FOUND_SYS_CLASS_POWER_SUPPLY_AC=0
    ON_AC=0
    for POWER_SUPPLY in /sys/class/power_supply/* ; do
    if [ -f $POWER_SUPPLY/type ] ; then
    if [ "$(cat $POWER_SUPPLY/type)" = "Mains" ] ;then
    log "VERBOSE" "Determining power state from $POWER_SUPPLY/online."
    FOUND_SYS_CLASS_POWER_SUPPLY_AC=1
    if [ "$(cat $POWER_SUPPLY/online)" = 1 ] ; then
    ON_AC=1
    fi
    fi
    fi
    done
    if [ $FOUND_SYS_CLASS_POWER_SUPPLY_AC = 1 ] ; then
    # Already found it!
    log "VERBOSE" "Not trying other options, already found a power supply."
    elif [ -d /proc/acpi/ac_adapter ] ; then
    log "VERBOSE" "Determining power state from /proc/acpi/ac_adapter."
    ADAPTERS_FOUND=0
    ON_AC=0
    for ADAPTER in /proc/acpi/ac_adapter/* ; do
    if [ -f $ADAPTER/state ] ; then
    ADAPTERS_FOUND=1
    STATUS=`awk '/^state: / { print $2 }' $ADAPTER/state`
    if [ "$STATUS" = "on-line" ] ; then
    ON_AC=1
    fi
    fi
    done
    if [ "$ADAPTERS_FOUND" -eq 0 ] ; then
    ON_AC=1
    fi
    elif [ -f /proc/pmu/info ] ; then
    log "VERBOSE" "Determining power state from /proc/pmu/info."
    if ( grep -q "^AC Power.*0$" /proc/pmu/info ) ; then
    log "VERBOSE" "/proc/pmu/info indicates absence of AC power."
    ON_AC=0
    else
    # It is possible that there is no AC Power = 1 in the file,
    # but we always assume AC power when we're not sure.
    ON_AC=1
    log "VERBOSE" "/proc/pmu/info indicates presence of AC power."
    fi
    elif [ -f /proc/apm ] ; then
    log "VERBOSE" "Determining power state from /proc/apm."
    read D1 D2 D3 APM_AC_STATE D0 </proc/apm
    if [ "$APM_AC_STATE" = "0x00" ] ; then
    ON_AC=0
    else
    ON_AC=1
    fi
    else
    log "VERBOSE" "No /sys/class/power_supply, ACPI, APM or PMU power management information found -- assuming AC power is present."
    ON_AC=1
    fi
    # Determine whether to activate or deactivate laptop mode.
    ACTIVATE=0
    if [ "$ON_AC" -eq 1 ] ; then
    if [ "$ENABLE_LAPTOP_MODE_ON_AC" -ne 0 ] ; then
    log "VERBOSE" "On AC power: Activating, because ENABLE_LAPTOP_MODE_ON_AC is set."
    ACTIVATE=1
    else
    log "VERBOSE" "On AC power: Deactivating, because ENABLE_LAPTOP_MODE_ON_AC is not set."
    ACTIVATE=0
    fi
    else
    if [ "$ENABLE_LAPTOP_MODE_ON_BATTERY" -ne 0 ] ; then
    log "VERBOSE" "On battery power: Activating, because ENABLE_LAPTOP_MODE_ON_BATTERY is set."
    ACTIVATE=1
    else
    log "VERBOSE" "On battery power: Deactivating, because ENABLE_LAPTOP_MODE_ON_BATTERY is not set."
    ACTIVATE=0
    fi
    fi
    if [ "$ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED" -ne 0 -a "$ACTIVATE" -eq 0 ] ; then
    if [ -x "`which hal-find-by-property`" ] ; then
    HAL_LID_BUTTON=$(hal-find-by-property --key "button.type" --string "lid")
    fi
    if [ "$HAL_LID_BUTTON" != "" ] ; then
    HAL_LID_BUTTON_STATE=$(hal-get-property --udi $(hal-find-by-property --key "button.type" --string "lid") --key "button.state.value")
    if [ "$HAL_LID_BUTTON_STATE" = "true" ] ; then
    log "VERBOSE" "Setting action to \"start\" because the lid is closed (says HAL)."
    ACTIVATE=1
    fi
    elif [ -f /proc/acpi/button/lid/*/state ] ; then
    if ( grep -q "closed" /proc/acpi/button/lid/*/state ) ; then
    log "VERBOSE" 'Setting action to "start" because the lid is closed (says /proc/acpi/button/lid/*/state).'
    ACTIVATE=1
    fi
    else
    log "MSG" "Warning: ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED is set, but there is no file"
    log "MSG" "/proc/acpi/button/lid/.../state, and hal information is not available either!"
    fi
    fi
    # If the init script has not been run or has been run with the "stop"
    # argument, then we should never start laptop mode.
    if [ ! -f /var/run/laptop-mode-tools/enabled ] ; then
    log "VERBOSE" "Laptop mode disabled because /var/run/laptop-mode-tools/enabled is missing."
    STATE=disabled
    fi
    if [ "$ACTIVATE" -eq 1 -a -f /etc/default/laptop-mode ] ; then
    . /etc/default/laptop-mode
    if ! ( echo "$ENABLE_LAPTOP_MODE" |grep y ) ; then
    log "VERBOSE" "Not starting laptop mode because it is disabled in /etc/default/laptop-mode."
    STATE=disabled
    fi
    fi
    if [ "$STATE" = "disabled" ] ; then
    ACTIVATE=0
    fi
    # Check whether we are allowed to activate the data-loss-sensitive stuff.
    # If the battery charge is too low, we want to disable this, but not the
    # other power-saving stuff.
    if [ "$ACTIVATE" -eq 0 ] ; then
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=0
    elif [ "$ON_AC" = 1 ] ; then
    log "VERBOSE" "On AC, not checking minimum battery charge."
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=1
    else
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=1
    ENOUGH_CHARGE=0
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=0
    # Weird way of checking that /sys/class/power_supply is not empty -- but it works.
    if [ "$(echo /sys/class/power_supply/*)" != '/sys/class/power_supply/*' ] ; then
    log "VERBOSE" "Not on AC and we have battery information in /sys/class/power_supply/BAT* -- checking minimum battery charge."
    for BATT in /sys/class/power_supply/* ; do
    BATT_TYPE=$(cat $BATT/type)
    log "VERBOSE" "$BATT is of type $BATT_TYPE."
    if [ "$BATT_TYPE" != "Battery" ] ; then
    log "VERBOSE" "Not of type \"Battery\", skipping."
    else
    PREV_ENOUGH_CHARGE=$ENOUGH_CHARGE
    PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    log "VERBOSE" "Checking levels for $BATT."
    PRESENT=$(cat $BATT/present)
    log "VERBOSE" "Present: $PRESENT."
    # Only do if the battery is present
    if [ "$PRESENT" -eq 1 ] ; then
    FOUND_AN_ENABLED_CHECK=0
    FOUND_AN_ENABLED_HIBERNATION_CHECK=0
    # Get the remaining capacity.
    IN_UAH=0
    IN_UWH=0
    if [ -f $BATT/charge_now ] ; then
    REMAINING=$(cat $BATT/charge_now)
    IN_UAH=1 # charge_* is in microAmpere-hours
    elif [ -f $BATT/energy_now ] ; then
    REMAINING=$(cat $BATT/energy_now)
    IN_UWH=1 # energy_* is in microWatt-hours
    else
    REMAINING=0
    fi
    if [ -z "$REMAINING" -o "$REMAINING" -eq 0 ] ; then
    log "VERBOSE" "Battery does not report remaining charge. Perhaps it is not present?"
    REMAINING=0
    fi
    log "VERBOSE" "Remaining charge: $REMAINING"
    if [ -f $BATT/charge_full_design ] ; then
    CAPACITY=$(cat $BATT/charge_full_design)
    elif [ -f $BATT/energy_full_design ] ; then
    CAPACITY=$(cat $BATT/energy_full_design)
    else
    CAPACITY=0
    fi
    if [ -z "$CAPACITY" -o "$CAPACITY" -eq 0 ] ; then
    log "VERBOSE" "Battery does not report design full charge, using non-design full charge."
    if [ -f $BATT/charge_full ] ; then
    CAPACITY=$(cat $BATT/charge_full)
    elif [ -f $BATT/energy_full_design ] ; then
    CAPACITY=$(cat $BATT/energy_full)
    else
    CAPACITY=0
    fi
    if [ -z "$CAPACITY" -o "$CAPACITY" -eq 0 ] ; then
    log "VERBOSE" "Battery does not report non-design full charge."
    CAPACITY=0
    fi
    fi
    log "VERBOSE" "Full capacity: $CAPACITY"
    # Check the charge percentage
    if [ "$MINIMUM_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a capacity. Minimum battery"
    log "MSG" "charge checking does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$MINIMUM_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a design capacity. Auto hibernation"
    log "MSG" "does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    # $BATT/alarm is the design_capacity_warning of a battery.
    ALARM_LEVEL=$(cat $BATT/alarm)
    if [ "$ALARM_LEVEL" -ne 0 ] ; then
    if [ "$REMAINING" -le "$ALARM_LEVEL" ] ; then
    # Restore the state we had before checking this battery, so that
    # this battery does not count as having enough charge.
    ENOUGH_CHARGE=$PREV_ENOUGH_CHARGE
    elif [ "$FOUND_AN_ENABLED_CHECK" -eq 0 ] ; then
    # This is the only check that is enabled. In that case a non-critical
    # battery level counts as "enough". (If we would count non-critical
    # battery levels as enough *always*, then the other settings would
    # have no effect; this is only a final fallback.)
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL" -ne 0 ] ; then
    if [ "$REMAINING" -le "$ALARM_LEVEL" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    elif [ "$FOUND_AN_ENABLED_HIBERNATION_CHECK" -eq 0 ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    # Fallback: hard values
    if [ "$IN_UAH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$MINIMUM_BATTERY_CHARGE_MAH")) ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$AUTO_HIBERNATION_BATTERY_CHARGE_MAH")) ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    elif [ "$IN_UWH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$MINIMUM_BATTERY_CHARGE_MWH")) ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$AUTO_HIBERNATION_BATTERY_CHARGE_MWH")) ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    else
    log "ERR" "Failed to determine battery charge. Battery charge units are not in"
    log "ERR" "mWh, uWh, mAh or uAh."
    fi
    else
    log "VERBOSE" "Battery is not present."
    fi
    fi
    done
    elif [ "$(echo /proc/acpi/battery/*)" != '/proc/acpi/battery/*' ] ; then
    log "VERBOSE" "Not on AC and we have batteries in /proc/acpi/battery -- checking minimum battery charge."
    for BATT in /proc/acpi/battery/* ; do
    PREV_ENOUGH_CHARGE=$ENOUGH_CHARGE
    PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    BATT_STATE=$BATT/state
    BATT_INFO=$BATT/info
    log "VERBOSE" "Checking info and state for $BATT."
    # Only do if the battery is present
    if ( grep -q 'present:.*yes' $BATT_INFO ) ; then
    FOUND_AN_ENABLED_CHECK=0
    FOUND_AN_ENABLED_HIBERNATION_CHECK=0
    # Get the remaining capacity.
    REMAINING=`grep "remaining capacity:" $BATT_STATE | sed "s/.* \([0-9][0-9]* \).*/\1/" `
    if [ -z "$REMAINING" ] ; then
    log "VERBOSE" "Battery does not report remaining charte. Perhaps it is not present?"
    REMAINING=0
    fi
    log "VERBOSE" "Remaining charge: $REMAINING"
    CAPACITY=`grep "design capacity:" $BATT_INFO | sed "s/.* \([0-9][0-9]* \).*/\1/" `
    if [ -z "$CAPACITY" ] ; then
    log "VERBOSE" "Battery does not report capacity. Perhaps it is not present?"
    CAPACITY=0
    fi
    log "VERBOSE" "Design capacity: $CAPACITY"
    # Check the charge percentage
    if [ "$MINIMUM_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a design capacity. Minimum battery"
    log "MSG" "charge checking does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$MINIMUM_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a design capacity. Auto hibernation"
    log "MSG" "does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    # Fallback: hard values.
    # Determine the reporting unit.
    IN_MAH=0
    IN_MWH=0
    if ( grep -q mWh $BATT_INFO ) ; then
    IN_MWH=1
    elif ( grep -q mAh $BATT_INFO ) ; then
    IN_MAH=1
    fi
    if [ "$IN_MAH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge "$MINIMUM_BATTERY_CHARGE_MAH" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_MAH" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    elif [ "$IN_MWH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge "$MINIMUM_BATTERY_CHARGE_MWH" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_MWH" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    else
    log "ERR" "Failed to determine battery charge. Battery charge units are not in"
    log "ERR" "mWh or mAh."
    fi
    CAP_STATE=`sed -r 's/^capacity state:\s*(.*)\s*$/\1/;t;d' "$BATT_STATE"`
    if [ "$DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL" -ne 0 ] ; then
    if [ "$CAP_STATE" = "critical" ] ; then
    # Restore the state we had before checking this battery, so that
    # this battery does not count as having enough charge.
    ENOUGH_CHARGE=$PREV_ENOUGH_CHARGE
    elif [ "$FOUND_AN_ENABLED_CHECK" -eq 0 ] ; then
    # This is the only check that is enabled. In that case a non-critical
    # battery level counts as "enough". (If we would count non-critical
    # battery levels as enough *always*, then the other settings would
    # have no effect; this is only a final fallback.)
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL" -ne 0 ] ; then
    if [ "$CAP_STATE" = "critical" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    elif [ "$FOUND_AN_ENABLED_HIBERNATION_CHECK" -eq 0 ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    else
    log "VERBOSE" "Battery is not present."
    fi
    done
    else
    ENOUGH_CHARGE=1
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    log "VERBOSE" "Not on AC and could not check battery state -- data loss sensitive features stay enabled and auto-hibernation will not work."
    fi
    if [ "$ENABLE_AUTO_HIBERNATION" -ne 0 -a "$ENOUGH_CHARGE_TO_PREVENT_HIBERNATION" -eq 0 ] ; then
    log "VERBOSE" "None of the batteries have a charge above the auto-hibernation level."
    log "VERBOSE" "Starting hibernation."
    if [ -x $HIBERNATE_COMMAND ]; then
    $HIBERNATE_COMMAND
    elif [ -f /sys/power/state ]; then
    grep -q disk /sys/power/state && echo disk > /sys/power/state
    fi
    # Don't continue -- if things are configured correctly, then we
    # will be called on resume.
    exit 0
    fi
    if [ "$ENOUGH_CHARGE" -eq 0 ] ; then
    log "VERBOSE" "None of the batteries have a charge above the minimum level."
    log "VERBOSE" "Deactivating data loss sensitive features."
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=0
    fi
    fi
    if [ "$INIT" -eq 0 ] ; then
    log "MSG" "Laptop mode "
    fi
    # WAS_ACTIVE is used later on. If there is no /var/run/laptop-mode-tools/state, then
    # we know that laptop mode wasn't active before.
    WAS_ACTIVE=0
    log "VERBOSE" "Checking if desired state is different from current state."
    if [ -f /var/run/laptop-mode-tools/state ] ; then
    read WAS_ACTIVE WAS_ON_AC WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS WAS_STATE < /var/run/laptop-mode-tools/state
    if [ "$WAS_STATE" != "" ] ; then
    if [ "$WAS_ACTIVE" -eq "$ACTIVATE" -a "$WAS_ON_AC" -eq "$ON_AC" -a "$WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -a "$WAS_STATE" = "$STATE" -a "$FORCE" -eq 0 ] ; then
    log "MSG" "$STATE, "
    if [ "$WAS_ACTIVE" -eq 1 ] ; then
    log "MSG" "active [unchanged]"
    if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq 0 ] ; then
    log "MSG" " (Data-loss sensitive features disabled.)"
    fi
    else
    log "MSG" "not active [unchanged]"
    fi
    exit 0
    fi
    fi
    else
    log "VERBOSE" "/var/run/laptop-mode-tools/state does not exist, no previous state."
    fi
    echo "$ACTIVATE $ON_AC $ACTIVATE_WITH_POSSIBLE_DATA_LOSS $STATE" > /var/run/laptop-mode-tools/state
    if [ "$ACTIVATE" -eq 1 ] ; then
    log "MSG" "$STATE, active"
    if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq 0 ] ; then
    log "MSG" " (Data-loss sensitive features disabled.)"
    fi
    else
    log "MSG" "$STATE, not active"
    fi
    # Finally, call laptop-mode-tools modules. The modules can use the settings
    # from the config files, but they may NOT assume the settings actually exist,
    # as no defaults have been given for them.
    # Note that the /usr/local/lib path is deprecated.
    export FORCE STATE ON_AC ACTIVATE ACTIVATE_WITH_POSSIBLE_DATA_LOSS KLEVEL KMINOR WAS_ACTIVE LM_VERBOSE DEVICES
    for SCRIPT in /usr/share/laptop-mode-tools/modules/* /usr/local/lib/laptop-mode-tools/modules/* /usr/local/share/laptop-mode-tools/modules/* /etc/laptop-mode/modules/* ; do
    if [ -z "$MODULES" ] ; then
    # If a module list has not been provided, execute all modules
    EXECUTE_SCRIPT=1
    else
    # If a module list has been provided, execute only the listed
    # modules.
    EXECUTE_SCRIPT=0
    for MODULE in $MODULES; do
    # Attempt to remove the module name from the end of the
    # full script path. If the module name matches the
    # script, the name will be removed from the end of the
    # full file path, leaving the path to the script. If
    # there was not a match made, the module name would not
    # be removed from the path, and $PATH_TO_SCRIPT would
    # be the same as $SCRIPT.
    PATH_TO_SCRIPT=${SCRIPT%%$MODULE}
    # Execute the script if a match was found (module name
    # was removed from the script path, making it shorter.
    if [ $PATH_TO_SCRIPT != $SCRIPT ] ; then
    EXECUTE_SCRIPT=1
    fi
    done
    fi
    if [ -x "$SCRIPT" -a $EXECUTE_SCRIPT -eq 1 ] ; then
    log "VERBOSE" "Invoking module $SCRIPT."
    SCRIPT_DEBUG=$SCRIPT; # We do this because in start-stop-programs module a $SCRIPT variable is used. That
    # changes the whole meaning when passed to disableDebug ()
    enableDebug $SCRIPT_DEBUG;
    . $SCRIPT
    disableDebug $SCRIPT_DEBUG;
    else
    log "VERBOSE" "Module $SCRIPT is not executable or is to be skipped."
    fi
    done
    exit 0
    # This fi closes the if for "readconfig". If I would have indented this one
    # I would have indented the whole file. :)
    fi
    lmt_load_config
    lock_retry ()
    ( $FLOCK -n -x -w 1 8 || exit 0;
    i=10;
    while [ $i -ge 1 ]
    do
    log "ERR" "Couldn't acquire lock. Retrying.... PID is $$\n"
    $FLOCK -x -w 1 9 && lmt_main_function "$@" && break;
    i=$(( $i - 1 ))
    done
    ) 8>$LMT_REQ_LOCK
    # Check and acquire locks and then exec.
    ( $FLOCK -n -x -w 1 8; ) 8>$LMT_REQ_LOCK
    ($FLOCK -n -x -w 1 9 && lmt_main_function "$@";) || lock_retry "$@"
    ) 9<>$LMT_INVOC_LOCK
    # We do a special run of battery polling daemon here so that it does not get
    # plagued by the lock. We need the polling daemon to be independent of any locks
    if [ x$ENABLE_BATTERY_LEVEL_POLLING = x1 ] && [ x$BLACKLIST_IN_FLOCK = x1 ]; then
    log "VERBOSE" "Battery level polling is enabled."
    if [ x$ON_AC = x1 ] ; then
    log "VERBOSE" "On AC, stopping the polling daemon."
    # In AC mode we disable the polling daemon.
    killall -q lm-polling-daemon
    else
    if ! pidof -x lm-polling-daemon ; then
    log "VERBOSE" "On battery and there was no polling daemon yet, starting the polling daemon."
    # If there is no polling daemon, we start one.
    /usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon < /dev/null > /dev/null 2> /dev/null &
    fi
    fi
    else
    log "VERBOSE" "Battery level polling is disabled."
    fi
    exit 0;
    and here is the lines which archwiki mentions
    case "$KLEVEL" in
    "2.4" ) ;;
    "2.6" ) ;;
    log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
    exit 1
    esac

    I had the problem but edited the line in /usr/sbin/laptop_mode and it worked. But thoes lines are not there anymore. I guess they changed it at the recent update of laptop-mode-tools.
    Regarding your heat problem; is there any other thing you use to cut down power usage (from AUR  maybe)? I use acpi_call from AUR had to edit lines there aswell, but it should be updated by now.

  • Closed Lid Mode in Boot Camp...

    Hey guys.
    Before I go and splurge on a 24" external display...will it be possible to use something like closed lid mode under boot camp?
    Will also want to be able to use a bluetooth mouse and keyboard
    cheers

    Hi V.K., I followed the reset steps for PRAM and the problem still exist. Could this be the battery's problem? BTW, my laptop is still fairly new, got it in December.
    Thanks for your help

Maybe you are looking for

  • My macbook pro (late 09) restart itself and refused start up.

    this my first post ever - been using Mac all my life but a rookie when it comes to crash report. My Macbook Pro (late 09) running Mavericks (all apps and everything else, kept updated) to day restart itself and i wonder what caused. had to do the rit

  • Apple Pro speakers with mini jack connect to new Intel iMac ?

    I would like to be able to connect the pair of perspex globe Apple Pro Speakers with mini-jack that came with my PowerPC G4 Mac to my new Lion desktop Intel iMac. However, the mini-jack is too small for either the ' audio in / optical digital audio i

  • File Adapter - Sender Problem

    Hi, While implementing a file to file interface I am facing problem in Integration Engine. Data is not passing to Integration engine, so it is not able to reach receiver. Receiver file adapter is working fine for other scenarion like IDoc to File. Fi

  • Log In Error for Particular User in FDM

    My manager had set up my ID to be able to log into FDM, but when I try to log in (using that ID which is the same as the one used for HFM), I receive an error message that says: Error: An error occurred logging on to the system Detail: Type mismatch

  • How do I maximize the Creative Cloud window

    Is there a way to maximize the Creative Cloud window. I have Windows 7. It opens so small and I cant brows for market vector items etc one at a time in a window that small that is just not gonna happen. I found the market on the internet through a br