This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Powerdevil does not recognize my AC Adapter

Tags: None
(comma "," separated)
User avatar
kodiakmax
Registered Member
Posts
8
Karma
0
OS
Linux 2.6.28-sabayon #1 SMP Mon Jan 12 09:02:36 UTC 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
KDE 4.2

Powerdevil does not recognize when my ac adapter is pluged in.
There are no files in the the /proc/acpi/ac_adapter folder
kpowersave reports that i am plugged in.
Screen does auto dim when adapter is unplugged.
Powerdevil screen brightness control does nothing, but my screen brightness fn keys work.


cat /usr/src/config |grep ACPI
Code: Select all
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_WMI=y
CONFIG_ACPI_ASUS=y
CONFIG_ACPI_TOSHIBA=y
CONFIG_ACPI_CUSTOM_DSDT_FILE=""
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_POWERNOW_K8_ACPI=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
CONFIG_PNPACPI=y
CONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUG is not set
CONFIG_THINKPAD_ACPI_BAY=y
CONFIG_THINKPAD_ACPI_VIDEO=y
CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
CONFIG_ATA_ACPI=y
CONFIG_PATA_ACPI=y


cat /usr/src/config | grep POWER
Code: Select all
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_POWER=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_X86_POWERNOW_K8=y
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_INPUT_POWERMATE=m
CONFIG_IPMI_POWEROFF=m
CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
CONFIG_PDA_POWER=m
CONFIG_SND_HDA_POWER_SAVE=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_AC97_POWER_SAVE=y
CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0
CONFIG_USB_HIDINPUT_POWERBOOK=y
CONFIG_ACORN_PARTITION_POWERTEC=y


dmesg |grep ACPI
Code: Select all
[    0.966709] ACPI Error (psargs-0358): [^CPU0._PPC] Namespace lookup failure, AE_NOT_FOUND
[    0.966736] ACPI Error (psparse-0524): Method parse/execution failed [_PR_.POWC] (Node ffff88015fa2b400), AE_NOT_FOUND
[    0.966767] ACPI Error (psparse-0524): Method parse/execution failed [_SB_.AC__._PSR] (Node ffff88015fa2b800), AE_NOT_FOUND
[    0.966796] ACPI Exception (ac-0135): AE_NOT_FOUND, Error reading AC Adapter state [20080926]
[    0.985079] ACPI: Battery Slot [BAT0] (battery present)
[    0.987262] ACPI: Power Button (FF) [PWRF]
[    0.990255] ACPI: Power Button (CM) [PWB]
[    0.993261] ACPI: Sleep Button (CM) [SLPB]
[    0.994042] ACPI: Lid Switch [LID]
[    0.994587] ACPI: SSDT 9FED71FD, 027A (r1  PmRef  Cpu0Ist     3000 INTL 20050624)
[    0.994966] ACPI: SSDT 9FED6CCE, 04AA (r1  PmRef  Cpu0Cst     3001 INTL 20050624)
[    0.997586] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
[    0.997622] processor ACPI_CPU:00: registered as cooling_device0
[    0.997625] ACPI: Processor [CPU0] (supports 8 throttling states)
[    0.997980] ACPI: SSDT 9FED7477, 00C8 (r1  PmRef  Cpu1Ist     3000 INTL 20050624)
[    0.998268] ACPI: SSDT 9FED7178, 0085 (r1  PmRef  Cpu1Cst     3000 INTL 20050624)
[    0.999096] ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
[    0.999127] processor ACPI_CPU:01: registered as cooling_device1
[    0.999130] ACPI: Processor [CPU1] (supports 8 throttling states)
[    1.018999] ACPI: Thermal Zone [THRM] (45 C)
[   12.068402] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
[   12.466914] ACPI: I/O resource 0000:00:1f.3 [0x1c00-0x1c1f] conflicts with ACPI region SMBI [0x1c00-0x1c0f]
[   12.466916] ACPI: Device needs an ACPI driver
[   13.398331] nvidia 0000:01:00.0: power state changed by ACPI to D0
[   22.188390] ACPI Exception (thermal-0479): AE_ERROR, ACPI thermal trip point state changed


lshal |grep acpi
Code: Select all
info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list)
  power_management.acpi.linux.version = '20080926'  (string)
  power_management.type = 'acpi'  (string)
udi = '/org/freedesktop/Hal/devices/acpi_CPU0'
  info.udi = '/org/freedesktop/Hal/devices/acpi_CPU0'  (string)
  linux.acpi_path = '/proc/acpi/processor/CPU0'  (string)
  linux.acpi_type = 1  (0x1)  (int)
udi = '/org/freedesktop/Hal/devices/acpi_CPU1'
  info.udi = '/org/freedesktop/Hal/devices/acpi_CPU1'  (string)
  linux.acpi_path = '/proc/acpi/processor/CPU1'  (string)
  linux.acpi_type = 1  (0x1)  (int)


lshal |grep power
Code: Select all
org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames = {'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '', 'enable_power_save'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = {'hal-system-power-suspend', 'hal-system-power-suspend-hybrid', 'hal-system-power-hibernate', 'hal-system-power-shutdown', 'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
  power_management.acpi.linux.version = '20080926'  (string)
  power_management.can_hibernate = true  (bool)
  power_management.can_suspend = true  (bool)
  power_management.can_suspend_hybrid = false  (bool)
  power_management.is_powersave_set = true  (bool)
  power_management.type = 'acpi'  (string)
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
  info.subsystem = 'power_supply'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'  (string)
  linux.subsystem = 'power_supply'  (string)
  linux.sysfs_path = '/sys/class/power_supply/BAT0'  (string)
  button.type = 'power'  (string)
  button.type = 'power'  (string)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 2  (0x2)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 2  (0x2)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.max_power = 500  (0x1f4)  (int)
  usb.is_self_powered = false  (bool)
  usb.max_power = 500  (0x1f4)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.max_power = 100  (0x64)  (int)
  usb.is_self_powered = false  (bool)
  usb.max_power = 100  (0x64)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.max_power = 0  (0x0)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.max_power = 100  (0x64)  (int)
  usb.is_self_powered = false  (bool)
  usb.max_power = 100  (0x64)  (int)
  usb.is_self_powered = false  (bool)
  usb.max_power = 100  (0x64)  (int)
  usb.is_self_powered = true  (bool)
  usb.max_power = 0  (0x0)  (int)


rc-update
Code: Select all
                  lvm | boot                                                                 
                  xdm | boot                                                                 
                 dbus | boot                                                                 
                 fsck | boot                                                                 
                 hald | boot                                                                 
                 lisa |      default                                                         
                 mtab | boot                                                                 
                 root | boot                                                                 
                 swap |      default                                                         
              keymaps | boot                                                                 
                cupsd |      default                                                         
                mdadm |      default                                                         
                local |      default nonetwork
                samba |      default
           vixie-cron |      default
              x-setup | boot
            syslog-ng |      default
       NetworkManager |      default
         avahi-daemon |      default
           lm_sensors |      default
           localmount | boot
          consolefont | boot
               dhcdbd |      default
              modules | boot
             hostname | boot
           fbcondecor |      default
               net.lo | boot
               procfs | boot
               serial | boot
             netmount |      default
               sysctl | boot
              urandom |      default
         termencoding | boot
              hotplug | boot
              hwclock | boot
             bootmisc | boot
        device-mapper | boot
 system-tools-backends |      default
            alsasound | boot

Last edited by kodiakmax on Fri Feb 06, 2009 4:12 am, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
All applications that use HAL to get power management information will not be able to report the plugged in state. This is because the Linux Kernel is unable to read the AC Adapter state. You will need to report this to your distribution as a bug.

KPowerSave is likely just feeding you failsafe data, it probably never changes, even when you plug / unplug your machine.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
kodiakmax
Registered Member
Posts
8
Karma
0
OS
bcooksley wrote:All applications that use HAL to get power management information will not be able to report the plugged in state. This is because the Linux Kernel is unable to read the AC Adapter state. You will need to report this to your distribution as a bug.

KPowerSave is likely just feeding you failsafe data, it probably never changes, even when you plug / unplug your machine.


OK thanks, I'll move this problem over to my distro forums. You are right kpowersave state doesn't change either.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell