Résolu le 9-05-19 Hibernation avec Xfce

Assistance concernant Linux Mint
Avatar du membre
cyrille
Administrateur du site
Messages : 12285
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: Hibernation avec Xfce

Message par cyrille »

Dernier message de la page précédente :

par contre avant de trifouiller à la config fine d'xfce, as tu jeté un oeil sur ce paquet et es tu sûr qu'il soit installé ?

Code : Tout sélectionner

libres09@libres09-Latitude-E6410 ~ $ aptitude show xfce4-power-manager
Paquet : xfce4-power-manager                            
État: installé
Automatiquement installé: non
Version : 1.4.4-5mint1
Priorité : optionnel
Section : xfce
Responsable : Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture : amd64
Taille décompressée : 377 k
Dépend: libc6 (>= 2.4), libcairo2 (>= 1.2.4), libdbus-1-3 (>= 1.9.14), libdbus-glib-1-2 (>= 0.88), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.41.1),
        libgtk2.0-0 (>= 2.24.0), libnotify4 (>= 0.7.0), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libupower-glib3 (>= 0.99.0), libx11-6,
        libxext6, libxfce4ui-1-0 (>= 4.11.1), libxfce4util7 (>= 4.9.0), libxfconf-0-2 (>= 4.6.0), libxrandr2 (>= 2:1.2.99.2), upower (>= 0.99),
        xfce4-power-manager-data (= 1.4.4-5mint1)
Recommande: libpam-systemd, xfce4-power-manager-plugins
Est en conflit: xfce4-power-manager:i386
Description : power manager for Xfce desktop
 This power manager for the Xfce desktop enables laptop users to set up a power profile for two different modes "on battery power" and "on ac power" while
 still allowing desktop users to at least change the DPMS settings and CPU frequency using the settings dialogue.. 
 
 It features: 
 * battery monitoring 
 * cpu frequency settings 
 * monitor DPMS settings 
 * suspend/Hibernate 
 * LCD brightness control 
 * Lid, sleep and power switches control
Site : http://goodies.xfce.org/projects/applications/xfce4-power-manager
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Avatar du membre
cyrille
Administrateur du site
Messages : 12285
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: Hibernation avec Xfce

Message par cyrille »

Après vérif, ce paquet contient ce fichier polkit très intéressant (qui sera installé en data/usr/share/polkit-1/actions/xfce.power.policy )

Code : Tout sélectionner

$ cat xfce4-power-manager_1.4.4-5mint1_amd64/data/usr/share/polkit-1/actions/org.xfce.power.policy 


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>

  

  <vendor>XFCE Power Manager</vendor>
  <vendor_url>http://goodies.xfce.org/projects/applications/xfce4-power-manager</vendor_url>
  <icon_name>battery</icon_name>

  <action id="org.xfce.power.backlight-helper">
    
    <description>Modify the laptop display brightness</description>
    <message>Authentication is required to modify the laptop display brightness</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/xfpm-power-backlight-helper</annotate>
  </action>

  <action id="org.xfce.power.xfce4-pm-helper">
    
    <description>Suspend or hibernate the system</description>
    <message>Authentication is required to place the system in suspend or hibernate mode</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/xfce4-pm-helper</annotate>
  </action>
Notamment sa dernière section...
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Avatar du membre
mylapk
Messages : 617
Enregistré le : dim. 17 avr. 2016 14:22

Re: Hibernation avec Xfce

Message par mylapk »

Bonjour,
chez moi, j'ai mise en veille prolongée. Ne serait-ce pas l'équivalent de hibernation?
Asus VivoBook Linux Mint 20.2 Uma Xfce Kernel: 5.4.0-89-generic x86_64

Avatar du membre
cyrille
Administrateur du site
Messages : 12285
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: Hibernation avec Xfce

Message par cyrille »

En gros
mise en veille prolongée = hibernation --> stocke dans le swap et coupe le disque
veille = suspend --> stocke dans la RAM, reste tjs un peu de courant qui passe
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

gacaron
Messages : 342
Enregistré le : mer. 26 oct. 2016 18:01

Re: Hibernation avec Xfce

Message par gacaron »

Bonjour,

Je suis sous LM19.1 mais Cinnamon !
Moi non plus, je n'ai plus le bouton hibernation depuis que je suis avec LM19.1.
Perso je m'en fiche car je n'utilise pas le mode hibernation, mais voici un lien intéressant qui devrait t'aider ;)

https://forums.linuxmint.com/viewtopic. ... n#p1569661
Machine: HP Pavilion g7-2310 - CPU : i5-3230M / RAM : 8 Go
Kernel: 4.15.0-43-generic x86_64 bits: 64
Desktop: Cinnamon 4.0.9 Linux Mint 19.1 Tessa
Graphics: Card-1: Intel 3rd Gen Core / Card-2: [AMD/ATI] [Radeon HD 7500M/7600M Series]
Wifi : Ralink RT5390R 802.11bgn / Ethernet : Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet

Avatar du membre
Frosch
Messages : 9
Enregistré le : dim. 28 avr. 2019 22:12

Re: Hibernation avec Xfce

Message par Frosch »

Merci gacaron, j'ai suivi le guide et ça fonctionne!

Mais quelle idée de ne pas activer ça par défaut lors de l'installation...

Répondre