maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [Anounce] [N9] Volume/Power Button Monitor (https://talk.maemo.org/showthread.php?t=82538)

Arie 2012-04-02 18:12

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1187290)
I CANT FIGURE OUT HOW TO CHANGE THE GODDAM SYSTEM VOLUME.

tried with built-in clis:
pulseaudio-utils, alsamixer, amixer

tried with c libraries and all audio APIs i found in the developer api:
qmediaplayer, phonon.audiooutput.

this should SO not be difficult. anybody know how to do this? {programmatically adjust the system volume, such that the slider in the status bar also moves with it}

Have you asked thp?

HtheB 2012-04-05 06:36

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1186698)
key features are missing, like music-control and HtheB-style-volume-control, and its a ***** to install and run because it needs super-privileges.

Never heard of inception before? You have super priviliges if you incept the package. You can make a special version for inception users, so we can activate this.

Inception

wolke 2012-04-05 15:06

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by HtheB (Post 1188256)
Never heard of inception before? You have super priviliges if you incept the package. You can make a special version for inception users, so we can activate this.

Inception

thanks, but i know about inception;
'
this will be the first one that will work out of the box {maybe just for inception-users and open-moders, but ill do my best to make it work for anybody that can use a terminal and follow instructions in it once}.
'

the thing is that you currently need to use a terminal, and set up an upstart file that manages your path depending on how you have it set up. power users will have it set up differently, and non-power users will have know idea how to do it at all.

im hoping to make this app-store-able, which inception makes impossible. also, even using inception, i make a lot of privileged shell calls so im going to need to use aegis-ctl as well.

n9-button-monitor works very nicely out of the box, but just for open-moders right now, and anyone who knows how to use aegis-ctl when permission errors occur. {i dont know what permission errors youd get, because i havent run it on a non-hacked kernel yet}

Arie 2012-04-05 15:15

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1188432)
thanks, but i know about inception;
'
this will be the first one that will work out of the box {maybe just for inception-users and open-moders, but ill do my best to make it work for anybody that can use a terminal and follow instructions in it once}.
'

the thing is that you currently need to use a terminal, and set up an upstart file that manages your path depending on how you have it set up. power users will have it set up differently, and non-power users will have know idea how to do it at all.

im hoping to make this app-store-able, which inception makes impossible. also, even using inception, i make a lot of privileged shell calls so im going to need to use aegis-ctl as well.

n9-button-monitor works very nicely out of the box, but just for open-moders right now, and anyone who knows how to use aegis-ctl when permission errors occur. {i dont know what permission errors youd get, because i havent run it on a non-hacked kernel yet}

I don't think it being app store useable is that important. I think once the idea is implemented it's easier to work from there.

GuSec 2012-04-06 07:21

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Hi there, I'm not succeeding with your script.

I installed xresponse, x11-utils, python-qmsystem, python-qtmobility.multimediakit, python-qtmobility.systeminfo, python-pyside.qtgui and python-pyside.qtcore (is "deps" a package?). Then I created the file /usr/bin/n9-button-monitor containing v0.4 of the script. I gave this executable rights. I also created the .conf-file, and your autostart script in /etc/init/apps (/etc/init isn't writeable).

This is the output from "devel-su -c 'python /home/user/MyDocs/n9-button-monitor'":
Code:

torch on
Permission denied: opening file /home/user/.omap3cam
Starting camera without viewfinder available
Permission denied: opening file /home/user/.omap3cam
auto shut-off
torch off
Permission denied: opening file /home/user/.omap3cam

After I've locked the screen and pressed VOL+:
Code:

2: long-start
torch on
running cmd "xprop -root _NET_ACTIVE_WINDOW"
running cmd "xprop -id 0xe0006e
 WM_COMMAND"
2: long-stop
torch off
Permission denied: opening file /home/user/.omap3cam
running cmd "xprop -root _NET_ACTIVE_WINDOW"
running cmd "xprop -id 0xe0006e
 WM_COMMAND"

Nothing happens... What am I doing wrong?

wolke 2012-04-06 16:19

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by GuSec (Post 1188710)
Hi there, I'm not succeeding with your script.
....
Permission denied: opening file /home/user/.omap3cam

Nothing happens... What am I doing wrong?

first, thanks! youre the first person to try it out in the wild and tell me about it.

so, thats a root permission that i didnt realize that aegis didnt give you by default.
ive been testing it mostly on open mode, and i forgot to test the camera flash on closed mode since i changed it.

for a solution, it is probably sufficient to just run develsh first.
i.e.:
# devel-su
PASSWORD: {rootme}
# develsh
# python /usr/bin/n9-button-monitor

please lemme know if that does it, and ill update the instructions. thanks again!

GuSec 2012-04-06 17:08

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1188890)
first, thanks! youre the first person to try it out in the wild and tell me about it.

