Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apci and laptop lid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
matttah
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 207

PostPosted: Sun May 07, 2006 3:28 pm    Post subject: apci and laptop lid Reply with quote

I am trying to finish up making my laptop somewhat power efficient and I'm on this the part where if I close the laptop lid I want the screen to turn off....The power button/shutdown portion of the script works, its the laptop lid produces a bad substitution line one. Anyone able to help
http://gentoo-wiki.com/HARDWARE_Gentoo_on_Dell_Inspiron_600m#Buttons_.28LID_and_Power.29
Is the script I'm using.
Daum
Back to top
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Sun May 07, 2006 7:46 pm    Post subject: Reply with quote

I assume it should be
Code:
action=${1/*\//}

_________________
-- erol
Back to top
View user's profile Send private message
beatryder
Veteran
Veteran


Joined: 08 Apr 2005
Posts: 1138

PostPosted: Sun May 07, 2006 7:50 pm    Post subject: Reply with quote

Can you post the error you are getting?
_________________
Dont make it idiot proof, make it work.
Neucode.org
<suppressed key>
Back to top
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Sun May 07, 2006 8:23 pm    Post subject: Reply with quote

Even though I don't have it, should result in something like:
Quote:
`--> sh bla.sh
bla.sh: line 1: ${/*\//}: bad substitution

;)
_________________
-- erol
Back to top
View user's profile Send private message
matttah
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 207

PostPosted: Sun May 07, 2006 8:32 pm    Post subject: Reply with quote

ekutay...you rock.
Daum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum