Acpitool: commandline ACPI status program for laptops

Miscellaneous tools
Message
Author
Nooblet0218
Posts: 105
Joined: Fri 21 May 2010, 17:50

#31 Post by Nooblet0218 »

i've been trying to get this to work on my sony vaio desktop but i'm having some trouble. i'd love any ideas

acpitool -s seems to work fine but when i attempt to reboot i simply get a black screen and the power light on my monitor flashes orange and green. My usb devices are not powered, and neither is my keyboard. i don't pass go or collect 200$

I cleared /var/log/messages before trying to standby and i get this

Code: Select all

Jul  7 16:45:59 puppypc user.info kernel: PM: Syncing filesystems ... 
Jul  7 16:45:59 puppypc user.info kernel: done.
Jul  7 16:46:14 puppypc user.warn kernel: Freezing user space processes ... 
Jul  7 16:46:14 puppypc user.info kernel: (elapsed 0.01 seconds) done.
Jul  7 16:46:14 puppypc user.warn kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Jul  7 16:46:14 puppypc user.warn kernel: Suspending console(s) (use no_console_suspend to debug)
Jul  7 16:46:14 puppypc user.notice kernel: sd 0:0:1:0: [sdb] Synchronizing SCSI cache
Jul  7 16:46:14 puppypc user.notice kernel: sd 0:0:1:0: [sdb] Stopping disk
Jul  7 16:46:14 puppypc user.notice kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jul  7 16:46:14 puppypc user.notice kernel: sd 0:0:0:0: [sda] Stopping disk
Jul  7 16:46:14 puppypc user.info kernel: serial 00:0b: disabled
Jul  7 16:46:14 puppypc user.info kernel: parport_pc 00:0a: disabled
Jul  7 16:46:14 puppypc user.debug kernel: ACPI handle has no context!
Jul  7 16:46:14 puppypc user.info kernel: Intel ICH 0000:00:02.7: PCI INT C disabled
Jul  7 16:46:14 puppypc user.info kernel: ohci_hcd 0000:00:02.3: PCI INT A disabled
Jul  7 16:46:14 puppypc user.info kernel: ohci_hcd 0000:00:02.2: PCI INT D disabled
Jul  7 16:46:14 puppypc user.info kernel: PM: suspend of devices complete after 656.107 msecs
Jul  7 16:46:14 puppypc user.info kernel: PM: late suspend of devices complete after 0.308 msecs
Jul  7 16:46:14 puppypc user.info kernel: ACPI: Preparing to enter system sleep state S3
Jul  7 16:46:14 puppypc user.warn kernel: Disabling non-boot CPUs ...
Jul  7 16:46:14 puppypc user.debug kernel: Back to C!
Jul  7 16:46:14 puppypc user.info kernel: ACPI: Waking up from system sleep state S3
Jul  7 16:46:14 puppypc user.debug kernel: pci 0000:00:01.0: restoring config space at offset 0x7 (was 0xd0e0, writing 0x200000f0)
Jul  7 16:46:14 puppypc user.debug kernel: pci 0000:00:01.0: restoring config space at offset 0x3 (was 0x10000, writing 0x14000)
Jul  7 16:46:14 puppypc user.info kernel: pci 0000:00:02.0: Enabling SiS 96x SMBus
Jul  7 16:46:14 puppypc user.debug kernel: ohci_hcd 0000:00:02.2: restoring config space at offset 0x1 (was 0x2800017, writing 0x82800013)
Jul  7 16:46:14 puppypc user.debug kernel: ohci_hcd 0000:00:02.3: restoring config space at offset 0x1 (was 0x2800017, writing 0x2800013)
Jul  7 16:46:14 puppypc user.debug kernel: pata_sis 0000:00:02.5: restoring config space at offset 0x3 (was 0x802000, writing 0x808000)
Jul  7 16:46:14 puppypc user.debug kernel: Intel ICH 0000:00:02.7: restoring config space at offset 0x1 (was 0x2900005, writing 0x2900001)
Jul  7 16:46:14 puppypc user.info kernel: PM: early resume of devices complete after 0.552 msecs
Jul  7 16:46:14 puppypc user.info kernel: ohci_hcd 0000:00:02.2: PCI INT D -> GSI 20 (level, low) -> IRQ 20
Jul  7 16:46:14 puppypc user.info kernel: ohci_hcd 0000:00:02.3: PCI INT A -> GSI 23 (level, low) -> IRQ 23
Jul  7 16:46:14 puppypc user.info kernel: Intel ICH 0000:00:02.7: PCI INT C -> GSI 21 (level, low) -> IRQ 21
Jul  7 16:46:14 puppypc user.info kernel: ata2.01: ACPI cmd ef/03:42:00:00:00:b0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata2.01: ACPI cmd ef/03:0c:00:00:00:b0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata2.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata2.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata2.00: configured for UDMA/33
Jul  7 16:46:14 puppypc user.info kernel: ata2.01: configured for UDMA/33
Jul  7 16:46:14 puppypc user.info kernel: eth0: link down
Jul  7 16:46:14 puppypc user.info kernel: ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[18]  MMIO=[e5000000-e50007ff]  Max Packet=[2048]  IR/IT contexts=[4/4]
Jul  7 16:46:14 puppypc user.info kernel: parport_pc 00:0a: activated
Jul  7 16:46:14 puppypc user.info kernel: serial 00:0b: activated
Jul  7 16:46:14 puppypc user.notice kernel: sd 0:0:0:0: [sda] Starting disk
Jul  7 16:46:14 puppypc user.info kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Jul  7 16:46:14 puppypc user.info kernel: ata1.01: ACPI cmd ef/03:45:00:00:00:b0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata1.01: ACPI cmd ef/03:0c:00:00:00:b0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Jul  7 16:46:14 puppypc user.info kernel: ata1.00: configured for UDMA/100
Jul  7 16:46:14 puppypc user.info kernel: ata1.01: configured for UDMA/100
Jul  7 16:46:14 puppypc user.notice kernel: sd 0:0:1:0: [sdb] Starting disk
Jul  7 16:46:14 puppypc user.info kernel: PM: resume of devices complete after 7040.954 msecs
Jul  7 16:46:14 puppypc user.warn kernel: Restarting tasks ... done.
it seems like everything is in order yes? this is strange.

i've been googling it and i read that a bios update may be needed in order to solve the problem. and i also read that for some reason suspend to ram doesnt always work but suspend to disk might, i don't have a linux-swap partition so i'll make one and try it.

i'll keep this thread updated just in case someone else stumbles across the same problem

User avatar
morgonzola
Posts: 161
Joined: Thu 22 Apr 2010, 03:14
Location: Los Angeles, CA

#32 Post by morgonzola »

hey i couldnt gather if this was solved yet or not but i am using a dell dimension 8400 and i tried to use acpitool -s. it did suspend, but then on wake up, it turns everything back on but i get a blank screen, however the lcd is not on standby mode.

i have tried turning the lcd on/off and that does not work

and when i force restart, it has to perform a filesystem check.

i believe i have acpi on

any suggestions?

User avatar
str4y
Posts: 42
Joined: Mon 01 Aug 2011, 22:59
Location: No. California
Contact:

do you have a suspend button?

#33 Post by str4y »

morgonzola wrote:any suggestions?
I only recently discovered this thread, having gotten joy as far as suspending my Dell D600-series laptop by way of pemasu's laptop001.pet ..
http://www.murga-linux.com/puppy/viewto ... 993#484993

.. but the bulk of that .pet is Frisbee, which I found clunky and unneeded since Barry's connection scripts work fine for me. So I made a stripped-down .pet that's just the part that makes my Fn+Suspend button work! And maybe yours?
http://www.murga-linux.com/puppy/viewtopic.php?p=550279

