Tag Info

Hot answers tagged

4

Simple linear command: [[ $(acpi -b | grep -o "Discharging") ]] && notify-send "Alert" "Battery is not charging.\n Please plug your AC adapter!" From man acpi we have: NAME acpi - Shows battery status and other ACPI information SYNOPSIS acpi [options] DESCRIPTION acpi Shows information from the /proc or the /sys ...


3

install TLP Battery saving tool :- sudo add-apt-repository ppa:linrunner/tlp sudo apt-get update && sudo apt-get install tlp tlp-rdw After installation type :- sudo tlp start


3

This looks pretty simple, I'm not a bash script expert, but maybe could be useful for you # sh script.sh The script.sh content: #! /bin/bash power=$(cat /sys/class/power_supply/BAT1/status) while true; do actual=$(cat /sys/class/power_supply/BAT1/status) if [ $actual != $power ]; then power=$actual notify-send $actual fi done ...


2

Try to check on_ac_power command. From man on_ac_power: NAME on_ac_power - test whether computer is running on AC power SYNOPSIS on_ac_power DESCRIPTION on_ac_power checks whether the system is running on AC power (i.e., mains power) as opposed to battery power. OPTIONS None. EXIT STATUS 0 (true) System ...


2

If you need or want a solution that prevents the screen to fall asleep, but that does dim/lock the screen after a while, there is another solution: instead of the system's own dim/lock option, use the script below to run in the background. You will need to install xprintidle. How to set up: Disable all dim / lock options in System Settings. (In Brightness ...


2

Solution Install powernap. You can find it through Ubuntu Software Center or do sudo apt-get install powernap . Enter terminal (Ctrl+Alt+T) and navigate to /etc/powernap (cd /etc/powernap). There you should find config file. Open it with the text editor of your choice. For me it's nano. sudo nano config. Or you can edit it directly as soon as you open ...


1

Surface temperature The question is about an unusual surface temperatue distribution on the body of a very thin notebook. It basically asks "Is that normal?" Misconfigured? I took the question as describing side effects of misconfigured fan- or power saving configuration. I tried pretty hard to find that implied problem, but finally gave up. Is it normal ...


1

There are at least two Upstart jobs that affect the default wireless state: /etc/init/rfkill-restore.conf restores the soft block state for all radios to what they were at last shutdown, as recorded in /var/lib/rfkill/saved-state. /etc/init/network-manager.conf starts Network Manager which in turn restores its idea of wireless state from ...


1

I decided I wanted a solution to wake my media server automatically when accessed that wasn't dependent on dd-wrt. I have a raspberry pi so I used it because it is low power and I don't mind keeping it on all the time, of course it could be run from any linux machine. The final solution I found for myself was writing a little bash script. The ...


1

I fixed it. Turns out my resume file wasn't updated to account for the new UUID! I followed everything in the link below and hibernation works again. http://askubuntu.com/a/196365/123256



Only top voted, non community-wiki answers of a minimum length are eligible