Re: [pulseaudio-discuss] [PATCH] rtkit: Add dbus properties for returning rttime-nsec-max, max-realtime-priority and min-nice-level

2010-01-17 Thread Lennart Poettering
On Sun, 17.01.10 19:50, David Henningsson (launchpad@epost.diwic.se) wrote:

  This is one of the things I love most about Linux/FOSS, the ability to
  debug wherever you want. I ended up inserting some debug prints in
  rtkit-daemon to nail the problem down - had rtkit been a Windows system
  service delivered by Microsoft, I'd probably still be stuck!
 
  He. Free Software also lives from contributions. So if you want to see
  these properties added quickly, then prep a clean patch and I'll merge
  it. ;-)
 
 Hopefully the patch attached will do the job and be clean enough for you!

Thanks!

I merged this now with minor changes (whitespace fixes and more
importantly, I changed the property names from
a-property-written-like-this to APropertyWrittenLikeThis, since
property names should actually follow the same syntax as function
names. There has been some uncertainty about that in the past, but now
it is generally agreed that property and function names should be
considered from the same namspace, even though this is not enforced).

I also rolled a new release 0.6 for that.

Thanks for your work,

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] [PATCH] Add rtkitctl manpage

2010-01-17 Thread Luke Yelavich
As Lennart asked about the rtkitctl manpage Ubuntu has, here is a patch against 
rtkit git.
From 10a48d36a545676209bcc1e24d0d89dcaa12f053 Mon Sep 17 00:00:00 2001
From: Luke Yelavich luke.yelav...@canonical.com
Date: Mon, 18 Jan 2010 14:13:54 +1100
Subject: [PATCH] Add rtkitctl manpage

---
 Makefile.am |5 +
 rtkitctl.8  |   46 ++
 2 files changed, 51 insertions(+), 0 deletions(-)
 create mode 100644 rtkitctl.8

diff --git a/Makefile.am b/Makefile.am
index 65ab36c..725c191 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,3 +68,8 @@ rtkit_test_CFLAGS = \
 
 org.freedesktop.RealtimeKit1.service: org.freedesktop.RealtimeKit1.service.in
 	sed -e 's,@LIBEXECDIR\@,$(libexecdir),g'  $  $@
+
+man8_MANS = rtkitctl.8
+
+EXTRA_DIST += \
+	$(man8_MANS)
diff --git a/rtkitctl.8 b/rtkitctl.8
new file mode 100644
index 000..403d477
--- /dev/null
+++ b/rtkitctl.8
@@ -0,0 +1,46 @@
+.\  Hey, EMACS: -*- nroff -*-
+.\ First parameter, NAME, should be all caps
+.\ Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\ other parameters are allowed: see man(7), man(1)
+.TH RTKITCTL 8 July 1, 2009
+.\ Please adjust this date whenever revising the manpage.
+.\
+.\ Some roff macros, for reference:
+.\ .nhdisable hyphenation
+.\ .hyenable hyphenation
+.\ .ad l  left justify
+.\ .ad b  justify to both left and right margins
+.\ .nfdisable filling
+.\ .fienable filling
+.\ .brinsert line break
+.\ .sp ninsert n+1 empty lines
+.\ for manpage-specific macros, see man(7)
+.SH NAME
+rtkitctl \- Realtime Policy and Watchdog daemon control
+.SH SYNOPSIS
+.B rtkitctl
+.RI [ options ]
+.SH DESCRIPTION
+.B RealtimeKit
+is a D-Bus system service that changes the scheduling policy of user processes/threads to SCHED_RR (i.e. realtime scheduling mode) on request. It is intended to be used as a secure mechanism to allow real-time scheduling to be used by normal user processes.
+.SH OPTIONS
+.TP
+.B \-h, \-\-help
+Show a summary of options.
+.TP
+.B \-\-version
+Show version.
+.TP
+.B \-\-reset\-known
+Reset real-time status of known threads.
+.TP
+.B \-\-reset\-all
+Reset real-time status of all threads.
+.TP
+.B \-\-start
+Start RealtimeKit if it is not running already.
+.TP
+.B \-k, \-\-exit
+Terminate running RealtimeKit daemon.
+.SH AUTHOR
+RealtimeKit was written by Lennart Poettering lenn...@poettering.net.
-- 
1.6.3.3

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Stream volumes as the universal volume adjustment method

2010-01-17 Thread Arun Raghavan
On Thu, 2010-01-14 at 23:25 +0100, Lennart Poettering wrote:
[...]
 4 Put a bigger focus on automatically managed stream
   volumes. i.e. volume-follows-focus (Arun!),

Whoops - kind of got off-tracked on this particular project. Last place
I was stuck was how to get the window-state tracking goodness of libwnck
without the GLib mainloop.

Any ideas? I thinking a small standalone app which uses libwnck and
throws out DBus events on the changes we'd like to see could do the
trick.

Will get on this soon.

Cheers,
Arun

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss