Tag Info

Hot answers tagged

4

Ok, I think I knew that. You want to check the battery status in every X interval of time. It's easiest way that you run it in the background, inside a while loop: while true do # Any script or command sleep [number of seconds] done And if you want to run the script on startup and from then on every 5 minutes, so the construction would be: Add ...


3

You cannot write a tutorial to create one script. That would be similar to a general python tutorial, which you can find on many places on the web. What I did is write a small script, with comments to explain what I did, to check battery charge every 10 seconds. That might be overdone. Change the line time.sleep(10) to set the interval (in seconds). The ...


3

Have a look at pm-action(8) and search for “/etc/pm/sleep.d” in section “FILES”. If one of these scripts returns with a non-zero exit status, suspension is stopped. Updated instructions to full clarity: So create a file /etc/pm/sleep.d/05_ssh_keepawake. Put the code mentioned in the question in this file. chmod +x /etc/pm/sleep.d/05_ssh_keepawake.


2

Does this do what you expect? gnome-session-quit --power-off Alternatively there are some other options to gnome-session-quit.


2

From Shutdown does not power off computer Which was originally found on Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04 This worked for me : Type in terminal: sudo -i (to get a root shell, sudo gedit is not recommended) gedit /etc/default/grub Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" Change this to: ...


1

OK I believe the exposed arguments are related to whether or not windows and there contents are displayed behind the screen saver (this will be relevant to certain screen savers that draw on the screen and the like). So it is in short if your desktop is exposed or not. This is a educated guess, the terminology used is strange I think. I do how ever ...


1

You need to disable the power management and possibly the 802.11n extension. These changes worked for me. For the power management create a file in sudo gedit /etc/pm/power.d/wireless with the following content #!/bin/sh /sbin/iwconfig wlan0 power off and make it executable: sudo chmod +x /etc/pm/power.d/wireless To disable the 11n extension, try ...


1

I have 14.04.1 LTS, Trusty Tahr. What doesn't worked for me: Open the /etc/systemd/logind.conf file in a text editor as root, for example, sudo -H gedit /etc/systemd/logind.conf Add a line HandleLidSwitch=ignore (make sure it's not commented out!), Restart the systemd daemon with this command: sudo restart systemd-logind Edit gConf When on AC Power, ...


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

Unchecking the "Dim screen to save power" is possible with gsettings set org.gnome.settings-daemon.plugins.power idle-dim false and setting the "Turn off after" to "Never" with gsettings set org.gnome.desktop.session idle-delay 0 The last command was completely sufficient for my needs.



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