linrunner / TLP

TLP - Optimize Linux Laptop Battery Life
https://linrunner.de/tlp
GNU General Public License v2.0
2.75k stars 130 forks source link

TLP makes ubuntu reboot instead of shut down #89

Closed Maccer1 closed 10 years ago

Maccer1 commented 10 years ago

When i shut down my computer with ubuntu 14.04 LTS it automatically starts again some seconds later. Can you fix it/ tell me how to fix it?

linrunner commented 10 years ago

Does this happen on AC or BAT or both? I always need

sudo tlp-stat
Maccer1 commented 10 years ago

It happens in both modes i think. --- TLP 0.5 --------------------------------------------

+++ Configured Settings: /etc/default/tlp TLP_ENABLE=1 DISK_IDLE_SECS_ON_AC=0 DISK_IDLE_SECS_ON_BAT=2 MAX_LOST_WORK_SECS_ON_AC=15 MAX_LOST_WORK_SECS_ON_BAT=60 CPU_SCALING_GOVERNOR_ON_AC=performance CPU_SCALING_GOVERNOR_ON_BAT=powersave CPU_BOOST_ON_AC=1 CPU_BOOST_ON_BAT=0 SCHED_POWERSAVE_ON_AC=0 SCHED_POWERSAVE_ON_BAT=1 NMI_WATCHDOG=0 DISK_DEVICES="sda sdb" DISK_APM_LEVEL_ON_AC="254 254" DISK_APM_LEVEL_ON_BAT="128 128" SATA_LINKPWR_ON_AC=max_performance SATA_LINKPWR_ON_BAT=min_power PCIE_ASPM_ON_AC=performance PCIE_ASPM_ON_BAT=powersave RADEON_POWER_PROFILE_ON_AC=high RADEON_POWER_PROFILE_ON_BAT=low RADEON_DPM_STATE_ON_AC=performance RADEON_DPM_STATE_ON_BAT=battery RADEON_DPM_PERF_LEVEL_ON_AC=auto RADEON_DPM_PERF_LEVEL_ON_BAT=auto WIFI_PWR_ON_AC=1 WIFI_PWR_ON_BAT=5 WOL_DISABLE=Y SOUND_POWER_SAVE_ON_AC=0 SOUND_POWER_SAVE_ON_BAT=1 SOUND_POWER_SAVE_CONTROLLER=Y BAY_POWEROFF_ON_BAT=0 BAY_DEVICE="sr0" RUNTIME_PM_ON_AC=on RUNTIME_PM_ON_BAT=auto RUNTIME_PM_ALL=0 USB_AUTOSUSPEND=1 USB_BLACKLIST_WWAN=1 RESTORE_DEVICE_STATE_ON_STARTUP=1

+++ System Info System = Acer V2.18 Aspire V5-571G BIOS = V2.18 Release = Ubuntu 14.04.1 LTS Kernel = 3.16.1-031601-generic x86_64 /proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-3.16.1-031601-generic root=UUID=9fcf414d-b97a-4212-91cb-73986a21c80e ro

+++ System Status TLP power save = enabled power source = ac

+++ Processor CPU Model = Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = performance /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2600000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = performance /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2600000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = performance /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2600000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = performance /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2600000 [kHz]

/sys/devices/system/cpu/intel_pstate/no_turbo = 0 /proc/sys/kernel/nmi_watchdog = 0

+++ Undervolting PHC kernel not available.

+++ Temperatures Fan speed = (not available)

+++ File System /proc/sys/vm/laptop_mode = 0 /proc/sys/vm/dirty_writeback_centisecs = 1500 /proc/sys/vm/dirty_expire_centisecs = 1500 /proc/sys/vm/dirty_ratio = 20 /proc/sys/vm/dirty_background_ratio = 10 /proc/sys/fs/xfs/age_buffer_centisecs = (not available) /proc/sys/fs/xfs/xfssyncd_centisecs = (not available) /proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

+++ Storage Devices /dev/sda: Model = WDC WD5000LPVT-22G33T0
Firmware = 01.01A01 APM Level = 254 Status = active/idle scheduler = deadline

    SMART info:
        4 Start_Stop_Count          =    17158 
        5 Reallocated_Sector_Ct     =        0 
        9 Power_On_Hours            =     4414 [h]
      193 Load_Cycle_Count          =    62720 
      194 Temperature_Celsius       =       35    [°C]

+++ SATA Aggressive Link Power Management /sys/class/scsi_host/host0/link_power_management_policy = max_performance /sys/class/scsi_host/host1/link_power_management_policy = max_performance /sys/class/scsi_host/host2/link_power_management_policy = max_performance /sys/class/scsi_host/host3/link_power_management_policy = max_performance /sys/class/scsi_host/host4/link_power_management_policy = max_performance /sys/class/scsi_host/host5/link_power_management_policy = max_performance

+++ PCIe Active State Power Management /sys/module/pcie_aspm/parameters/policy = default (using bios preferences)

+++ Intel Graphics /sys/module/i915/parameters/powersave = 1 (enabled) /sys/module/i915/parameters/i915_enable_rc6 = (not available) /sys/module/i915/parameters/i915_enable_fbc = (not available) /sys/module/i915/parameters/lvds_downclock = 0 (disabled) /sys/module/i915/parameters/semaphores = -1 (use per-chip default)

+++ Wireless bluetooth = off (software) wifi = on wwan = none (no device)

wlan0(ath9k): power management = off

+++ Audio /sys/module/snd_hda_intel/parameters/power_save = 0 /sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ Battery Status /sys/class/power_supply/BAT0/manufacturer = SANYO /sys/class/power_supply/BAT0/model_name = AL12A32 /sys/class/power_supply/BAT0/cycle_count = (not supported) /sys/class/power_supply/BAT0/charge_full_design = 2500 [mAh] /sys/class/power_supply/BAT0/charge_full = 2160 [mAh] /sys/class/power_supply/BAT0/charge_now = 284 [mAh] /sys/class/power_supply/BAT0/current_now = 1195 [mA] /sys/class/power_supply/BAT0/status = Charging

+++ Runtime Power Management /sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000 Host bridge) /sys/bus/pci/devices/0000:00:01.0/power/control = on (0x060400 PCI bridge) /sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000 VGA compatible controller) /sys/bus/pci/devices/0000:00:14.0/power/control = on (0x0c0330 USB controller) /sys/bus/pci/devices/0000:00:16.0/power/control = on (0x078000 Communication controller) /sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0320 USB controller) /sys/bus/pci/devices/0000:00:1b.0/power/control = on (0x040300 Audio device) /sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400 PCI bridge) /sys/bus/pci/devices/0000:00:1c.2/power/control = on (0x060400 PCI bridge) /sys/bus/pci/devices/0000:00:1c.3/power/control = on (0x060400 PCI bridge) /sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x0c0320 USB controller) /sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100 ISA bridge) /sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x010601 SATA controller) /sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x0c0500 SMBus) /sys/bus/pci/devices/0000:01:00.0/power/control = on (0x030000 VGA compatible controller) /sys/bus/pci/devices/0000:03:00.0/power/control = on (0xff0000 Unassigned class [ff00]) /sys/bus/pci/devices/0000:03:00.2/power/control = on (0x020000 Ethernet controller) /sys/bus/pci/devices/0000:04:00.0/power/control = on (0x028000 Network controller)

+++ USB tlp usb autosuspend = enabled tlp usb blacklist = (not configured)

Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Integrated Rate Matching Hub (hub) Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub) Bus 001 Device 005 ID 04ca:3006 control = auto, autosuspend_delay_ms = 2000 -- Lite-On Technology Corp. (btusb) Bus 001 Device 003 ID 03f0:a407 control = on, autosuspend_delay_ms = 2000 -- Hewlett-Packard (usbhid) Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Integrated Rate Matching Hub (hub) Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub) Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 3.0 root hub (hub) Bus 003 Device 002 ID 04f2:b335 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd (uvcvideo) Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)

linrunner commented 10 years ago

You think or you tested both?

Maccer1 commented 10 years ago

I tested today on battery mode and some time ago on ac mode but the kernel was different so maybe it affects.

linrunner commented 10 years ago

Please test again on AC.

Maccer1 commented 10 years ago

Tested. And yeah, it happens in AC also.

linrunner commented 10 years ago

OK, i would have preferred the other way ... ;-)

Try to disable the Runtime PM settings in the configuration like this

#RUNTIME_PM_ON_AC=on
#RUNTIME_PM_ON_BAT=auto

Then reboot and test again.

Maccer1 commented 10 years ago

Nothing changes...

linrunner commented 10 years ago

I forgot in the beginning: did you try to uninstall TLP yet?

Maccer1 commented 10 years ago

to reinstall you mean? Without TLP i didnt have any issue with that. Just with worse things xD

linrunner commented 10 years ago

I mean to uninstall TLP now and test again. Just to be sure.

You're running a 3.16.1 mainline kernel. Does this happen with Ubuntu's 3.13 too?

Maccer1 commented 10 years ago

You're gonna laugh xD. It seems a kernel issue (with 3.16.1 version) because i still having that problem without TLP.

linrunner commented 10 years ago

No problem. I'll close here.

astarrr commented 6 years ago

This happens to me too. I am on a Lenovo Ideapad with Ubuntu 18.04. When TLP is installed, the shutdown command makes the computer to restart. Both in BAT and AC.

Maccer1 commented 6 years ago

Uninstall TLP and check if it still happens.

astarrr commented 6 years ago

Uninstalled. Computer still restart instead of shutdown.

Solution: "sudo updategrub" then it shuts normally.