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 01-20-2007, 06:32 PM   #1
frzburn
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD
Posts: 38

Rep: Reputation: 15
[Solved] Turn Display Off in Command-Line


Hi, I use Gentoo 2006.1 on my Dell Inspiron 6400. I got the lid switch to work correctly in X, so my display turns off when I close the lid.

My problem is that when I only use the console (X server not started), the display stays on when I close the lid! So I need a way to get this done...

Thanks!

Last edited by frzburn; 01-22-2007 at 08:12 PM.
 
Old 01-20-2007, 11:02 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
This might help. Scroll down to the section marked "screen off".

http://www.eng.uwaterloo.ca/~dtay/linuxLaptop.shtml
 
Old 01-21-2007, 10:51 AM   #3
frzburn
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD
Posts: 38

Original Poster
Rep: Reputation: 15
Yeah well, that's basically what I did for it to work in X, but it doesn't work when X isn't running...
 
Old 01-21-2007, 01:22 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check out this post starting at #23. http://www.linuxquestions.org/questi...5&pagenumber=2
I would read the entire post to understand my notebook and how the lid button functions. I never got around to writing a single script that does the work of the two I use. Certainly they can be combined and do the simply flip flop sequence it is doing.

Brian
 
Old 01-22-2007, 08:11 PM   #5
frzburn
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD
Posts: 38

Original Poster
Rep: Reputation: 15
Solved! I had the script right (from http://gentoo-wiki.com/HARDWARE_Dell_Inspiron_E1405), but heh, I didn't have vbetool compiled... It was masked!

So with vbetool and this script, everything is fine

Here are the files:

/etc/acpi/lid.sh:
Code:
#!/bin/sh
if grep -q open /proc/acpi/button/lid/*/state
  then vbetool dpms on
  else vbetool dpms off
fi
/etc/acpi/events/lid:
Code:
event=button[ /]lid.*
action=/etc/acpi/lid.sh
 
Old 01-24-2007, 03:14 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Glad to see you got it going.

Brian
 
  


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
linux command : read/display the line n xeebeeeeeee Programming 3 03-26-2006 05:08 AM
Shell command line won't display Jbernoski Slackware 2 03-15-2006 06:31 PM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 08:05 AM
Modifing Gnome display from command line rooch84 Linux - Software 2 08-10-2004 09:10 AM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM

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

All times are GMT -5. The time now is 11:53 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