Ubuntu :: Display Battery Into Conky For Laptop?
Aug 29, 2010I would like to display my battery into conky for my laptop, do you have /proc/acpi/battery/BAT0 ? - I cant find it
View 1 RepliesI would like to display my battery into conky for my laptop, do you have /proc/acpi/battery/BAT0 ? - I cant find it
View 1 RepliesJust installed 9.10 followed by a 10.04 upgrade (wouldn't work as a 10.04 clean install). The install and upgrade all seemed to go well.
But now when booting I get a message saying "checking battery state" and then it boots no further. This is a laptop without a battery installed, running permanently from the mains through the charger.
How can I disable this check so that the laptop will still boot without a battery fitted?
getting back to our laptop, the stability window is ~3.2V. Meaning that when you operate the battery above this the electrolyte is oxidized on the positive electrode and reduced on the negative electrode. Remember that we only want to oxidize and reduce the active materials and don't want to do anything else. All these reactions other than the ones we want are called side reactions and these are really bad for the battery. The nominal voltage of a laptop battery is 3.7 V which means that something bad wants to happen as we use the battery.So long story short, stuff (e.g., passive layers and poor kinetics of reactions) happens and things are not as bad as they seem and you can increase the voltage up to 4.2V without bad things really happening. All chargers for Li-ion cells today cut the battery off when it reaches 4.2V. What you have to realize is that at 4.2V, these side reactions are present in finite amounts and start to chemically kill the battery, but its not that dramatic.
Operating to 4.1V makes things better and extends the life, 4.0 V is even better and so on. So why don't battery manufacturers cut the voltage off at, say, 4 V to get better battery life? Because every time you cut this voltage down you decrease the capacity of the battery and its run time. The 4.2V cutoff is a compromise between good run time and decent (read "not pathetic) life.On the other hand, if you charge the battery and then pull the plug (so to speak), the battery discharges some, the voltage drops, and these reactions become less of a problem and your battery life goes up. So the best things you can do is to charge the laptop (or cell phone, camera etc.) and once its charged, pull the plug. Your battery will thank you for it.As a matter of fact, if you own a Lenovo Thinkpad, you can actually change the state of charge to which you charge the battery using the Battery Maintenance utility. You can change this from charging to 100% state (where the voltage is 4.2V) to 90% so that your voltage is less. You lose some energy is doing that, but atleast you can change it to 100% when you need battery power and put it back down to 90% when you can plug in. I wish my Mac has the same feature.
I typically use the battery for a while (say 1/2 hour to 1 hour), then plug it in and wait to fully charge it, then I pull the plug and use it again for 1/2 hour to 1h and then I repeat this. Takes some getting used to and I forget to do this, but I try.
I have installed Ubuntu (both 10.10 and 11.04 pre-release) on my laptop but my battery is not recognized and it is detected as a desktop system rather than a laptop. I have tried the cat /proc/acpi/battery/BAT1/state method but the directory doesn't exist. I have tried another guide to paste the battery info into this directory but it doesn't allow me to do that and says that the directory doesn't exist, even though I'm trying to make it. I tried it in root nautilus and even on an install of Lubuntu (with a root file manager) but it still failed to budge. I really don't know what to do as I have tried all the guides on the internet that I could find.
View 4 Replies View RelatedIs there a conky variable that displays the Ubuntu version (ex 10.04)?
View 9 Replies View RelatedI'm trying to display my todo.txt file in my Conky, but it won't align correctly. Only the first line of the list is where I want it, the rest is in the default location.Quote:
background yes
update_interval 1
cpu_avg_samples 2
[code]....
i have the following text in a file located in /home/anoopm101/.task [description:"this is the text" entry:"1306682734" status:"pending" uuid:"25c54e1b-824f-52bc-4933-dfe7cda34bc7"]
i have to display on my desktop "this is the text" using conky.
So I'm running Fluxbox as my window manager in Xubuntu. I use ivman to automatically mount any usb devices.Now I was wondering if it's possible to have conky display all mounted drives and some information about them.I saw you can do {$ifmounted /media/blah} but this would assume I have a set number of devices preconfigured in fstab. It doesn't account for some random guy's flash drive, or a buddy's smartphone.
I know mount | grep sd outputs a list of mounted drives. So then could I somehow format that output and pass it to conky? Or do you guys have any more clever ideas on how I could accomplish this?
i have the following text in a file located in /home/anoopm101/.task
[description:"this is the text" entry:"1306682734" status:"pending" uuid:"25c54e1b-824f-52bc-4933-dfe7cda34bc7"]
i have to display on my desktop "this is the text" using conky
My battery Icon dosn't showup.
I did
Code:
I recieve back
Code:
Traceback:
And I also did
Code:
Is there a way to tell conky on which display to start. I have dual twin monitor setup and its starting on my secondary monitor.
View 10 Replies View RelatedI think someone has been in my apartment when I'm at work and attempted to login to my computer.
Rather than searching through all the logs, is there any way for Conky to display the last 2 or 3 login attempts?
Recently I succesfully installed conky. I managed to get a lot of things work with more or less effort but I can't make conky to display any image.Images path and permissions had been checked. Imlib2 support too but conky won't display a thing.
View 4 Replies View RelatedI am putting together a Conky config file by a sort of 'smash and grab' approach borrowing things from various configs I've seen around the web that do stuff I like. I have reached a stumbling block as I want to display my external IP, I have used
Code:
${addrs eth0}
to display the IP on my LAN and guessed I would just need to substitute 'eth0' with something else to get the external IP?? I have tried the mac address of my primary router to no avail, this just displays '0.0.0.0' My current config looks like:-
Code:
# set to yes if you want Conky to be forked in the background
background yes
#font
use_xft yes
[code]....
I run my conky as one bar at the top of the screen (Ratpoison). It is frustrating when % values jump between 0->10% for example and then the entire bar shifts. How can I make it display 000% 010% 100%?
View 7 Replies View RelatedI recently had to turn ACPI off because of major errors like the child_rip error, but now I don't have battery support or anything like that. No battery meter, etc. Is there a way I can get this while ACPI is off?
View 1 Replies View RelatedSince I had updated to Lucid, I'm having some trouble with running my laptop on battery. It usually turns off when the battery notifier is still at 13%~18% (it is not shutting down, it is like when your battery runs out of energy). First I had thought that was a problem with the notifier and I was missing when the battery had no charge, but I kept looking at the notifier and suddenly when it had reached 15% my laptop just went down, without saving any job.
I've just upgraded to Lucid Lynx, running on a HP Pavilion dv4-1123us with 2.00 GHz Intel Core2 Duo T5800, 4GB RAM.
The battery is a 6-cell Lithium-Ion that came with the laptop.
I'd bought it about 1 year ago.
my laptop battery capacity has gone low due to constant charging or whatsoever reason. previously it was at 62% and within 2 months its gone down to 32%. I use the laptop atleast for 18hrs every day. so is ther any solution to prevent my battery from losing the capicity.
i use dell studio 15 laptop, with 3 gigs of ram, lithium ion battery(56Wh), ati card, using compiz, p8600 processor. i use this for app development and for listening to music and videos.
Over the past few weeks I've noticed that my laptop battery is dieing VERY fast. I have no idea what is causing this, and I haven't changed anything.
View 6 Replies View RelatedSo I've been using Ubuntu on a Toshiba L645d, and after a few hiccups with the sound and wireless, it's finally working well now. However, the battery is still a bit less when compared to Windows 7 (2:00 vs 2:35, but it came with optimizations on W7 so that might be the reason. A comparison of power used: 25w of power on Ubuntu vs 17.5 on W7.
View 2 Replies View RelatedI'd like to tweak my Conky so it automatically displays the days of the week correctly. So for example, if TODAY were Tuesday, it would look like this:
Tuesday
Wednesday
Thursday
Friday
[etc.]
And then tomorrow, *automatically*, it would look like this:
Wednesday
Thursday
Friday
[etc.]
I know I can get it to display *today's* date like this:
${time %A}
But how do I get it to display tomorrow's date?
I have an K10 AMD CPU and unfortunately it has a borked temp sensor. I have figured out that if I subtract 8 from value stored in /proc/acpi/thermal_zone/temperature that the result is very close to being spot on. The problem is I have no idea to do this and conky has no built in way to do this.
The data stored in /proc/acpi/thermal_zone/temperature looks like this:
Code:
temperature: 52 C
Is there some sort of script that can do this?
The display becomes less bright when on battery than on AC power, but I already unchecked "Reduce backlight brightness" on the power management setting. What else can affect the brightness?
View 5 Replies View Relatedwhenever i restart my laptop my battery icon disappears from the panel.
compaq c785tu
When I'm running the laptop on battery the desktop freezes. It doesn't matter what program I use, it also happens when I just boot the system login and do nothing. I then have no mouse, no keyboard - so no key combination works. The only thing I can do is turn the laptop off using the power button and turn it back on. Usually the desktop freezes with in 5 min after login, but I also had one case were I was able to work for about 2 hours. When I plug in the power supply everything works fine.
View 2 Replies View RelatedI have a problem when I boot up my laptop and my battery is not connected. You can not hear audio from your headset. But when the battery is connected when you start up the system, the headset works.ACER ASPIRE 4750gi have followed this instruction:
Code:
wget[URL]-O alsa-info.sh && bash alsa-info.sh
and here is my
Uploaded Data.
When I am working with Windows OS on the DELL-Vostro-1014 laptop the battery is working. If however I switch to Debian Squeeze OS the battery does not work. Running #hardinfo & shows that there is no battery. Am I right in assuming that the driver for the battery?
/sys/class/power_supply/BAT0 gives
model_name DELL X612G0
Serial No. 18069
manufacturer LG
What driver is needed, where to search for it and how to incorporate in the kernel 2.26.32-5-686 ?
I need a way to kill my battery in my Ubuntu laptop. Is there any mind numbing tasks I can Ubuntu do that will eat up the battery? I have already shut off the power management options. The battery is giving my issues and and someone said I should discharge it fully an recharge it from 0.
View 2 Replies View RelatedI've got a problem with my laptop and I finally decided to try to solve it. My computer sometimes (not everytime) freezes. It's just when I'm using battery power. I figured out that this is not connected with some specific action (e.g. some app crash), it can freeze 1 minute after start or 10 minutes, I think it's random. I've checked my /var/log/messages.log file and these are the last messages before freeze (exactly at 9:16:15):
Code:
Jun 1 07:16:09 localhost rtkit-daemon[2170]: Successfully made thread 3472 of process 3472 (/usr/bin/pulseaudio) owned by '120' high priori$
Jun 1 07:16:09 localhost rtkit-daemon[2170]: Successfully made thread 3473 of process 3472 (/usr/bin/pulseaudio) owned by '120' RT at prior$
Jun 1 07:16:09 localhost rtkit-daemon[2170]: Successfully made thread 3474 of process 3472 (/usr/bin/pulseaudio) owned by '120' RT at prior$
Jun 1 07:16:09 localhost rtkit-daemon[2170]: Successfully made thread 3475 of process 3472 (/usr/bin/pulseaudio) owned by '120' RT at prior$
Jun 1 09:16:09 localhost gdm-simple-greeter[3481]: Gtk-WARNING: gtkwidget.c:6794: widget not within a GtkWindow
Jun 1 09:16:09 localhost gdm-simple-greeter[3481]: WARNING: Unable to read from file /etc/arch-release
Jun 1 09:16:09 localhost gdm-simple-greeter[3481]: Gtk-WARNING: gtk_widget_size_allocate(): attempt to allocate widget with width -47 and h$
Jun 1 09:16:11 localhost logger: ACPI action undefined: BAT1
I'm using Arch Linux x64, Gnome Shell and have the newest updates.
What's wrong with my laptop? Where should I look for errors?
I have installed Ubuntu (both 10.10 and 11.04 pre-release) on my laptop but my battery is not recognized and it is detected as a desktop system rather than a laptop. I have tried the cat /proc/acpi/battery/BAT1/state method but the directory doesn't exist. I have tried another guide to paste the battery info into this directory but it doesn't allow me to do that and says that the directory doesn't exist, even though I'm trying to make it. I tried it in root nautilus and even on an install of Lubuntu (with a root file manager) but it still failed to budge. I really don't know what to do as I have tried all the guides on the Internet that I could find.
View 5 Replies View Related