How to determine the console attached to a given fbdev

Sean D'Epagnier <[email protected]> Tue, 1 Aug 2006 03:57:52 -0600
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
I have implemented vt switching in my program, I can set up the program
to recieve signals if the vt it is attached to is aquired or
released using linux-kbd ioctls.

This would be enough if I did not have two monitors and two framebuffer
devices!  I want my program to be able to update if it is still the most
recently active vt on it's fbdev.

Right now I continuously poll ioctl on CON2FB while I do not have the
active vt, and supply the active vt number which I get from another ioctl.
If the resulting framebuffer matches mine, I know I need to stop drawing.

This is not a good solution, sometimes I need to refresh the display when
switching because of this.

Would anything need to be implemented in kernel space to allow for this? 


Thanks

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV