Acpitool: commandline ACPI status program for laptops

Miscellaneous tools
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#21 Post by muggins »

Two useful sites, for linux on toshiba laptops, are:

http://www.linux-on-laptops.com/toshiba.html

http://newsletter.toshiba-tro.de/main/index.html

Unfortunately the three links on the first, for your machine, are all dead. I had a look at them, though, using the wayback machine, but there's not much there of relevance tou your query.

The second site might give more info.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#22 Post by muggins »

Two links...oddly the first one seems to report success with toshiba_acpi!

http://www.knoppix.net/forum/viewtopic.php?t=23333
http://www.debianhelp.org/node/11882

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#23 Post by muggins »


peter_jammo
Posts: 20
Joined: Thu 26 Mar 2009, 16:03

#24 Post by peter_jammo »

Thanks again for helping with this, but I'm no farther forward. Booting with acpi off doesn't seem to make any difference - fan still doesn't start, toshiba_acpi doesn't load etc. This may mean that the hardware is faulty, but since I can't test that.............

I had a look through the links you gave me (thanks for the effort) and the most common fix for fan problems (lots on fixing up CPU freq scaling - I'm happy to set it to permanent low - 550Mhz still works plenty well for me) seems to be to get toshiba_acpi loaded, with the only other tack I saw being to use FNFX. I haven't been able to track down that programme as a .pet, and as a newbie I'm not confident with trying to load anything else. Any help with that would be appreciated.

I also tried eeepc, but when I try to read the outputs, there is always an error message that the file had been truncated, and unchanging, implausable readouts ie 255 for cpu temperature. In case eeepc interfered with anything I uninstalled it again.

Given that several tecra 8100 users (Knoppix, Suse) seem to have fixed the problem with toshiba_acpi, do you see anything other than a bios version issue that is preventing me from loading it?

Hard wiring the fan and scaling back the cpu freq from the bios is starting to seem like the likely best bodge, but I'd really prefer to fix it properly. Puppy goes so well in almost every other way that I'm very reluctant to quit.

Again any further ideas would be greatly appreciated.

peter_jammo
Posts: 20
Joined: Thu 26 Mar 2009, 16:03

#25 Post by peter_jammo »

OK, with no further suggestions in, I decided last night that flashing the bios without resorting to Win98 was too risky, and hard wired the fan off the ps2 port instead.

Result is a great running (though a little noisy - not too bad though) laptop suitable for mains operation (battery buggered anyway), with everything working well except audio cd playback. I can live with that.

Thanks again for all the help.

xav795
Posts: 26
Joined: Sat 18 Jul 2009, 11:03
Location: France, Paris

#26 Post by xav795 »

Hi,

I tried to use ACPI with the -s option on my laptop Inpiron DELL 6400.
The PC has been well suspended.
I uses then the on/off button to tell him to stop being suspended.
The screen then has appear but one thing did not go well :

i am using puppy 4.1.2 on usb flash, and when i boot, the device corresponding to the usb, is pointed with an orange circle. For the other one that are mounted, the circle is green.
So after the suspend i found that the usb flash device had no circle, if i mount it, it will be only green.

If i try to launch some usual applications, i can see that someone does not start then. So i think, something has to be mounted after the pc return from suspend, but i dont know what.

What is the significance of this? Is it a real problem for me to save to my puppy_save.sfs automatically?

Xavier

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#27 Post by muggins »

When you say some apps don't start, can you mention a few of them? Plus, can you try running these malfunctioning apps from the commandline, (Menu>Utility>Rxvt), to see what errors are generated?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#28 Post by muggins »

Uploaded v0.5.1.
- various minor fixes (fixing memleaks, removing of limit on thermal zones): patches provided by Sergei Trofimovich and Erwan

User avatar
barefoot
Posts: 16
Joined: Sun 14 Feb 2010, 22:42
Location: Hana, HI, USA

success

#29 Post by barefoot »

installing this tool and running 'acpitool -s' allows my dell inspiron 5100 laptop to successfully suspend and wake up, even with mounted hd partitions and a mounted usb stick. i'm running puppy 4.3.1 full install. i dropped the command into a script on my dekstop so i can suspend with a single click.

before i found this tool, i tried various scripts found on this forum, and was unable to fully resume from suspend.

thank you muggins and whomever else may be connected with putting out this tool.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#30 Post by jpeps »

Acpitool -s works nicely on a Dell Latitude D600; certainly way better than sending messages to /sys/power/state.

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).

Post Reply