LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-18-2006, 04:48 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Screen Blank While restarting/shutdown


Hi Guys,

First of all my specs:
Debian etch
Kernel 2.6.16
GONME/Fluxbox with GDM/XDM respectively
AMD GX2 Processor Board


Now my hardware vendor had provided Xorg patch for Xorg 6.8.1 in order to get the hardware specific driver for the video. I patch the Xorg 6.8.1 sources with the patch and also compiled it successfully. Now the Xorg Graphical is working fine and the "amd" driver is also getting loaded, but the problem is whenever I try to restart/shutdown from GNOME or Fluxbox the screen goes blank. Although the system is restarting/shutdown at the back but the user can't see it. For example as soon as I hit the restart button in GNOME the screen goes blank(i.e. I cannot see those text message during restart/shutdown) and the next thing I see is my BIOS POST screen and then the GRUB loader.

Also this does not happen when I am in text mode(i.e. only base install).

Has anyone ever seen such issues? Can someone suggest me what is going wrong?

THanks
 
Old 07-18-2006, 05:16 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
I guess it is because the driver doesn't proceed switch back to text mode. Test: try switching to text console and back (ctrl-alt-f1 alt-f7, I guess). If screen goes blank - it's that. The ways to fix:
1) start begging (or requiring..) for a driver update. Don't know the success probability.
2) Analyze dri.freedesktop.org. I think that being not supported is more probable, but there is a chance.
3) Give up hardware acceleration and use vesa driver. Maybe except some rare cases.
 
Old 07-18-2006, 05:28 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by raskin
I guess it is because the driver doesn't proceed switch back to text mode. Test: try switching to text console and back (ctrl-alt-f1 alt-f7, I guess). If screen goes blank - it's that. The ways to fix:
1) start begging (or requiring..) for a driver update. Don't know the success probability.
2) Analyze dri.freedesktop.org. I think that being not supported is more probable, but there is a chance.
3) Give up hardware acceleration and use vesa driver. Maybe except some rare cases.
Thank you for your reponse. It was quite useful to analyze the problem.
When I hit ctrl-alt-f1/f2/f3 from GNOME/Fluxbox the screen goes out of resolution(signal) so that only way to get back the screen is to hit the reset button. Is this is what you were thinking too?

Is there any out of this?

Last edited by kushalkoolwal; 07-18-2006 at 05:29 PM.
 
Old 07-18-2006, 05:42 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Well, you had an option of ctrl-alt-del - it was not a hang, it was just video failure. And you would please your daemons and filesystems by not powering off at once without telling them to stop.

It is just the behavior I expected. That means broken driver with big probability.
 
Old 07-18-2006, 06:00 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by raskin
Well, you had an option of ctrl-alt-del - it was not a hang, it was just video failure. And you would please your daemons and filesystems by not powering off at once without telling them to stop.

It is just the behavior I expected. That means broken driver with big probability.
Ah yes, you were right. I totally forgort about that..Thanks for reminding me of the basics

Coming to the video problem, I don't think my hardware vendor is going to provide the patches for the Xorg 7.0 in the near future. So that's why I was wondering if I could solve anything at user level.

THAnks for your help. You are awesome!!!
 
Old 07-18-2006, 07:17 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,682

Rep: Reputation: 124Reputation: 124
I'm afraid that the only real solution is patching the driver yourself. That means getting the driver as a text file, understanding what it does and where you'd need to look for, adjusting the file to fix the bug, build it as an executable and patch the kernel with your updated driver... Good luck

Last edited by Dutch Master; 07-18-2006 at 07:19 PM.
 
Old 07-18-2006, 08:21 PM   #7
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by Dutch Master
I'm afraid that the only real solution is patching the driver yourself. That means getting the driver as a text file, understanding what it does and where you'd need to look for, adjusting the file to fix the bug, build it as an executable and patch the kernel with your updated driver... Good luck
Thank you Dutch Master and raskin for the help. Before I start bugging my vendor for the updated driver, do you think I should try this driver on some other distro like Fedora/Mandrake.....Is there any possibility that the other distro might show some different behaviour -- They might show the text screen during restarting and shutdown.

I know this may be a stupid think to ask but I am not very knowledgeable when it comes to X windows system.

Thank you once again.
 
Old 07-19-2006, 03:14 PM   #8
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by kushalkoolwal
Thank you Dutch Master and raskin for the help. Before I start bugging my vendor for the updated driver, do you think I should try this driver on some other distro like Fedora/Mandrake.....Is there any possibility that the other distro might show some different behaviour -- They might show the text screen during restarting and shutdown.

I know this may be a stupid think to ask but I am not very knowledgeable when it comes to X windows system.

Thank you once again.
Anyone???
 
Old 07-19-2006, 03:37 PM   #9
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
I guess going round the distros is not the best thing to do. Although they say MEPIS is good for something like that, but... Really, I don't see anything like AMD in Mesa drivers list. Also you can try hitting ctrl-alt-"gray +" in X to check if resolution switch goes fine. If yes, maybe (though not sure) you will succeed to run some framebuffer console, and switching to it will not ruin everything. But really, do you think you always need 3d acceleration and screen text on shutting down?
 
Old 07-19-2006, 04:26 PM   #10
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by raskin
I guess going round the distros is not the best thing to do. Although they say MEPIS is good for something like that, but... Really, I don't see anything like AMD in Mesa drivers list. Also you can try hitting ctrl-alt-"gray +" in X to check if resolution switch goes fine. If yes, maybe (though not sure) you will succeed to run some framebuffer console, and switching to it will not ruin everything. But really, do you think you always need 3d acceleration and screen text on shutting down?
If I understand your question correctly, I do need the AMD drivers while I am in X. But on shutting down I really don;t care if the drivers are AMD or VESA. All I want is that the user should be able to see the text screen to say the least. Is there any way by which I can unload the AMD driver and load the vesa driver while I am restarting or shutdown-ing my computer.???

Any help will be highly appreciated.

THank you once again.
 
Old 07-20-2006, 12:45 PM   #11
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
You don't understand the problem completely. When you run X, driver switches hardware to graphics mode and initializes it somehow. When you switch back, it fails to uninitialize it correctly and go to text mode. Maybe you can use some software changing textmode settings - just to put video card in text mode. Or you can try readjusting framebuffer console - with similar reason.
 
Old 07-20-2006, 01:23 PM   #12
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by raskin
You don't understand the problem completely. When you run X, driver switches hardware to graphics mode and initializes it somehow. When you switch back, it fails to uninitialize it correctly and go to text mode. Maybe you can use some software changing textmode settings - just to put video card in text mode. Or you can try readjusting framebuffer console - with similar reason.
Thank you once again for replying. I really appreciate your efforts and help. Just to make sure that I understood your solid explanation, the problem that I am having is that my Video Card Driver is not able to switch from Graphics mode to text mode when I try to shutdown/restart. And that;s why you have suggested me to find a software which will make(or force) my video card to go into text mode? Am I right? So the question is if my driver is broken internally then how can a software will cover up for that functionality? Afterall even If I find a software, it will essentially use the Video Card Driver capability to go into text mode.

I know I am asking a lot of question, but as said in my previous posts, I get very confused when it comes to X.

Thank you very very much once again.

P.S. does anyone on this forum knows about such kind of software?
 
Old 07-20-2006, 03:16 PM   #13
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Well, I'm not sure it will work. But as I understand:
-> you've got working hardware
-> your X driver is broken
But, there are lots of drivers which can give at least some effect with given hardware - it's all about sending signals to hardware...
By the way, did you try to switch to text console, login (blindly..) and run X with another config on another console but with vesa driver?
 
Old 07-21-2006, 05:17 AM   #14
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by raskin
Well, I'm not sure it will work. But as I understand:
-> you've got working hardware
-> your X driver is broken
But, there are lots of drivers which can give at least some effect with given hardware - it's all about sending signals to hardware...
By the way, did you try to switch to text console, login (blindly..) and run X with another config on another console but with vesa driver?
Ok, I did some experimenting. here is what I did.

I installed the base-install (debian sarge), then I installed the compiled Xorg patched version and then finally xdm. Now the default windows manager was twm. So I rebooted my computer and I got the xdm login screen. I was able to log in successfully and now when I try to restart/shutdown my video card switches to text mode but the screen is static i.e. I cannot see the scrolling text. What I see in the text mode is the screen which was there when my video card had switched to Graphic modes i.e. the text mode shows me the login prompt and above it are the messages from the kernel which are displayed during the normal boot. Although the screen is static the shutdown/restart procedure is happening at the back.

So right now the good thing is atleast my video card is switching to text mode but the text mode is totally static....any ideas?

Note: I haven;t tried it with fluxbox or GNOME with this fresh re-install.

guys, any help will be highly appreciated.
 
Old 07-21-2006, 05:54 AM   #15
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Do you really get 3D acceleration in Debian? What X11 version is it?
 
  


Reply


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
FC5 shutdown sequence blank screen General Fedora 4 04-23-2006 12:44 PM
Blank Screen During Shutdown zachsandberg Linux - Newbie 2 01-03-2006 06:16 AM
Screen blank for a long time during FC3 shutdown Gethyn Fedora 4 04-17-2005 07:12 AM
screen not restarting after reboot?? lucastic Linux - Hardware 4 07-19-2004 10:28 PM
shutdown and restarting in terminal chrismiceli Linux - General 1 10-26-2002 08:15 PM


All times are GMT -5. The time now is 08:45 PM.

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