so, thats a root permission that i didnt realize that aegis didnt give you by default.
ive been testing it mostly on open mode, and i forgot to test the camera flash on closed mode since i changed it.

for a solution, it is probably sufficient to just run develsh first.
i.e.:
# devel-su
PASSWORD: {rootme}
# develsh
# python /usr/bin/n9-button-monitor

please lemme know if that does it, and ill update the instructions. thanks again!

Now it worked just fine and did exactly what it was supposed to do! It's a bit slow though, which matter most with the camera, but it may be affected by a simultaneous execution of the non working start script.

So how do I rewrite the start script to grant the correct permissions?

wolke 2012-04-06 17:38

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by GuSec (Post 1188904)
Now it worked just fine and did exactly what it was supposed to do! It's a bit slow though, which matter most with the camera, but it may be affected by a simultaneous execution of the non working start script.

So how do I rewrite the start script to grant the correct permissions?

just do devel-su -c "develsh -c 'CMD'".

try this to get it to auto-start at boot {i havent tested it on closed mode}.

/etc/init/apps/n9-button-monitor.conf
Code:

description "Startup script for n9-button-monitor"
author "elliot.wolk@gmail.com"
console none
respawn
exec bash -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'

there are 3 things that make camera actions slow:
1) the click delays {for single/long click actions, you have to wait a half second before they start. for double-click actions, you have to wait .75s. for treble-click, you dont have to wait at all, since there is no quadruple-click actions.}
this is very solvable, if you only do long-clicks, partially solvable if you never double-click or treble-click, and unsolvable if you ever wanna do double-treble clicks.

2) the condition detection {figuring out whether youre actually in the camera app, or on the screen-lock, etc} this is not particularly solvable , unless you dont mind weird behaviours in other apps {for instance, the camera-snap would make volume-up click the screen in other apps}.

3) the actions actually take time.
e.g.: the camera submodule is slow to initialize. this makes the flash bulb, for instance, take 1-2 full seconds no matter what. theres nothing you can do about this.


so! if you only care about the long press actions {flashing and the camera}, you can make it considerably faster by changing the longClickDelayMs from 500 => 1. this will effectively disable all single/double/treble click actions, though.
to do this, copy the default config on the OP to /home/user/.config/n9-button-monitor.conf and change the delay. {you have to restart the program}.

GuSec 2012-04-06 21:25

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1188915)
just do devel-su -c "develsh -c 'CMD'".

try this to get it to auto-start at boot {i havent tested it on closed mode}.

/etc/init/apps/n9-button-monitor.conf
Code:

description "Startup script for n9-button-monitor"
author "elliot.wolk@gmail.com"
console none
respawn
exec bash -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'


This did not work out (chmod 755 /etc/init/apps/n9-button-monitor.conf)! The strange thing is that "source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor" works out just fine in the terminal, it does exactly what it's supposed to. So what's up with autostart?

Extremely useful script though! I love the way I can just pull up the phone and hold one button to get a flashlight!

wolke 2012-04-06 21:44

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by GuSec (Post 1189013)
This did not work out (chmod 755 /etc/init/apps/n9-button-monitor.conf)! The strange thing is that "source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor" works out just fine in the terminal, it does exactly what it's supposed to. So what's up with autostart?

Extremely useful script though! I love the way I can just pull up the phone and hold one button to get a flashlight!

cool! glad you like it.

maybe you dont have bash, that should be 'sh' instead.
try 'start n9-button-monitor' and 'stop n9-button-monitor'

guillermorojaz 2012-04-07 01:45

Re: [Anounce] [N9] Volume/Power Button Monitor
 
HOLA. congratulations on your work. I find it very ineresante.
You could create a script to:
VOLUME + = torch - on
VOLUME - = torch - off
I would greatly appreciate it

wolke 2012-04-07 03:07

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by guillermorojaz (Post 1189084)
HOLA. congratulations on your work. I find it very ineresante.
You could create a script to:
VOLUME + = torch - on
VOLUME - = torch - off
I would greatly appreciate it

gracias!
v0.4 supports this, through modification of the config file
paste the below code into /home/user/.config/n9-button-monitor.conf

Code:

#just to torch on/off for guillermorojaz
torchAutoShutOffTimeMs=60000
longClickDelayMs=400
doubleClickDelayMs=400
trebleClickDelayMs=600
action=torchOn,volumeUp,singleClick,screenLocked
action=torchOff,volumeDown,singleClick,screenLocked

p.s.: if anyone should be overwhelmed with charitable urges and needs an outlet, ive added a flattr button and a paypal email to the first post.

p.p.s.: be careful with these easy on/off buttons for torch; the flash could turn on in your pocket.
the example above auto-turns off after 60 seconds, as a precaution against this. you can make it last longer by changing 'torchAutoShutOffTimeMs=60000' to your liking. to make the flash stay on for an hour, change it from '60000' to '3600000'.

