Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 20/04/2009, à 01:06

saelyx

lid close - HP Compaq 6510b - Lorsque l'écran se rabaisse - Plantage

Sous Ubuntu 8.04 Hardy Heron, lorsque je referme mon portable (HP Compaq 6510b), Ubuntu se fige. Après avoir bidouillé n fois, j'ai décidé d'aller voir carrément dans le script du paquet kde-guidance-powermanager

A partir de la ligne 719 dans le fichier :
/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py

il faut commenter la ligne faisant appel à la fonction _getRB, qui concernel'état des DELs (lumière en façade du portable)  (get Radio Button (state)) :

if self.powermanager.hasLid:
            if self.powermanager.getLidClosedState():
                if not self.powermanager.lidClosedState:
                    self.powermanager.lidClosedState = True

                    # action = self._getRB(self.LaptopLidRadios, self.lid_act)  ## FIX HP6510b ## <-- commenter cette ligne
                    if not self.act_name.has_key(action):
                        action = self.act_name[self.lid_act_def]

                    if self.act_call[action] != None:
                        note = i18n("Laptop lid is closed, %1 now.").arg(self.act_notify[action])
                        self.notify(note, self.act_icon[action])
                        QTimer.singleShot(2000, self.act_call[action])

Sinon par un appel à sed :

sudo cp /usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py /usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py.BACKUP

sudo sed -i 's/action = self._getRB/\# action = self._getRB/g' /usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py

-----BEGIN GEEK CODE BLOCK-----
GCS d- s+:+ a? C++ UL+++ P L++ E--- W+ N o-- K- w+ O-- M- V-
PS+ PE Y PGP t 5 X+ R- tv-- b+ DI- D++ G e-- h--- r+++ z+++
------END GEEK CODE BLOCK------

Hors ligne

#2 Le 05/05/2009, à 01:53

saelyx

Re : lid close - HP Compaq 6510b - Lorsque l'écran se rabaisse - Plantage

La solution la plus efficace se résume à :

sudo apt-get remove kde-guidance-powermanager
sudo apt-get install kpowermanager

Dans mon /boo/grub/menu.lst :

title GNU/Linux - Ubuntu 8.04.2                    [ Kernel: 2.6.24-19    ]
  root (hd0,1)
  kernel /boot/vmlinuz root=/dev/sda2 ro vga=791  quiet noacpi noapic
  initrd /boot/initrd.img

-----BEGIN GEEK CODE BLOCK-----
GCS d- s+:+ a? C++ UL+++ P L++ E--- W+ N o-- K- w+ O-- M- V-
PS+ PE Y PGP t 5 X+ R- tv-- b+ DI- D++ G e-- h--- r+++ z+++
------END GEEK CODE BLOCK------

Hors ligne