You are not logged in.
Pages: 1
Hello all,
I have been running Arch on this laptop for quite some time now. Recently though I had to do a reinstall of it because I messed it up while trying to do something. Anyway, I got everything working except for the lid problem, i have the age old when I close it, it freezes. I have installed ACPI and it recognizes the Lid event, however it is still frozen I checked the /var/log/messages.log and this is what showed up:
Jun 19 11:33:12 UsbArch logger: ACPI group/action undefined: video / VID1
Jun 19 11:33:12 UsbArch logger: ACPI group/action undefined: video / VIDAll I can tell is that it doesnt recognize the laptop screen or something. On the last install acpi worked like a charm, I dont know why it is not working now. Any help would be much appreciated. Thank you, Levi.
Offline
I bet it does not freeze.
Test it, follow these steps exactly as they are written:
Start xwindows
open a terminal
close the lid
open the lid
wait for a second
then type this
xset dpms force onthen press enter
Your monitor should come back on.
If this works you will need to edit your /etc/acpi/actions/lm_lid.sh file
also make sure that you install laptop_mode and acpid
here is the content of my lm_lid.sh
#!/bin/sh
test -f /usr/sbin/laptop_mode || exit 0
#lid button pressed/released event handler
#From: http://gentoo-wiki.com/HOWTO_Automatically_turn_off_your_monitor
if grep -q open /proc/acpi/button/lid/LID/state
then
XAUTHORITY="$( ps -C xinit f|sed 's/.*-auth \(.*\)serverauth.*/\1Xauthority/p' )" /usr/bin/xset -display :0.0 dpms force on
/usr/sbin/laptop_mode auto
/usr/bin logger dpms force on
else
XAUTHORITY="$( ps -C xinit f| sed -n 's/.*-auth \(.*\)serverauth.*/\1Xauthority/p' )" /usr/bin/xset -display :0.0 dpms force off
/usr/bin logger dpms force off
fiLast edited by timetrap (2008-06-20 20:20:51)
Offline
Thank you very much for the response. Right away what you posted didnt work, but I figured out why. First I had to install laptop-mode-tools and then enable laptop-mode in the daemons line in rc.conf. Then it still didn't work then I got to thinking about /etc/acpi/actions/lm_lid.sh and the first line in it it was causing the script to not execute:
test -f /usr/bin/laptop_mode || exit 0That file did not exist so it was exiting. I changed it to:
test -f /usr/sbin/laptop_mode || exit 0and it works like a charm. Thank you for your response.
Offline
Sure thing;
For way more cool hacks check this link out: http://gentoo-wiki.com/HOWTO_Automatica … ur_monitor
Those gentoo kids are crazy.
Edit: I fixed the lm_lid.sh example above. Must have fat fingered it.
Last edited by timetrap (2008-06-20 20:22:07)
Offline
Pages: 1