View previous topic :: View next topic |
Author |
Message |
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Fri Jun 25, 2004 7:13 pm Post subject: Find Power Management in Kernel 2.6 Confusing |
|
|
After a while working I consider my AMD64 quite satisfying but I'm confused by the power management options stuff.
I had to disable ACPI because I otherwise get these "hd* dma_timer_expiry" problems slowing down my system. In principle I'm fine with it but I'd like to power my system down automatically. Some folks in the formum spoke about APM (which actually run on my last machine smoothly in terms of power off) but I can't find it as kernel option. Can't find it in menuconfig nor editing the .config file itself.
Does anybody have a clue where APM options are hidden?
By the way what's up with that APIC stuff and dma because I assume the live CD handles APIC somehow or not and this is running perfectly? At least sometimes I'd whish to find out which kernel options are used when I boot the live cd to copy the kernel options shamelessly.
Thanks in advance! |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Fri Jun 25, 2004 7:18 pm Post subject: |
|
|
boot livecd and do zcat /proc/config.gz. or maybe it's under /usr/src/linux.
btw, under 2.6, you don't see Power management -> APM? |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Fri Jun 25, 2004 7:37 pm Post subject: |
|
|
Thanks for the hint with kernel option.
APM is definatly not shown. Or I'm too stupid to see (don't wnat to exclude this option |
|
Back to top |
|
|
C.W. n00b
Joined: 27 May 2004 Posts: 74
|
Posted: Fri Jun 25, 2004 7:44 pm Post subject: |
|
|
APM is not inlcude at least in >2.6.5.
What exacly is your problem with ACPI? On all am64 board ACPI should work just fine. Try searching Bugzilla for your problem like
Code: |
ALL dma timer expiry
|
or something.
Chris |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Fri Jun 25, 2004 7:53 pm Post subject: |
|
|
Bugzilla report sounds very similar and there have been some posts here in the forum as well. I assume my SATA PCI card (SIL 3112) causes the problems and answer is given: Disable ACPI. |
|
Back to top |
|
|
C.W. n00b
Joined: 27 May 2004 Posts: 74
|
Posted: Fri Jun 25, 2004 8:28 pm Post subject: |
|
|
Hmm. Did you try it with ACPI on and booted with
Chris |
|
Back to top |
|
|
drumz Apprentice
Joined: 10 Nov 2002 Posts: 213
|
Posted: Fri Jun 25, 2004 8:40 pm Post subject: |
|
|
1. I have the same issue, not being able to power off. I inquired/filed a bug repot for the kernel and apparently it's an 'upstream' issue that it hasn't been ported/moved to the kernel. No word on when that will/won't happen.
2. For me, the issue is between ACPI and my Nvidia card. I've inquired in these forums and on the nvidia forums themselves to no avail. Nobody has been able to give me any ideas that have worked or additional tests to perform to figure out exactly what the issue is. All I know is: acpi on, no video, acpi off, everything works except for power off.
I sincerely hope you get an answer.
Drumz |
|
Back to top |
|
|
C.W. n00b
Joined: 27 May 2004 Posts: 74
|
Posted: Fri Jun 25, 2004 9:13 pm Post subject: |
|
|
Please try with my above advice. It's different than acpi=off (acpi completely off). pci=noacpi should only take care of the pci IRQ routing wich is done by the BIOS then. This allows to turn off your system using acpi.
You might have to play with the PNP_OS=YES/NO option in your BIOS too.
Chris |
|
Back to top |
|
|
drumz Apprentice
Joined: 10 Nov 2002 Posts: 213
|
Posted: Sat Jun 26, 2004 1:47 am Post subject: |
|
|
As suggested, I tried it with pci=noacpi and playing with the PnP OS in the BIOS. No difference in behavior.
What I have done tonight is examine stuff in /proc and the Xorg log file. I've noted the differences below. Hopefully it will shed more light and give someone an idea for me to try.
The thing to keep in mind:
ACPI enable kernel/bios: no video
ACPI disabled in either kernel/bios: video works but can't power off.
Xorg log file (/var/log):
when ACPI is disabled I get the following lines that do NOT appear when acpi is on and the video dies:
Code: |
(WW) NVIDIA(0): Failed to verify AGP usage
(II) NVIDIA(0): Setting mode "1280x1024"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(II) Loading extension NV-CONTROL
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing extension GLX
(**) Option "Protocol" "ImPS/2"
(**) Mouse1: Device: "/dev/mouse"
(**) Mouse1: Protocol: "ImPS/2"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/mouse"
(==) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(**) Mouse1: Buttons: 5
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse1: ps2EnableDataReporting: succeeded
Could not init font path element /usr/X11R6/lib/X11/fonts/local/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1 |
Instead when ACPI is enabled in both bios/kernel it ends with this:
Code: |
(II) NVIDIA(0): AGP 8X successfully initialized
(II) NVIDIA(0): Setting mode "1280x1024"
|
Examining /proc/interrupts when ACPI is disabled (video works) shows:
Code: |
CPU0
0: 823734 IO-APIC-edge timer
1: 1153 IO-APIC-edge i8042
2: 0 XT-PIC cascade
8: 0 IO-APIC-edge rtc
12: 4406 IO-APIC-edge i8042
14: 3350 IO-APIC-edge ide0
15: 19 IO-APIC-edge ide1
16: 47237 IO-APIC-level nvidia
17: 64028 IO-APIC-level libata, AMD AMD8111
19: 3 IO-APIC-level ohci1394, ohci_hcd, ohci_hcd
24: 8150 IO-APIC-level eth0
NMI: 733
LOC: 823510
ERR: 0
MIS: 0
|
Examining /proc/interrupts when ACPI is enabled (video does NOT work) shows:
Code: |
CPU0
0: 144599 IO-APIC-edge timer
1: 8 IO-APIC-edge i8042
2: 0 XT-PIC cascade
8: 0 IO-APIC-edge rtc
9: 2 IO-APIC-level acpi
12: 58 IO-APIC-edge i8042
14: 3312 IO-APIC-edge ide0
15: 19 IO-APIC-edge ide1
16: 91 IO-APIC-level nvidia
17: 7178 IO-APIC-level libata, AMD AMD8111
19: 3 IO-APIC-level ohci1394, ohci_hcd, ohci_hcd
24: 1391 IO-APIC-level eth0
NMI: 110
LOC: 144477
ERR: 0
MIS: 0
|
Looking at /proc/iomem with ACPI disabled (video works) shows:
Code: |
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000d0000-000d47ff : Extension ROM
000f0000-000fffff : System ROM
00100000-3ffeffff : System RAM
00100000-00349697 : Kernel code
00349698-0045ce47 : Kernel data
3fff0000-3fffefff : ACPI Tables
3ffff000-3fffffff : ACPI Non-volatile Storage
cc300000-cc3fffff : PCI Bus #02
d0000000-dfffffff : 0000:05:00.0
d0000000-d0ffffff : vesafb
fc600000-fc6fffff : PCI Bus #02
fc6f0000-fc6fffff : 0000:02:09.0
fc6f0000-fc6fffff : tg3
fc700000-fc8fffff : PCI Bus #03
fc8f8000-fc8fbfff : 0000:03:0c.0
fc8fd000-fc8fdfff : 0000:03:00.0
fc8fd000-fc8fdfff : ohci_hcd
fc8fe000-fc8fefff : 0000:03:00.1
fc8fe000-fc8fefff : ohci_hcd
fc8ff000-fc8ff7ff : 0000:03:0c.0
fc8ff000-fc8ff7ff : ohci1394
fc8ffc00-fc8fffff : 0000:03:0b.0
fc8ffc00-fc8fffff : sata_sil
fc9fe000-fc9fefff : 0000:00:0a.1
fc9ff000-fc9fffff : 0000:00:0b.1
fd000000-fdffffff : 0000:05:00.0
ff780000-ffffffff : reserved
|
Looking at /proc/iomem with ACPI enabled (video does NOT work) shows:
Code: |
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000d0000-000d47ff : Extension ROM
000f0000-000fffff : System ROM
00100000-3ffeffff : System RAM
00100000-00349697 : Kernel code
00349698-0045ce47 : Kernel data
3fff0000-3fffefff : ACPI Tables
3ffff000-3fffffff : ACPI Non-volatile Storage
cc300000-cc3fffff : PCI Bus #02
cc500000-ec4fffff : PCI Bus #05
d0000000-dfffffff : 0000:05:00.0
d0000000-d0ffffff : vesafb
f0000000-f7ffffff : 0000:04:00.0
f0000000-f7ffffff : aperture
fc600000-fc6fffff : PCI Bus #02
fc6f0000-fc6fffff : 0000:02:09.0
fc6f0000-fc6fffff : tg3
fc700000-fc8fffff : PCI Bus #03
fc8f8000-fc8fbfff : 0000:03:0c.0
fc8fd000-fc8fdfff : 0000:03:00.0
fc8fd000-fc8fdfff : ohci_hcd
fc8fe000-fc8fefff : 0000:03:00.1
fc8fe000-fc8fefff : ohci_hcd
fc8ff000-fc8ff7ff : 0000:03:0c.0
fc8ff000-fc8ff7ff : ohci1394
fc8ffc00-fc8fffff : 0000:03:0b.0
fc8ffc00-fc8fffff : sata_sil
fc9fe000-fc9fefff : 0000:00:0a.1
fc9ff000-fc9fffff : 0000:00:0b.1
fca00000-feafffff : PCI Bus #05
fd000000-fdffffff : 0000:05:00.0
ff780000-ffffffff : reserved
|
Looking at /proc/modules when ACPI is disabled (video working) shows this extra line as compared to when ACPI is enabled (video doesn't work). (I take it to mean that on top of my video being screwed up my floppy won't work?)
Code: |
floppy 60656 0 - Live 0xffffffffa0372000
|
For both sides looking at /proc/driver/nvidia/version shows:
Code: |
NVRM version: NVIDIA Linux x86_64 NVIDIA Kernel Module 1.0-5332 Fri Jan 9 12:42:32 PST 2004
GCC version: gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
|
Looking at /proc/driver/nvidia/agp/card for APIC disabled (video works):
Code: |
Fast Writes: Supported
SBA: Supported
AGP Rates: 8x 4x
Registers: 0x1f000e1b:0x1f000302
|
Looking at /proc/driver/nvidia/agp/card for APIC disabled (video works):
Code: |
Fast Writes: Supported
SBA: Supported
AGP Rates: 8x 4x
Registers: 0x1f000e1b:0x1f000302
|
Looking at /proc/driver/nvidia/agp/host-bridge for APIC disabled (vidoe works):
Looking at /proc/driver/nvidia/agp/host-bridge for apic enabled (video does NOT work):
Code: |
Host Bridge: Advanced Micro Devices [AMD] AMD-8151 System Controller
Fast Writes: Supported
SBA: Supported
AGP Rates: 8x 4x
Registers: 0x1f000b7b:0x00000b22
|
Looking at /proc/driver/nvidia/agp/status for apic disabled (video does work):
Looking at /proc/driver/nvidia/agp/status for apic enabled (video does NOT work):
Code: |
Status: Enabled
Driver: AGPGART
AGP Rate: 8x
Fast Writes: Disabled
SBA: Enabled
|
Looking at /proc/driver/nvidia/card/0 for both situations shows the same thing:
Code: |
Model: GeForce FX 5700
IRQ: 16
Video BIOS: 04.36.20.23.00
Card Type: AGP
|
Performing an lsmod under both situaitions shows the same thing except when the video is working the floppy module is also loaded.
I'm hoping that the differences in the /proc/nvidia stuff will help someone help me. I've exhausted all data points that I'm aware of, I've tested most permutations of this/that on/off with the same results. With the above info it seems that ACPI is configuring something differently that causes the video to bork.
Mobo: Tyan K8W S2885 with one 244 CPU.
Thanks for any assistance. Not powering off automatically is driving me nuts trying to figure out what the problem is (and I'm sure I'll learn a lot when it does get figured out). This is the ONLY thing I've been unable to get working - otherwise it's an amazingly fast box and I'm extremely pleased with it.
Drumz |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Sat Jun 26, 2004 1:02 pm Post subject: |
|
|
The hint of jkt is a good starting point. I did get with zcat /proc/config.gz the kernel config file from the live CD and compiled the kernel on my hd 1:1 and indeed: power off works! Comparing the config files, I can see a lot of differencies including that live CD has ACPI included. Now I have to take the time and see which of the kernel option will bring success. |
|
Back to top |
|
|
monkey89 Guru
Joined: 08 Mar 2004 Posts: 596
|
Posted: Sat Jun 26, 2004 1:34 pm Post subject: |
|
|
Huh?
I'm using APM in 2.6.7, just enable Power Management and it shows up... |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Sat Jun 26, 2004 2:21 pm Post subject: |
|
|
No, it does not show up even in 2.6.7-r6. Any other dependencies causing it to be disabled? |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Sat Jun 26, 2004 4:33 pm Post subject: It shut's off!!! Solved for me! |
|
|
Success!
Thanks to jkt and the hint with zcat /proc/config.gz. I copied the ACPI and CPU Frequency Scaling section into my (now kernel 2.6.7-r4) .config file got two corrective questions during make and I'm done. My machine really powers down. It has APIC enabled and no other problems seem to occur.
Quote: | #
# 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
#
# 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_POWERNOW_K8=y |
Thanks again |
|
Back to top |
|
|
drumz Apprentice
Joined: 10 Nov 2002 Posts: 213
|
Posted: Mon Jun 28, 2004 12:06 am Post subject: |
|
|
No change in behavior here. Of course if I disable X then yes I can power off with the shutdown command, but if I start X I still end up with a completely borked video display. It's also not even possible to hit Fx to switch to another session - I either have to kill the power or go to another box and ssh in.
Glad you found the solution to your problem. Hopefully I'll come across mine one of these days (preferably before I go nuts )
Drumz |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Mon Jun 28, 2004 4:41 am Post subject: |
|
|
Can you describe your display problems more detailed? Sometimes (and occurence depends on some kernel options) my X server does not want to start at all and the display stays black. Maybe something similar. |
|
Back to top |
|
|
drumz Apprentice
Joined: 10 Nov 2002 Posts: 213
|
Posted: Mon Jun 28, 2004 11:19 am Post subject: |
|
|
Well, log details are above.
But otherwise visually I can get one of two displays. Boot up is fine - everything displays correclty. It just seems that as soon as X kicks in it all goes haywire.
1. First visual: As soon as X kicks in, the monitor clicks like normal to switch resolutions. The NVidia log does not get displayed, but instead I get about a 1" band at the bottom of my screen where there is garbled output. White/purple in color, usually verticle lines (so it's vertically stripped).
2. Second visual (using different kernel based on someone elses suggestions): As soon as X kicks in, I get what looks like random ASCII characters in random colors all over the screen.
No matter what, I can't hit ALT-Fx to switch to an alternative console, typing blindly (like hitting ALT-S at what should be the login screen to to get the shutdown/restart dialog box) doesn't work. Have to hit the power button or ssh in from a remote box.
As long as I don't enable ACPI all works great. So I'm thinking I'll just have to live with the lack of auto power-off on shutdown. Not a big deal, but a little disappointing considering everything else is working great and others have reported not having any problems (although they may be using different video cards which explains why it works for them).
Drumz |
|
Back to top |
|
|
Tuxuser Tux's lil' helper
Joined: 28 Oct 2002 Posts: 136 Location: Solingen / Germany
|
Posted: Tue Jun 29, 2004 3:27 pm Post subject: |
|
|
No, at my system it looks different. My TFT stays black. /var/log messages states:
Quote: | Jun 29 17:00:22 tux64 dhcpcd[5286]: infinite IP address lease time. Exiting
Jun 29 17:00:23 tux64 cron[5382]: (CRON) STARTUP (fork ok)
Jun 29 17:00:24 tux64 init: Activating demand-procedures for 'A'
Jun 29 17:00:24 tux64 xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/freefont (unreadable)
Jun 29 17:00:24 tux64 xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/sharefont (unreadable)
Jun 29 17:00:24 tux64 xfs: ignoring font path element /usr/share/fonts/default/Type1 (unreadable)
Jun 29 17:00:24 tux64 xfs: ignoring font path element /usr/share/fonts/ttf/decoratives (unreadable)
Jun 29 17:00:24 tux64 xfs: ignoring font path element /usr/share/fonts/ttf/western (unreadable)
Jun 29 17:02:24 tux64 kdm: :0[5629]: Hung in XOpenDisplay(:0), aborting
Jun 29 17:02:24 tux64 kdm: :0[5629]: Cannot connect to :0, giving up
Jun 29 17:02:24 tux64 kdm[5625]: Display :0 cannot be opened |
|
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Tue Jun 29, 2004 6:10 pm Post subject: |
|
|
well, try to get rid of the nvidia display driver. AFAIK there are 2 implementations, nvidia's own and a free one, but I have Matrox, so I could be totally wrong.
or try to upgrade to latest nvidia binary drivers, etc... |
|
Back to top |
|
|
drumz Apprentice
Joined: 10 Nov 2002 Posts: 213
|
Posted: Wed Jun 30, 2004 11:41 pm Post subject: Got it working. |
|
|
[embarassing dancing]Yahoo yahoo yahoo.[/embarassing dancing]
I finally got it working.
1. Used the .config file provided by Corona688 here: https://forums.gentoo.org/viewtopic.php?t=180544&highlight=
2. Used this entry in my xorg.conf file: Option "NvAGP" "1"
Note that is a '1' and NOT THE 2 AS STATED EVERYWHERE ELSE. (This was courtesy of: http://www.minion.de whose patches were applied during emerge to make the drivers work for a 2.6 kernel).
3. Turned ACPI on in the BIOS, enabled it in the kernel config.
Voila, I now have everything working - video works fine and I can now power off automatically at shutdown.
The key was in the minion.de where it said if you get 'ascii garbage for your screen display use nvagp 1'. My config file gave me a messed up display, but only shrunk down to the lower portion of the screen. Using Corona688's config file gave me the ascii garbage - a step in the right direction. Then the clue was in the minion.de web page about using 1 instead of 2. That was it.
A few other notes: Enabling the IOMMU in the kernel config AUTOMATICALLY compiles in agpgart support INTO the kernel (no modules) and disables the agpgart menu item in menuconfig. For me, I would only get /dev/agpgart when ACPI was enabled in the bios/kernel. I still need to figure out what the diffs are between my kernel and Corona688 that made the ascii garbage vs. my screwed up display (which I had previously tried with various nvagp settings in the xorg.conf file to no avail.
And of course, I get it working just a few hours before Nvidia releases new drivers that support the 2.6 kernel, better ACPI support, etc. <sigh>
Thanks to all who helped, attempted to help, etc. Now lets hope the new drivers are even better.
Drumz |
|
Back to top |
|
|
|