Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[Howto] Power Management for your laptop using ACPI

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
57 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
Author
Message
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Tue May 18, 2004 9:41 pm

Any ACPI related errors in dmesg?

Code: Select all

dmesg | grep ACPI
Make sure to run the latest BIOS. It might be a problem with the DSDT. See these threads:
http://forums.gentoo.org/viewtopic.php?t=158462
http://forums.gentoo.org/viewtopic.php?t=122145
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue May 18, 2004 9:52 pm

the ac adapter/battery state isnt updated, ie if it is plugged in on startup it keeps on saying it's plugged in regardless, similarly it keeps on saying its on battery if it isnt plugged in on startup
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
codedmart
l33t
l33t
Posts: 647
Joined: Tue Nov 18, 2003 5:27 am
Location: Not Quite Sure

  • Quote

Post by codedmart » Tue May 18, 2004 10:07 pm

If I dmesg | grep ACPI this is what I get

Code: Select all

ACPI: No IRQ known for interrupt pin A of device 0000:00:10.0
powernow: Trying ACPI perflib
ACPI: (supports S0 S3 S4 S5)
ACPI: Looking for DSDT in initrd ... not found!
hope that helps because I have no idea what it means.[/code]
Top
lampshad3
n00b
n00b
Posts: 16
Joined: Wed Apr 16, 2003 2:18 pm

  • Quote

Post by lampshad3 » Thu May 27, 2004 4:01 pm

blmartin777 wrote:I have a gentoo system up and running. I was following your how-to and it got to the part where you said to
cat /proc/cpuinfo | grep "cpu MHz"
cd /sys/devices/system/cpu/cpu0/cpufreq/
echo -n userspace > scaling_governor
echo -n 1000000 > scaling_setspeed
cat /proc/cpuinfo | grep "cpu MHz"
When I tried to cd /sys/devices/system/cpu/cpu0/cpufreq I don't have that. I have everything up to /sys/devices/system/cpu/cpu0 but no cpufreq so I tried to create one (as normal user and as root) but it wouldn't let me. So I am not sure where to go or what to do from here.
Same here :(
I have a Compaq Armada e500
Top
Xerroz
n00b
n00b
Posts: 48
Joined: Sat Jan 17, 2004 7:23 am
Location: United States of America (the once free country)

  • Quote

Post by Xerroz » Fri May 28, 2004 6:16 am

hey EarthWings, whens your kde battery profile program gonna be released?? ;)
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Fri May 28, 2004 6:50 am

Xerroz wrote:hey EarthWings, whens your kde battery profile program gonna be released?? ;)
I'm working on it, but no promises for a release date yet :wink:

@blmartin, lampshad: I've got more time tomorrow and will have a deeper look at it.
Top
Remenic
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Sat May 10, 2003 6:27 pm

  • Quote

Post by Remenic » Sat May 29, 2004 11:36 am

I am using Linux 2.6.5-gentoo-r1, and ACPI does not seem to be fireing any battery/ac_adapter events. I can check the status of the ac_adapter from /proc/acpi/ac_adapter/AC0/state, and it is updated correctly. However, the default.sh script never gets called when I unplug the AC adapter.

I have added an echo "$group" >> /tmp/acpi to see what events get passed to default.sh, and so far I've only seen the 'button' event. I have compiled the battery and ac adapter drivers built-in.
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Sat May 29, 2004 12:06 pm

What laptop are you using? For a Dell 51xx, please see http://bugme.osdl.org/show_bug.cgi?id=1752 as mentioned early.
Top
mindstormmaster
n00b
n00b
Posts: 6
Joined: Fri Mar 26, 2004 6:33 am

  • Quote

Post by mindstormmaster » Thu Jun 03, 2004 6:50 am

Has anyone been able to get hibernation, using any method, to work when X is running?

I can get Suspend-to-Disk to work when X is not running, but it's a pain to have to stop X each time.
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Thu Jun 03, 2004 7:56 am

Yes, me :wink:
But only with swsusp2. Do you use that, too? If not, try it. If yes, do you have a nvidia card? I think swsusp2 also has an option to start and stop X automatically.

@Xerroz: I think in about four weeks. It's progressing well, and I'll make a real announcement once it's ready.
Top
redflash
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Fri Oct 17, 2003 8:25 am
Location: Germany

  • Quote

Post by redflash » Tue Jul 06, 2004 3:36 pm

I have the same problem as Remenic.
I can't recognized any events from ac_adapter or battery.
/proc/acpi/ac_adapter/ADP0/state is changed correctly
All drivers are build in.
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Tue Jul 06, 2004 4:07 pm

What laptop, kernel version are you using?
Top
redflash
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Fri Oct 17, 2003 8:25 am
Location: Germany

  • Quote

Post by redflash » Tue Jul 06, 2004 4:16 pm

elitegroup G551 Centrino
kernel : gentoo-dev-sources-2.6.7-r7
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Tue Jul 06, 2004 4:35 pm

Any ACPI related error messages in dmesg? Did you check whether a BIOS update is available?
Top
redflash
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Fri Oct 17, 2003 8:25 am
Location: Germany

  • Quote

