PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 24, 2012, 07:32:03 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: suspend power management easily  (Read 267 times)
dougmack
Hero Member
*****
Offline Offline

Posts: 506


« on: January 16, 2012, 09:12:15 PM »

There are times when you are trying to download a file and it runs very slowly.  In this case, your power management will probably
put the machine into hibernation long before the download is finished.  Rather than dig thru KDE menus and submenus, and change
all the timeouts, it would be nice to have a simple file that would disable the timeouts until you manually restarted them  Some simple
bash routine that could be setup behind an icon that would toggle such performance.  (If there is something like that available, I
couldn't find it searching the forum.) It wouldn't matter if it still blanked the screen, but the os needs to keep running otherwise.

Thanx, experts.  --doug
Logged

Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley
zorlac
Full Member
***
Offline Offline

Posts: 84



« Reply #1 on: January 17, 2012, 12:00:08 PM »

+1
Logged
rubentje1991
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2052


Rubenum Parvus MCMXCI


« Reply #2 on: January 18, 2012, 12:54:51 PM »

You can use probably the on/off switch-widget, assigning some command (or another button, or even some key combo: but for the last one, I'd think there are other possibilities  Smiley)....

I think this will be interesting:
http://superuser.com/questions/180924/how-can-i-switch-power-profiles-in-kde-powerdevil-via-dbus-qdbus
=> you just have to set some energy profiles (for example "Normal", "Download", and others you'd want - choose the names yourself!)

Then use following command:

Code:
[s]qdbus org.kde.powerdevil /modules/powerdevil setProfile Profilename[/s]
For example (in this situation):
Code:
[s]qdbus org.kde.powerdevil /modules/powerdevil setProfile [b][color=maroon]Download[/s][/color][/b]
=> so that's  for putting it in a script
=> doesn't work on my laptop here  Undecided  Lips Sealed

This link: http://www.google.be/url?sa=t&rct=j&q=kde%20dbus%20command%20switch%20power%20profile&source=web&cd=8&ved=0CGMQFjAH&url=http%3A%2F%2Fdrfav.wordpress.com%2F2010%2F11%2F10%2Fupdates-from-kde-power-management-land-for-users-and-developers%2F&ei=8QQXT6asCMiJhQeNvpGBAw&usg=AFQjCNHD203WhewmzV1ez2HXjaekN1G3Lw&cad=rja
is blacked out today.... (SOPA reasons) - no, looked in Google cache, nothing interesting either

Pfff, it seems that it's removed after the power management upgrade (in 4.6?)....
=> I opened qdbusviewer (you can that type in the terminal, or in Krunner [Alt-F2]); and can't find any interesting anymore in org.freedesktop.PowerManagement >> [Methods] modules >> powerdevil: neither in org.freedesktop.DBus.Properties or Introspectable any of interest  Cry


Maybe someone else who has an idea?
Logged
old_guy
Hero Member
*****
Offline Offline

Posts: 686



« Reply #3 on: January 18, 2012, 03:39:46 PM »

dougmack
Look for caffeine in synaptic:

Caffeine is a system applet that allows the user to temporarily
inhibit both the screensaver and the sleep power saving mode, simply
by clicking on it. This could be useful for example when watching
long flash videos or playing certain full screen games that don't
inhibit the screensaver by themselves.

Earl
Logged

Never too old to learn.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM