Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* asynchronous resolution change
@ 2008-11-19  1:04 Jatin Kumar
  2008-11-19  8:35 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Jatin Kumar @ 2008-11-19  1:04 UTC (permalink / raw)
  To: linux-fbdev-devel


[-- Attachment #1.1: Type: text/plain, Size: 755 bytes --]

Hi,

I am new to linux fb model and had some queries regarding resolution change
mechanisms.

Consider a situation where the frambuffer kernel module (vfb/xenfb etc)
wants to change the resolution.

1. Is there a mechanism to this, considering the applications/windowing
system/console above the framebuffer hasnt initiated the size change?

2. Is there a way to do an upcall into the application/windowing
system/console modules to inform them about the size change asynchronously?

In this particular case ; the display hardware(instead of the user) has
initiated the resolution change.Is it possible in the current fb framework
to support it?

Excuse me for the lack of knowledge in this area.
Any other suggstions/explanations are welcome.

Thanks
jk

[-- Attachment #1.2: Type: text/html, Size: 809 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: asynchronous resolution change
  2008-11-19  1:04 asynchronous resolution change Jatin Kumar
@ 2008-11-19  8:35 ` Geert Uytterhoeven
  2008-11-25  1:52   ` Jatin Kumar
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2008-11-19  8:35 UTC (permalink / raw)
  To: Jatin Kumar; +Cc: linux-fbdev-devel

On Tue, 18 Nov 2008, Jatin Kumar wrote:
> I am new to linux fb model and had some queries regarding resolution change
> mechanisms.
> 
> Consider a situation where the frambuffer kernel module (vfb/xenfb etc)
> wants to change the resolution.
> 
> 1. Is there a mechanism to this, considering the applications/windowing
> system/console above the framebuffer hasnt initiated the size change?
> 
> 2. Is there a way to do an upcall into the application/windowing
> system/console modules to inform them about the size change asynchronously?
> 
> In this particular case ; the display hardware(instead of the user) has
> initiated the resolution change.Is it possible in the current fb framework
> to support it?

Yes there is! If the resolution is changed, and the number of columns and
lines of the console changes, the tty subsystem will send the SIGWINCH signal
to the application, cfr. tty_do_resize() in drivers/char/tty_io.c.

Note that not all applications handle it. E.g. X doesn't, AFAIK.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: asynchronous resolution change
  2008-11-19  8:35 ` Geert Uytterhoeven
@ 2008-11-25  1:52   ` Jatin Kumar
  2008-11-25  8:36     ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Jatin Kumar @ 2008-11-25  1:52 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-fbdev-devel


[-- Attachment #1.1: Type: text/plain, Size: 1915 bytes --]

On Wed, Nov 19, 2008 at 3:35 AM, Geert Uytterhoeven <geert@linux-m68k.org>wrote:

> On Tue, 18 Nov 2008, Jatin Kumar wrote:
> > I am new to linux fb model and had some queries regarding resolution
> change
> > mechanisms.
> >
> > Consider a situation where the frambuffer kernel module (vfb/xenfb etc)
> > wants to change the resolution.
> >
> > 1. Is there a mechanism to this, considering the applications/windowing
> > system/console above the framebuffer hasnt initiated the size change?
> >
> > 2. Is there a way to do an upcall into the application/windowing
> > system/console modules to inform them about the size change
> asynchronously?
> >
> > In this particular case ; the display hardware(instead of the user) has
> > initiated the resolution change.Is it possible in the current fb
> framework
> > to support it?
>
> Yes there is! If the resolution is changed, and the number of columns and
> lines of the console changes, the tty subsystem will send the SIGWINCH
> signal
> to the application, cfr. tty_do_resize() in drivers/char/tty_io.c.
>
> Note that not all applications handle it. E.g. X doesn't, AFAIK.
>
> Gr{oetje,eeting}s,
>
>                                                Geert



Hi Geert,

Thanks much for the info.

Is the tty_io_resize( ) relatively new? .
I am looking at 2.6.18.8 src code (used for xen) and could not find the
function.

Also are there any plans for exposing a similar callback api in the linux fb
model to make the applications stay updated about the underlying
resolution/hardware mode changes?

Thanks so much,
Jatin


>
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
> geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker.
> But
> when I'm talking to journalists I just say "programmer" or something like
> that.
>                                                            -- Linus
> Torvalds
>

[-- Attachment #1.2: Type: text/html, Size: 2913 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: asynchronous resolution change
  2008-11-25  1:52   ` Jatin Kumar
@ 2008-11-25  8:36     ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2008-11-25  8:36 UTC (permalink / raw)
  To: Jatin Kumar; +Cc: linux-fbdev-devel

On Mon, 24 Nov 2008, Jatin Kumar wrote:
> On Wed, Nov 19, 2008 at 3:35 AM, Geert Uytterhoeven <geert@linux-m68k.org>wrote:
> > On Tue, 18 Nov 2008, Jatin Kumar wrote:
> > > I am new to linux fb model and had some queries regarding resolution
> > change
> > > mechanisms.
> > >
> > > Consider a situation where the frambuffer kernel module (vfb/xenfb etc)
> > > wants to change the resolution.
> > >
> > > 1. Is there a mechanism to this, considering the applications/windowing
> > > system/console above the framebuffer hasnt initiated the size change?
> > >
> > > 2. Is there a way to do an upcall into the application/windowing
> > > system/console modules to inform them about the size change
> > asynchronously?
> > >
> > > In this particular case ; the display hardware(instead of the user) has
> > > initiated the resolution change.Is it possible in the current fb
> > framework
> > > to support it?
> >
> > Yes there is! If the resolution is changed, and the number of columns and
> > lines of the console changes, the tty subsystem will send the SIGWINCH
> > signal
> > to the application, cfr. tty_do_resize() in drivers/char/tty_io.c.
> >
> > Note that not all applications handle it. E.g. X doesn't, AFAIK.
> 
> Thanks much for the info.
> 
> Is the tty_io_resize( ) relatively new? .

tty_do_resize

> I am looking at 2.6.18.8 src code (used for xen) and could not find the
> function.

No, it's older than the frame buffer device framework. If you can't find it,
search for SIGWINCH.

> Also are there any plans for exposing a similar callback api in the linux fb
> model to make the applications stay updated about the underlying
> resolution/hardware mode changes?

What exactly are you missing that SIGWINCH doesn't provide?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-25  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19  1:04 asynchronous resolution change Jatin Kumar
2008-11-19  8:35 ` Geert Uytterhoeven
2008-11-25  1:52   ` Jatin Kumar
2008-11-25  8:36     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox