Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-14-2009, 08:43 PM   #1
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
When switching from battery to ac or back, screen goes black

I guess it's my turn.

I have an Acer amd64 dual with an atix1600 vid card. I've had this happen on various distros, so it's not distro specific.

When I go from AC to battery or vice versa, my screen goes black, I have to ctrl_alt f1 then back to f7 to get my screen back. I can post my xorg.conf if requested, but I have had this prob before and after a kernel upgrade it went away. No clue at all. I'm curious if it's an acpi setting.

I've googled this many times, but not really seeing anything similar.
Old 04-17-2009, 07:15 PM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I don't have a clue either, but I have a (not fully baked) idea for a work-around. The basic idea is to have the computer do the switching for you. I believe there is a way to detect which vt/console is currently being displayed, but I don't remember how to do that. (I think there is a command.) I believe there is a notification in the acpi subsystem when the switch occurs. When the notification occurs, you could have a script check, and if you are currently displaying a GUI, have it use chvt to switch to a text vt and back.
Old 04-17-2009, 08:00 PM   #3
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
This will not make you happy, but I have sometimes distorted screen contents when the screensaver releases the screen. This happens on a desktop computer, and not even frequently, so it's not something to be traced down easily. Switching back and forth between a terminal screen and the X11 screen solves the problem.

My bet is that this is rather an issue with the X11 implementation. Nasty to fix something like that, as it can be a mixed responsibility between standard X11 and specific video driver code.

Last edited by Tinkster; 10-30-2010 at 03:22 PM.
Old 04-18-2009, 08:37 AM   #4
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Original Poster
Rep: Reputation: 23
This is just a guess, but I think it may have something to do with the way the kernel or possibly x is viewing the event. I've seen this over the years, and it differs from one kernel to the other. Like I said, it's not distro specific. Suse, Ubuntu, Sidux, mandriva and fedora have all done it, but after a kernel upgrade or downgrade it stops happening. I'll keep plugging away. I downgraded my current kernel and the problem is gone.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
EEK! The UGLY BLACK SCREEN is back! Turgidson Linux - Newbie 8 03-13-2009 04:24 AM
Black screen when switching to VT on nvidia 6200 Tom Nyskelo Linux - Hardware 3 09-12-2008 09:46 AM
Monitor goes black at screen saver/power save and won't come back. em21701 Slackware 11 03-09-2008 04:43 PM
Blank screen switching back to X from virtual terminal ruhler Linux - General 8 11-09-2006 06:44 AM
Screen dim when switching back to X from console shadowsnipes Linux - Laptop and Netbook 3 10-31-2005 10:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration