LinuxQuestions.org
Visit Jeremy's Blog.
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 12-26-2004, 10:02 PM   #1
robert2513
Member
 
Registered: Oct 2004
Posts: 35

Rep: Reputation: 15
Shut Off LCD Screen


Hi.

I have been playing around with Fedora Core 3 on a Dell Inspiron 9100 laptop. Not until recently, noticed that when I close the lid, the monitor does not shut off. Is this ok for the screen and can it be "fixed" so that it can shut off? The reason I ask is that I began connecting a CRT monitor to the laptop and using it as a regular desktop computer.

Thanks for any information.
Robert2513
 
Old 12-26-2004, 10:06 PM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Did it start this after you attached the second monitor? My laptop screen stays on only when I have external video attached.
 
Old 12-27-2004, 09:12 AM   #3
robert2513
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
No, it occurs when the monitor is disconnected too.
 
Old 12-27-2004, 02:55 PM   #4
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
You have acpi running with all features and dell extra's compiled and loaded?
 
Old 12-27-2004, 09:23 PM   #5
robert2513
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
What do you mean by "dell extra's compiled and loaded"? Running with WINE?

Sorry if I am being dumb but I am still learning. :-/
 
Old 12-28-2004, 06:28 PM   #6
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
The "Dell Laptop Extras" listed as a kernel module when you go to compile a kernel?
 
Old 12-30-2004, 08:07 PM   #7
robert2513
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Sorry for taking so long to post back. I have been playing around with compiling a kernel trying to get everything working.

When I started xconfig, I didn't find anything named "Dell Laptop Extras" but did find something under power management: I found a component that mentions something about shutting off the LCD Screen when the lid is shut. However, after recompiling the kernel (with 2.6.10), it still didn't work. While surfing the web, I found this RPM: i8kutils. According to website, it is suppose to something with the SMM BIOS of a Dell laptop. However, after installing this, nothing seemed to change.

Am I in going in the right direction with xconfig? Please forgive me as I am slowly learning Linux.
Thanks in advance.
Robert2513
 
Old 12-31-2004, 03:29 AM   #8
TFMegatron
Member
 
Registered: May 2004
Distribution: Debian Sid, Windows XP Pro
Posts: 47

Rep: Reputation: 15
I for a long time have had the same problem. I have the same laptop as you also. What you need to do is make sure that linux sees the lid button. At least for debian not sure if it applies to fedora.

do this

cat /proc/acpi/button/lid/LID/state

it should change when you push the button and release it. If it does than you have what you need mostly. Next make an event for this in /etc/acpi/events called lidbtn. Inside of it should look like this.
# /etc/acpid/events/lidbtn

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.

# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.

event=button[ /]lid
action=/etc/acpi/lidbtn.sh

Then make a file in /etc/acpi called lidbtn.sh It should look like this.
#!/bin/sh

state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`

logger -i "LID state $state"

if [ "$state" = "closed" ]; then
/usr/sbin/radeontool light off
else
/usr/sbin/radeontool light on
fi

Now that all of that is done you need that radeontool. Get it here: http://fdd.com/software/radeon/radeontool-1.5.tar.gz
Untar it and type make in the directory. It makes a file radeontool. Copy that to /usr/sbin and everything should work. Tell me if I need to clarify something but I think I have it all there.

good luck
 
Old 01-01-2005, 03:15 PM   #9
robert2513
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks for the reply.

When I create the file in the events folder, that is suppose to be a .conf file, corrent?
 
Old 01-01-2005, 03:37 PM   #10
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: 62
Question to TFMegatron

I have been messing with the same problem on my ProStar Laptop. It does not shutoff when closed. This is what bugs me is when I cat /proc/acpi//button/lid/LID0/state it always says closed whether it is open or closed. But I do get a responce from acpi_listen and it says it is recieving a lid signal. Tried many things but to no avail.

In your post if it changes you are on your way. What do I need to do if it does not?

kernel 2.6.10-rc2 ( does not work with any previous I have installed lately) I like to say it did work at one time. Really need a junk 2.5" drive to experimnet with.
acpi compiled in kernel
no apm

Thanks for any help here.
Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-01-2005, 03:40 PM   #11
TFMegatron
Member
 
Registered: May 2004
Distribution: Debian Sid, Windows XP Pro
Posts: 47

Rep: Reputation: 15
Yes sorry, everything you do in this setup is going to need you to be root. And no it is not a .conf file just /etc/acpi/events/lidbtn just like that no extentions.
 
Old 01-01-2005, 03:48 PM   #12
TFMegatron
Member
 
Registered: May 2004
Distribution: Debian Sid, Windows XP Pro
Posts: 47

Rep: Reputation: 15
Brain1

What do you get when you run acpi_listen and push the lid button? This is what I get.
debian:/home/tfunicron# acpi_listen
button/lid LID 00000080 00000003
button/lid LID 00000080 00000004
button/lid LID 00000080 00000005
button/lid LID 00000080 00000006
button/lid LID 00000080 00000007
button/lid LID 00000080 00000008

This is pushing it 3 times. It counts 1 up for every action. I had seen some people where having problems with a bug in this regard. I will have to find the article again then I'll post.
 
Old 01-01-2005, 04:31 PM   #13
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: 62
Exact same responce as you. I just had a thought. I have an ext USB drive that contains a 2.5" hardrive. Theres no data I need on it so I am going to swap harddrives and see if an old verison of mandrake,redhat, or suse works. Then I will have something to go by. At least I will know if it will work or not.

Off line for about 12 hours.
Thanks for the help.
Brian1
 
Old 01-01-2005, 04:38 PM   #14
robert2513
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Hmm, its still not working. When I create the files, I do it in the text editor, correct? I did this with the lidbtn file that goes in the events folder and the lidbtn.sh file that goes in /etc/acpi. The only difference is when I saved the lidbtn.sh file, I renamed it with that extension. Was the correct? Being a Windows user moving to Linux, I figured this is what you do, but I am not 100% sure this is correct since it's not working

Thanks for helping me. I really appreciate it.
 
Old 01-01-2005, 05:20 PM   #15
TFMegatron
Member
 
Registered: May 2004
Distribution: Debian Sid, Windows XP Pro
Posts: 47

Rep: Reputation: 15
The file lidbtn.sh needs to be executeable. Go into /etc/acpi/events and compare it to mine. Then goto /etc/acpi and do the same. The problem my lie in that it is just not executable. Use ls -l to list this stuff.

tfunicron@debian:/etc/acpi/events$ ls -l
total 8
-rw-r--r-- 1 root root 304 Jul 23 2003 lidbtn
-rw-r--r-- 1 root root 423 Feb 17 2004 powerbtn
tfunicron@debian:/etc/acpi/events$ cd ..
tfunicron@debian:/etc/acpi$ ls -l
total 8
drwxr-xr-x 2 root root 96 Dec 26 23:35 events
-rwxr-xr-x 1 root root 217 Dec 30 11:36 lidbtn.sh
-rwxr-xr-x 1 root root 299 Oct 1 02:11 powerbtn.sh
tfunicron@debian:/etc/acpi$

see on the left for the permissions of lidbtn.sh it has the x's. Better yet just goto a console, su to root and type this.

cd /etc/acpi
chmod -u+r+x+w lidbtn.sh

if you have everything else set up that should make it work.
 
  


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
LCD screen and X demiurge Linux - Software 3 03-29-2005 07:26 AM
How to get laptop LCD to shut off deviant03 Linux - Hardware 0 01-25-2005 06:39 AM
LCD screen minm Linux - Newbie 3 07-24-2004 06:47 PM
blurry lcd screen fobius Linux - Hardware 3 06-18-2004 01:48 AM
Unable to configure screen resolution for 15.2" LCD screen in Fedore Core 1 schu Linux - Newbie 3 01-02-2004 05:39 PM

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

All times are GMT -5. The time now is 03:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration