|
Page 5 of 5 |
|
Prev |
3 4 5
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
ooo can i? - easy as that? :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
er...gstreamer-tools, sorry. (notice the s removed aftger streamer)
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
got it working last night but front camra not working on it. looks nice tho
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
cool, which version are you using? if you try the previous gstreamer command in x-term, do you get any error messages? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
i have version 0.5.0-2
just opend it agen the front cam does work but is very dark all you will have to do now is add a tab to free the space in the root, like moves fonts and so on. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
could someone qive me a few lines of code please?! google is being rubbish!
just need to add a qlistwidget or equivalent with 2 columns and know how to add values to it. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
QTableView would probably be used for that instead...
http://www.saltycrane.com/blog/2007/...acttablemodel/ http://qt.nokia.com/doc/4.0/qtableview.html |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
i see there has been 2 new updates sins ur last post. anything new?
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
yup :) Bigger fonts and attempting to show Firmware version in an understandable way :) (So PR 1.1 etc.... |
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 |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Back to front? - it acts as a mirror image i think. |
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
|
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. |
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/reboota) not be calling commands like this.... (Would kinda scupper my plans!!) b) be doing it a different way c) something else... lol |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
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 gainrootThere must be some kind of API in dbus or somewhere to tell the device to reboot properly instead of running shell commands. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Quote:
Code:
run-standalone.sh dbus-send --system --type=method_call --dest="com.nokia.mce" --print-reply "/com/nokia/mce/request" com.nokia.mce.request.req_reboothttp://maemo.org/api_refs/5.0/5.0-fi...-names_8h.html explains some more of the method calls available to you. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
wow very helpful :D - just need to understand Dbus now! ... hmmmmmm
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
getting a dbus.error.UnknownMethod "req_reboot" with signature "" on interface "com.nokia.mce.request" doesn't exist.
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Code:
run-standalone.sh dbus-send --system --type=method_call --dest="com.nokia.dsme" --print-reply "/com/nokia/dsme/request" com.nokia.dsme.request.req_reboot |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Just tested it and works fine! - wohooo! :D - slowly getting there - i think i've bitten of a little mor ethen i should have for my first project - but it is still fun!! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
But you have got me wanting to test this bit now!!
Vibrator interface D-Bus methods :D :D :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Qwerty... thats got me thinking, as i have a load of other commands i'd like to run.... - may be best for me to seek alternatives...
apt-get clean apt-get install pymaemo-optify (possibly) even looking at using the cleanup script to run externally as part of the application.... Code:
#!/bin/sh |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Thanks for the save. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Is this call still valid?
Just not returning anything for me? Code:
run-standalone.sh dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_orientation_ind |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hmmm does nothing at all in terminal either.... am i missing an import?!
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
ok, right tidied up the app ready to lean this bit.....
I'm going to sound incredibly noobish... (Tis all in the name i say!)...... Quote:
It needs to be added somehow to /etc/sudoers.d Not sure what you mean by - Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
two files in debian control
postinst & postrm Code:
#!/bin/shetc/sudoers.d/healthcheck.sudoers Code:
user ALL = NOPASSWD: /<path>/commandthis will allow commands to be run as root when your package is installed, and stopped when package is removed. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
wow thank you!!!! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
ok... getting there i think now...
SO for example my sudoers file would for example look like this? user ALL = NOPASSWD: /apt-get %users ALL = NOPASSWD: /sbin/reboot i'm assuming id i put apt-get in there, i can use all apt-get commands if needed? (Just tring to find apt-get so i can put it in the right path... Now..... Quote:
But the code looks just like something i need to put in a file!.. Code:
#!/bin/shSorry for the multiple q's! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Code:
user ALL = NOPASSWD: /apt-getpostinst & postrm go in /DEBIAN folder in your package folder structure. I am just starting with linux development as well, used to do .net dev on windows this quite different! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
w00000p thank you! :D :D - will work on this tomorrow :) :) yay!
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hmmmmm need some help peoples... (no change here then!)
At the moment i read the firmware versions and return something like PR1.1 - or PR1.1.1 .... Quite easy to do at the moment... but i will hit a snag when new firmware versions come out, as i will have to update the code, then wait the 10+ days to get it out to people.... Not much help... A few way rounds i can think of are.... Listing the versions on my website and parsing it directly from there (not good if people dont have or want to use the internet.) or Giving the user the ability to download a text file with them listed in, and update when they want. Are there any other ways people can think off? or any previous good examples? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hi, cant upgrade tp latest version as it say i need audiopulse installed.
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
you could parse the firmware download site, which should be upto date within 24 hours of OTA. ? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hehe. i would have no idea where to start on that one. didnt realise you could pull off a list from there? good idea though!!
|
| All times are GMT. The time now is 19:33. |
Page 5 of 5 |
|
Prev |
3 4 5
|
vBulletin® Version 3.8.8