LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 04-07-2014, 03:57 AM   #1
Silvyrfir
LQ Newbie
 
Registered: Apr 2014
Location: Finland
Distribution: Lubuntu
Posts: 2

Rep: Reputation: Disabled
Notebook suspends when closing lid even after editing logind.conf


My goal:
I currently wish that only the notebook display turns off when the lid is closed, with no other action. However I might want to change it in the future so an easy way to change it later would be appreciated.
Current state:
The system suspends when the lid is closed. It automatically resumes when it is opened again.
I have put #HandleLidSwitch=ignore in /etc/systemd/logind.conf.
I also have checked that I have no acpid or gnome-power-manager installed and removed xfce4-power-manager (which wasn't even launching on system startup).

Logind.conf
Code:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=ignore
#HandleHibernateKey=ignore
#HandleLidSwitch=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=no
#IdleAction=ignore
#IdleActionSec=30min
System info:
Code:
-Computer-
Processor		: 2x Intel(R) Atom(TM) CPU N270   @ 1.60GHz
Memory		: 1017MB (305MB used)
Operating System		: Ubuntu 13.10
User Name		: username (Username)
Date/Time		: mo  7. april 2014 11.35.00
-Input Devices-
 Lid Switch
 Sleep Button
 Power Button
 Power Button
 AT Translated Set 2 keyboard
 Video Bus
 HP Webcam-50
 SynPS/2 Synaptics TouchPad
 HDA Intel Headphone
 HDA Intel Mic
 HP WMI hotkeys
-SCSI Disks-
ATA ST9160314AS

Operating system:
-Version-
Kernel		: Linux 3.11.0-12-generic (i686)
Compiled		: #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013
C Library		: Unknown
Default C Compiler		: GNU C Compiler version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9) 
Distribution		: Ubuntu 13.10
-Current Session-
Computer Name		: ComputerName
User Name		: username (Username)
Home Directory		: /home/username
Desktop Environment		: LXDE (Lubuntu)
Clearly something is still handling the hardware switches but I can't put my finger on it. I'm still new to linux and having a hard time trying to configure pretty much anything. The Notebook used to run WinXP and the windows configuration handled this just fine.

Also, the system info says that the notebook has a Sleep button and no Suspend button, but hitting the sleep key suspends even when all other than power button is set on ignore. This gives me the impression that the logind.conf has no impact at all.

Thanks for the interest in advance.

EDIT: The solution
Yea... The fault was that all the options in the logind.conf were still marked as comments with # in front of them Now everything is working as expected.

Last edited by Silvyrfir; 04-08-2014 at 05:07 AM. Reason: Solution added
 
Old 04-07-2014, 09:22 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Ok. I just closed the Lid on my Acer Aspire One ZG5 with

Code:
$ inxi -Fxz
System:    Host: biker Kernel: 3.12-0.bpo.1-686-pae i686 (32 bit gcc: 4.6.3) 
           Desktop: Xfce 4.10.2 (Gtk 2.24.10) 
           Distro: MX-14 Symbiosis 24 March 2014 
Machine:   System: Acer product: AOA150 v: 1
           Mobo: Acer model: N/A Bios: Acer v: v0.3310 date: 10/06/2008
CPU:       Single core Intel Atom CPU N270 (-HT-) cache: 512 KB
           flags: (nx pae sse sse2 sse3 ssse3) bmips: 3191 
           Clock Speeds: 1: 1066 MHz 2: 1333 MHz
Graphics:  Card: Intel Mobile 945GSE Express Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.12.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1024x600@60.0hz
           GLX Renderer: Mesa DRI Intel 945GME x86/MMX/SSE2
           GLX Version: 1.4 Mesa 8.0.5 Direct Rendering: Yes
Audio:     Card Intel NM10/ICH7 Family High Definition Audio Controller 
           driver: snd_hda_intel bus-ID: 00:1b.0 
           Sound: Advanced Linux Sound Architecture v: k3.12-0.bpo.1-686-pae
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: 3000 bus-ID: 02:00.0
           IF: eth0 state: down mac: <filter>
           Card-2: Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express)
           driver: ath5k bus-ID: 03:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 160.0GB (6.4% used)
           ID-1: /dev/sda model: WDC_WD1600BEVT size: 160.0GB
Partition: ID-1: / size: 7.6G used: 2.9G (41%) fs: ext4 dev: /dev/sda5 
           ID-2: /home size: 79G used: 9.7G (13%) fs: ext4 dev: /dev/sda7 
           ID-3: swap-1 size: 2.10GB used: 0.05GB (2%) fs: swap dev: /dev/sda6 
Sensors:   System Temperatures: cpu: 62.0C mobo: N/A 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes: 146 Uptime: 1:18 Memory: 462.6/996.6MB 
           Init: SysVinit runlevel: 5 Gcc sys: 4.7.2 
           Client: Shell (bash 4.2.371) inxi: 2.1.18
Installed. It went into logout and screensaver and I had to login again.

Just curious. Should not

Code:
#HandleLidSwitch=ignore
Be uncommented to read

Code:
HandleLidSwitch=ignore
with the # sign removed for your edit to take?

Just checked mine

Code:
harry@biker:~
$ cat /etc/systemd/logind.conf.
cat: /etc/systemd/logind.conf.: No such file or directory
harry@biker:~
$ cd /etc/systemd
harry@biker:/etc/systemd
$ ls
system
harry@biker:/etc/systemd
$ cd system
harry@biker:/etc/systemd/system
$ ls
default.target.wants     sockets.target.wants
multi-user.target.wants  syslog.service
harry@biker:/etc/systemd/system
$ cd ~
it is not setup like yours in file structure (Debian)

Code:
$ locate login.conf
/var/lib/dpkg/info/login.conffiles
$ locate logind.conf
harry@biker:~
So I guess I am not much help in this.
 
1 members found this post helpful.
Old 04-08-2014, 05:02 AM   #3
Silvyrfir
LQ Newbie
 
Registered: Apr 2014
Location: Finland
Distribution: Lubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
Talking

Oh wow, I feel very stupid now Well I still am a real beginner in the world of text configuration etc...

Didn't even come to my mind that all the # in the config file could've been comments since they were on every single line of the file except [login].

Thank you kindly for the help! Will add the solution to the original post too -->
 
  


Reply



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
closing lid freezes pc vorian Linux - Laptop and Netbook 4 07-20-2010 09:57 AM
[SOLVED] Closing the Lid on a HP Notebook DV5 under Debian Lenny Julyan Linux - Newbie 9 07-22-2009 07:40 AM
Wireless after closing the lid watcher69b Fedora 2 01-14-2009 10:24 PM
My notebook (somtimes) suspends right after wakeup anutosho Ubuntu 2 12-01-2008 03:07 AM
How to suspend on lid closing? jerrybasham Linux - Laptop and Netbook 4 06-29-2007 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:46 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
Open Source Consulting | Domain Registration