Debian Configuration :: Check Battery Levels Command Line?

Feb 12, 2011

since I am on a Dell inspiron 1545 laptop, being able to display my battery charge is critical. After some extensive googling, I found I need a command 'acpi', which does not exist on my computer. I cannot seem to find it in the packages database; the closest thing being 'acpi-support' apt-get install also can't find it.

I tried cat /proc/acpi/battery/BAT0/state, but that only shows me if the battery is discharging or charging and doesn't give me an actual percentage.

View 1 Replies


ADVERTISEMENT

Debian Configuration :: Cannot Check Battery Status In Jessie ASUS EeeBook X205TA

Jul 22, 2015

I use jessie-32bit of kernel 4.1.3 on ASUS EeeBook X205TA. But it doesn't recognize buttery status.Result of my investigation, the incomprehensible ponts is below.

・"acpi -b" outputs no information.
・There is not "battery" directory in /proc/acpi/. (button only exists.)

The following is my system informations.
Code: Select allacpi -V
Adapter 0: on-line
Cooling 0: intel_powerclamp no state information available
Cooling 1: Processor 0 of 10

[code]...

I want to check battery in console and fluxbox Desktop.

View 2 Replies View Related

Debian Configuration :: Booting Into A Command Line With No X

Jun 7, 2011

I wanted to be able to have a boot option to just use a command line with no X running at all. What I did was remove the gdm3 link in rc5.d . Then in /boot/grub/grug.cfg I made a new menuentry that is exactly the same as the default but I changed this line:

linux /boot/vmlinuz-2.6.32-5-686 root=UUID=3e926e70-cb92-4847-997c-37aabda532ff ro quiet to this line: linux /boot/vmlinuz-2.6.32-5-686 root=UUID=3e926e70-cb92-4847-997c-37aabda532ff ro 5

This worked. It gave me a command line interface with no X running.

My question is is this the recommended way in Debian? If not what is?

I have been using Linux for a very long time but I used mostly Slackware. I tried Redhat for awhile but really hated bluecruve, shows how long I have been using Linux. I have played with other distros but I always went back to Slack. But I really dislike KDE4 so Slack is no longer an option. KDE4 reminds me of a 12 year old girl that got a big box of makeup and had to use every bit of it. I now am using Debian on my laptop. And as aside I gave my 16 year old daughter a laptop for her birthday. She used the included version of windows 7 for awhile but then asked me what would be a good Linux distro for her. I showed her distrowatch and told her to look at the top distros. She then asked me to help her put on Debian. She loves it. She is a very good musician and song righter, She actually gets paid for doing that at 16, and really likes the programs in Linux to work with sound files. She also does MIDI stuff with our Yamaha Clavinova.

Now we are trying to do things the Debian way and it is a little different then other distros. So did I do the command line thing they way it's recommended in Debian. I have looked on line but all I could find was working in a shell and that is not what I was looking for.

View 2 Replies View Related

Debian Configuration :: Command Line Based Ppp Dialer?

Mar 13, 2010

I use Huawei EC1260 modem for mobile broadband connection. What are the command line shell based ppp dialing applications available apart from wvdial? insight how to use pppd/chat directly.Actually wvdial is working on debian very well with this modem. But I need to use it on an arm le based system, where wvdial does not work properly because of setcontext(), getcontext() dependency on arm platforms.

View 2 Replies View Related

CentOS 5 :: Battery Info Through Command Line?

Dec 16, 2009

I'm using CentOS 5.4 x86_64 on my Dell Inspiron 1440. Is there any way I can get information about the battery(charge) through command line without X server.

View 1 Replies View Related

Debian Configuration :: Jessie Upgrade Ssh Command Line Reboot

Nov 13, 2015

I've upgraded a server on our LAN from fully functioning Wheezy to Jessie. All seems fine except remote administering using Putty from my windows workstation when issuing reboot from command line, it goes down and reboots but stops at login prompt asking for username and password and does not come back on the LAN network. This server does not normally have a monitor or keyboard so my ability to remote admin this server in effect is disabled.

If I log on, it will come back on the LAN network. I've checked the logs but can't see any errors. Is it in the configuration of Jessie somewhere or perhaps a Grub issue. I have 5 other production Wheezy servers that I intend to update to Jessie once I understand how to deal with this problem.

View 4 Replies View Related

Debian Configuration :: Can't Send Email From Command Line Using Mail

Mar 17, 2010

I'm running a desktop-less version of Debian via Sun VirtualBox. The reason I'm doing this is because I don't have enough graphics or RAM power to have a desktop environment running on top of my current desktop; also, I want to learn Linux through the command prompt. I'm running the AMD64 version of Debian; I'm not sure if that's relevant.

My main goal is to be able to email useful files from the virtual Debian to my main computer, so that I can save them for later if I ever decide to do a "real" installation of Debian on this computer. I realize now that there's probably some "easy" way to do this by reading the virtual machine's hard drive, but at this point, my curiosity wants to see this issue resolved. I started off wanting to find a command-line program to send my email with, and one was built-in. The syntax ~$ sudo mail -s "Subject" email@yahoo.com "This is a test email."

C^D
Cc:C^D ~$

is what I found. I tried it, and (unsurprisingly), it failed. I then learned that the mail command calls exim4, or something along those lines, so I needed to configure exim4. Soon thereafter, I learned that Yahoo's SMTP wasn't public, but Google's was. So, I found this web page which described how to configure exim4 to allow for email to be sent to a Gmail account. I made one, and followed the page word-for-word.

I sudo-mailled a test email to my Gmail account, and nothing happened. I waited a bit longer, and still, nothing happened. Finally, I started looking around, and found out about the exim4 logs in /var/log/exim4. In my mainlog, I think that it's telling me that Google denied my connection: <date><time><random numbers and letters> == **********.gmail.com R=send_via_gmail t=gmail_smtp defer (111): Connection refused

So, now, I'm just stuck. I don't know what I did wrong, I checked my exim4.conf.template twice for spelling errors, but I don't think I made any. At this point, I can only hope that someone else has had a similar problem, or knows what I'm doing wrong (or haven't done yet).

View 14 Replies View Related

Debian :: Allowing Disk Check To Proceed When Running On Battery Power

Feb 12, 2011

Is there any way to allow normal fsck boot-time checks when running on battery power? After looking around, the only solution I've seen is to manually alter the /etc/init.d/checkfs.sh and /etc/init.d/checkroot.sh files and remove the AC power check. There must be a better way than that surely?

View 2 Replies View Related

Ubuntu :: Can't Check Ink Levels Sx100

Jun 6, 2010

I have a epson sx100 and i can't check my ink levels with esputil. This is what i get when i type the command.

pianoterra@pianoterra-desktop:~$ sudo escputil -r /dev/usblp0 -s
Escputil version 5.2.0-rc1, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'

[Code].....

I also have another problem which is i can't change the permissions of /dev/usblp0 because i stupidly changed them in to read write execute to all using chmod 777 without thinking that the device file isn't executable. Why can't i change the permissions back as they were?

View 4 Replies View Related

Programming :: Check Command Line For A Word?

May 23, 2010

I'm building a script for my place of employment. The next step in it is checking what the user input was. Determining if they added a part in there or not. The script prompts for a hostname. Hostnames are localhost.localdomain. Now, I want the script to check to see if they put localdomain and if they did, not to add the domain to the /etc/sysconfig/network, but just what they entered. So say the user inputs:

[Code]....

View 4 Replies View Related

General :: Check DVD Region Code From Command Line?

May 3, 2010

Is there a way to get DVD region code from command line (linux/ubuntu 9.10)? I want to script this action and store the region code (and other data about DVD) in a log.

I am looking for the info about media, not the drive.

View 1 Replies View Related

General :: Command Line - How To Check If DVD/CD Is 32bit Or 64bit

Sep 3, 2010

Is there any command on linux to check if CD or DVD is 32bit or 64bit?

View 2 Replies View Related

General :: Check If A Directory Exists In Command Line?

Jan 21, 2010

How to check if a directory exists in Linux command line?

[Code]....

View 5 Replies View Related

Ubuntu :: Check If A Package Is Installed Via Command Line?

Aug 20, 2010

After sifting through numerous apt-get apt-cache apt-file tutorials I still can't find a command to check if a package is installed via the terminal command/line.

I know there must be some way to do it.

Say I want to check if any package from the libavcodec*.deb family is installed how could I do this without a gui eg synaptic?

View 5 Replies View Related

Ubuntu :: Check Installed Versions Of Apps From Command Line?

Sep 8, 2010

Like i'm curious what version of wine i have installed...What are my current ati drivers installed...If wine isn't 1.2 or 1.3 how do i update it from command line?really any insight into this process would help its not absolutely critical to know but i've been looking around and haven't found informationOr some references to good articles to become a command line guru would be cool as well.

View 8 Replies View Related

Hardware :: Check HP CP-1215 Toner Levels From A Remote Machine?

Dec 2, 2010

HP's apparently all but useless Linux site suggests that their hplip drivers give you that capability. However, it also seems to expect that I will be running a GUI to use their tools.

My CP-1215 is attached to my server which doesn't have a GUI installed.

Previously I'd been using the open source CUPS driver, which seemed to work pretty well. However, I recently ran low on one colour of toner which messed up the printing. The toner-out lights on the printer never cam one, so replacing the toner cartridge was not the first thing I tried to fix it.

I've just installed the hplip / hp-plugin driver which also seems to be working. However, the CUPS web interface doesn't allow me to retrieve the toner status.

Has anyone had any luck retrieving the toner levels from an HP colour laserjet printer?

View 3 Replies View Related

Debian Configuration :: Change Critically Low Battery Value

Jun 26, 2015

In Jessie I would change the "critically low battery value". So from dconf-editor I followed this path:

Code: Select all/org/gnome/settings-daemon/plugins/power/

as suggested here [URL] ....

and here [URL] ....

The problem is that I haven't none of the following fields:

time-action
time-critical
time-low
or
use-time-for-policy
percentage-action
percentage-critical
percentage-low

How can I overcome this problem? Why the dconf-editor seems to be incomplete?

View 2 Replies View Related

Debian Configuration :: How To Set Battery Charge Thresh

Feb 24, 2011

How to set battery charge thresh ?I use thinkpad w500 with Debian 6 .

View 1 Replies View Related

Debian Configuration :: Run A Script On A Low Battery Shutdown?

Jul 13, 2011

I have looked all over the place but I can't find if this is possible. I am running Debian 6 as a media server (SMB) and it is tied to a UPS, I used gnome power management to set up a low battery shutdown but this UPS also is powering another embedded computer. So, I was wondering if it was possible to have a script run (to log in and shut down the embedded system) before gnome power management shuts down the Debian server. I know I could probably get it to run on every shutdown, but I am looking for low power only.

View 1 Replies View Related

General :: Command Line To Check For A Specific Email - By Subject - On An SSL Secured IMAP Server?

Feb 1, 2011

Anyone know a simple command line to check for a specific email - by subject - on an SSL secured IMAP server?

View 2 Replies View Related

Debian Configuration :: Battery Drain And Xsane Freezes

Apr 7, 2016

After a successful install of the MFC-J4420DW printer and scanner using Brother's install utility, I am experience severe battery drain and xsane freezes (total system lockup, requiring using CONFIG_MAGIC_SYSRQ keyboard command REISUB or hard reset).

The Brother support page and utility/drivers are found here: URl....My laptop is the HP Elitebook 8540W and I am running Debian 8 using LVM, separate partitions for /home, /var, /temp, /swap, and /. I have looked at logs in /var/log. kern.log, daemon.log, messages and dmesg, but have not found any relevant info ...

I purged all drivers/packages and tried a manual install using each deb package, but ran into some permission errors, so I purged again. I also purged xsane and reinstalled it, then did a complete printer reinstall using the brother Driver Install Tool.The tool works great, full functionality for the MFC-J4420DW. But I know I can't live with the power drain, and I would really prefer to use Gimp and the xsane plugin rather than simple scan ..

View 3 Replies View Related

Debian Configuration :: No Battery Support On Acer Travelmate Timeline X

Aug 22, 2010

I got a brandnew Acer Travelmate Timeline X (13"). I do not really know if this is the right topic for my problem. But here it comes: The Acer uses a special smart battery with special chips in it controling the powermanagement of the battery and the system. In general there is a kernel module to handle this (sbs). But for me this does not work.I am using Squeeze and it does not recognize the battery. It always acts like being on AC power. If I unplugg the AC it runs with the battery till it is empty. But the ACPI can not recognize the battery and can not read how much lifetime it has. I tried the reassambling method. But this method does not work for me. Nevertheless I think the reassambling method does not run because there is no more developing on it because of the kernel modul.

What can I do? Will I have to wait till a new workaround of sbs comes out, which can handle my battery? I read about a BIOS hack that disables the smart battery functions. Should I try this? But I am not really firm in that kind of stuff and I will loose the guarantee. Has anyone got an idea?

View 5 Replies View Related

Debian Configuration :: ACPI - Battery Charging State Missing ?

Aug 9, 2011

I have a strange problem with the ACPI in my laptop, the problem start some days ago, I don't remember exactly the day.

The first symptom is with de Gnome Power Manager, only show me when I disconnect de AC power, but when connect it again the Power Manager icon disappear and the energy battery stay in the same value.

After search for a while, all the post I read talking about the /proc/acpi/battery directory, but this directory not exist on my laptop.

I have a laptop Lenovo G460. My OS is Squeeze. My Kernel is 2.6.38-bpo.2-amd64, because the 2.6.32 version of the kernel don't recognize well my audio card.

I can't attach the dmesg and the lsmod output because I receive a message "Sorry, the board attachment quota has been reached.", both file are compressed.

View 2 Replies View Related

Debian Configuration :: Power Usage (laptop Battery) And Zen Interactive Tuning?

Jun 17, 2015

Since according to liquorix.net the kernel

Code: Select alluname -a
Linux t 4.0-5.dmz.3-liquorix-amd64 #1 ZEN SMP PREEMPT Debian 4.0-12 (2015-06-14) x86_64 GNU/Linux

incorporates Zen Interactive Tuning and this

[URL] .... wrote:Tunes the kernel for responsiveness at the cost of throughput and power usage.

View 2 Replies View Related

Debian Configuration :: Dell Studio 1569 Heating Up And Battery Life

Feb 24, 2011

First issue is, now that I am running Debian "Squeeze", my laptop runs much hotter than before. Its definitely hot on the very bottom compared to when running Windows. Once the system begins to heat up, the fans start spinning faster, the system gets louder, etc.

Second issue is battery life. I am able to get 5 hours out of the laptop in Windows, but maybe 2.5 hours in Debian. I am assuming that these two problems go hand in hand. Now from experience with PC hardware, I know that the newer chips scale their frequency and voltage depending on demand. I don't think the computer is doing this correctly when running Linux.

By running
cat /proc/acpi/processor/CPU0/throttling

I see that the CPU(s) are in T0 state (or 100%). Manually setting the frequency doesn't change anything either (via the gnome applet). Am I diagnosing this correctly?

View 2 Replies View Related

Programming :: Access A File Line By Line, And Check The Length Of Each Line.

Feb 13, 2011

I want to access a file, and check the length of every line.After, i want to check and replace all lines with length over 10 characters, with a message.Does anyone have a clue on that?

View 1 Replies View Related

CentOS 5 :: Error Using Init Command To Change Run Levels?

Jun 17, 2010

From runlevel 3 as root, when I attempt to change to runlevel 5 by typing the command "init 5", I get the following error:Id "x" respawning too fast:disabled for 5 minutes

View 4 Replies View Related

Debian Hardware :: Lower Laptop Battery Charging State To Prolong Battery Life

Mar 2, 2010

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.

View 1 Replies View Related

Ubuntu :: How Do I Check Battery Power

Dec 17, 2010

I have a starling netbook, but I have the regular ubuntu interface on it. I normally have it plugged into a power source, but now it is unplugged. As I remember, at one time there was an icon on the top bar that showed you how much battery life you have left, but now I don't see it. How do I get info on the percent of power I have left?

View 4 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved