SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cat /proc/acpi/battery/BAT1/alarm
present: no
cat /proc/acpi/battery/BAT1/info
present: no
cat /proc/acpi/battery/BAT1/state
present: no
I added "acpi_osi=Linux, acpi=on, acpi=force" in lilo but no luck.
I don't think this is a BIOS issue because windows detects the battery life just fine. It also reports the percentage too. But yes so far it doesn't work in slackware. I am not dual booting by the way. I searched on google and found plenty of people who got the same problem, some of them are running fedora core and ubuntu. And yes it all relates to Toshiba satellite notebooks. So far I haven't found a solution yet. The last thing I don't want to do is rebuild a kernel because I don't have time at the moment. Does anyone have ideas?
Also, this is a seperate issue but I think it's worth mentioning. In /proc/acpi/processor/CPU0/ it only contains a file called throttling. Shouldn't it also have "info, limit, power, and throttling" in that directory?
This is what I get with the cat command:
Code:
cat /proc/acpi/processor/CPU0/throttling
state count: 8
active state: T0
state available: T0 to T7
states:
*T0: 100%
T1: 87%
T2: 75%
T3: 62%
T4: 50%
T5: 37%
T6: 25%
T7: 12%
I use a program called conky that reports my cpu frequency and most of the time it's always at 0.93GHz instead of 2.53GHz. Sometimes it jumps to 1.20GHz and 2.53GHz but falls back down to 0.93GHz. Is this normal?
I use a program called conky that reports my cpu frequency and most of the time it's always at 0.93GHz instead of 2.53GHz. Sometimes it jumps to 1.20GHz and 2.53GHz but falls back down to 0.93GHz. Is this normal?
Modern CPU's vary their clock speed according to workload. So when the system is mostly idle, the CPU throttles back to a lower clock speed to save battery life and reduce heat. When workload increases, the clock speed rises.
I also have this issue with a Toshiba L650 laptop running Ubuntu 11.04 64-bit version. Except now that I've tried following a few peoples recommendations from searching forums and Google I've felt that I've gotten closer, but not quite there...
Code:
$> cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charged
present rate: 24 mA
remaining capacity: 3591 mAh
present voltage: 12532 mV
$> dmesg | grep battery
[ 1.421954] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[ 1.421990] ACPI: Battery Slot [BAT1] (battery absent)
$> sudo lshw -C power
*-power UNCLAIMED
description: OEM_Define1
product: OEM_Define5
vendor: OEM_Define2
physical id: 1
version: OEM_Define6
serial: OEM_Define3
capacity: 75mWh
*-battery
description: Lithium Ion Battery
product: CRB Battery 0
vendor: -Virtual Battery 0-
physical id: 2
version: 10/12/2007
serial: Battery 0
slot: Fake
$> acpi -V
Battery 0: Full, 100%
Battery 0: design capacity 4500 mAh, last full capacity 3591 mAh = 79%
Adapter 0: on-line
Cooling 0: LCD 0 of 7
Cooling 1: Processor 0 of 10
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
This is what I'm currently getting with some of the hardware detection stuff. The majority of the commands now see the battery and that it exists, where it previous did not. However they are not really sure in which slot that it actually exists in, some are showing slot 0, others slot 1. I want to think that this is the issue, but I'm not sure how to reconfigure this at all.
I'm next going to attempt to download Ubuntu 11.04 32-bit version and run the live cd portion and see if that is actually able to determine the correct position of the battery and show the battery monitor.
If anyone else has any ideas until then, I'd be very interested in trying to get this to work.
Yes, I do have an entry for the battery in that locations.
Code:
ls /sys/class/power_supply/BAT1
alarm current_now model_name status uevent
charge_full cycle_count power subsystem voltage_min_design
charge_full_design device present technology voltage_now
charge_now manufacturer serial_number type
Sorry if I'm hi-jacking this thread a little bit with an Ubuntu distribution and not Slackware. Though I think it's an issue with Toshiba laptops in general.
it seems that you are still using huge kernel. Try running with generic kernel and load the battery module and re-checked it again
Yea I'm currently using huge kernel. I switched to generic and reloaded the module with modprobe battery but still no luck with the battery detection.
Quote:
Originally Posted by dive
Tried BAT0?
I don't have BAT0, only BAT1
Quote:
Originally Posted by plpl303a
Modern CPU's vary their clock speed according to workload. So when the system is mostly idle, the CPU throttles back to a lower clock speed to save battery life and reduce heat. When workload increases, the clock speed rises.
I was worried for a bit, thanks.
Quote:
Originally Posted by allend
Do you see an entry for your battery under /sys/class/power_supply/?
The /proc/acpi interface is being deprecated.
In /sys/class/power_supply I only see an entry called ACAD.
Code:
ls -l /sys/class/power_supply/ACAD
/sys/class/power_supply/ACAD -> ../../devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ACAD
With the battery intact, it doesn't detect the battery or the AC adapter, but when using the AC adapter with the battery disconnected, XFCE does detect the AC adapter (adapter present). But it still says "not present" under cat /proc/acpi/battery/*/* and the entry in /sys/class/power_supply/ACAD is still the same.
I tried adding the acpi=copy_dsdt to my Grub boot configuration and it did not help with the display of the battery monitor.
I don't know enough about ACPI or other protocols that keep track of this type of data to make any configuration changes. Somehow though I think it really just needs to figure out a way to point to battery 0 and not battery 1.
After googling this for a while, I see that this is a complaint in many distributions.
You may wish to contribute to this recently opened kernel bug report. https://bugzilla.kernel.org/show_bug.cgi?id=34532
Thanks for the link allend, that helped me a lot. By the way, I added 'acpi=copy_dsdt' while on 2.6.37.* and got a kernel panic. That was another different story.
Anyway, I got the battery problem fixed now. I'm currently running a custom kernel 2.6.39 with a modified DSDT file. I had a lot of help from these guys, much credit to all of them:
This was taken from a guy named steve from the above bugzilla link who said:
Quote:
I changed my DSDT and compiled it into a custom kernel.
Originally ther was this line under the EC0 device:
OperationRegion (EMEM, SystemMemory, 0xFF808001, 0xFF)
I changed it to this:
OperationRegion (EMEM, EmbeddedControl, 0x00, 0xFF)
I did all the above and that fixed it. Oh and by the way, I had received an error during my first kernel compilation about:
Code:
drivers/acpi/osl.c:66:38: fatal error: DSDT.hex: No such file or directory
compilation terminated.
make[2]: *** [drivers/acpi/osl.o] Error 1
make[1]: *** [drivers/acpi] Error 2
make: *** [dricers] Error 2
To get pass that I had to put DSDT.hex into /usr/src/linux/drivers/acpi directory and rerun make. Oh and the link from lesswatts.org (above) said after the fix it should mention something about Table [DSDT] in dmesg, but I see no mentioning of that in dmesg, anyway it still works.
If one is interested in learning how to use their ACPI statistics to turn off their laptop (i.e. low battery turns off computer), the following article may be an interesting read:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.