Sure was a relief, too-- I only have a laptop and only get the net by gallivanting around between wifi hotspots.. so preserving battery etc is paramount. Prior to finding that, my only other Linux solution to get the functionality was a whole partition I created to devote to Mandriva, which made every last button work flawlessly right out of the box.. which ran a bit slow to my mind (I'm used to Puppy!) and which I rendered DOA after going into the update utility and selecting a heapload of packages that looked swell, trying to do the whole bunch at once but not knowing all the subpackages & version compatibilities needed and the result was a non-booting OS. Kept the partition around quite awhile though, was quite handy to pull over a /usr/lib/* file to Puppy now and then. But I digress.

ps. I dig your avatar. Cheese is good food. :mrgreen:
[size=75]laptop.pet: [url]http://www.murga-linux.com/puppy/viewtopic.php?p=550279[/url]
K3B-1.0.5 self-contained .pet [url]http://www.murga-linux.com/puppy/viewtopic.php?t=71862[/url]
:oops: bitcoin: [url]http://xmail.net/str4y/bitcoin/[/url][/size]

snayak
Posts: 422
Joined: Wed 14 Sep 2011, 05:49

#34 Post by snayak »

Hi,

For me, on my Lenovo G570 laptop and LighthousePup64,
acpitool -e
shows everything except Thermal info.

It says:

"Thermal info : <not available>"

What can I do to get thermal info?

Sincerely,
Srinivas Nayak
[Precise 571 on AMD Athlon XP 2000+ with 512MB RAM]
[Fatdog 720 on Intel Pentium B960 with 4GB RAM]

[url]http://srinivas-nayak.blogspot.com/[/url]

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

acpitool on ASUS U5F

#35 Post by sindi »

apcitool works in lupu slacko precise and tahr on a Compaq CQ50 (2008 or 9)
to suspend (-s). Screen blanks, fan goes off.

It works in lupu 5.2.8.7 on a similarly aged ASUS 5UF but NOT in tahr 6.0.2 (updated to .3).
"You must have write access to /proc/acpi/sleep to suspend your computer".

How do we suspend (to RAM, swapfile, or anything else) in tahr on the ASUS?

Does tahr come with some way to suspend/sleep/hibernate.....?

I found a pm-utils directory but no pm-suspend. Is there a suspend-utils
package for puppy, or some command line way to suspend?

If I close the lid the screen goes blank but fan still runs.

Trying to reduce summer energy usage. 90s out, don't want the heat.

My partner has been using Windows instead of linux because he does not want to
have to turn the computer off and on again. He can use lupu with acpitool.
But I got netflix working with Ubuntu chrome 38 in tahr.

In order to suspend to hard disk do we need a swapfile the same size as RAM?
Did not make one because of 1.5GB of memory.

Not using precise because it lacks fbcon (module or kernel) and I prefer terminal mode.

acpitool -s is not supported on my DELL 8100 Pentium III. Would pm-suspend work there?

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

acpitool does not suspend on Compaq or Toshiba laptops

#36 Post by sindi »

Compaq CQ50 2009, and a 2012 Toshiba laptop.
There is no /proc/acpi/sleep though there is a /wakeup.

toshiba_acpi module is loaded.

Most other functions of acpitool work.
acpitool -T on the toshiba:
Could not open file /proc/acpi/toshiba/lcd or video or fan.

acpitool -s : could not open file: /proc/acpi/sleep. (on Compaq and Toshiba).
My partner refuses to use linux because it will not suspend and he does not want to wait 30 sec for it to boot.

I tried the full Ubuntu acpitool as well as the puppy pet.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: acpitool does not suspend on Compaq or Toshiba laptops

#37 Post by sheldonisaac »

sindi (in part) wrote:Compaq CQ50 2009, and a 2012 Toshiba laptop.
There is no /proc/acpi/sleep though there is a /wakeup.
My partner refuses to use linux because it will not suspend and he does not want to wait 30 sec for it to boot.
Sindi, a couple of years ago, I got a "pwrman" script add-on for Puppy Lucid.
Seems fine.
And Slim Slacko 6 seems to have built-in suspend-to-RAM.
Both on this approx 2011 Dell E6410.
I just tried closing the lid (in Lucid now).
The power light started its slow blinking.
Opened the lid, this message was back and ready to write in about 9 seconds.

==========
#!/bin/sh

#===========================================================================#
# event handler for basic power management 2012 - d(O o O)b #
# #
# Automatic suspend-to-ram when laptop lid is closed #
# Configurable alarms for LOW and LOWLOW battery level #
# Controlled Shutdown at LOWLOWLOW #
# #
#===========================================================================#

#------------------------USER ADJUSTABLE VALUES--------------------------------

timeout=20 # Alarm dialog timeout - allows program to continue if
# dialog not accepted

low=10 # Low alarm setpoint (minutes)
lowlow=4 # LowLow alarm setpoint (minutes)
shutdown=2 # Controlled Shutdown setpoint (minutes) - 2 is OK for frugal
# may need longer for USB Savefiles to safely save
Dell E6410: BusterPup, BionicPup64, Xenial, etc
Intel DQ35JOE, Dell Vostro 430
Dell Inspiron, Acer Aspire One, EeePC 1018P

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

#38 Post by sindi »

I was wrong about acpitool working on the CQ50 with Tahr, Slacko and Precise. They all complain
about not finding /proc/acpi/sleep, on both Compaq and Toshiba, both -s and -S.

Lupu5.2.8.6

acpitool -s suspends to RAM (black screen, power button restores screen)
acpitool -S does nothing

I will revert my partner to lupu and try to install palemoon since he got used to it in tahr.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

lupu 5.2.8.6 works with many browsers

#39 Post by sindi »

sindi wrote:I

I will revert my partner to lupu and try to install palemoon since he got used to it in tahr.
The latest palemoon from online appears to work with lupu 5.2.8.6, as does the newest Chromium in the lupu
package manager, and Firefox 39 (but not the latest, 49 - maybe I got a 64-bit version by mistake?).
An old qtweb 3.8.4 also works.

He switched to Mac then got a Mac virus (on Mac OS 10.6).

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

acpitool not working with tahr on laptops or desktop

#40 Post by sindi »

Tahr 6.05 - you can suspend with the power button on our newest desktop, but not on any laptop
I have tried from 2001 through 2012. Including a Compaq 2500 (2002 or 2003) and an Inspiron 8100 (2001).

acpitool works only in lupu not tahr slacko precise. On the same four laptops.

We will use lupu with acpitool on laptops and tahr with power button (or lupu) on that desktop.

The latest palemoon (from the website) works with lupu as does the latest ubuntu chromium (or chromium 20 from
quickpet).

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

Workaround for no suspend on laptop with Puppy Tahr

#41 Post by sindi »

My partner just explained why he wants to suspend rather than power off and then on (even though Tahr loads in 15 seconds). He wants to return to exactly where he was before or at least to a home page. How can I set Tahr to boot directly to a browser? Opera 12 lets you boot to where you were before.

I can boot without X and then load X with a script that executes a binary. Would I just put that script into rc.local or is there a better way?

Xorg & urxvt -e opera for instance

He is wasting a huge amount of time trying out other linuxes which do suspend to RAM properly. His computers are circa 2005 and best suited for Puppy. Tahr will not suspend, on a laptop, only a desktop (via power button instead of command).

Lucid 5.2.8 suspends properly but does not have a working Frisbee and at least three of his laptops require it to work with wifi. The other network wizards cannot connect.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

Booting directly to a browser

#42 Post by sindi »

I put into rc.local

/usr/bin/Xorg & /usr/bin/urxvt -e /usr/bin/jwm & /usr/bin/urxvt -e /usr/bin/opera

and it booted to jwm and Opera.

Without Roxfiler, and without various other things running that we never use. I should add Roxfiler for my dyslexic partner.

Are the path names (/usr/bin/) necessary in rc.local?

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

wakes up to black screen with fan running

#43 Post by sindi »

Responding to a 2011 post about DELL 8400. My DELL Inspiron laptop (2003, P4) has the same problem.
acpitool -s or echo mem > /sys/proc/state suspend, but power button turns it back on to a black screen with fan running.

The fan runs all the time with or without acpitool=off in menu.lst. P4 desktop CPU in the laptop.

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#44 Post by Burn_IT »

That's useful to know!
"Just think of it as leaving early to avoid the rush" - T Pratchett

User avatar
pp4mnklinux
Posts: 375
Joined: Fri 23 Aug 2013, 06:56

acpi tool (execute from desktop)

#45 Post by pp4mnklinux »

Hello:

I downloaded acpitool to suspend puppy linux, but I can only execute it when pressing the power on button of the CPU.

Is there any way to execute it from the shutdown option into puppy?

Can u create a script for my puppy tahr linux so put my computer (puppy) into suspend mode without the necessity to puss the power button¿¿


Thanks a lot.


(excuse if solved, but I cant find this problem answered;)
Distro: xenialpup64 7.5 XXL
Desktop Panel: JWM ~ FbBox 5.0

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#46 Post by backi »

Can u create a script for my puppy tahr linux so put my computer (puppy) into suspend mode without the necessity to puss the power button
/bin!/sh
acpitool -s

User avatar
pp4mnklinux
Posts: 375
Joined: Fri 23 Aug 2013, 06:56

THANKS a lot

#47 Post by pp4mnklinux »

THANKS A LOT BACKI

Solved using FBbox 4.0 64bits

https://archive.org/details/FbBox4.064Bit

Utilities + pupshutdown


THANKS A LOT


https://archive.org/details/FbBox4.064Bit


@backi

Post Reply