You are not logged in.
Pages: 1
!
Last edited by Lilith (2012-04-22 18:44:31)
#551378
Sky is the limit.
Offline
gui based build of arch
Do you mean that you installed arch and then installed X, or did you install something like chakra or archbang? If you installed something other than straight arch than we cannot really help you here.
For the power button, just look where it has a case for power in the handler.sh and replace whatever is there with
shutdown -h now
As for the suspend on lid close, there is a case that is closed lid, there write
pm-suspend
All of this is on the wiki.
Offline
So, thanks for the reply.
I had installed a distro based on arch that is called: bridge linux (with gnome gui). Now i'm using this. I had uninstalled laptop-mode-tools and each power manager, i believe.
So, before add this: shutdown -h now to my handler.sh in the line of PBTN when i try to making work: acpi_listen
My pc going to sleep and never wake up.
Anyway i'm able to take this "states" from acpi_listen (took when my pc is plugged to wall) and are:
button/power $1
PBTN $2
00000080 $3
00000000 $4
battery $1
PNP0C0A:00 $2
00000081 $3
00000000 $4
ac_adapter $1
ACPI0003:00 $2
00000081 $3
00000001 $4
So i edited my handler.sh in this manner (in the end i had decided to have sleep only where i close the lid and the shutdown by pressing the button:
set $*
case "$1" in
button/power) shutdown -h now;;
*) logger "ACPI action undefined: $1" ;;
esac
;;
case "$2" in
PBTN) shutdown -h now;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
case "$1" in
ac_adapter) shutdown -h now;;
*) logger "ACPI action undefined: $1" ;;
esac
;;
case "$2" in
ACPI0003:00) shutdown -h now;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
case "$1" in
battery) shutdown -h now;
*) logger "ACPI action undefined: $1" ;;
esac
;;
case "$2" in
PNP0C0A:00) shutdown -h now;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/lid)
case "$3" in
close)
#echo "LID closed!">/dev/tty5
logger "ACPI action undefined: $1"
;;
open)
#echo "LID opened!">/dev/tty5
logger "ACPI action undefined: $2"
;;
esac
;;
*)
;;
esac
;;
And it work..... but not very well. (My tests are made with pc plugged to the wall):
On the fresh boot, if i press shutdown, everything is ok. Shutdown well. If i start again after previously had a fresh boot, when is the time to booting i see a cursor _ blinking.
On the fresh boot, if i close the lid the pc going to sleep. When i open the lid and press start button to wake up, the pc wake up without no problems. If now i want to shutdown my pc, i can't because when i press shutdown, my pc going first to sleep and when i power/shutdown button, the pc wake up and shutdown.
I don't understand where i wrong. Also because i had studied C and this script seems wrote on C++ and i recognize some rules, like ;; | etc but i don't know how can i write it from 0, else i'm not here to create a problem for you.
P.S sorry for my bad english.
Thanks, Gabriele.
#551378
Sky is the limit.
Offline
So, thanks for the reply.
I had installed a distro based on arch that is called: bridge linux (with gnome gui). Now i'm using this.
Hi. If you are using Bridge Linux then you should really post on their forums.
http://millertechnologies.net/forum/
Good luck.
meh
Offline
Thanks.
#551378
Sky is the limit.
Offline
Pages: 1