Skip to contentSkip to conversation

Compaq Presario 2800T

DISCUSSION Sourav K Mandal 3 participants 13 messages Aug 1, 2002 – Aug 7, 2002 10 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

So I upgraded to the acpi-20020726+swusp11. Nothing much has changed; however, I did develop a workaround for the hang when resuming from the suspension. I was able to deduce that ALSA was the culprit, so I simply shutdown/start ALSA in my suspension script.

The hangs on resume started with the patching of the DSDT. ACPI with the patched DSDT is producing the following error (excerpted from dmesg):

Executing all Device _STA and_INI methods:...evrgnini-0243:
*** Error: Could not install Pci+config handler for C03C,

This error is repeated thrice. Since my sound component (ADI SoundMAX, Intel 810) is PCI, I wonder if it's related? I'm not sure how to eliminate the error ... I could send my ASL DSDT to somebody who might be interested.

Regards,

Sourav

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 200208010551.BAA23125-6sBejHMmrpxoPFBmMDZSOjyo3AZ8UMn9@public.gmane.org

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just thought I would update everyone on my presario 2800 acpi progress.

Once I modified the dsdt with the correct tool (thanks for the pointer), most everything is working!

Software suspend still seems to work well.

Some questions:

With the processor information in /proc/acpi/processor, I have:

info:

processor id:            0
acpi id:                 1
bus mastering control:   yes
power management:        yes
throttling control:      yes
performance management:  yes
limit interface:         yes

limit:

active limit:            P0:T0
platform limit:          P0:T0
user limit:              P0:T0
thermal limit:           P0:T0

performance:

state count:             2
active state:            P0
states:
   *P0:                  1800 MHz, 20000 mW, 500 uS
    P1:                  1200 MHz, 10000 mW, 500 uS

power:

active state:            C2
default state:           C1
bus master activity:     ffffffff
states:
    C1:                  promotion[C2] demotion[--] latency[000] usage[00193030]
   *C2:                  promotion[C3] demotion[C1] latency[002] usage[25563637]
    C3:                  promotion[--] demotion[C2] latency[085] usage[00000234]

throttling:

state count:             8
active state:            T0
states:
   *T0:                  00%
    T1:                  12%
    T2:                  25%
    T3:                  37%
    T4:                  50%
    T5:                  62%
    T6:                  75%
    T7:                  87%

The only thing I can change is the "throttling" setting. Is that just cpu idling? or something else?

It doesn't seem to want to let me change "power" or "performance". Any ideas?

Also, the brightness buttons (Fn-F7 and Fn-F8) work ok in the bios, but don't seem to do anything once linux is booted. Is that ACPI related? Something else?

Also, this is a interesting one... the lid button is registered and it shows an ACPI event each time it closes or opens, but it doesn't show if it's closed or open, just a incremented number. any way to tell which state the lid is in? ie, a close, open lid cycle shows as:

[Sat Aug  3 16:04:55 2002] received event "button/lid C11D 00000080 00000021"
[Sat Aug  3 16:04:55 2002] completed event "button/lid C11D 00000080 00000021"
[Sat Aug  3 16:05:01 2002] received event "button/lid C11D 00000080 00000022"
[Sat Aug  3 16:05:01 2002] completed event "button/lid C11D 00000080 00000022"

so, 21 and 22... next time will be 23 and 24, etc.. Do I just odd/even to detemine if the lid is closed?

Thanks for all the help on this list... you guys have been great. I am quite happy with the laptop now.

kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9TFPW3imCezTjY0ERAlIjAJ4lehM4D4j4yeKz91ls29f/roKyRACgg/jM chs01y7UwUfmam1h2SFtT4w=
=iPax
-----END PGP SIGNATURE-----

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020803220614.21895.qmail-+bl/[email protected]

#4 lore raw
Quoted 3 lines · Kevin Fenzi

Also, the brightness buttons (Fn-F7 and Fn-F8) work ok in the bios, but don't seem to do anything once linux is booted. Is that ACPI related? Something else?

I have seen observed all the behaviors you have on my own 2800 except this one -- my brightnesses work correctly, even over reboots, i.e. brightness values with and without AC adapter are stored and restored.

