LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2008, 03:04 AM   #1
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Rep: Reputation: 30
Dell laptop lid issue on Slack 12


Hi all,

I'm wondering if someone can help me. I'm trying to get my Dell D430 to "do nothing" when I close the notebook.

Currently when I close the lid the screen goes black and doesn't come back. The machine is still on, but I have to manually reboot when I open the lid again.

There is nothing listed in /etc/acpi/events/default. The currently state is listed in /proc/acpi/button/lid/LID/state and is correct.

Does anyone know the answer to this?

Many thanks,


Mark.
 
Old 04-18-2008, 08:01 AM   #2
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Rep: Reputation: 15
I have a Dell Inspiron 6400, and although I never got suspend-to-ram to work, I use vbetool to turn the screen back on when I open the lid. Hopefully this will work for you.

Install vbetool from Slackbuilds.org here.

In /etc/acpi/events/lid, put
Code:
event=button[ /]lid.*
action=/etc/acpi/actions/lid.sh
In /etc/acpi/actions/lid.sh, put
Code:
#!/bin/sh
# script to start screen again when lid opened

LIDSTATE=/proc/acpi/button/lid/LID/state
if grep -q open $LIDSTATE; then
  # start screen again
    vbetool dpms on
fi
Don't forget to make the lid.sh script executable by doing a chmod +x.
 
Old 04-18-2008, 08:34 AM   #3
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hiya,

Thanks for the reply.

While it does sound like a solution, it won't work for me because of my intel driver / X issues.

Ideally I'd like to find out what makes the screen go off in the first place, and disable it. I tried unloading the button module, but that didn't work :-(


M.
 
Old 04-18-2008, 10:11 PM   #4
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Rep: Reputation: 15
Quote:
Originally Posted by brooky9999 View Post
While it does sound like a solution, it won't work for me because of my intel driver / X issues.
What sort of issues? are you using X at all?

Quote:
Originally Posted by brooky9999 View Post
Ideally I'd like to find out what makes the screen go off in the first place, and disable it. I tried unloading the button module, but that didn't work :-(
Good question. However, it might be automatically built into the screen or bios or something.

If you are using X, you might also try locking the screen with xlock, xscreensaver or the KDE screensaver before closing the lid, this also worked for me but it's not automatic.
 
Old 04-19-2008, 04:43 AM   #5
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi samwise17,

Quote:
What sort of issues? are you using X at all?
My issue is that whenever I logout / restart / shutdown then X crashes. The only course of action I can take after that is to power off the machine.

It's something to do with a

Code:
pipe error should be 2, resetting to 1
error. I've done some research but couldn't find the answer. I think it's an Intel driver issue (I have an Intel 945 card). I'm waiting for 12.1 to come out.

The screen goes blank even when X isn't running. But in /var/log/messages I get:

Code:
logger: ACPI action lid is not defined
So there must be a way to define an action as "do nothing".


M.
 
Old 04-19-2008, 08:32 AM   #6
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
the fact that you get an "ACPI action lid is not defined" message implies that the software on you system does nothing when the lid gets closed. I guess there's nothing you can do about the screen turning blank.

I used to have a similar issue on a latitude 120L: the screen got powered off when the lid closed, and I needed to reboot to get it back on. That issue got solved by putting
Code:
Option "DPMS" "true"
in the monitor section of xorg.conf

Now, it comes back on when a key is pressed

Last edited by janhe; 04-19-2008 at 08:34 AM. Reason: added last line
 
Old 04-21-2008, 08:41 AM   #7
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi Janhe,

This didn't work for me :-(

I wasn't convinced it would - the screen does not come back on automatically when I'm in pure console mode. So the X DPMS option is unlikely to work as this is an issue which occurs outside of X.

Back to Google for me :-(


M.
 
  


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
Dell 6400 - laptop lid problems reverse Debian 7 08-31-2007 03:33 PM
Installing Slack on Dell laptop dotancohen Slackware - Installation 8 01-01-2007 02:56 AM
slack 10.1 acpi lid blanking issue... o2_sparx Linux - Laptop and Netbook 9 07-01-2005 12:57 AM
Dell laptop and Slack Alex_jacobson Slackware 5 12-21-2003 01:47 PM
Slack on a Dell Laptop wickdgin Slackware 2 07-06-2002 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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