Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Power down the system with the power button, it's possible ?< Next Oldest | Next Newest >
salvajef Offline





Group: Members
Posts: 2
Joined: Nov. 2006
Posted: Nov. 08 2006,09:52 QUOTE

I want to use my mini linux system without the keyboard and the mouse, so i need to power down it simply pressing the power button. I want also that the screen don't enter in standby mode after a few minutes. It's possible ?
Back to top
Profile PM 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: Nov. 08 2006,12:46 QUOTE

I think you can use the xset command to avoid screen blanking, you could try this (not quite sure if it's correct): xset s 0
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 08 2006,15:32 QUOTE

I guess that if your PC is acpi compatible, you could load the acpi modules, load acpid and then use the acpid powerbutton event to run a script.

I don't know where it is, but you could probably call the same script that is called by right clicking on the desktop and chosing "shutdown"
Back to top
Profile PM 
salvajef Offline





Group: Members
Posts: 2
Joined: Nov. 2006
Posted: Nov. 14 2006,19:36 QUOTE

My pc is acpi compatible, but i don't know how can i set these information.
At the moment i put in .xintrc file the xset 0 command ... but i think there's a more useful way to do that.

How can i disable the screensaver definitively and set the powerdown button the shootdown script ?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 15 2006,05:35 QUOTE

I guess the first step would be to verify that your system will work with acpi.

Note that you may need to add "apm=off" and/or "acpi=force" to your syslinux.cfg file to encourage DSL to work with acpi.

Once booted, try to "modprobe" the acpi modules "thermal", "processor", "fan", "button", "battery" & "ac".

If the above works, then try "apt-get install acpid"

If all of the above works, you should be in good shape to have acpid detect a "button" event and run the powerdown script of your choice.

The /share/doc/acpid readme files or the /share/man/acpid files installed with acpid may give some explanation on how to set-up acpi events/scripts. If not, you could try a Google search on acpid and the name of your laptop - in my case this gave several links to explanations on how various people set up their system to work with acpi.
Back to top
Profile PM 
5 replies since Nov. 08 2006,09:52 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Power down the system with the power button

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code