FYI, I'm using linux-2.4.18+acpi-20020726+swsusp11+packet-cd

Sourav

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 1028528792.7332.14.camel-EJ/iAjOy/[email protected]

#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sourav" == Sourav K Mandal <smandal-DPNOqEs/[email protected]> writes:

Quoted 3 lines · Kevin Fenzi
Quoted 3 lines

Also, the brightness buttons (Fn-F7 and Fn-F8) work ok in the bios, but don't seem to do anything once linux is booted. Is that ACPI related? Something else?

Sourav> I have seen observed all the behaviors you have on my own 2800 Sourav> except this one -- my brightnesses work correctly, even over Sourav> reboots, i.e. brightness values with and without AC adapter Sourav> are stored and restored.

it stores and restores them ok, but I cant change them once linux is up and running. LIke the buttons stop doing anything. ;(

Sourav> FYI, I'm using linux-2.4.18+acpi-20020726+swsusp11+packet-cd Sourav> Sourav

kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9TpP73imCezTjY0ERArJtAJ0ZAv2hTPjJxnyyIwvvY6Qn7EgSfACfZWaP t8ss+hmKPGgqevT4geKlaFM=
=VELK
-----END PGP SIGNATURE-----

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020805150428.10039.qmail-+bl/[email protected]

#8 lore raw
Quoted 2 lines · Kevin Fenzi

it stores and restores them ok, but I cant change them once linux is up and running. LIke the buttons stop doing anything. ;(

Yeah, trying it out myself it seems like a DRI thing. Try turning off DRI in your XF86Config and see if it helps. You might have to reboot ... DRI doesn't work when coming back from suspend, and some things don't work once you run DRI. For me, once I run DRI the backlight refuses to turn off on lid close -- reboot fixes this.

If that doesn't work, try switching to a text console.

I have yet to apply Charl's patch, and so I alternate between DRI and no-DRI XF86Configs. I don't know if the patch fixes the backlight thing
...

Sourav

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 1028614416.4553.3.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

#10 lore raw
Quoted 7 lines · Sourav K. Mandal

On Mon, 2002-08-05 at 11:04, Kevin Fenzi wrote:
Yeah, trying it out myself it seems like a DRI thing. Try turning off DRI in your XF86Config and see if it helps. You might have to reboot ... DRI doesn't work when coming back from suspend, and some things don't work once you run DRI. For me, once I run DRI the backlight refuses to turn off on lid close -- reboot fixes this.

Quoted 5 lines

If that doesn't work, try switching to a text console.

I have yet to apply Charl's patch, and so I alternate between DRI and no-DRI XF86Configs. I don't know if the patch fixes the backlight thing
...

FWIW, my dim/bright keys (Fn-F6 and Fn-F6) always work and the brightness level is even retained across reboots. The binaries on
http://cpbotha.net/dri_reinit.html have been updated, although I doubt that thet changes have to do with your brightness settings.

Signature · 7 lines
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020806081618.GA7148-V1rPnKwUOrA59+mn7qD7y50iERQUc4G+@public.gmane.org

#12 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Charl" == Charl P Botha <[email protected]> writes:

Charl> On Tue, Aug 06, 2002 at 02:13:32AM -0400, Sourav K. Mandal

Quoted 4 lines · Charl> wrote:
Quoted 4 lines

I have yet to apply Charl's patch, and so I alternate between DRI and no-DRI XF86Configs. I don't know if the patch fixes the backlight thing ...

Charl> FWIW, my dim/bright keys (Fn-F6 and Fn-F6) always work and the Charl> brightness level is even retained across reboots. The binaries Charl> on http://cpbotha.net/dri_reinit.html have been updated, Charl> although I doubt that thet changes have to do with your Charl> brightness settings.

Thanks, I will try the updated ones as soon as I get a chance. Whats changed? Same diff against newer dri?

kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9T+vP3imCezTjY0ERAum2AJ9SYlbQvQberNOUSH7sHeC3X+D23ACgjt+k IH2YRPzWcugLyFLAD0EG8W8=
=qc1Z
-----END PGP SIGNATURE-----

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020806153127.23056.qmail-+bl/[email protected]

#14 lore raw
Quoted 8 lines · Kevin Fenzi

Charl> FWIW, my dim/bright keys (Fn-F6 and Fn-F6) always work and the Charl> brightness level is even retained across reboots. The binaries Charl> on http://cpbotha.net/dri_reinit.html have been updated, Charl> although I doubt that thet changes have to do with your Charl> brightness settings.

Thanks, I will try the updated ones as soon as I get a chance. Whats changed? Same diff against newer dri?

There is more detail at cpbotha.net/dri_reinit.html.

Basically, Michel Dänzer has re-engineered my concept to make it more stable. You can now do things like run multiple DRI-capable servers at the same time and switch between them... they will automatically switch between hardware and software 3D depending on who's holding a lock on the Radeon hardware. My kludge could also do this, but would break under certain circumstances.

The suspend/resume software is still more or less the same.

Signature · 7 lines
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#15 lore raw
In reply to a message not in the archive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Charl" == Charl P Botha <[email protected]> writes:

Charl> FWIW, my dim/bright keys (Fn-F6 and Fn-F6) always work and the Charl> brightness level is even retained across reboots. The binaries Charl> on http://cpbotha.net/dri_reinit.html have been updated, Charl> although I doubt that thet changes have to do with your Charl> brightness settings.

Well, I finally got around to upgrading to the newest one there (got some more memory for the laptop and had to reboot anyhow)...

I also did some debugging...

The Fn f7 (dim) and Fn-f8 (brighten) and Fn-F4 (monitor) all work fine when I first boot up. They also work fine if I start X with no DRM. If I start X with drm, then they stop working and won't work again until I reboot.

Any ideas? Could be a XFree86 version problem?

I am running RedHat limbo with XFree86-4.2.0-56 + your drm_reinit modules.

kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9UaNX3imCezTjY0ERAonrAJ9Gr62NIEG0iuDZKCUxpJq1EFMQpQCfcdua hcd+BNZvpMsThcef+qLBs2U=
=/WtP
-----END PGP SIGNATURE-----

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020807224648.5744.qmail-+bl/[email protected]

#17 lore raw
Quoted 5 lines

The Fn f7 (dim) and Fn-f8 (brighten) and Fn-F4 (monitor) all work fine when I first boot up. They also work fine if I start X with no DRM. If I start X with drm, then they stop working and won't work again until I reboot.

Exactly what I'm getting, but with stock DRI modules.

Quoted 1 line

Any ideas? Could be a XFree86 version problem?

Unforunately, not really. :-(

My (layman's) guess is that it has something to do with the GPU's power state. The BIOS won't shut down the LCD until it's satisfied with the Radeon's power state; once DRM is used
the Radeon cannot enter an acceptable power state.

This is the inverse of the DRI-on-resume problem, that once the Radeon is shutdown w/o reset, the DRM "parts" don't wake up properoly.

Sourav

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 200208072257.SAA04328-UAlz0gpoyMvRrlGjHHsfAOmCSIfjHtlf@public.gmane.org

#19 lore raw
Quoted 6 lines · Sourav K Mandal
Quoted 4 lines

The Fn f7 (dim) and Fn-f8 (brighten) and Fn-F4 (monitor) all work fine when I first boot up. They also work fine if I start X with no DRM. If I start X with drm, then they stop working and won't work again until I reboot.

Exactly what I'm getting, but with stock DRI modules.

Just for clarity, on my laptop (which is not a Compaq, but a no-namer with Radeon Mobility 7500 64MB) the bright/dim keys always work, DRI or no DRI.

Quoted 8 lines
Quoted 1 line

Any ideas? Could be a XFree86 version problem?

Unforunately, not really. :-(

My (layman's) guess is that it has something to do with the GPU's power state. The BIOS won't shut down the LCD until it's satisfied with the Radeon's power state; once DRM is used
the Radeon cannot enter an acceptable power state.

If you experience this with stock XFree86 DRI as well, I would post a report
on [email protected] as well. One of the ATI engineers is spending a lot of time with these drivers and might have something to add to the equation.

Quoted 3 lines

This is the inverse of the DRI-on-resume problem, that once the Radeon is shutdown w/o reset, the DRM "parts" don't wake up properoly.

The DRM wasn't designed for stopping/starting in mid-stride, which is why we've made it so that it completely initialises/de-initialises during VT-switch. If certain remaining technical problems can be sorted out, this might even make XFree86 4.3.0, at least until a more generic solution can be implemented.

Good luck,
Charl

Signature · 7 lines
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 20020807230502.GA3563-V1rPnKwUOrA59+mn7qD7y50iERQUc4G+@public.gmane.org

#21 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Charl" == Charl P Botha <[email protected]> writes:

Charl> On Wed, Aug 07, 2002 at 06:57:25PM -0400, Sourav K Mandal

Quoted 6 lines · Charl> wrote:
Quoted 6 lines
Quoted 1 line

The Fn f7 (dim) and Fn-f8 (brighten) and Fn-F4 (monitor) all work

fine > when I first boot up. They also work fine if I start X with no DRM. If > I start X with drm, then they stop working and won't work again until > I reboot.

Exactly what I'm getting, but with stock DRI modules.

Charl> Just for clarity, on my laptop (which is not a Compaq, but a Charl> no-namer with Radeon Mobility 7500 64MB) the bright/dim keys Charl> always work, DRI or no DRI.

so it might be a bios diffrence... ?

Quoted 4 lines
Quoted 4 lines

My (layman's) guess is that it has something to do with the GPU's power state. The BIOS won't shut down the LCD until it's satisfied with the Radeon's power state; once DRM is used the Radeon cannot enter an acceptable power state.

Charl> If you experience this with stock XFree86 DRI as well, I would
Charl> post a report on [email protected] as well. One of the ATI Charl> engineers is spending a lot of time with these drivers and
Charl> might have something to add to the equation.

ok. I will try and test it later tonight and see. I can't remember if I saw it with stock X/drm or not.

Quoted 3 lines
Quoted 3 lines

This is the inverse of the DRI-on-resume problem, that once the Radeon is shutdown w/o reset, the DRM "parts" don't wake up properoly.

Charl> The DRM wasn't designed for stopping/starting in mid-stride, Charl> which is why we've made it so that it completely Charl> initialises/de-initialises during VT-switch. If certain Charl> remaining technical problems can be sorted out, this might even Charl> make XFree86 4.3.0, at least until a more generic solution can Charl> be implemented.

excellent.

Charl> Good luck, Charl

kevin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9UaqC3imCezTjY0ERAgHVAJ9mLzQXUEQ893HzqDAbipwoLnUbzACeKd+B ofgte2+w7GMrGw8cLlTVdA8=
=gczI
-----END PGP SIGNATURE-----

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#22 lore raw
In reply to a message not in the archive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sourav" == Sourav K Mandal <smandal-DPNOqEs/[email protected]> writes:

Quoted 2 lines · Kevin Fenzi
Quoted 2 lines

it stores and restores them ok, but I cant change them once linux is up and running. LIke the buttons stop doing anything. ;(

Sourav> Yeah, trying it out myself it seems like a DRI thing. Try Sourav> turning off DRI in your XF86Config and see if it helps. You Sourav> might have to reboot ... DRI doesn't work when coming back Sourav> from suspend, and some things don't work once you run DRI. Sourav> For me, once I run DRI the backlight refuses to turn off on Sourav> lid close -- reboot fixes this.

humm... interesting...

Sourav> If that doesn't work, try switching to a text console.

buttons still don't work in a text console either.
I might try with no DRI after a bit... enjoying the stability for a few days.

For the backlight I rescovered:

http://fdd.com/software/radeon/

Tool to turn on/off the backlight. I set it up in acpid to turn off the backlight when the lid closes and back on when the lid opens (as long as it doesn't get out of sync).

Sourav> I have yet to apply Charl's patch, and so I alternate between Sourav> DRI and no-DRI XF86Configs. I don't know if the patch fixes Sourav> the backlight thing ...

I am running that patched radeon, and I can't do anything with brightness or the external monitor. Might be something else in my setup tho.

Sourav> Sourav

kevin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE9T+tl3imCezTjY0ERAuwOAJ9cHeybDYhG2N9zoDgZh1sbjzr1HACggW+1 yQPEZCyXoNjxQ4+I5A3Wt/s=
=wYcn
-----END PGP SIGNATURE-----

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf