| Prev | 8   16     17   18   19     20   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900) (https://talk.maemo.org/showthread.php?t=44576)

noobmonkey 2010-02-25 07:47

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by mackan1 (Post 545374)
i see there has been 2 new updates sins ur last post. anything new?


yup :) Bigger fonts and attempting to show Firmware version in an understandable way :) (So PR 1.1 etc....

mackan1 2010-02-25 09:45

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
lovein the bigger fonts,

is the front cam alwasy dark and back to front? or is it just my one

noobmonkey 2010-02-25 09:47

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by mackan1 (Post 545552)
lovein the bigger fonts,

is the front cam alwasy dark and back to front? or is it just my one

Allways dark :( - works ok outside i find :)

Back to front? - it acts as a mirror image i think.

mackan1 2010-02-26 05:51

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Hey. nice update but system reboot does not work. i think also a bigger button would also be nicer to tuch. when more tools come in to the system that is

noobmonkey 2010-02-26 08:31

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
hiMackan, sorry doing the updates in the other post :) - getting a bit confusing having it in two!

Was just a quick test, works on mine, but i'll figure out why not on others :)

No idea what i'm putton on that page yet, so not concentrating on layout until i know what i need to lay out.

noobmonkey 2010-02-26 16:11

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Hey everyone, coding question....

Looking at calling some commands that need root on the device....
running this command on my phone via my python app works... but doesn't seem to work elsewhere....

Code:

sudo /sbin/reboot
Should i
a) not be calling commands like this.... (Would kinda scupper my plans!!)
b) be doing it a different way
c) something else... lol

Rob1n 2010-02-26 16:17

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by noobmonkey (Post 547743)
Hey everyone, coding question....

Looking at calling some commands that need root on the device....
running this command on my phone via my python app works... but doesn't seem to work elsewhere....

Code:

sudo /sbin/reboot
Should i
a) not be calling commands like this.... (Would kinda scupper my plans!!)
b) be doing it a different way
c) something else... lol

It works here as well - it may depend on rootsh having been installed.

noobmonkey 2010-02-26 16:17

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by Rob1n (Post 547750)
It works here as well - it may depend on rootsh having been installed.

ahhhh - works via my app, or works by running it in terminal?

Rob1n 2010-02-26 16:19

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by noobmonkey (Post 547751)
ahhhh - works via my app, or works by running it in terminal?

Works via your app.

fatalsaint 2010-02-26 17:06

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
I think that will depend if you guys have modified your sudoers file for something else previously.

Normally I don't think running sudo "command" on the N900 will work even with rootsh..

Rootsh allows you to run "sudo gainroot" to get root, then the command. Sudo <commands> still ask for a password (in my understanding.)

So what you would want normally I think would be something like:

Code:

echo /sbin/reboot | sudo gainroot
and depend your app on rootsh.. although I don't think depending on rootsh is a good idea.

There must be some kind of API in dbus or somewhere to tell the device to reboot properly instead of running shell commands.


| Prev | 8   16     17   18   19     20   | Next
All times are GMT. The time now is 19:33.

vBulletin® Version 3.8.8