LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 01-02-2012, 09:01 PM   #1
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 244

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, 10: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,057

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
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, 10:15 AM   #3
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 244

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 02:12 AM.

Main Menu
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