PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > with suspend/hibernate in Gnome Power Manager
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

with suspend/hibernate in Gnome Power Manager

Réponse
 
LinkBack Outils de la discussion
Vieux 30/01/2008, 12h30   #1
René Seindal
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut with suspend/hibernate in Gnome Power Manager

Hi,

I have bought a Zepto Znote 3215W laptop and installed Debian testing.
The report on that is here:
http://linux.seindal.dk/2008/01/28/z...-testinglenny/

I have an issue with suspend and hibernate that I haven't been able to
resolve alone.

The pm-hibernate script works out of the box from the command line as
root. The system resumes correctly.

The pm-suspend script works with the --force flag, again out of the box
from the command line as root. The laptop isn't listed in the database
of s2ram, but it works nonetheless. That was easily solved with a file
in /etc/pm/config.d/s2ram with the line:

S2RAM_OPTS=--force

Again, the system resumes correctly.

As such, suspend and hibernate works, only it doesn't when activated
through Gnome Power Manager

If I try to suspend though the context menu of the applet, I immediately
get a dialog with the text:

Sleep Problem
Your computer failed to suspend.
Check the file for common problems.

This happens so fast that no attempt at suspending can be made.

The website linked hasn't ed me find a solution.

To get HAL to recognise the laptop I have made a file
/usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-zepto.fdi
with this content:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="system.hardware.vendor" prefix="ZEPTO">
<match key="system.hardware.product" string="ZNOTE">
<merge key="power_management.quirk.none"
type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>

and restarted HAL. That should, as far as I have understood, whitelist
the laptop in HAL. After a restart of HAL I get this:

# lshal | grep quirk
power_management.quirk.none = true (bool)
#

so HAL should have picked up my entry. I tried adding dpms_on too,
without any difference. Suspend/resume works with that option too.


At this point I haven't found anything else to try. It seems that Gnome
Power Manager simply won't recognise my laptop.

The quirk-checker script isn't much of a :

# sh ~rene/Download/quirk-checker.sh
Checking your system...
Suspend should work!

Thanks!

I've been through the check list on the site, and get smilies all the
way down.

Looking further into what HAL thinks:

# lshal | egrep -i power.?management
info.interfaces =
{'org.freedesktop.Hal.Device.SystemPowerManagement ',
'org.freedesktop.Hal.Device.CPUFreq'} (string list)
org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_argnames =
{'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '',
'enable_power_save'} (string list)
org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_execpaths =
{'hal-system-power-suspend', 'hal-system-power-suspend-hybrid',
'hal-system-power-hibernate', 'hal-system-power-shutdown',
'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_names =
{'Suspend', 'SuspendHybrid', 'Hibernate', 'Shutdown', 'Reboot',
'SetPowerSave'} (string list)
org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_signatures =
{'i', 'i', '', '', '', 'b'} (string list)
power_management.acpi.linux.version = '20070126' (string)
power_management.can_hibernate = true (bool)
power_management.can_suspend = true (bool)
power_management.can_suspend_hybrid = true (bool)
power_management.can_suspend_to_disk = true (bool)
power_management.can_suspend_to_ram = true (bool)
power_management.is_powersave_set = false (bool)
power_management.quirk.dpms_on = true (bool)
power_management.quirk.none = true (bool)
power_management.type = 'acpi' (string)


I don't know how to move on from here. I'm quite sure the power manager
applet doesn't even try to run the pm-suspend script, it just decides
that it won't for some reason.

much appreciated.

--
René Seindal (rene@seindal.dk)






--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/01/2008, 12h50   #2
René Seindal
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with suspend/hibernate in Gnome Power Manager

Hi

Murphy strikes again, it seems. Just as I had posted the message below,
I found another thing on google, which led me to the solution: I wasn't
a member of the powerdev group. Gnome Power Manager shows the Suspend
and Hibernate entries anyway, but doesn't do anything if the logged in
user is not a member of the powerdev group.

It works now.

Next thing is to let the battery drain and see if it hibernates
automatically in time.

René



René Seindal wrote:
> Hi,
>
> I have bought a Zepto Znote 3215W laptop and installed Debian testing.
> The report on that is here:
> http://linux.seindal.dk/2008/01/28/z...-testinglenny/
>
>
> I have an issue with suspend and hibernate that I haven't been able to
> resolve alone.
>
> The pm-hibernate script works out of the box from the command line as
> root. The system resumes correctly.
>
> The pm-suspend script works with the --force flag, again out of the box
> from the command line as root. The laptop isn't listed in the database
> of s2ram, but it works nonetheless. That was easily solved with a file
> in /etc/pm/config.d/s2ram with the line:
>
> S2RAM_OPTS=--force
>
> Again, the system resumes correctly.
>
> As such, suspend and hibernate works, only it doesn't when activated
> through Gnome Power Manager
>
> If I try to suspend though the context menu of the applet, I immediately
> get a dialog with the text:
>
> Sleep Problem
> Your computer failed to suspend.
> Check the file for common problems.
>
> This happens so fast that no attempt at suspending can be made.
>
> The website linked hasn't ed me find a solution.
>
> To get HAL to recognise the laptop I have made a file
> /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-zepto.fdi
> with this content:
>
> <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
> <deviceinfo version="0.2">
> <device>
> <match key="system.hardware.vendor" prefix="ZEPTO">
> <match key="system.hardware.product" string="ZNOTE">
> <merge key="power_management.quirk.none"
> type="bool">true</merge>
> </match>
> </match>
> </device>
> </deviceinfo>
>
> and restarted HAL. That should, as far as I have understood, whitelist
> the laptop in HAL. After a restart of HAL I get this:
>
> # lshal | grep quirk
> power_management.quirk.none = true (bool)
> #
>
> so HAL should have picked up my entry. I tried adding dpms_on too,
> without any difference. Suspend/resume works with that option too.
>
>
> At this point I haven't found anything else to try. It seems that Gnome
> Power Manager simply won't recognise my laptop.
>
> The quirk-checker script isn't much of a :
>
> # sh ~rene/Download/quirk-checker.sh
> Checking your system...
> Suspend should work!
>
> Thanks!
>
> I've been through the check list on the site, and get smilies all the
> way down.
>
> Looking further into what HAL thinks:
>
> # lshal | egrep -i power.?management
> info.interfaces = {'org.freedesktop.Hal.Device.SystemPowerManagement ',
> 'org.freedesktop.Hal.Device.CPUFreq'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_argnames =
> {'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '',
> 'enable_power_save'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_execpaths =
> {'hal-system-power-suspend', 'hal-system-power-suspend-hybrid',
> 'hal-system-power-hibernate', 'hal-system-power-shutdown',
> 'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_names =
> {'Suspend', 'SuspendHybrid', 'Hibernate', 'Shutdown', 'Reboot',
> 'SetPowerSave'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.m ethod_signatures =
> {'i', 'i', '', '', '', 'b'} (string list)
> power_management.acpi.linux.version = '20070126' (string)
> power_management.can_hibernate = true (bool)
> power_management.can_suspend = true (bool)
> power_management.can_suspend_hybrid = true (bool)
> power_management.can_suspend_to_disk = true (bool)
> power_management.can_suspend_to_ram = true (bool)
> power_management.is_powersave_set = false (bool)
> power_management.quirk.dpms_on = true (bool)
> power_management.quirk.none = true (bool)
> power_management.type = 'acpi' (string)
>
>
> I don't know how to move on from here. I'm quite sure the power manager
> applet doesn't even try to run the pm-suspend script, it just decides
> that it won't for some reason.
>
> much appreciated.
>



--
René Seindal (rene@seindal.dk)





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/01/2008, 19h40   #3
Michael Biebl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with suspend/hibernate in Gnome Power Manager

René Seindal wrote:
> Hi,
>
> I have bought a Zepto Znote 3215W laptop and installed Debian testing.
> The report on that is here:
> http://linux.seindal.dk/2008/01/28/z...-testinglenny/


> The pm-hibernate script works out of the box from the command line as
> root. The system resumes correctly.
>


> To get HAL to recognise the laptop I have made a file
> /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-zepto.fdi
> with this content:
>
> <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
> <deviceinfo version="0.2">
> <device>
> <match key="system.hardware.vendor" prefix="ZEPTO">
> <match key="system.hardware.product" string="ZNOTE">
> <merge key="power_management.quirk.none"
> type="bool">true</merge>
> </match>
> </match>
> </device>
> </deviceinfo>


Please consider sending this patch to the upstream hal mailing list, so
every user of the Zepto Znote 3215W laptop can benefit from your work
you've done.

Cheers,
Michael

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoNInh7PER70FhVQRAgMMAJ9KzrPr61I0xvR8eM4ycv DiHlmZHQCcD7U6
f3/CIE0EJZ9pKra+1vHBx4c=
=iicj
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h23.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15089 seconds with 11 queries