Re: Default nice value setting

2009-06-17 Thread Faheem Pervez
Hi,

Incidentially, you may have found this bug useful once upon a time:
https://bugs.maemo.org/show_bug.cgi?id=374 *grin*

But, anyway, the line you want to search in that bug is setpriority()
which'll allow you to override the nice value from your app.

Regards,
Faheem

On Wed, Jun 17, 2009 at 5:28 AM, Nick Nobody m...@nikosapi.org wrote:

 Hi,

 Is there a way to specify a default nice value for an application on maemo?
 I
 noticed that if an application is launched by the menu directly from an
 executable (using the Exec variable in the .desktop file) it gets a nice
 value
 of -1. But, if the application is started over D-Bus (using the
 X-Osso-Service
 variable in the .desktop file) it gets a nice value of 0.

 The application I'm working on needs at least a nice value of -1 or else it
 becomes unusable. Is there a way to make this happen while still being able
 to
 start the application over D-Bus?

 Thanks,

 nick
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Default nice value setting

2009-06-17 Thread Frantisek Dufka
Nick Nobody wrote:
 if an application is launched by the menu directly from an 
 executable (using the Exec variable in the .desktop file) it gets a nice 
 value 
 of -1. But, if the application is started over D-Bus (using the 
 X-Osso-Service 
 variable in the .desktop file) it gets a nice value of 0.

Which OS version it is? This is a bug, both should have priority 0. Can 
you reopen that bug Faheem linked with details about your OS version if 
you see it on current OS version? Oh wait, maybe just forget it, it'll 
be WONTFIXed anyway for any current system :-)

Sadly I think that you cannot raise the priority from 0 to -1 unless 
being root, you can just lower it so that setpriority call may not help 
you. The scummvm problem in the bug was different, scummvm didn't like 
higher priority (or better said - system audio daemon didn't like 
scummvm having higher priority) so the solution was to lower the 
priority from -1 to 0 which worked for ordinary user.

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Default nice value setting

2009-06-17 Thread Henrik Hedberg
Frantisek Dufka wrote:

 Sadly I think that you cannot raise the priority from 0 to -1 unless 
 being root, you can just lower it so that setpriority call may not help 
 you.

If it is really crucial for the application to have higher priority, 
maybe it could be installed as setuid root. In that way, it could first 
set priority from 0 to -1, and then drop the privileges.

BR,

Henrik

-- 
Henrik Hedberg  -  http://www.henrikhedberg.net/
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Default nice value setting

2009-06-17 Thread Frantisek Dufka
Henrik Hedberg wrote:
 If it is really crucial for the application to have higher priority, 
 maybe it could be installed as setuid root. In that way, it could first 
 set priority from 0 to -1, and then drop the privileges.

Or postinstall script could add some helper to sudoers which could raise 
priority when started from inside the application. I think Vagalume uses 
this trick.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


WONTFIX BUGS.... was Re: Default nice value setting

2009-06-17 Thread David Greaves
Frantisek Dufka wrote:
 Which OS version it is? This is a bug, both should have priority 0. Can 
 you reopen that bug Faheem linked with details about your OS version if 
 you see it on current OS version? Oh wait, maybe just forget it, it'll 
 be WONTFIXed anyway for any current system :-)

Just thinking that it would be interesting and productive for Nokians to do a
trawl of WONTFIXes and add but if I were going to fix it, this is where I'd
start... and then possibly work with us on re-assigning them to an appropriate
Mer category...


David


-- 
Don't worry, you'll be fine; I saw it work in a cartoon once...
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: WONTFIX BUGS.... was Re: Default nice value setting

2009-06-17 Thread Andre Klapper
Am Mittwoch, den 17.06.2009, 10:15 +0100 schrieb David Greaves:
 Just thinking that it would be interesting and productive for Nokians to do a
 trawl of WONTFIXes and add but if I were going to fix it, this is where I'd
 start... and then possibly work with us on re-assigning them to an 
 appropriate
 Mer category...

It's always a question of time for Nokia developers I guess, but it
can't hurt.

andre
-- 
Andre Klapper (maemo.org bugmaster)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Default nice value setting

2009-06-17 Thread Nick Nobody
On June 17, 2009 05:03:32 am Frantisek Dufka wrote:
 Henrik Hedberg wrote:
  If it is really crucial for the application to have higher priority,
  maybe it could be installed as setuid root. In that way, it could first
  set priority from 0 to -1, and then drop the privileges.

 Or postinstall script could add some helper to sudoers which could raise
 priority when started from inside the application. I think Vagalume uses
 this trick.

