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
ADVERTISEMENT
Jul 1, 2011
is there a way to configure shutdown on critically low battery to give me a bit of time before actually shutting down?I've set Gnome to shutdown on low battery. Problem is, I don't get any notification about battery running low, and as soon as battery level reaches the critical threshold, the system starts shutdown without me having any possibility to quickly complete some tasks. Of course, I'd increase battery level thresholds accordingly.
View 3 Replies
View Related
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
Feb 24, 2011
How to set battery charge thresh ?I use thinkpad w500 with Debian 6 .
View 1 Replies
View Related
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
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
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
View Related
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
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
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
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
Aug 19, 2011
I search many hours on the web for wipe my ram in a secure way and i find nothing good/secure/work exept URL... and i think it's the best solution for wipe RAM at shutdown!Im a newbie user and i want to implement this solution on my debian system at shutdown, i think its very easy because TAILS is based on debian! Does someone can put the procedures for get that on a debian box please?
View 8 Replies
View Related
Jul 10, 2010
Without being paranoiac, it seems possible to keep the memory content for some minutes after shutdown and dump it accessing directly to the hardware.So how to fill the memory with constant or random pattern before halting? Is there a kernel option that I can give at boot time , or an other tool I can install from Debian/Ubuntu to achieve this ?
View 14 Replies
View Related
Jan 24, 2010
I recently purchased a UPS (Tripp-lite Internet 550U)to shutdown my PC during a power outage when unattended. This model of UPS is connected to the PC with USB. Upon plugging in the UPS USB cable the Gnome Power Manager started up and it appears to correctly show the condition of the UPS. During a power outage it showed battery discharge right down to the battery going critical, but never shutdown the PC. I have set the options in the power manager for low & critical battery shutdow. Seems something is blocking the Gnome Power Manager from shutting down, but I have no idea where to start looking..
PC: Abit mobo with Phoenix bios
Ubuntu 8.04
UPS: Trtipp-Lite Internet 550U
View 5 Replies
View Related
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
Nov 15, 2015
I've been using linux for a few months. Recently I have installed debian jessie and I'm learning how to secure my laptop. I have installed
Code: Select allapt-get install sysv-rc-conf
to shutdown few services that I believe I don't need at boot which I found very useful. Among others I have deselected avahi-daemon, cups, cups-browsed, etc. The problem is that, after rebooting, when running:
Code: Select allnetstat -lntup
I still find 'avahi-daemon: r' and 'cupsd' running. I have tried
Code: Select allsystemctl stop cups
systemctl disable cups
systemctl stop avahi-daemon
systemctl disable avahi-daemon
But after rebooting these services are aklways running. I do not know whta to do.
Output of netstat -lntup
Code: Select all[*]Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 250/cupsd
tcp6 0 0 ::1:631 :::* LISTEN 250/cupsd
udp 0 0 0.0.0.0:16409 0.0.0.0:* 526/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:* 526/dhclient
[Code] ....
I'm aware that cups seems to work just for my printer but I do not understand why I can't just disable it.
View 5 Replies
View Related
Dec 12, 2015
I'm using Debian Sid xfce on my lenovo laptop. When i try to shutdown, the screen always stays on (the fans turn off). It says "reached target shutdown", then this happens: [URL] .... and then it hangs. I have to press the power button to shut it down. (I have the same problem with reboot). I had the same issues with Jessie.
Things i tried so far and didn't work:
Code: Select allshutdown -h now
shutdown -p now
halt
poweroff
systemctl poweroff
init 0
I edited /etc/default/grub and added the following options at "GRUB_CMDLINE_LINUX_DEFAULT":
acpi=force, acpi=off*, acpi=noirq
*acpi=off: shutdown (not reboot) worked a few times but i didn't have wifi and power manager didn't seem to work
none of them worked..
I have no energy or wake up options at my BIOS.
I found out that i can normally reboot with the Alt + sysrq + REISUB key combination.
View 5 Replies
View Related
Jul 22, 2010
I'm running a Debian on a laptop (actually a netbook: Asus EEE 1001PX) as a cheap homeserver. However I'd like it to automatically "shutdown -h NOW" when I remove the AC plug (switch it off at the wall). Otherwise I have to ssh to it and call it myself, and that just sucks Can I somehow detect the removal of AC power and upon that run a script ?
View 8 Replies
View Related
Jun 29, 2011
on my netbook I've tried to make possible for my user to shutdown without needing a password. battery could run low when I'm not in front of it. Editing sudoers has allowed my user to shutdown the system, but Gnome still prompts me for the root password whenever root is logged in too. That's usually the case, because to avoid entering the root password multiple times whenever I need elevated privileges and not wanting to cache the root password, I keep a Root Terminal always open.
View 6 Replies
View Related
Dec 30, 2009
Broadcom 4312, dell inspiron 1545.Earlier i was running on battery power and the laptop shut down when the battery got low. When i got back to it and restarted there was no wireless network. It's grayed out and says wireless disabled. How do i fix this?
View 1 Replies
View Related
Jan 17, 2011
I run Ubuntu 10.04 on a HP dv2000 laptop with 2GB RAM. I see a strange problem with my system. When running on battery and the level hits about 43% (+- 1%), the system shuts down suddenly. No warning and no information in logs either. Temperature of both cores are below 50 C. I have tried cleaning the dust withing the laptop chasis but no progress.
I have done quite some research on this and other forums but haven't found anybody else with similar problem.
View 1 Replies
View Related
Nov 17, 2015
I'm using Debian 8.2 from a very recent download of the latest NetInst (less than 2 weeks). I'm sort of new to Linux - More accurately, I've used Unix and Linux extensively in the past, so most of my knowledge is dated. In particular, the whole systemd / systemctl paradigm is completely new to me.
Problem: I've added an entry to /etc/fstab to mount a NAS drive as CIFS. When I do a system shutdown or reboot, the system hangs for 90 seconds trying to unmount the NAS. If I manually umount the NAS prior to shutdown / reboot everything works fine.
I've done a fair amount of investigation and web searches, but haven't found a fix yet. Apparently several people were encountering similar problems about a year back, and it seems pretty clear that the root cause what ordering of steps in the shutdown process, e.g., WLAN being turned off before unmounting filesystems. This seems to have been resolved for most users (no one is discussing it any more), but I'm now running into the same issue. Ugh.
I tried to add a shell script to /etc/rc0.d to umount the NAS first in the shutdown process. This had no effect. I assume this is because the new systemd / systemctl paradigm supplants the old /etc/rc model of runlevel control, though it is rather baffling (to me, at least) as to why /etc/rc* still exists if the system is no longer using it...?
Here's some things I'd like to try, but how to proceed:
1. In the new systemd / systemctl paradigm, how do I examine and change the ordering of steps in the shutdown process? I've seen a lot of documentation on systemd, but nothing tells me how to do what I used to be able to do with /etc/rc with a simple rename of a symlink. If I knew how to look at the order of shutdown and change that ordering, I'm fairly certain I could identify and resolve this issue.
2. Is there some other way to mount my CIFS NAS other than editing /etc/fstab? Is it possible that my manual edit to /etc/fstab is the cause of this issue? My research into systemd indicates that it IS supposed to be compatible with /etc/fstab. I have not yet found documentation describing how to mount a filesystem at boot WITHOUT editing /etc/fstab ...
View 8 Replies
View Related
Mar 14, 2011
in configuring a fresh install of Squeeze. I discovered that it is possible to power off the system under gnome simply by pressing the power button or by selecting the "Shut Down" entry on "System" menu.However I need to restrict this option only to root. How can I do that?
View 7 Replies
View Related
Aug 28, 2010
I'm trying to make my system automatically shutdown once the battery level is low, but still without success. I've tried kpowersave, gnome-power-manager, kpower, klaptop but none of these worked for me. Well, I can't imagine I would be that stupid, but simply it doesn't work. In all cases mentioned above (kpower, klaptop, gnome-power-manager) I've tried to setup the laptop to shutdown once the defined level is reached, but the laptop never actually switched off unless all the battery was drained.
Btw. I think all the above mentioned apps only work once the user is logged in. But I'd like the solution to work also when the PC is on without anyone logged in. I thought I could write a bash script based on parsing of acpitools output and define it as a service, which would monitor the battery level, but I simply don't believe there isn't any functional solution to this.
View 3 Replies
View Related
Aug 21, 2015
I am using Debian sid 4.1.3-1 and when i shutdown the system it takes 3 - 5 minutes before actually shutdown, there is only a black screen until the hdd led start flashing and after that the system finally shutdown. The weird part is that sometimes it happen in less than 30 seconds , how can i figure out where the problem is ?
View 8 Replies
View Related
Dec 3, 2015
Creating a separate /tmp partition manually during install prevents a clean shutdown.
Setup: Debian 8 minimal server configuration (SSH only) using net install as virtual machine on Windows Server 2012 R2 Hyper-V (Gen 2).
1024 MB RAM, 20 GB VHDX, and 1 Processor, EFI boot
Packages installed: openssh-server, sudo, unattended-upgrades, bsd-mailx postfix
Application: IPv6 gateway using 6in4 tunnel
Symptoms: When shutting down the operating system (poweroff or reboot), the message
A start job is running for Unattended-Upgrades ( xx seconds / no limit ).is displayed on the console and will persist for several minutes before eventually timing out and shutting down.I've tried several different configurations. Any configuration that creates /tmp automatically (whole disk with single partition, or disk with separate /home, /var, and /tmp partitions) works fine and shuts down promptly. When I partition the disk manually (512 MB EFI Boot, 17 GB /, 3 GB /var, 512 MB /tmp, and 512+ swap) the problem occurs. I've narrowed it down to just the /tmp partition by testing and comparing various configurations (including/excluding partitions, placing partitions on a separate disk, changing the partition sizes, matching against automatic configurations, etc.).
I have also compared the /etc/fstab and /etc/default/tmpfs configuration file between working and non-working systems and cannot see any meaningful difference.
View 0 Replies
View Related
Aug 8, 2010
I'm trying to make the power manager NOT automatically shutdown / sleep / hibernate when battery power of my laptop reaches critical
I am surprised there isnt an 'NO ACTION' option for that in power manager
I've tried editing the acpi-supper in /etc/default bu couldn't find a solution in there nor in the /home/user/.gconf/apps/gnome-power-manager/ directory
View 7 Replies
View Related
May 1, 2010
Just 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?
View 5 Replies
View Related
Jun 24, 2009
I have one desktop PC I'd like to use as a jukebox. It's installed in the basement as a black box, with only SSH access, and it has got a minimal CentOS 5.3 install with MPD and NCMPC. It's connected to the hi-fi in the basement, so I can stream music to it when I'm downstairs. Since I didn't want to use cables everywhere, I bought a PCI wireless card, with a RT2561 chip.
Until recently this card worked OK with Linux. Recent kernel version even have out-of-the-box support for it, except of course you still have to download the firmware from the Ralinktech website.
I gave the thing a static IP configuration by editing /etc/sysconfig/network-scripts/ifcfg-wlan0, interface went up fine, I can ping the machine and SSH into it OK. Now the only problem is, when I do a shutdown -h now, the machine "hangs" while trying to bring wlan0 down. (In case you wonder: I temporarily attached a monitor to it, since wanting to know what goes on while shutting down in an SSH session is a chicken-and-egg situation :)). I actually have to hard-reboot it (by pressing RESET).
View 1 Replies
View Related
Jun 22, 2011
I've recently installed Squeeze on my laptop. All was fine (except for a small change I needed to make to the GRUB code in order to install and boot it) and I find the OS easy to use. I am sure I will be using it for a long time! I might even change my desktop over to Squeeze as well - I'm using Linux Mint 10 at the moment.I have found just one minor problem: the battery icon continuously shows 100% full, even when the indicator on the laptop is showing that it needs recharging - after about two hours' use.This has not happened before:although the laptop is about two years' old, I have had this battery for only a month, so it has not yet done much work!
View 4 Replies
View Related