LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 01-02-2012, 10:01 PM   #1
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 249

Rep: Reputation: 31
Do nothing on close lid


I am running Debian squeeze with gnome 2.30.2 on a Dell Latitude D610, and would like to set the power options to do nothing when I close the lid (I have an external display attached). This option is not listed under "Power Management."
 
Old 01-02-2012, 11:22 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,346

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Don't use a laptop.

Do have Squeeze on here though. Went looking for the Gnome Power Manager config files.

/usr/share/gnome-power-manager is where it lives. /usr/share/gnome-power-manager/gpm-prefs.ui at line 399 in my file on gedit is talking about the laptop lid.

You may want to check that out.

If you make any changes;
A>save a copy of the current file for backup when you screw things up.
B>write down things like the line number so you can find it again
C>make a document with gedit (or your favorite text editor) with a copy of the original line and what you did. Include the line numbers.

This way when you test this you can tweak what you are doing or at least restore it to the present condition.

EDIT
I would change the yes to no and see what happens.
 
Old 01-03-2012, 11:15 AM   #3
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 249

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by widget View Post
Don't use a laptop.

Do have Squeeze on here though. Went looking for the Gnome Power Manager config files.

/usr/share/gnome-power-manager is where it lives. /usr/share/gnome-power-manager/gpm-prefs.ui at line 399 in my file on gedit is talking about the laptop lid.

You may want to check that out.
That section is for battery power. I found the corresponding section for AC on line 136. I see the entry for the action combo box, but it doesn't list the entries IN the combo box. Here is the expression:
Code:
<child>
  <object class="GtkHBox" id="hbox_ac_lid">
    <property name="visible">True</property>
    <property name="spacing">12</property>
    <property name="homogeneous">True</property>
    <child>
      <object class="GtkLabel" id="label_ac_lid">
        <property name="visible">True</property>
        <property name="xalign">0</property>
        <property name="label" translatable="yes">When laptop lid is cl_osed:</property>
        <property name="use_underline">True</property>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="position">0</property>
      </packing>
    </child>
    <child>
      <object class="GtkComboBox" id="combobox_ac_lid">
        <property name="visible">True</property>
      </object>
      <packing>
        <property name="position">1</property>
      </packing>
    </child>
  </object>
  <packing>
    <property name="position">1</property>
  </packing>
</child>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No suspend on lid close AllanP Linux - Laptop and Netbook 26 05-19-2012 01:38 PM
Hanged when i close lid ob my laptop sauravrukd Linux - Laptop and Netbook 4 11-27-2011 08:38 PM
Hanged when i close lid ob my laptop sauravrukd Linux - Laptop and Netbook 2 11-25-2011 09:26 PM
[SOLVED] How can I close lid without sleep? tquang Linux - Laptop and Netbook 5 07-12-2011 03:42 AM
Lid Close = Sleep mangogreg Linux - Hardware 2 08-28-2008 04:17 PM


All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration