You are not logged in.

#1 2012-06-17 10:07:49

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Difference between running pm-suspend and closing the lid.

Hi!
Today i noticed this strange thing: i'm using xfce4.10 and pm-utils to suspend.
This morning i noticed that running a "pm-suspend" from my terminal, won't switch off my wireless card, while suspending with xfce buttons or closing the lid, would do it.
Why? What is the difference between these two actions (running pm-suspend and closing the lid)? As far as i know, the only difference is that there is no call to upower running pm-suspend from terminal.
ps: sorry for the subject, that is not describing the question the best!

Last edited by nierro (2012-06-17 11:03:55)

Offline

#2 2012-06-17 10:18:23

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Difference between running pm-suspend and closing the lid.

Shouldn't this be in the "Laptop Issues" section?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-06-17 10:49:18

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Difference between running pm-suspend and closing the lid.

@nierro, please read the Forum Etiquette on how to post and choose clear, informative subjects for your threads.

DSpider wrote:

Shouldn't this be in the "Laptop Issues" section?

If you think that it should be, report the thread instead of adding a comment.

Last edited by litemotiv (2012-06-17 10:51:28)


ᶘ ᵒᴥᵒᶅ

Offline

#4 2012-06-17 11:03:25

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Difference between running pm-suspend and closing the lid.

Sorry, i'll change the subject.
By the way, it is not a laptop issue i think. I only need an explanation.

Offline

#5 2012-06-17 19:54:42

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: Difference between running pm-suspend and closing the lid.

Closing the lid is normally handled by acpid.

edit: You can probably find out how acpid handles it by looking to the files in /etc/acpi.

Last edited by Terminator (2012-06-17 19:58:24)

Offline

#6 2012-06-17 21:25:34

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Difference between running pm-suspend and closing the lid.

No, i do not use acpid to handle closing the lid. I use xfce4-power-manager.
And my question was not only about closing the lid, but pressing the "suspend" button in the xfce-panel too...

Offline

#7 2012-06-18 07:57:14

axel668
Member
Registered: 2009-08-15
Posts: 168

Re: Difference between running pm-suspend and closing the lid.

obviously there's a difference in how xfce4-powermanager handles suspend in comparison to pm-suspend. you might get pm-suspend to disable your wireless eventually (https://wiki.archlinux.org/index.php/Pm-utils) but since power manager works, why not just use the panel buttons to suspend, or set it to suspend on lid close or when you press the sleep or power button ?


"A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila."
(Mitch Ratcliffe)

Offline

#8 2012-06-18 09:51:41

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Difference between running pm-suspend and closing the lid.

Uhm yes, i know SUSPEND_MODULES array can do it.
What i was wondering is: xfce4-power-manager uses pm-suspend to suspend. So why does it something pm-suspend alone doesn't? As i said, the only difference for me, is that that button relies upon upower too. So i suspect it is upower that switch off my wireless card, isn't it?
My question is not how can i reach the same behaviour with pm-suspend alone, but what does that button in the xfce4-panel.
I'm only curious! smile

Offline

Board footer

Powered by FluxBB