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

W500 thinkpad won't boot with TLP enabled with opensource radeon gallium uvd support #102

Closed bikerrat closed 10 years ago

bikerrat commented 10 years ago

Using first linux-next & now 3.18rc-1 kernels I got the opensource radeon uvd support working for the r6xx based videocard in this laptop.With tlp disabled by setting the TLP_ENABLED=0 everything works fine. With TLP_ENABLE=1, I just get a black screen that won't switch to console. Without UVD enabled tlp works fine. Do you have any guesses I could try in the tlp configuration file to get tlp partially functioning with UVD support?

dywisor commented 10 years ago

Set RUNTIME_PM_BLACKLIST="01:00.0" in /etc/default/tlp (run lspci to get the correct device address, 01:00.0 is just guessed).

If that doesn't work, post the output of tlp-stat.

bikerrat commented 10 years ago

Just figured out a workaround to solve my own ploblem. If I preload the radeon module by including it in the initramfs, the problem doesn't arise.Sorry to bother you. [root@arch paul]# tlp-stat --- TLP 0.6 --------------------------------------------

+++ 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 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" DISK_IOSCHED="noop" 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=1 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=0

+++ System Info System = LENOVO ThinkPad W500 4063AQ2 BIOS = 6FET93WW (3.23 ) Release = "Arch Linux" Kernel = 3.18.0-1-mainline x86_64 /proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-linux-mainline root=UUID=2936cd75-7e05-4011-a4aa-1bb7b4e60d57 rw

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

+++ Processor CPU Model = Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 1600000 [kHz] /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2534000 2533000 1600000 800000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = acpi-cpufreq /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 1600000 [kHz] /sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 2534000 2533000 1600000 800000 [kHz]

/sys/devices/system/cpu/cpufreq/boost = 1 /proc/sys/kernel/nmi_watchdog = 0

+++ Undervolting PHC kernel not available.

+++ Temperatures /proc/acpi/ibm/thermal = 48 51 37 59 37 -128 32 -128 38 51 48 -128 -128 -128 -128 -128 [°C] /proc/acpi/ibm/fan = 3005 [/min]

+++ 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 = Corsair Force 3 SSD
Firmware = 5.05
APM Level = 254 Status = active/idle TRIM = supported scheduler = noop

    SMART info:
        9 Power_On_Hours_and_Msec   =      715 [h]
      194 Temperature_Celsius       =      128 (0 127 0 [°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

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

+++ Radeon Graphics /sys/class/drm/card0/device/power_method = profile /sys/class/drm/card0/device/power_profile = high

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

wlp3s0(iwlwifi): power management = off

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

+++ ThinkPad Extended Battery Functions tp-smapi = inactive (kernel module 'tp_smapi' not installed) tpacpi-bat = inactive (kernel module 'acpi_call' not installed)

+++ Battery Status /sys/class/power_supply/BAT0/manufacturer = SANYO /sys/class/power_supply/BAT0/model_name = 42T4619 /sys/class/power_supply/BAT0/cycle_count = (not supported) /sys/class/power_supply/BAT0/energy_full_design = 84240 [mWh] /sys/class/power_supply/BAT0/energy_full = 36940 [mWh] /sys/class/power_supply/BAT0/energy_now = 8080 [mWh] /sys/class/power_supply/BAT0/power_now = 12658 [mW] /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:03.0/power/control = on (0x078000 Communication controller) /sys/bus/pci/devices/0000:00:19.0/power/control = on (0x020000 Ethernet controller) /sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0300 USB controller) /sys/bus/pci/devices/0000:00:1a.1/power/control = on (0x0c0300 USB controller) /sys/bus/pci/devices/0000:00:1a.2/power/control = on (0x0c0300 USB controller) /sys/bus/pci/devices/0000:00:1a.7/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.1/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:1c.4/power/control = on (0x060400 PCI bridge) /sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x0c0300 USB controller) /sys/bus/pci/devices/0000:00:1d.1/power/control = on (0x0c0300 USB controller) /sys/bus/pci/devices/0000:00:1d.2/power/control = on (0x0c0300 USB controller) /sys/bus/pci/devices/0000:00:1d.7/power/control = on (0x0c0320 USB controller) /sys/bus/pci/devices/0000:00:1e.0/power/control = on (0x060401 PCI bridge) /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 (0x028000 Network controller) /sys/bus/pci/devices/0000:15:00.0/power/control = on (0x060700 CardBus bridge) /sys/bus/pci/devices/0000:15:00.1/power/control = on (0x0c0010 FireWire (IEEE 1394)) /sys/bus/pci/devices/0000:15:00.2/power/control = on (0x080500 SD Host controller) /sys/bus/pci/devices/0000:15:00.4/power/control = on (0x088000 System peripheral) /sys/bus/pci/devices/0000:15:00.5/power/control = on (0x088000 System peripheral)

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

Bus 008 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub) Bus 007 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 1.1 root hub (hub) Bus 006 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 1.1 root hub (hub) Bus 005 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 1.1 root 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:0001 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 1.1 root hub (hub) Bus 003 Device 002 ID 08ff:2810 control = auto, autosuspend_delay_ms = 2000 -- AuthenTec, Inc. AES2810 (no driver) Bus 003 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 1.1 root hub (hub) Bus 002 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 1.1 root hub (hub)

+++ Suggestions

[root@arch paul]# [paul@arch ~]$ vdpauinfo display: :0 screen: 0 API version: 1 Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name width height types

420 8192 8192 NV12 YV12 422 8192 8192 UYVY YUYV 444 8192 8192 Y8U8V8A8 V8U8Y8A8

Decoder capabilities:

name level macbs width height

MPEG1 0 9216 2048 1152 MPEG2_SIMPLE 3 9216 2048 1152 MPEG2_MAIN 3 9216 2048 1152 H264_BASELINE 41 9216 2048 1152 H264_MAIN 41 9216 2048 1152 H264_HIGH 41 9216 2048 1152 VC1_ADVANCED 4 9216 2048 1152

Output surface:

name width height nat types

B8G8R8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R8G8B8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R10G10B10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 B10G10R10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8

Bitmap surface:

name width height

B8G8R8A8 8192 8192 R8G8B8A8 8192 8192 R10G10B10A2 8192 8192 B10G10R10A2 8192 8192 A8 8192 8192

Video mixer:

feature name sup

DEINTERLACE_TEMPORAL y DEINTERLACE_TEMPORAL_SPATIAL - INVERSE_TELECINE - NOISE_REDUCTION y SHARPNESS y LUMA_KEY - HIGH QUALITY SCALING - L1 - HIGH QUALITY SCALING - L2 - HIGH QUALITY SCALING - L3 - HIGH QUALITY SCALING - L4 - HIGH QUALITY SCALING - L5 - HIGH QUALITY SCALING - L6 - HIGH QUALITY SCALING - L7 - HIGH QUALITY SCALING - L8 - HIGH QUALITY SCALING - L9 -

parameter name sup min max

VIDEO_SURFACE_WIDTH y 48 2048 VIDEO_SURFACE_HEIGHT y 48 1152 CHROMA_TYPE y
LAYERS y 0 4

attribute name sup min max

BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00 SHARPNESS_LEVEL y -1.00 1.00 LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y

[paul@arch ~]$