F2thaK 2012-04-07 04:15

Re: [Anounce] [N9] Volume/Power Button Monitor
 
This is getting really good. Im yet to use it. A GUI would be awesome, I would donate if you get that far!

guillermorojaz 2012-04-07 05:08

Re: [Anounce] [N9] Volume/Power Button Monito
 
Release where the components python?

wolke 2012-04-07 05:23

Re: [Anounce] [N9] Volume/Power Button Monito
 
Quote:

Originally Posted by guillermorojaz (Post 1189117)
Release where the components python?

not sure what youre asking me;

follow the installation instructions in the first post, and then add the config file i put in the post above. {the release im talking about is the 'v0.4' link.}

GuSec 2012-04-07 13:41

Re: [Anounce] [N9] Volume/Power Button Monitor
 
I've tried for hours now. It is impossible to get it to autostart. Seriously what should I do?
Code:

description "Startup script for n9-button-monitor"

# Author e-mail address, mandatory
author "elliot.wolk@gmail.com"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

#none: stdout to /dev/null
#output: direct stdout to console
console output

#if application exits, restart max 3 times within 300 secs
respawn
#respawn limit 3 300

exec /usr/bin/aegis-exec -s -u user sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
#exec sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
#exec /usr/bin/aegis-exec -s -u user sh -c 'DISPLAY=:0 n9-button-monitor'

How can I debug it?

Now I can't start it at all from terminal. Can't get necessary permissions from develsh. How is this possible? Is aegis having fun giving permissions one day and blocking them the next?

wolke 2012-04-07 15:57

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by GuSec (Post 1189287)
I've tried for hours now. It is impossible to get it to autostart. Seriously what should I do?
Code:

description "Startup script for n9-button-monitor"

# Author e-mail address, mandatory
author "elliot.wolk@gmail.com"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

#none: stdout to /dev/null
#output: direct stdout to console
console output

#if application exits, restart max 3 times within 300 secs
respawn
#respawn limit 3 300

exec /usr/bin/aegis-exec -s -u user sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
#exec sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
#exec /usr/bin/aegis-exec -s -u user sh -c 'DISPLAY=:0 n9-button-monitor'

How can I debug it?

Now I can't start it at all from terminal. Can't get necessary permissions from develsh. How is this possible? Is aegis having fun giving permissions one day and blocking them the next?

sucks. i also had tons of trouble getting my autostart script to work, and that was on openmode.

my current hypothesis for your problem is that its running at startup with incorrect permissions, and then somehow mucking you up.

1) try starting and stopping them manually, instead of restarting. {if you change the /etc/init file, start/stop pick up on the changes instantly.}
/sbin/stop n9-button-monitor
/sbin/start n9-button-monitor

2) try putting the n9-button-monitor.conf in /etc/init instead of /etc/init/apps; /etc/init/apps scripts have restrictions on what they can and cant say about starting and stopping, and setting nice values, etc.

3) try variations on the exec like youve been doing. use full paths to executables, and try the simpler stuff first.
e.g.:
exec /usr/bin/n9-button-monitor
exec /bin/sh -c /usr/bin/n9-button-monitor

4) verify no other instances are running, with pidof n9-button-monitor {killall -9 n9-button-monitor}. make PIDs show up after starting the job, and make sure stop says its really stopping the job, instead of it wasnt running at all.


here is a script that should work for you {only in /etc/init, not in /etc/init/apps}

/etc/init/n9-button-monitor.conf
Code:

description "Startup script for n9-button-monitor"
author "elliot.wolk@gmail.com"

start on DESKTOP_VISIBLE
stop on core_shutdown

console none
respawn

exec /bin/develsh -c 'source /etc/profile; /usr/bin/n9-button-monitor'

note that i need /usr/local/bin on my path ONLY because i use the cmd() action in my config, for execs that i stuck in /usr/local/bin.
e.g.: i pause my music like this
action=cmd(udo klomp-cmd pause),volumeUp,singleClick,screenLocked

source /etc/profile is necessary to get the dbus session.

wolke 2012-04-07 17:54

Re: [Anounce] [N9] Volume/Power Button Monitor
 
yea, it seems like you cant run things as root from /etc/init/apps in closed mode. put it in /etc/init

if we cant do that, i think we need to bring inception into the picture

Jare 2012-04-13 00:10

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1189347)
Quote:

Originally Posted by GuSec (Post 1189287)
I've tried for hours now. It is impossible to get it to autostart. Seriously what should I do?
Code:

exec /usr/bin/aegis-exec -s -u user sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
#exec sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor'
#exec /usr/bin/aegis-exec -s -u user sh -c 'DISPLAY=:0 n9-button-monitor'

How can I debug it?

Now I can't start it at all from terminal. Can't get necessary permissions from develsh. How is this possible? Is aegis having fun giving permissions one day and blocking them the next?

sucks. i also had tons of trouble getting my autostart script to work, and that was on openmode.

my current hypothesis for your problem is that its running at startup with incorrect permissions, and then somehow mucking you up.

"You are holding it wrong."


Your approach won't work even with Inception. You have to do a proper debian package, which contains the needed _aegis and digsigsums files. Otherwise "root" will not be able to execute the scripts or python application as "user". Aegis-exec won't give you permissions, if those aren't requested in the first place (during installation).

Here is an example _aegis file:
Code:

<aegis>
        <request>
                <credential name="UID::user" />
                <credential name="GID::users" />
                <credential name="GRP::users" />
                <for path="/opt/n9-button-monitor/start.sh" />
                <for path="/opt/n9-button-monitor/stop.sh" />
                <for path="/opt/n9-button-monitor/n9-button-monitor.py" />
        </request>
</aegis>

You should find out, which credentials your application needs in addition to the listed above. There will be no need to use "develsh" in order to start the application, when you have included the needed credentials in the _aegis file.

The upstart script will work after installing a debian package with this file and correct digsigsums included. Digsigsums should be added for "n9-button-monitor.py", "start.sh" and "stop.sh". In order to autostart the application as "user", you need to execute it like this:
Code:

exec /usr/bin/aegis-exec -s -l -u user /opt/n9-button-monitor/start.sh
All third party upstart scripts must be in "/etc/init/apps" or they won't be executed during startup.

wolke 2012-04-13 18:27

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Jare (Post 1191421)
"You are holding it wrong."

Your approach won't work even with Inception. You have to do a proper debian package, which contains the needed _aegis and digsigsums files. Otherwise "root" will not be able to execute the scripts or python application as "user". Aegis-exec won't give you permissions, if those aren't requested in the first place (during installation).

mmhmm, i was in the middle of making such a deb last weekend, but my jobby job got jobby.

p.s.: is there really no way to put a file in /etc/init even with an incepted deb? nokia debs put stuff there; i guess those debs update the immutable-dir hash somehow.

Jare 2012-04-14 13:55

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1191741)
p.s.: is there really no way to put a file in /etc/init even with an incepted deb? nokia debs put stuff there; i guess those debs update the immutable-dir hash somehow.

I haven't really investigated this. I think it should be possible with Inception, but is it absolutely necessary? Isn't it enough that the daemon starts automatically during start-up? At least I didn't have any autostart issues after creating a deb with _aegis and digsigsums. I didn't even use Inception during installation and the flashlight, camera shutter and my own script work fine. Which of your program's functions need more rights than are already available in the stock installation?

Watchmaker 2012-04-16 21:30

Re: [Anounce] [N9] Volume/Power Button Monitor
 
If/when this will be a deb install with a GUI to configure it, I'll be glad to use it and pay for it! Just sayin' :P

qwazix 2012-04-16 21:53

Re: [Anounce] [N9] Volume/Power Button Monitor
 
me too

too short

Arie 2012-04-16 23:16

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1191741)
mmhmm, i was in the middle of making such a deb last weekend, but my jobby job got jobby.

p.s.: is there really no way to put a file in /etc/init even with an incepted deb? nokia debs put stuff there; i guess those debs update the immutable-dir hash somehow.

Ask itsnotabigtruck and a few others. He is the head of inception.

wolke 2012-04-17 17:22

Re: [Anounce] [N9] Volume/Power Button Monitor
 
build a deb, aegisized.

turns out i need 'GRP :: pulse-access' to work the flash...

wolke 2012-04-17 18:35

Re: [Anounce] [N9] Volume/Power Button Monitor
 
anyone wanna test the deb in the OP?

all you should need to do is install the deb {and the dependencies}, and it should work immediately. {if you reboot, it will start back up after a minute}

you can stop it and restart it as root like this:
stop apps/n9-button-monitor
start apps/n9-button-monitor

anig 2012-04-18 06:54

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Just installed the deb. Works great thanks.

Dousan 2012-04-18 11:49

Re: [Anounce] [N9] Volume/Power Button Monitor
 
I've tried the .deb file from the first post but I'm running onto problems when installing it.
1. It wont install with either the app manager nor with xterm "apt-get install".
2. When trying to install the dependency packages it's abborting with an error code 1 (aegis rejecting it).
3. apt-get -f install same problem as 2.
4. It's breaking alot of installed apps when trying to install the n9_monitor.deb, wich can be fixed by reinstalling one of the broken apps.
If you need more info just ask, if you want i can upload screenshots.

Regards Dousan...

I've flashed a custom zImage/kernel to be able to dualboot Nitdroid, could that be the issue?

wolke 2012-04-18 16:25

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Dousan (Post 1193793)
I've tried the .deb file from the first post but I'm running onto problems when installing it.
1. It wont install with either the app manager nor with xterm "apt-get install".
2. When trying to install the dependency packages it's abborting with an error code 1 (aegis rejecting it).
3. apt-get -f install same problem as 2.
4. It's breaking alot of installed apps when trying to install the n9_monitor.deb, wich can be fixed by reinstalling one of the broken apps.
If you need more info just ask, if you want i can upload screenshots.

Regards Dousan...

I've flashed a custom zImage/kernel to be able to dualboot Nitdroid, could that be the issue?

apt-get is for installing packages that come from repositories, not manually downloaded deb packages. to install this, you should type "dpkg -i n9-button-monitor*.deb". {you can then do "apt-get -f install" to automatically fetch missing dependencies and complete the install, if you like, or you can just install the dependencies first}

HOWEVER, if you cant apt-get install the dependencies, then something is wrong with your system. these packages are available through normal repositories, and should all 'just work'.

this will show you where the packages are coming from:
{they should all be downloads.maemo.nokia.com}
{run as root}
Code:

apt-cache policy xresponse x11-utils python-qmsystem python-qtmobility.multimediakit python-qtmobility.systeminfo python-pyside.qtgui python-pyside.qtcore
if youre still having trouble, paste that output, the aegis-rejecting output from installing the dependencies, and the output of this
{run as root}
Code:

cat /etc/apt/sources.list.d/*
p.s. i dont know anything about dual booting nitdroid, but i do flash zany kernels all the time, and it shouldnt affect this.

Dousan 2012-04-18 16:38

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Thanks for your reply wolke, i'll try it again.

My mistake, it's a mis type of command, i did use dpkg -i 'your.deb' file to try to install it through xterm.

Regards Dousan...

Dousan 2012-04-18 17:43

Re: [Anounce] [N9] Volume/Power Button Monitor
 
I get this with 'apt-cache policy' command

Code:

# apt-cache policy xresponse x11-utils python
-qmsystem python-qtmobility.multimediakit pytho
n-qtmobility.systeminfo python-pyside.qtgui pyt
hon-pyside.qtcore
xresponse:
  Installeret: 0.3.2-1osso29+0m6
  Kandidat: 0.3.2-1osso29+0m6
  Versionstabel:
    0.3.2-1osso29+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    0.3.2-1osso29+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
 *** 0.3.2-1osso29+0m6 0
        100 /var/lib/dpkg/status
x11-utils:
  Installeret: 7.5+4-meego441+0m6
  Kandidat: 7.5+4-meego441+0m6
  Versionstabel:
    7.5+4-meego441+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    7.5+4-meego441+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
 *** 7.5+4-meego441+0m6 0
        100 /var/lib/dpkg/status
python-qmsystem:
  Installeret: (ingen)
  Kandidat: 0.1-0maemo5+0m6
  Versionstabel:
    0.1-0maemo5+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    0.1-0maemo5+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
python-qtmobility.multimediakit:
  Installeret: (ingen)
  Kandidat: 0.2.2.1-0maemo3+0m6
  Versionstabel:
    0.2.2.1-0maemo3+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    0.2.2.1-0maemo3+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
    0.2.2-0maemo4+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
python-qtmobility.systeminfo:
  Installeret: (ingen)
  Kandidat: 0.2.2.1-0maemo3+0m6
  Versionstabel:
    0.2.2.1-0maemo3+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    0.2.2.1-0maemo3+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
    0.2.2-0maemo4+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
python-pyside.qtgui:
  Installeret: (ingen)
  Kandidat: 1.0.7-1maemo2+0m6
  Versionstabel:
    1.0.7-1maemo2+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    1.0.7-1maemo2+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
    1.0.2-1maemo1+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
python-pyside.qtcore:
  Installeret: (ingen)
  Kandidat: 1.0.7-1maemo2+0m6
  Versionstabel:
    1.0.7-1maemo2+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
    1.0.7-1maemo2+0m6 0
        500 http://harmattan-dev.nokia.com harmattan/sdk/free Packages
    1.0.2-1maemo1+0m6 0
        500 https://downloads.maemo.nokia.com ./ Packages
~ #

And the 'cat /etc/apt/sources.list.d/*'

Code:

# cat /etc/apt/sources.list.d/*
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/001 ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/apps ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/tools ./
deb http://repo.apps.formeego.org/harmattan/apps/ ./ #Apps for MeeGo
deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free #Harmattan developer repository
deb http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ ./ #Community shared repository
deb-exec /usr/bin/osa
deb http://qtlabs.org.br/~lmoura/qt5 unstable main xcb
~ #

Regards Dousan...

wolke 2012-04-18 17:45

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Dousan (Post 1193947)
I get this with 'apt-cache policy' command
...
And the 'cat /etc/apt/sources.list.d/*'
...
Regards Dousan...


you left out the important part; can i see the error when you try to install the dependencies?

apt-get install xresponse x11-utils python-qmsystem python-qtmobility.multimediakit python-qtmobility.systeminfo python-pyside.qtgui python-pyside.qtcore

Dousan 2012-04-18 17:53

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1193948)
you left out the important part; can i see the error when you try to install the dependencies?

apt-get install xresponse x11-utils python-qmsystem python-qtmobility.multimediakit python-qtmobility.systeminfo python-pyside.qtgui python-pyside.qtcore

Ohh, sorry, here we go

Code:

# apt-get install xresponse x11-utils python-
qmsystem python-qtmobility.multimediakit python
-qtmobility.systeminfo python-pyside.qtgui pyth
on-pyside.qtcore
Reading package lists
Building dependency tree
Reading state information... Done
Building dependency tree
Reading state information... Done
xresponse is already the newest version.
x11-utils is already the newest version.
x11-utils set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  python-pyside.qtcore: Depends: libpyside1.0 (>= 1.0.5) but it is not going to be installed
                        Depends: libshiboken1.0 (>= 1.0.5) but it is not going to be installed
                        Depends: python-support (>= 0.90.0) but it is not going to be installed
  python-pyside.qtgui: Depends: libpyside1.0 (>= 1.0.5) but it is not going to be installed
                      Depends: libshiboken1.0(>= 1.0.5) but it is not going to be installed
                      Depends: python-support(>= 0.90.0) but it is not going to be installed
  python-qmsystem: Depends: libpyside1.0 but it is not going to be installed
                  Depends: libshiboken1.0 butit is not going to be installed
                  Depends: python-support (>=0.90.0) but it is not going to be installed
  python-qtmobility.multimediakit: Depends: libpyside1.0 but it is not going to be installed
                                  Depends: libshiboken1.0 but it is not going to be installed
                                  Depends: python-support (>= 0.90.0) but it is not going tobe installed
                                  Depends: python-pyside.qtnetwork but it is not going to beinstalled
  python-qtmobility.systeminfo: Depends: libpyside1.0 but it is not going to be installed
                                Depends: libshiboken1.0 but it is not going to be installed
                                Depends: python-support (>= 0.90.0) but it is not going to beinstalled
                                Depends: python-pyside.qtnetwork but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~ #

Regards Dousan...

wolke 2012-04-18 17:56

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Dousan (Post 1193951)
Ohh, sorry, here we go

Code:

# apt-get install xresponse x11-utils python-
qmsystem python-qtmobility.multimediakit python
-qtmobility.systeminfo python-pyside.qtgui pyth
on-pyside.qtcore
Reading package lists
Building dependency tree
Reading state information... Done
Building dependency tree
Reading state information... Done
xresponse is already the newest version.
x11-utils is already the newest version.
x11-utils set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  python-pyside.qtcore: Depends: libpyside1.0 (>= 1.0.5) but it is not going to be installed
                        Depends: libshiboken1.0 (>= 1.0.5) but it is not going to be installed
                        Depends: python-support (>= 0.90.0) but it is not going to be installed
  python-pyside.qtgui: Depends: libpyside1.0 (>= 1.0.5) but it is not going to be installed
                      Depends: libshiboken1.0(>= 1.0.5) but it is not going to be installed
                      Depends: python-support(>= 0.90.0) but it is not going to be installed
  python-qmsystem: Depends: libpyside1.0 but it is not going to be installed
                  Depends: libshiboken1.0 butit is not going to be installed
                  Depends: python-support (>=0.90.0) but it is not going to be installed
  python-qtmobility.multimediakit: Depends: libpyside1.0 but it is not going to be installed
                                  Depends: libshiboken1.0 but it is not going to be installed
                                  Depends: python-support (>= 0.90.0) but it is not going tobe installed
                                  Depends: python-pyside.qtnetwork but it is not going to beinstalled
  python-qtmobility.systeminfo: Depends: libpyside1.0 but it is not going to be installed
                                Depends: libshiboken1.0 but it is not going to be installed
                                Depends: python-support (>= 0.90.0) but it is not going to beinstalled
                                Depends: python-pyside.qtnetwork but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~ #

Regards Dousan...

ok, please paste this output:
apt-get install libpyside1.0 libshiboken1.0 python-support python-pyside.qtnetwork -s

Dousan 2012-04-18 17:58

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1193952)
ok, please paste this output:
apt-get install libpyside1.0 libshiboken1.0 python-support python-pyside.qtnetwork -s

Here you go:

Code:

# apt-get install libpyside1.0 libshiboken1.0
 python-support python-pyside.qtnetwork -s
Reading package lists
Building dependency tree
Reading state information... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  n9-button-monitor: Depends: python-qmsystem but it is not going to be installed
                    Depends: python-qtmobility.multimediakit but it is not going to be installed
                    Depends: python-qtmobility.systeminfo but it is not going to be installed
                    Depends: python-pyside.qtgui but it is not going to be installed
                    Depends: python-pyside.qtcore but it is not going to be installed
  python-pyside.qtnetwork: Depends: python-pyside.qtcore (= 1.0.7-1maemo2+0m6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~ #


wolke 2012-04-18 17:59

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Dousan (Post 1193953)
Here you go:

Code:

# apt-get install libpyside1.0 libshiboken1.0
 python-support python-pyside.qtnetwork -s
Reading package lists
Building dependency tree
Reading state information... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  n9-button-monitor: Depends: python-qmsystem but it is not going to be installed
                    Depends: python-qtmobility.multimediakit but it is not going to be installed
                    Depends: python-qtmobility.systeminfo but it is not going to be installed
                    Depends: python-pyside.qtgui but it is not going to be installed
                    Depends: python-pyside.qtcore but it is not going to be installed
  python-pyside.qtnetwork: Depends: python-pyside.qtcore (= 1.0.7-1maemo2+0m6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~ #


whoops, can you run "apt-get -f install", then rerun this?

wolke 2012-04-18 18:01

Re: [Anounce] [N9] Volume/Power Button Monitor
 
nevermind, its probably this causing it:
deb http://qtlabs.org.br/~lmoura/qt5 unstable main xcb

implies you are using unstable qt5 libs that are breaking dependencies.

Dousan 2012-04-18 18:02

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by wolke (Post 1193954)
whoops, can you run "apt-get -f install", then rerun this?

Sure thing:

Code:

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies...Done
The following extra packages will be installed:
  libpyside1.0 libshiboken1.0
  python-pyside.qtcore python-pyside.qtgui
  python-pyside.qtnetwork python-qmsystem
  python-qtmobility.multimediakit
  python-qtmobility.systeminfo python-support
The following NEW packages will be installed
  libpyside1.0 libshiboken1.0
  python-pyside.qtcore python-pyside.qtgui
  python-pyside.qtnetwork python-qmsystem
  python-qtmobility.multimediakit
  python-qtmobility.systeminfo python-support
0 upgraded, 9 newly installed, 0 to remove and6 not upgraded.
1 not fully installed or removed.
Need to get 0B/6,484kB of archives.
After this operation, 20.7MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
aegis-deb-release: Missing ':' in ' b27838cd7450c6f10d39ce9491ec20a1 756954 free/source/Sources
 d91852b967d8dbeab6248c6f1556405c 224347 free/source/Sources.gz
 144e299a324fedc82763cb3ddfacadd1743cd7ed 756954 free/source/Sources
 44afe3219b48edd1fe357726716df2e02dcf4759 224347 free/source/Sources.gz
 c3ca448e424cefa1c2f1468847a2230fccea9ef3afafcb5cd927cd99914e8cea 756954 free/source/Sources
 f507ece4b736634f52ef579e5742313df4ba1b19da1f9483f8bb2e214e578690 224347 free/source/Sources.gz
'
Aegis rejecting /var/cache/apt/archives/python-support_1.0.8maemo5+0m6_all.deb: package 'python-support' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-qtmobility.systeminfo_0.2.2.1-0maemo3+0m6_armel.deb: package 'python-qtmobility.systeminfo' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-qtmobility.multimediakit_0.2.2.1-0maemo3+0m6_armel.deb: package 'python-qtmobility.multimediakit' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-qmsystem_0.1-0maemo5+0m6_armel.deb: package 'python-qmsystem' origin cannot be determined  --signature check failed
Aegis rejecting /var/cache/apt/archives/python-pyside.qtnetwork_1.0.7-1maemo2+0m6_armel.deb: package 'python-pyside.qtnetwork' origin cannotbe determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-pyside.qtgui_1.0.7-1maemo2+0m6_armel.deb: package 'python-pyside.qtgui' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-pyside.qtcore_1.0.7-1maemo2+0m6_armel.deb: package 'python-pyside.qtcore' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/libshiboken1.0_1.0.7-1maemo1+0m6_armel.deb: package 'libshiboken1.0' origin cannot be determined  --signature check failed
Aegis rejecting /var/cache/apt/archives/libpyside1.0_1.0.7-1maemo2+0m6_armel.deb: package 'libpyside1.0' origin cannot be determined  -- signature check failed
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.
Updating desktop entries... Done
E: Sub-process /usr/bin/dpkg returned an errorcode (255)
~ # apt-get install libpyside1.0 libshiboken1.0
 python-support python-pyside.qtnetwork -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  n9-button-monitor: Depends: python-qmsystem but it is not going to be installed
                    Depends: python-qtmobility.multimediakit but it is not going to be installed
                    Depends: python-qtmobility.systeminfo but it is not going to be installed
                    Depends: python-pyside.qtgui but it is not going to be installed
                    Depends: python-pyside.qtcore but it is not going to be installed
  python-pyside.qtnetwork: Depends: python-pyside.qtcore (= 1.0.7-1maemo2+0m6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~ #

Regards Dousan...

wolke 2012-04-18 18:12

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Quote:

Originally Posted by Dousan (Post 1193956)
Sure thing:

Code:

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies...Done
The following extra packages will be installed:
  libpyside1.0 libshiboken1.0
  python-pyside.qtcore python-pyside.qtgui
  python-pyside.qtnetwork python-qmsystem
  python-qtmobility.multimediakit
  python-qtmobility.systeminfo python-support
The following NEW packages will be installed
  libpyside1.0 libshiboken1.0
  python-pyside.qtcore python-pyside.qtgui
  python-pyside.qtnetwork python-qmsystem
  python-qtmobility.multimediakit
  python-qtmobility.systeminfo python-support
0 upgraded, 9 newly installed, 0 to remove and6 not upgraded.
1 not fully installed or removed.
Need to get 0B/6,484kB of archives.
After this operation, 20.7MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
aegis-deb-release: Missing ':' in ' b27838cd7450c6f10d39ce9491ec20a1 756954 free/source/Sources
 d91852b967d8dbeab6248c6f1556405c 224347 free/source/Sources.gz
 144e299a324fedc82763cb3ddfacadd1743cd7ed 756954 free/source/Sources
 44afe3219b48edd1fe357726716df2e02dcf4759 224347 free/source/Sources.gz
 c3ca448e424cefa1c2f1468847a2230fccea9ef3afafcb5cd927cd99914e8cea 756954 free/source/Sources
 f507ece4b736634f52ef579e5742313df4ba1b19da1f9483f8bb2e214e578690 224347 free/source/Sources.gz
'
Aegis rejecting /var/cache/apt/archives/python-support_1.0.8maemo5+0m6_all.deb: package 'python-support' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-qtmobility.systeminfo_0.2.2.1-0maemo3+0m6_armel.deb: package 'python-qtmobility.systeminfo' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-qtmobility.multimediakit_0.2.2.1-0maemo3+0m6_armel.deb: package 'python-qtmobility.multimediakit' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-qmsystem_0.1-0maemo5+0m6_armel.deb: package 'python-qmsystem' origin cannot be determined  --signature check failed
Aegis rejecting /var/cache/apt/archives/python-pyside.qtnetwork_1.0.7-1maemo2+0m6_armel.deb: package 'python-pyside.qtnetwork' origin cannotbe determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-pyside.qtgui_1.0.7-1maemo2+0m6_armel.deb: package 'python-pyside.qtgui' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/python-pyside.qtcore_1.0.7-1maemo2+0m6_armel.deb: package 'python-pyside.qtcore' origin cannot be determined  -- signature check failed
Aegis rejecting /var/cache/apt/archives/libshiboken1.0_1.0.7-1maemo1+0m6_armel.deb: package 'libshiboken1.0' origin cannot be determined  --signature check failed
Aegis rejecting /var/cache/apt/archives/libpyside1.0_1.0.7-1maemo2+0m6_armel.deb: package 'libpyside1.0' origin cannot be determined  -- signature check failed
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.
Updating desktop entries... Done
E: Sub-process /usr/bin/dpkg returned an errorcode (255)
~ # apt-get install libpyside1.0 libshiboken1.0
 python-support python-pyside.qtnetwork -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  n9-button-monitor: Depends: python-qmsystem but it is not going to be installed
                    Depends: python-qtmobility.multimediakit but it is not going to be installed
                    Depends: python-qtmobility.systeminfo but it is not going to be installed
                    Depends: python-pyside.qtgui but it is not going to be installed
                    Depends: python-pyside.qtcore but it is not going to be installed
  python-pyside.qtnetwork: Depends: python-pyside.qtcore (= 1.0.7-1maemo2+0m6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
~ #

Regards Dousan...

ok, so i dont think its your xcb/qt5 repo thats breaking it, but it could be.

i have absolutely no idea why those wont install. fix the dep problems, then apt-get update && apt-get upgrade, then try again.

Dousan 2012-04-18 18:25

Re: [Anounce] [N9] Volume/Power Button Monitor
 
Thanks for your help wolke :)

when i do 'apt-get update' i get this error


W: GPG error: http://repo.apps.formeego.org ./Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 700116F6792563E3
~ #

Regards Dousan...

e: shouldn't one be cautious with 'apt-get upgrade'?


All times are GMT. The time now is 19:12.

vBulletin® Version 3.8.8