Thread (91 messages) 91 messages, 12 authors, 2004-05-07

Re: [PATCH] neofb patches

From: John Zielinski <hidden>
Date: 2004-04-28 00:38:58

Benjamin Herrenschmidt wrote:
Hrm... I'm not fully confortable with this. I don't see why we need
anything different but what we had today.

 
For stuff like X, MacOnLinux, etc that totally take over it doesn't make 
too much sense.  But for framebuffer programs like picture viewers, 
movie players, games, and other non desktop single purpose applications 
it makes a lot of sense.

For example lets say I have odd numbered consoles mapped on my AGP 
Radeon card and even numbered consoles mapped to my PCI Riva card.  I 
switch to console 1 and fire up a fb dvd player app.  It opens /dev/fb 
(29,255) and switches to KD_GRAPHICS.   LOTR starts playing on my big 
21" monitor hooked up to the Radeon.  As a user I didn't have to know 
that /dev/fb0 was really my 21" monitor and didn't have to give any 
command line switches to do this.  The cursor was blinking on my 21" and 
all I had to do is type dvdplay and away I went.  I would also be 
prevented from switching to odd numbered consoles now.

No problem.  ALT-F2 and now my 19" monitor has a blinking cursor.  I 
type in picview and again the jpeg viewing program opens /dev/fb and 
switches to KD_GRAPHICS and now I'm looking a vacation photos on my old 
riva card.  Again, I didn't have to know that /dev/fb1 is my 19" monitor 
and no command line arguments.  The app fires up on the monitor that had 
the focus (forground console doesn't sound right on multi monitor setups 
IMHO).

Now I can only switch between console 1 and 2.  Consoles 3 and up can't 
be switched to as both fb devices are in use.

BTW, this is just an example.  I don't know if a fb dvd player is out 
there but I do belive there's a picture viewing fb app.
Nah, software like X, MacOnLinux, etc... should open a VT and trigger a
console switch. Or at least switch to KD_GRAPHICS if they don't, but
then, having a user doing that to your console is only a matter of
setting the proper permissions. Again, I don't see what problem you
are trying to solve.
 
Normally yes.  But let's say a switch was added to X or X's fb driver to 
tell it to not open a new VT and just start on the current console.  If 
I fire it up on console 1 X starts on my 21" monitor but if I start it 
on console 2 it fires up on my 19" monitor.  The other monitor would 
still have a console.

This was just a fun thought to see if it would actually work.  But the 
dvd/picture example above is very practical.

John




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help