Post by redflash » Tue Jul 06, 2004 8:39 pm

no acpi errors and the bios is uptodate
Top
redflash
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Fri Oct 17, 2003 8:25 am
Location: Germany

  • Quote

Post by redflash » Sat Jul 10, 2004 6:06 pm

now i use cron to look every minute
it works great
Top
pi-r
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Sat Nov 22, 2003 3:59 pm

  • Quote

Post by pi-r » Mon Jul 12, 2004 9:02 am

Hello,

First of all, thanks a lot for this wonderfull guide... But if got one problem :

-Speedfreq doesn't work for me... (In fact it had work once, decreased the CPU freq when I unplugged the AC but when I plug the AC after, I did not have an increasing... The frequency was stable around 600 MHz...)

I've got this strange message in /var/log/messages when I switch between the runlevel :


Jul 12 10:52:24 germaine logger: Switching to default runlevel
Jul 12 10:52:24 germaine rc-scripts: Could not kill pid '3680'
Jul 12 10:52:24 germaine rpc.statd[21682]: Version 1.0.6 Starting
Jul 12 10:52:24 germaine init: Trying to re-exec init
Jul 12 10:52:33 germaine logger: Switching to battery runlevel
As you can see, No problem for switching from default to battery runlevel, but for the battery to default, I've got a special log...


Thanks a lot for giving me some help...

Pi-r

My PC : Acer 6003lmi centrino 1.6 Ghz
GOD BLESS LINUX AND ESPECIALLY GENTOO
Top
noookz
n00b
n00b
Posts: 13
Joined: Thu Jul 22, 2004 6:20 pm

seems like dead topic...nonetheless

  • Quote

Post by noookz » Sat Aug 21, 2004 8:47 am

I have the same problem as blmartin777. However, my problem is my chipset isn't supported...I have Intel 440 BX/ZX/DX, so looks like I'm out of luck... :cry:
Last edited by noookz on Sun Aug 22, 2004 6:25 pm, edited 1 time in total.
Top
noookz
n00b
n00b
Posts: 13
Joined: Thu Jul 22, 2004 6:20 pm

  • Quote

Post by noookz » Sat Aug 21, 2004 8:48 am

-sorry, double post
Top
forsen
n00b
n00b
Posts: 23
Joined: Sat Nov 01, 2003 3:12 am
Location: Oslo, Norway

  • Quote

Post by forsen » Sun Nov 28, 2004 11:33 am

hi! is there a mirror of the howto some place? my isp have lots of problems with their routing these days, and i really want to try that howto!

forsen
Top
brodo
Guru
Guru
Posts: 319
Joined: Tue Apr 15, 2003 10:52 pm

Re: seems like dead topic...nonetheless

  • Quote

Post by brodo » Sun Nov 28, 2004 5:01 pm

noookz wrote:I have the same problem as blmartin777. However, my problem is my chipset isn't supported...I have Intel 440 BX/ZX/DX, so looks like I'm out of luck... :cry:
Not necessarily. Compile a recent (2.6.10-rc2) kernel with CONFIG_CPU_FERQ_DEBUG enabled and CONFIG_X86_SPEEDSTEP_SMI as module, pass cpufreq.debug=7 on the boot command line, issue a "modprobe speedstep-smi" and either send me (linux AT brodo DOT de) the dmesg or post it here or in a different thread. Also append the output of /proc/cpuinfo.
Top
brodo
Guru
Guru
Posts: 319
Joined: Tue Apr 15, 2003 10:52 pm

  • Quote

Post by brodo » Sun Nov 28, 2004 5:03 pm

pi-r wrote:-Speedfreq doesn't work for me... (In fact it had work once, decreased the CPU freq when I unplugged the AC but when I plug the AC after, I did not have an increasing... The frequency was stable around 600 MHz...)
Is there a directory

Code: Select all

/sys/devices/system/cpu/cpu0/cpufreq
? If so, what does cpufreq-info [see http://bugs.gentoo.org/show_bug.cgi?id=69320 ] return? Do you use an userspace cpufreq daemon like speedfreq, cpufreqd, powernowd, cpudyn, ...?
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Mon Nov 29, 2004 10:41 pm

forsen wrote:hi! is there a mirror of the howto some place? my isp have lots of problems with their routing these days, and i really want to try that howto!
http://www.gentoo.org/doc/en/power-management-guide.xml
http://www.stud.uni-karlsruhe.de/~uxhz/ ... draft.html

Notice the latter is a draft version that contains things that are currently blocked by some bugreports.

Edit: fixed link
Last edited by Earthwings on Mon Nov 29, 2004 11:24 pm, edited 1 time in total.
Top
brodo
Guru
Guru
Posts: 319
Joined: Tue Apr 15, 2003 10:52 pm

  • Quote

Post by brodo » Mon Nov 29, 2004 10:45 pm

Earthwings wrote:http://www.stud.uni-karlsruhe.de/power- ... draft.html

Code: Select all

The requested URL /power-management-guide-draft.html was not found on this server.
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Mon Nov 29, 2004 11:24 pm

Thanks, forgot a couple of directories...
Top
Post Reply

57 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic