forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reset text console?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
Mihawk



Joined: 03 Apr 2007
Posts: 29

PostPosted: Sun Nov 11, 2007 10:06 am    Post subject: Reset text console? Reply with quote

I have the problem that after a program crash my program returns to the console but I can't see anything. That means my program switched to graphics mode, crashed and the screen looks like it's frozen but I know that I'm back on the console as I can type commands and stuff. So my question is: is there some command or key combination which lets me to somehow reset the console, so I don't have to reset my ps3 after each crash, cause that happens quite often sometimes when testing and debuging ;)
_________________
Ask and it will be given to you; seek and you will find; knock and the door will be opened to you.
Back to top
View user's profile Send private message
jonathan



Joined: 21 Sep 2007
Posts: 23
Location: Tasmania, Australia

PostPosted: Sun Nov 11, 2007 12:46 pm    Post subject: Reply with quote

Have you tried either Ctrl-L or (if you can still type) running 'reset'?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Nov 11, 2007 2:00 pm    Post subject: Reply with quote

Depends on why you can't see anything. If for example it's because you did a PS3FB_IOCTL_ON and the kernel is no longer flipping the screen buffer, you should be able to write a program that just does PS3FB_IOCTL_OFF to fix it.
Back to top
View user's profile Send private message
Mihawk



Joined: 03 Apr 2007
Posts: 29

PostPosted: Sun Nov 11, 2007 9:37 pm    Post subject: Reply with quote

jimparis, that makes sense... and works. Thanks!

jonathan, Ctrl-L and 'reset' didn't work. Thanks anyway ;)
_________________
Ask and it will be given to you; seek and you will find; knock and the door will be opened to you.
Back to top
View user's profile Send private message
ralferoo



Joined: 03 Mar 2007
Posts: 122

PostPosted: Mon Nov 12, 2007 1:07 am    Post subject: Reply with quote

jimparis wrote:
Depends on why you can't see anything. If for example it's because you did a PS3FB_IOCTL_ON and the kernel is no longer flipping the screen buffer, you should be able to write a program that just does PS3FB_IOCTL_OFF to fix it.

You might also like to use signal() to catch various error conditions (such as ^C, SEGV, etc) and reset the screen in your signal handler before exiting. This is more complicated but ensures your program can't quit and leave things in a bad state.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group