N9/N950 TV out control application

N9/N950 TV out control application

Ville Syrjala
Karma: 11
2012-01-09 08:39 UTC
I finally managed to make some progress on "porting"
maemo-tvout-control to harmattan.

Code is here:
https://gitorious.org/maemo-tvout-control/n9-tvout-control

What you'll find there is a a very simple QWidget based GUI,
and backend code utilizing XRandR.

The backend supports a few extra knobs, when compared with
fremantle. However, I was too lazy to write the extra GUI
code. So the current GUI offers the same controls that
maemo-tvout-control has.

The ultimate plan is to write a nice QML GUI for this stuff,
although I don't know when I'll have time to learn QML.

Another idea I have is to move the backend code to a separate
library. The same should be done for the fremantle Xv based
backend code. This would provide a unified TV out control API
for both platforms.

--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Pali Rohár
Karma: 1382
2012-01-09 08:48 UTC
On Monday 09 January 2012 10:39:43 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= wrote:
> I finally managed to make some progress on "porting"
> maemo-tvout-control to harmattan.
>
> Code is here:
> https://gitorious.org/maemo-tvout-control/n9-tvout-control
>
> What you'll find there is a a very simple QWidget based GUI,
> and backend code utilizing XRandR.
>
> The backend supports a few extra knobs, when compared with
> fremantle. However, I was too lazy to write the extra GUI
> code. So the current GUI offers the same controls that
> maemo-tvout-control has.
>
> The ultimate plan is to write a nice QML GUI for this stuff,
> although I don't know when I'll have time to learn QML.
>
> Another idea I have is to move the backend code to a separate
> library. The same should be done for the fremantle Xv based
> backend code. This would provide a unified TV out control API
> for both platforms.

Hello,

last year I merged maemo-tvout-control with control panel settings plugin for
Nokia N900. Code is now in Community SSU on gitorious

https://gitorious.org/community-ssu/maemo-tvout-control

and is based on your orignal code
https://gitorious.org/maemo-tvout-control/maemo-tvout-control

I created new tvout status menu plugin, it is in that CSSU repository too.

It is possible to merge my changes on CSSU to your project? I think it is not
good idea to have 2 separated projects which has same code.

(I sent you mail before I forked your code, but you do not responce...)

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk8KqdsACgkQi/DJPQPkQ1IRIACgqixf5uvxOy5qkFqACfsQuUlS
OxIAoLNsSNAB8o8qwAEHqJqw3YRkMnIK
=x8va
-----END PGP SIGNATURE-----

  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Ville Syrjala
Karma: 11
2012-01-09 09:20 UTC
On Mon, Jan 09, 2012 at 09:48:27AM +0100, Pali Rohár wrote:
> On Monday 09 January 2012 10:39:43 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= wrote:
> > I finally managed to make some progress on "porting"
> > maemo-tvout-control to harmattan.
> >
> > Code is here:
> > https://gitorious.org/maemo-tvout-control/n9-tvout-control
> >
> > What you'll find there is a a very simple QWidget based GUI,
> > and backend code utilizing XRandR.
> >
> > The backend supports a few extra knobs, when compared with
> > fremantle. However, I was too lazy to write the extra GUI
> > code. So the current GUI offers the same controls that
> > maemo-tvout-control has.
> >
> > The ultimate plan is to write a nice QML GUI for this stuff,
> > although I don't know when I'll have time to learn QML.
> >
> > Another idea I have is to move the backend code to a separate
> > library. The same should be done for the fremantle Xv based
> > backend code. This would provide a unified TV out control API
> > for both platforms.
>
> Hello,
>
> last year I merged maemo-tvout-control with control panel settings plugin for
> Nokia N900. Code is now in Community SSU on gitorious
>
> https://gitorious.org/community-ssu/maemo-tvout-control
>
> and is based on your orignal code
> https://gitorious.org/maemo-tvout-control/maemo-tvout-control

Ah, I did see the mail, but was swamped with something at the time and then
I just totally forgot to respond. Sorry.

> I created new tvout status menu plugin, it is in that CSSU repository too.

Great. Multiple different GUIs was the reason I tried to keep the
backend code separate.

> It is possible to merge my changes on CSSU to your project? I think it is not
> good idea to have 2 separated projects which has same code.

