Author Topic: e17 - screensaver, suspend/hibernate won't work  (Read 2346 times)

Offline coolraoul

  • Jr. Member
  • **
  • Posts: 45
e17 - screensaver, suspend/hibernate won't work
« on: November 01, 2010, 04:38:56 AM »
Hello!

I'm wondering if there is a way to make suspend or hibernate work on e17. Even with "pm-suspend/hibernate" it doesn't work on one of my computers (while pm-suspend does on my laptop).

And also, is there a way to have a screensaver starting by itself after a period of time? Even using LXDE panel control it doesn't work.

Those are the two only minor issues I'm having with e17 right now.

Thanks in advance.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #1 on: November 01, 2010, 04:50:44 AM »
I don't know about E17 and Lxde, but in Openbox I use a command line that uses dbus and hal to do the job. Maybe would you want to look into the files related to Lxde to see how it goes : it's the "lxde-logout" command that might be involved... or something approaching.

Or would you like to see the command lines used to shutdown reboot and suspend ?

It's "/usr/bin/pm-suspend" and "/usr/bin/pm-hibernate" that commands it. They belong to the package pm-utils-1.2.4-1pclos2007
for which I posted a request for an update recently. (advertising to get votes ! ;D )






melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline smurfslover

  • Hero Member
  • *****
  • Posts: 811
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #2 on: November 01, 2010, 05:53:22 AM »
Screensaver: settings panel / screen / screensaver /enable xscreensaver
Then check if xscreensaver is installed (don't know if it is included in the e17-qt version), if it isn't install it then use xscreensaver to set up  timeout andhoose the screensaver(s)
(xscreensaver should appear in 'more applications/configuration' in the menu)
Registered Linux User 440970

Every windows machine has an un-patchable critical vulnerability... Its called "Power ON" switch.

Offline coolraoul

  • Jr. Member
  • **
  • Posts: 45
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #3 on: November 03, 2010, 07:00:30 AM »
Thanks smurf, I did that before, but the xscreesaver daemon is not launched, I need to launch it manually everytime I reboot... Is there a way to do it automaticly?

And suspend/hibernate still don't work...

Thanks Melodie, but I'm not really familiar with programing myself... And pm-suspend/pm-hibernate don't work, be it from the comand-line or directly from the usr/bin file.
« Last Edit: November 03, 2010, 07:04:51 AM by coolraoul »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #4 on: November 03, 2010, 07:31:35 AM »
And suspend/hibernate still don't work...

Thanks Melodie, but I'm not really familiar with programing myself... And pm-suspend/pm-hibernate don't work, be it from the comand-line or directly from the usr/bin file.


Hi,

If you call it from command line as "pm-suspend" etc... or /usr/bin/pm-suspend it can't work/most probably won't, because it is usually called through a delicate authentication protocol, with pam.
Code: [Select]
$ ls -l /usr/bin/pm-suspend
lrwxrwxrwx 1 root root 13 2010-04-30 03:32 /usr/bin/pm-suspend -> consolehelper*

It's a symlink to consolehelper. What is consolehelper ?

http://linuxcommand.org/man_pages/consolehelper8.html

to check if it works you could run the other pm-suspend:
run "which foo" as root shows another one:
Code: [Select]
# which pm-suspend
/usr/sbin/pm-suspend

what does it look like ?
Code: [Select]
# ls -l /usr/sbin/pm-suspend
lrwxrwxrwx 1 root root 36 2010-04-30 03:37 /usr/sbin/pm-suspend -> ../../usr/lib/pm-utils/bin/pm-action*

a symlink as well.
what package does pm-action belong to ?
Code: [Select]
# rpm -qf /usr/lib/pm-utils/bin/pm-action
pm-utils-1.2.4-1pclos2007

and what package do consolehelper belong to ? pm-utils ? no, it belongs to:
Code: [Select]
# rpm -qf /usr/bin/consolehelper
usermode-consoleonly-1.102-1pclos2010

I spare you the rest, consolehelper-gtk and what they do etc...

If you like you could try invoking directly /sbin/pm-suspend *as root* to see if that works in your system. (just this one, as experience, but not hibernate)

(I also asked for an update for usermode... and also s2u...  and thanks for you vote at pm-utils request, by the way. :D )

« Last Edit: November 03, 2010, 07:37:56 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline smurfslover

  • Hero Member
  • *****
  • Posts: 811
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #5 on: November 03, 2010, 10:14:24 AM »
Maybe you could better post your suspend/hibernate issues in the hardware section of the forum.
Don't think it's related to the desktop.

You could make a .desktop file in ~/.local which starts the xscreensaver deamon and load set it it autostart in the e17 settings panel.
Gonna install the xscreensaver over here to take some tests, haven't used a screensaver in years.
« Last Edit: November 03, 2010, 10:21:08 AM by smurfslover »
Registered Linux User 440970

Every windows machine has an un-patchable critical vulnerability... Its called "Power ON" switch.

Offline exploder

  • Hero Member
  • *****
  • Posts: 1147
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #6 on: November 06, 2010, 05:58:10 AM »
I can confirm that the xscreensaver daemon is not started by default. Everything else in the QT e17 version is working perfectly here.

Offline Agust

  • Hero Member
  • *****
  • Posts: 970
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #7 on: November 06, 2010, 06:04:05 AM »
Works fine!.
To work is to uncheck those that are not installed and re-check all that are installed.

Greetings:
Agust

PCLinuxOS e17 Club Member

Pclos user since 2005!

Offline exploder

  • Hero Member
  • *****
  • Posts: 1147
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #8 on: November 06, 2010, 06:11:26 AM »
Quote
To work is to uncheck those that are not installed and re-check all that are installed.

Where do I un-check them?

Edit: I should add that this is the best e17 based edition I have ever tried, it is very complete, looks nice and is very responsive.  ;D
« Last Edit: November 06, 2010, 06:31:02 AM by exploder »

Offline Agust

  • Hero Member
  • *****
  • Posts: 970
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #9 on: November 06, 2010, 07:39:57 AM »
My friend, when you install xscreensaver , have screensavers checked , which are not installed.
Started by default  , Menu > Settings > Applications  > Applications Start , check or charge Xscreensaver , tab Apply.

Greetings:
Agust

PCLinuxOS e17 Club Member

Pclos user since 2005!

Offline exploder

  • Hero Member
  • *****
  • Posts: 1147
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #10 on: November 07, 2010, 08:41:14 AM »
Quote
My friend, when you install xscreensaver , have screensavers checked , which are not installed.
Started by default  , Menu > Settings > Applications  > Applications Start , check or charge Xscreensaver , tab Apply.

I have the screen savers set like you suggested but the daemon is not starting when the system starts. This is the only bug I have noticed and for an e17 based system, this is a very minor inconvenience. I am running the new qt based e17, if that makes any difference. I love this new release!

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12497
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #11 on: November 07, 2010, 10:05:42 AM »
How to activate xscreensaver in PCLinuxOS Enlightenment 2010.11

1. Update or install xscreensaver 5.12-3 when it appears in the repository
2. Open Enlightenment Settings Panel
3. Go to Apps -> Startup Applications
4. Scroll down and select -> Xscreensaver E17 Autostart
5. Click on Add, Click on Apply, Click on Close
6. Close Panel Settings

Log out and back in again to enable.

* You can configure the screensaver you wish to display via More Applications -> Configuration -> Configure XScreensaver in the menu.

Enjoy!
Tex
« Last Edit: November 07, 2010, 10:07:58 AM by Texstar »

Thanks to everyone who donates. You keep the servers running.

Offline exploder

  • Hero Member
  • *****
  • Posts: 1147
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #12 on: November 07, 2010, 10:21:33 AM »
Thanks Texstar! I will keep an eye out for the new xscreensaver package and give it a try.

Offline smurfslover

  • Hero Member
  • *****
  • Posts: 811
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #13 on: November 07, 2010, 10:33:37 AM »
Great Texstar i was just looking into making a howto to create a .desktop file and put it in autostart :)
Registered Linux User 440970

Every windows machine has an un-patchable critical vulnerability... Its called "Power ON" switch.

Offline exploder

  • Hero Member
  • *****
  • Posts: 1147
Re: e17 - screensaver, suspend/hibernate won't work
« Reply #14 on: November 07, 2010, 11:54:31 AM »
The new package and the instructions have the screen saver daemon running just fine. Thanks Texstar!