You are not logged in.

#1 2005-08-14 17:57:27

shadowhunter
Member
Registered: 2003-10-08
Posts: 26

Lid closing causes to blank screen forever

Hi all...

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?

Thanks...

Geert.

Offline

#2 2005-09-13 06:04:08

acetylcholine
Member
From: NY, USA
Registered: 2004-11-07
Posts: 46
Website

Re: Lid closing causes to blank screen forever

http://csd.informatik.uni-oldenburg.de/ … acpid.html

Maybe that will help, I can't get acpi to work for me though.
tongue

Offline

#3 2005-09-13 12:30:19

moskvax
Member
From: Melbourne
Registered: 2005-08-08
Posts: 17

Re: Lid closing causes to blank screen forever

Offline

#4 2005-09-14 06:41:27

acetylcholine
Member
From: NY, USA
Registered: 2004-11-07
Posts: 46
Website

Re: Lid closing causes to blank screen forever

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.

Offline

#5 2005-09-20 05:30:29

acetylcholine
Member
From: NY, USA
Registered: 2004-11-07
Posts: 46
Website

Re: Lid closing causes to blank screen forever

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.

Offline

#6 2007-08-18 00:36:36

omegainstigator
Member
Registered: 2007-08-18
Posts: 4

Re: Lid closing causes to blank screen forever

http://bbs.archlinux.org/viewtopic.php?id=33590
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)

Offline

Board footer

Powered by FluxBB