Yeah we could do some merging. But perhaps now would a good time to
move the backend code into a separate library. I'm not sure if the
harmattan and fremantle code can coexist nicely inside a single library,
or if that would cause problems with the packaging and whatnot. But at
least we could provide a library with the same name, and the same API,
for both platforms.

--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Pali Rohár
Karma: 1382
2012-01-09 09:46 UTC
On Monday 09 January 2012 11:20:19 you wrote:
> On Mon, Jan 09, 2012 at 09:48:27AM +0100, Pali Rohár wrote:
> > On Monday 09 January 2012 10:39:43 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?=
wrote:
> > > I finally managed to make some progress on "porting"
> > > maemo-tvout-control to harmattan.
> > >
> > > Code is here:
> > > https://gitorious.org/maemo-tvout-control/n9-tvout-control
> > >
> > > What you'll find there is a a very simple QWidget based GUI,
> > > and backend code utilizing XRandR.
> > >
> > > The backend supports a few extra knobs, when compared with
> > > fremantle. However, I was too lazy to write the extra GUI
> > > code. So the current GUI offers the same controls that
> > > maemo-tvout-control has.
> > >
> > > The ultimate plan is to write a nice QML GUI for this stuff,
> > > although I don't know when I'll have time to learn QML.
> > >
> > > Another idea I have is to move the backend code to a separate
> > > library. The same should be done for the fremantle Xv based
> > > backend code. This would provide a unified TV out control API
> > > for both platforms.
> >
> > Hello,
> >
> > last year I merged maemo-tvout-control with control panel settings plugin
> > for Nokia N900. Code is now in Community SSU on gitorious
> >
> > https://gitorious.org/community-ssu/maemo-tvout-control
> >
> > and is based on your orignal code
> > https://gitorious.org/maemo-tvout-control/maemo-tvout-control
>
> Ah, I did see the mail, but was swamped with something at the time and then
> I just totally forgot to respond. Sorry.
>
> > I created new tvout status menu plugin, it is in that CSSU repository too.
>
> Great. Multiple different GUIs was the reason I tried to keep the
> backend code separate.
>
> > It is possible to merge my changes on CSSU to your project? I think it is
> > not good idea to have 2 separated projects which has same code.
>
> Yeah we could do some merging. But perhaps now would a good time to
> move the backend code into a separate library. I'm not sure if the
> harmattan and fremantle code can coexist nicely inside a single library,
> or if that would cause problems with the packaging and whatnot. But at
> least we could provide a library with the same name, and the same API,
> for both platforms.

That version which is in CSSU working as:

* status menu plugin is loaded at startup and only this plugin have access to
tvout-ctl.c code. It monitor gconf tvout keys and when some is changed, it
call tvout-ctl function to change xv properties. (also monitor for xv changes
and change gconf keys)

* control panel plugin and desktop widget (and other plugins that can be
implemented) only changing gconf tvout keys, nothing more.


In tvout-ctl is minimum changes. There was only removed hardcoded function
update_ui and tvout_ui_set_* Instead that, tvout_ctl_init function get pointer
to function which is called.

So tvout-ctl.c should be same in fremantle and harmattan with my changes. I do
not know harmattan, but I think that haramttan does not use any Gtk, gconf
libraries, so desktop widget, control and status menu plugins are only for
fremantle. I think that the best will be to have one repository for tvout-ctl,
one for fremantle (here will be fremantle plugins) in CSSU project and one for
harmattan. What do you think?

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEUEABECAAYFAk8Kt2YACgkQi/DJPQPkQ1JmIwCYwRE4JWc8a2sDOPjGlGNQMTZW
7gCeMHqPikPthyU8OGctB3b5JGIUCG4=
=KOBP
-----END PGP SIGNATURE-----

  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Ville Syrjala
Karma: 11
2012-01-09 10:36 UTC
On Mon, Jan 09, 2012 at 10:46:14AM +0100, Pali Rohár wrote:
> On Monday 09 January 2012 11:20:19 you wrote:
> > On Mon, Jan 09, 2012 at 09:48:27AM +0100, Pali Rohár wrote:
> > > On Monday 09 January 2012 10:39:43 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?=
> wrote:
> > > > I finally managed to make some progress on "porting"
> > > > maemo-tvout-control to harmattan.
> > > >
> > > > Code is here:
> > > > https://gitorious.org/maemo-tvout-control/n9-tvout-control
> > > >
> > > > What you'll find there is a a very simple QWidget based GUI,
> > > > and backend code utilizing XRandR.
> > > >
> > > > The backend supports a few extra knobs, when compared with
> > > > fremantle. However, I was too lazy to write the extra GUI
> > > > code. So the current GUI offers the same controls that
> > > > maemo-tvout-control has.
> > > >
> > > > The ultimate plan is to write a nice QML GUI for this stuff,
> > > > although I don't know when I'll have time to learn QML.
> > > >
> > > > Another idea I have is to move the backend code to a separate
> > > > library. The same should be done for the fremantle Xv based
> > > > backend code. This would provide a unified TV out control API
> > > > for both platforms.
> > >
> > > Hello,
> > >
> > > last year I merged maemo-tvout-control with control panel settings plugin
> > > for Nokia N900. Code is now in Community SSU on gitorious
> > >
> > > https://gitorious.org/community-ssu/maemo-tvout-control
> > >
> > > and is based on your orignal code
> > > https://gitorious.org/maemo-tvout-control/maemo-tvout-control
> >
> > Ah, I did see the mail, but was swamped with something at the time and then
> > I just totally forgot to respond. Sorry.
> >
> > > I created new tvout status menu plugin, it is in that CSSU repository too.
> >
> > Great. Multiple different GUIs was the reason I tried to keep the
> > backend code separate.
> >
> > > It is possible to merge my changes on CSSU to your project? I think it is
> > > not good idea to have 2 separated projects which has same code.
> >
> > Yeah we could do some merging. But perhaps now would a good time to
> > move the backend code into a separate library. I'm not sure if the
> > harmattan and fremantle code can coexist nicely inside a single library,
> > or if that would cause problems with the packaging and whatnot. But at
> > least we could provide a library with the same name, and the same API,
> > for both platforms.
>
> That version which is in CSSU working as:
>
> * status menu plugin is loaded at startup and only this plugin have access to
> tvout-ctl.c code. It monitor gconf tvout keys and when some is changed, it
> call tvout-ctl function to change xv properties. (also monitor for xv changes
> and change gconf keys)
>
> * control panel plugin and desktop widget (and other plugins that can be
> implemented) only changing gconf tvout keys, nothing more.
>
>
> In tvout-ctl is minimum changes. There was only removed hardcoded function
> update_ui and tvout_ui_set_* Instead that, tvout_ctl_init function get pointer
> to function which is called.
>
> So tvout-ctl.c should be same in fremantle and harmattan with my changes. I do
> not know harmattan, but I think that haramttan does not use any Gtk, gconf
> libraries, so desktop widget, control and status menu plugins are only for
> fremantle.

Yep. At least for now there are no desktop/menu plugins.

> I think that the best will be to have one repository for tvout-ctl,
> one for fremantle (here will be fremantle plugins) in CSSU project and one for
> harmattan. What do you think?

Sounds good. We don't really need a harmattan specific GUI repo,
at least yet. The standalone Qt GUI should work in both fremantle
and harmattan if the tvout-ctl API is the same. Some clever way to
handle packaging may be needed if there are differences. Perhaps
keep the packaging stuff in separate branches and merge master to
them when the actual code changes.

--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Pali Rohár
Karma: 1382
2012-01-09 11:03 UTC
On Monday 09 January 2012 12:36:02 you wrote:
> On Mon, Jan 09, 2012 at 10:46:14AM +0100, Pali Rohár wrote:
> > On Monday 09 January 2012 11:20:19 you wrote:
> > > On Mon, Jan 09, 2012 at 09:48:27AM +0100, Pali Rohár wrote:
> > > > On Monday 09 January 2012 10:39:43 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?=
> >
> > wrote:
> > > > > I finally managed to make some progress on "porting"
> > > > > maemo-tvout-control to harmattan.
> > > > >
> > > > > Code is here:
> > > > > https://gitorious.org/maemo-tvout-control/n9-tvout-control
> > > > >
> > > > > What you'll find there is a a very simple QWidget based GUI,
> > > > > and backend code utilizing XRandR.
> > > > >
> > > > > The backend supports a few extra knobs, when compared with
> > > > > fremantle. However, I was too lazy to write the extra GUI
> > > > > code. So the current GUI offers the same controls that
> > > > > maemo-tvout-control has.
> > > > >
> > > > > The ultimate plan is to write a nice QML GUI for this stuff,
> > > > > although I don't know when I'll have time to learn QML.
> > > > >
> > > > > Another idea I have is to move the backend code to a separate
> > > > > library. The same should be done for the fremantle Xv based
> > > > > backend code. This would provide a unified TV out control API
> > > > > for both platforms.
> > > >
> > > > Hello,
> > > >
> > > > last year I merged maemo-tvout-control with control panel settings
> > > > plugin
> > > > for Nokia N900. Code is now in Community SSU on gitorious
> > > >
> > > > https://gitorious.org/community-ssu/maemo-tvout-control
> > > >
> > > > and is based on your orignal code
> > > > https://gitorious.org/maemo-tvout-control/maemo-tvout-control
> > >
> > > Ah, I did see the mail, but was swamped with something at the time and
> > > then
> > > I just totally forgot to respond. Sorry.
> > >
> > > > I created new tvout status menu plugin, it is in that CSSU repository
> > > > too.
> > >
> > > Great. Multiple different GUIs was the reason I tried to keep the
> > > backend code separate.
> > >
> > > > It is possible to merge my changes on CSSU to your project? I think it
> > > > is
> > > > not good idea to have 2 separated projects which has same code.
> > >
> > > Yeah we could do some merging. But perhaps now would a good time to
> > > move the backend code into a separate library. I'm not sure if the
> > > harmattan and fremantle code can coexist nicely inside a single library,
> > > or if that would cause problems with the packaging and whatnot. But at
> > > least we could provide a library with the same name, and the same API,
> > > for both platforms.
> >
> > That version which is in CSSU working as:
> >
> > * status menu plugin is loaded at startup and only this plugin have access
> > to tvout-ctl.c code. It monitor gconf tvout keys and when some is
> > changed, it call tvout-ctl function to change xv properties. (also
> > monitor for xv changes and change gconf keys)
> >
> > * control panel plugin and desktop widget (and other plugins that can be
> > implemented) only changing gconf tvout keys, nothing more.
> >
> >
> > In tvout-ctl is minimum changes. There was only removed hardcoded function
> > update_ui and tvout_ui_set_* Instead that, tvout_ctl_init function get
> > pointer to function which is called.
> >
> > So tvout-ctl.c should be same in fremantle and harmattan with my changes.
> > I do not know harmattan, but I think that haramttan does not use any Gtk,
> > gconf libraries, so desktop widget, control and status menu plugins are
> > only for fremantle.
>
> Yep. At least for now there are no desktop/menu plugins.
>
> > I think that the best will be to have one repository for tvout-ctl,
> > one for fremantle (here will be fremantle plugins) in CSSU project and one
> > for harmattan. What do you think?
>
> Sounds good. We don't really need a harmattan specific GUI repo,
> at least yet. The standalone Qt GUI should work in both fremantle
> and harmattan if the tvout-ctl API is the same. Some clever way to
> handle packaging may be needed if there are differences. Perhaps
> keep the packaging stuff in separate branches and merge master to
> them when the actual code changes.

Now I merged your changes to CSSU repository on:
https://gitorious.org/community-ssu/maemo-tvout-control

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk8KyYoACgkQi/DJPQPkQ1JBKwCfUOFTH3EcsvrbvK1HRrW90Ddp
tw4AoMbeeEF7Hf8mwntN7aOY2bB9qpKr
=oOuE
-----END PGP SIGNATURE-----

  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Ville Syrjala
Karma: 11
2012-01-12 08:37 UTC
On Mon, Jan 09, 2012 at 12:36:02PM +0200, Ville Syrjälä wrote:
> On Mon, Jan 09, 2012 at 10:46:14AM +0100, Pali Rohár wrote:
> > I think that the best will be to have one repository for tvout-ctl,
> > one for fremantle (here will be fremantle plugins) in CSSU project and one for
> > harmattan. What do you think?
>
> Sounds good. We don't really need a harmattan specific GUI repo,
> at least yet. The standalone Qt GUI should work in both fremantle
> and harmattan if the tvout-ctl API is the same. Some clever way to
> handle packaging may be needed if there are differences. Perhaps
> keep the packaging stuff in separate branches and merge master to
> them when the actual code changes.

I now merged both Xv and XRandR codes to libtvout-ctl [1].

I changed the license of this library to LGPL 2.1.

There's a configure option to select the backend at build time. The
debian packaging will build the Xv backend.

I'm not quite sure how I'll sort the issue on how to build for
harmattan. The same packaging otherwise works for both platforms,
so it would be nice to have some decent way to detect the platform
during the build and use that to select the backend. It would avoid
having to duplicate the packaging and maintaining multiple branches.

Run-time backend selection would be another option, but seems a little
pointless considering you have to build separate binary packages for
each platform anyway.

I updated both maemo-tvout-control and n9-tvout-control to use the
new library.

[1] https://gitorious.org/maemo-tvout-control/libtvout-ctl

--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Pali Rohár
Karma: 1382
2012-01-12 08:55 UTC
On Thursday 12 January 2012 10:37:12 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= wrote:
> On Mon, Jan 09, 2012 at 12:36:02PM +0200, Ville Syrjälä wrote:
> > On Mon, Jan 09, 2012 at 10:46:14AM +0100, Pali Rohár wrote:
> > > I think that the best will be to have one repository for tvout-ctl,
> > > one for fremantle (here will be fremantle plugins) in CSSU project and
> > > one for harmattan. What do you think?
> >
> > Sounds good. We don't really need a harmattan specific GUI repo,
> > at least yet. The standalone Qt GUI should work in both fremantle
> > and harmattan if the tvout-ctl API is the same. Some clever way to
> > handle packaging may be needed if there are differences. Perhaps
> > keep the packaging stuff in separate branches and merge master to
> > them when the actual code changes.
>
> I now merged both Xv and XRandR codes to libtvout-ctl [1].
>
> I changed the license of this library to LGPL 2.1.
>
> There's a configure option to select the backend at build time. The
> debian packaging will build the Xv backend.
>
> I'm not quite sure how I'll sort the issue on how to build for
> harmattan. The same packaging otherwise works for both platforms,
> so it would be nice to have some decent way to detect the platform
> during the build and use that to select the backend. It would avoid
> having to duplicate the packaging and maintaining multiple branches.
>
> Run-time backend selection would be another option, but seems a little
> pointless considering you have to build separate binary packages for
> each platform anyway.
>
> I updated both maemo-tvout-control and n9-tvout-control to use the
> new library.
>
> [1] https://gitorious.org/maemo-tvout-control/libtvout-ctl

Checking if and which Maemo version is running on build system server can be
detected by pkgconfig package maemo-version.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk8On/kACgkQi/DJPQPkQ1K7ZACgv1hYkA48QpROPU7Jka+fT1O2
uK4AoMy7K4qF5aJ/h8RhRvGLI4h9gZ+4
=uNqx
-----END PGP SIGNATURE-----

  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Ville Syrjala
Karma: 11
2012-01-13 06:51 UTC
On Thu, Jan 12, 2012 at 09:55:21AM +0100, Pali Rohár wrote:
> Checking if and which Maemo version is running on build system server can be
> detected by pkgconfig package maemo-version.

That's not available in harmattan. But anyway I realized I need to
change the build dependencies anyway, so I just removed the packaging
from the master branch and moved it to fremantle and harmattan branches
for each platform.

--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
  •  Reply

Re: [ANNOUNCE] N9/N950 TV out control application

Pali Rohár
Karma: 1382
2012-01-13 06:56 UTC
On Friday 13 January 2012 08:51:21 Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= wrote:
> On Thu, Jan 12, 2012 at 09:55:21AM +0100, Pali Rohár wrote:
> > Checking if and which Maemo version is running on build system server can
> > be detected by pkgconfig package maemo-version.
>
> That's not available in harmattan. But anyway I realized I need to
> change the build dependencies anyway, so I just removed the packaging
> from the master branch and moved it to fremantle and harmattan branches
> for each platform.

So configure script can check if maemo-version exist. If yes build system is
fremantle otherwise harmattan.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk8P1bcACgkQi/DJPQPkQ1KefwCgjm5rvVn/T6iRf0xzfxsjfVqK
GXcAn3PR5bXfxXddyj4oZ+klwwM59jXR
=ZBxi
-----END PGP SIGNATURE-----

  •  Reply
1 2 next