LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-16-2005, 03:26 PM   #31
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30

blueCow: does this script work if acpid is running?
 
Old 03-16-2005, 04:50 PM   #32
Pig Monkey
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
That just uses DPMS to turn off the screen? Would it work if there is no X running?

I'll try it in a bit...
 
Old 03-16-2005, 07:35 PM   #33
Pig Monkey
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
Well, that script seems to work great as long as X is running. My only complaint (beyond it requiring X) is that when I open the lid, I can no longer click with the track pad -- I have to use the buttons.

Edit-
Another problem: the script only works once! I can hit the lid button as many times as I want and nothing happens. /proc/acpi/button/lid/LID/state still reads the status correctly.

Last edited by Pig Monkey; 03-16-2005 at 07:41 PM.
 
Old 03-17-2005, 09:28 AM   #34
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
@Pig Monkey: How do you start the script?
Try starting it with ./script &

instead of just
./script
 
Old 03-17-2005, 04:34 PM   #35
Pig Monkey
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
I'm not starting it at all. I moved it into /etc/rc.d
Doesn't that load it automatically?
 
Old 03-17-2005, 05:16 PM   #36
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
Quote:
I'm not starting it at all. I moved it into /etc/rc.d
Doesn't that load it automatically?
nope. make sure you added execute permission (chmod +x /etc/rc.d/rc.myscript) first. then decide where you want to call it. i suppose a fairly safe place would be rc.local, but other ppl probably have more suggestions. so anyway, open up rc.local and add a line starting your script:

/etc/rc.d/rc.myscript start

and *then* it will load automatically at boot.

Last edited by mcd; 03-17-2005 at 05:20 PM.
 
Old 03-17-2005, 09:02 PM   #37
Pig Monkey
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
Ok, I did that. At first it couldn't find xset (not in root's path, I guess), but I changed it to the full location in the script (/usr/X11R6/bin/xset) and fixed that problem. Now the script appears to run but do nothing. Whether it launches through rc.local or I launch it myself (both as user and root), nothing happens. It returns no errors, but hitting the lid button does nothing.

Before I still had the power management enabled in KDE's control center, which is why I saw it doing something. Strangely, that seemed to work better than it ever had before (it actually went to sleep and woke back up, only with the previously mentioned problems of only working once and not being able to click with the trackpad) and I'm not sure what I've done to cause that.

Everything is commented out in /etc/acpi/events/default and when testing the script I disabled everything in KDE's power control.
 
Old 03-22-2005, 12:59 AM   #38
blueCow
Member
 
Registered: Feb 2004
Location: Florida
Distribution: FreeBSD, CentOS, Debian, Mint
Posts: 111

Rep: Reputation: 17
Yes you are right. This script will only work when X is running. I am currently looking for a way to fix that.. It would have to be completely different though, seeing as the only thing I am really doing is monitoring the state and running the x command to turn off the display.

This script will work with acpid running and I believe it has to have acpid running to work.

Glad it helped out some of you.
 
  


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
sound on dell 8600 mgoycool SUSE / openSUSE 0 03-01-2005 11:44 AM
DELL Inspiron 8600 pf3016 Linux - Wireless Networking 1 01-01-2005 03:05 PM
Mandrake 10.1 on Dell Inspiron 8600 c_anindya Linux - Laptop and Netbook 1 12-17-2004 10:05 PM
which distro on Dell Inspiron 8600 c_anindya Linux - Laptop and Netbook 5 12-15-2004 02:26 AM
Dell Inspiron 8600 blueplazma Linux - Laptop and Netbook 1 12-15-2004 01:45 AM

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

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