Thanks guys for all the clever solutions to the problem.

@Frantisek I'm using OS2008 version 5.2008.43-7 but like you said that bug 
probably won't get fixed. And for applications that need to go from -1 to 0 
that's very easy, it's probably not even worth fixing...

Thanks again,

nick
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-17 Thread liuyp

come on... buddy..:confused::confused:
-- 
View this message in context: 
http://n2.nabble.com/asking-help-about-installing-xephyr-tp3089295p3093252.html
Sent from the maemo-developers mailing list archive at Nabble.com.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-17 Thread Cornelius Hald
Hi,

liuyp wrote:
 Hi maemo and linux  experts,
 I am quite new to linux and maemo. I can\t install xephyr of maemo 4.1.2 
 diablo in my ubuntu 8.04 (Wubi within vista), and some errs happened as 
 following.  I have been struggling for it long time. please give your 
 hands kindly.
 
  
 s...@liuyp-laptop:~$ DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac -br :1 

Try this one please (one line):

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite

If it´s opening a window you´re done. After that log into scratchbox and 
execute:
export DISPLAY=:2
af-sb-init.sh start

Cheers!
Conny

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Fremantle SDK mount command?

2009-06-17 Thread Qole
Hello developers,

Can anyone tell me how I can get the mount command from within the Maemo 5
SDK?

I'm trying to test out Easy Debian* within the SDK to see what needs to be
in place for it to work under Fremantle, and there's a rather glaring hole
when it comes to the mount command.

Any ideas?



* *Well, actually, Easy Mer, since the Mer
projecthttp://wiki.maemo.org/Merhave both
armelhttp://stskeeps.subnetmask.net/mer/0.14/mer-armel-n8x0-image-v0.14.tar.gzand
x86http://stskeeps.subnetmask.net/mer/0.14/mer-x86-generic-image-v0.14.tar.gzrootfs
packages already, so I can test on the x86 SDK target.
*

-- 
enthusiast, n. One whose mind is wholly possessed and heated by what
engages it; one who is influenced by a peculiar fervor of mind; an ardent
and imaginative person.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Fremantle SDK mount command?

2009-06-17 Thread Jeremiah Foster

On Jun 17, 2009, at 23:19, Qole wrote:

 Hello developers,

 Can anyone tell me how I can get the mount command from within the  
 Maemo 5 SDK?

Well, once you are logged into the SDK through scratchbox, which is  
what I presume you mean by within the SDK, then you should be able  
to install it by calling `apt-get install mount`. This fails however.  
(See bug https://bugs.maemo.org/show_bug.cgi?id=4703)

 I'm trying to test out Easy Debian* within the SDK to see what needs  
 to be in place for it to work under Fremantle, and there's a rather  
 glaring hole when it comes to the mount command.

 Any ideas?

You could try pulling down the upstream source, then just moving the  
source package into the SDK building it there and use dpkg -i to  
install it.

Jeremiah

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Fremantle SDK mount command?

2009-06-17 Thread Qole
Thank you, Jeremiah, for opening that bug and pointing me in the right
direction.

On Wed, Jun 17, 2009 at 5:15 PM, Jeremiah Foster 
jerem...@jeremiahfoster.com wrote:


 You could try pulling down the upstream source, then just moving the
 source package into the SDK building it there and use dpkg -i to
 install it.


Can you tell me where to get the upstream source package? Debian?


-- 
enthusiast, n. One whose mind is wholly possessed and heated by what
engages it; one who is influenced by a peculiar fervor of mind; an ardent
and imaginative person.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Fremantle SDK mount command?

2009-06-17 Thread ds
Am Mittwoch, den 17.06.2009, 20:06 -0700 schrieb Qole:
 Thank you, Jeremiah, for opening that bug and pointing me in the right
 direction.
 
 On Wed, Jun 17, 2009 at 5:15 PM, Jeremiah Foster
 jerem...@jeremiahfoster.com wrote:
 
 
 You could try pulling down the upstream source, then just
 moving the
 source package into the SDK building it there and use dpkg -i
 to
 install it.
 
 Can you tell me where to get the upstream source package? Debian?
 
apt-get source ...

should do it, or is the source.list not complete?

it should contain the corresponding source line, from my debian
something like:

deb-src http://ftp.de.debian.org/debian/ lenny main contrib non-free


Detlef

 
 -- 
 enthusiast, n. One whose mind is wholly possessed and heated by what
 engages it; one who is influenced by a peculiar fervor of mind; an
 ardent and imaginative person.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers