Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thinkpad T22 ACPI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
yeags_1001
n00b
n00b


Joined: 20 May 2004
Posts: 20
Location: Pittsburgh, PA

PostPosted: Thu Jul 08, 2004 1:32 pm    Post subject: Thinkpad T22 ACPI Reply with quote

Hi, on my new install I used 2.6.7-gentoo-r8 dev-sources and even though I thought I added all the necessary apm options I'm getting a error running apm from the command line ... "No APM support in kernel". Below is the relevant section out of my .config file ...

Code:
#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_PM_DISK=y
CONFIG_PM_DISK_PARTITION=""

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_X86_PM_TIMER is not set

#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=y
CONFIG_APM_IGNORE_USER_SUSPEND=y
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
# CONFIG_APM_RTC_IS_GMT is not set
CONFIG_APM_ALLOW_INTS=y
CONFIG_APM_REAL_MODE_POWER_OFF=y

#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=y
CONFIG_APM_IGNORE_USER_SUSPEND=y
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
# CONFIG_APM_RTC_IS_GMT is not set
CONFIG_APM_ALLOW_INTS=y
CONFIG_APM_REAL_MODE_POWER_OFF=y

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y

#
# CPUFreq processor drivers
#
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_X86_POWERNOW_K6 is not set
# CONFIG_X86_POWERNOW_K7 is not set
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
CONFIG_X86_SPEEDSTEP_CENTRINO=y
CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
# CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI is not set
CONFIG_X86_SPEEDSTEP_ICH=m
CONFIG_X86_SPEEDSTEP_SMI=m
# CONFIG_X86_P4_CLOCKMOD is not set
CONFIG_X86_SPEEDSTEP_LIB=m
# CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set


I appreciate any insight.

Thanks ...


Last edited by yeags_1001 on Mon Jul 12, 2004 6:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
kitano
Apprentice
Apprentice


Joined: 19 Dec 2002
Posts: 228
Location: Munich, Germany, Europe, Earth

PostPosted: Thu Jul 08, 2004 3:50 pm    Post subject: Reply with quote

yepp, i guess you cannot have acpi AND apm loaded at once. so kernel tries to load apm, but since you already have acpi-support (since it comes first), it fails.

see if you have /sys/acpi/*various directories*

you should be able to do the stuff you can do with apm with acpi, too, but nevertheless, suspending is some kind of one in 5 to work properly...

greetz
kitano
_________________
->searched for a gentoo penguin ->alienated it with "find edges", "saturation", "photocopy" ->encoded quicktime from still ->played with aaxine ->screenshotted ->made it my avatar

only in case you were going to ask what it is...
Back to top
View user's profile Send private message
yeags_1001
n00b
n00b


Joined: 20 May 2004
Posts: 20
Location: Pittsburgh, PA

PostPosted: Thu Jul 08, 2004 5:47 pm    Post subject: Reply with quote

Thanks kitano,

I dropped the apm from the kernel (also removing my apm and apmd ebuilds). I think I need to play around with the default.sh script to see if I can get it to suspend. I emerged the acpi and acpid ebuilds and added acpid to the default runlevel.

I think I understand the system better now but I don't have a /sys/acpi directory. Why did you ask?

yeags_1001
Back to top
View user's profile Send private message
kitano
Apprentice
Apprentice


Joined: 19 Dec 2002
Posts: 228
Location: Munich, Germany, Europe, Earth

PostPosted: Fri Jul 09, 2004 8:28 am    Post subject: Reply with quote

oops, no, sorry yeags, its

Code:
/sys/power/


i asked, because apm uses /proc/apm/ and acpi creates its status und communication files in /sys/power/.

from the idea, sys and proc are pretty similar, but proc is used by the classic processes, whereas sys is somewhat more modern. but plz don't let me go into details, since that would definitely end in bullshit... =)

greetz and luck with your acpi-suspend!
_________________
->searched for a gentoo penguin ->alienated it with "find edges", "saturation", "photocopy" ->encoded quicktime from still ->played with aaxine ->screenshotted ->made it my avatar

only in case you were going to ask what it is...
Back to top
View user's profile Send private message
yeags_1001
n00b
n00b


Joined: 20 May 2004
Posts: 20
Location: Pittsburgh, PA

PostPosted: Mon Jul 12, 2004 5:35 pm    Post subject: Speaking of sys & proc ... Reply with quote

kitano ... if your still out there I could use some more insight (I'm willing to accept bullshit too ... along with insight) about the sys & proc interfaces. After messing around with ACPI and trying APM to see if I could use the thinkpad & tpctl packages (and dropping them going back to ACPI) I'm back to where I started and maybe a little bit further. I found this helpful guide by Earthwings.

I setup the battery runlevel as per the guide but speedfreq will not run because I don't have /sys/devices/system/cpu/cpu0/cpuinfo and it's subdirectories. According to my BIOS I have a speedstep processor and I can cat /proc/cpuinfo | grep "cpu MHz" and see a change when I running off battery or not (but it doesn't seem to change once booted). I've tried disabling the BIOS control of speedstep etc. and mucking with my kernal config to no avail. Could it be the BIOS is masking the speedstep functionality from the OS?

Thanks ... configs follow ...
Code:
# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz         : 896.412
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips        : 1773.56

# cat /proc/acpi/processor/CPU/info
processor id:            0
acpi id:                 1
bus mastering control:   yes
power management:        yes
throttling control:      yes
limit interface:         yes

# cat /proc/cpufreq
          minimum CPU frequency  -  maximum CPU frequency  -  policy

kernel .config listing
  #
  # Power management options (ACPI, APM)
  #
  CONFIG_PM=y
  CONFIG_SOFTWARE_SUSPEND=y
  # CONFIG_PM_DISK is not set
                                                                               
  #
  # ACPI (Advanced Configuration and Power Interface) Support
  #
  CONFIG_ACPI=y
  CONFIG_ACPI_BOOT=y
  CONFIG_ACPI_INTERPRETER=y
  CONFIG_ACPI_SLEEP=y
  CONFIG_ACPI_SLEEP_PROC_FS=y
  CONFIG_ACPI_AC=y
  CONFIG_ACPI_BATTERY=y
  CONFIG_ACPI_BUTTON=y
  CONFIG_ACPI_FAN=y
  CONFIG_ACPI_PROCESSOR=y
  CONFIG_ACPI_THERMAL=y
  # CONFIG_ACPI_ASUS is not set
  # CONFIG_ACPI_TOSHIBA is not set
  CONFIG_ACPI_DEBUG=y
  CONFIG_ACPI_BUS=y
  CONFIG_ACPI_EC=y
  CONFIG_ACPI_POWER=y
  CONFIG_ACPI_PCI=y
  CONFIG_ACPI_SYSTEM=y
  # CONFIG_X86_PM_TIMER is not set
                                                                               
  #
  # APM (Advanced Power Management) BIOS Support
  #
  # CONFIG_APM is not set
                                                                               
  #
  # CPU Frequency scaling
  #
  CONFIG_CPU_FREQ=y
  CONFIG_CPU_FREQ_PROC_INTF=y
  # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
  CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
  CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
  CONFIG_CPU_FREQ_GOV_POWERSAVE=y
  CONFIG_CPU_FREQ_GOV_USERSPACE=y
  CONFIG_CPU_FREQ_24_API=y
  CONFIG_CPU_FREQ_TABLE=y
                                                                               
  #
  # CPUFreq processor drivers
  #
  CONFIG_X86_ACPI_CPUFREQ=y
  CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
  # CONFIG_X86_POWERNOW_K6 is not set
  # CONFIG_X86_POWERNOW_K7 is not set
  # CONFIG_X86_POWERNOW_K8 is not set
  # CONFIG_X86_GX_SUSPMOD is not set
  CONFIG_X86_SPEEDSTEP_CENTRINO=y
  CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
  CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
  CONFIG_X86_SPEEDSTEP_ICH=y
  CONFIG_X86_SPEEDSTEP_SMI=y
  # CONFIG_X86_P4_CLOCKMOD is not set
  CONFIG_X86_SPEEDSTEP_LIB=y
  CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
  # CONFIG_X86_LONGRUN is not set
  # CONFIG_X86_LONGHAUL is not set

# dmesg | grep ACPI
 BIOS-e820: 0000000017fe0000 - 0000000017feec00 (ACPI data)
 BIOS-e820: 0000000017feec00 - 0000000017ff0000 (ACPI NVS)
ACPI: RSDP (v000 PTLTD                                     ) @ 0x000f6eb0
ACPI: RSDT (v001 PTLTD    RSDT   0x06041120  LTP 0x00000000) @ 0x17fe4b71
ACPI: FADT (v001 IBM    TP-16    0x06041120  0x00000000) @ 0x17feeb65
ACPI: BOOT (v001 PTLTD  $SBFTBL$ 0x06041120  LTP 0x00000001) @ 0x17feebd9
ACPI: DSDT (v001 IBM    TP-16    0x06041120 MSFT 0x0100000c) @ 0x00000000
ACPI: Subsystem revision 20040326
ACPI: IRQ9 SCI: Edge set to Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Root Bridge [PCI0] (00:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: Power Resource [PSER] (on)
ACPI: Power Resource [PSIO] (on)
ACPI: Embedded Controller [EC] (gpe 9)
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Battery Slot [BAT1] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Processor [CPU] (supports C1 C2 C3, 8 throttling states)
ACPI: Thermal Zone [THM0] (40 C)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum