Whenever i close the lid on my laptop it blanks, and remains that until I switch to a console (ctrl-alt-f1) and then switch back to X. I was hoping to fix this with a script.
Does anyone has any clue on how to switch terminals in a script? or how to add it to the to be run scripts from acpid?
Maybe that will help, I can't get acpi to work for me though.
I have a similar issue. My button and fan and thermal_zone directories are empty within /proc/acpi so I'm looking for a reason as to why this is so. without those files, you can not know the status of your lid. that is, it might only send a signal when it closes (kind of like mine does).
ill figure out what my computer can actually do and get back to you. until then, make a script that has a variable file or something, which records the state of the lid, and make it so that when you press the power button once, you turn the screen back on.
I think I've solved this. Kind of.
The video-post tool does this (from the README):
This is a user level utility to do video repost.
It is very much similar to the video repost done by X windows. But, can be
used with text consoles (VGA, fb, etc).
It works for me on various systems having ATI-radeon graphics cards. May work
on other systems as well.
But I don't think this package exists in the repo or AUR. I might make a package soon. When I get some time. However, I don't have an ATI-radeon on my lap top.
So if this doesnt work, that is if
echo -n "mem" > /sys/power/state # suspends /root/emu/video_post # wakes up # maybe even modprobe video_driver before repost... maybe. I dont know if its shut off when you suspend to memory
doesn't work, I need a way to restart my video card. Any ideas?
PS I got the video-post source off http://www.srcf.ucam.org/~mjg59/laptops/ there.
This thread does the job efficiently. It's not even a workaround. It attacks the problem head-on.
Included is a replacement script for /etc/acpi/actions/lm_lid.sh
Last edited by omegainstigator (2007-08-18 00:37:22)