maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Powerlaunch 0.7 Broken (https://talk.maemo.org/showthread.php?t=18691)

OSEmuTech 2008-04-03 23:34

Powerlaunch 0.7 Broken
 
Ever since I tried installing Powerlaunch 0.7 on my N800 running OS 2008 (latest release) it has been broken and doesn't work.

I've been unable to uninstall it or upgrade it to 0.8. I've tried the Application Manager in Red Pill mode and apt-get & dpkg force remove\install\upgrade while root.

Now it's preventing me from installing the latest Evince (which I manged to install via apt-get while root but the Application Manager says is broken). No other packages are broken.

I'm not showing that any other package depends on Powerlaunch, but when I try installing some apps the Application Manager lists PowerLaunch 0.8 as being a package required to install the unrelated app.

Does anyone know the proper way of force removing Powerlaunch. Should I post the output of some X-terminal command for more info?

Thank you very much for any assistance.

cashless 2008-04-03 23:53

Re: Powerlaunch 0.7 Broken
 
I think this last release has more problems than the previous version. I upgraded and now soft poweroff doesn't work and when I lock the screen & keys, the command to get them unlocked is missing characters...

tso 2008-04-04 00:07

Re: Powerlaunch 0.7 Broken
 
the text of said message seems like its trying to replicate the default message on a n810. notice the use of slide rather then press.

for me powerlaunch is something i install, use for a bit and then uninstall as there is something that irks me. like how it messes with the charge screen when charging while the device is "off". or how it seems to not properly lock the screen.

austin 2008-04-04 04:49

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by cashless (Post 164768)
I think this last release has more problems than the previous version. I upgraded and now soft poweroff doesn't work and when I lock the screen & keys, the command to get them unlocked is missing characters...

Sorry, I didn't notice the incorrect message on the N800. The device check has a slight error which is easy to fix. In /etc/powerlaunch/tklock.conf, you can replace the two occurrences of "is_N810" with "$isN810" or you can replace that file with https://garage.maemo.org/plugins/scm...ot=powerlaunch

Regarding softpoweroff, it works fine for me. If you have more details, that'd be great. Also, tso, details about why you think it's not properly locking the screen would be useful.

With respect to "messing with the charge screen", there's not much choice with messing with that screen as it is normally handled by systemui which is no longer running. If you want to help make powerlaunch look more like systemui or perhaps how you would like it to, I'd be happy to assist. But as I never turn my device off, that's one screen I never really see.

qwerty12 2008-04-04 06:07

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by OSEmuTech (Post 164760)
Ever since I tried installing Powerlaunch 0.7 on my N800 running OS 2008 (latest release) it has been broken and doesn't work.

I've been unable to uninstall it or upgrade it to 0.8. I've tried the Application Manager in Red Pill mode and apt-get & dpkg force remove\install\upgrade while root.

Now it's preventing me from installing the latest Evince (which I manged to install via apt-get while root but the Application Manager says is broken). No other packages are broken.

I'm not showing that any other package depends on Powerlaunch, but when I try installing some apps the Application Manager lists PowerLaunch 0.8 as being a package required to install the unrelated app.

Does anyone know the proper way of force removing Powerlaunch. Should I post the output of some X-terminal command for more info?

Thank you very much for any assistance.

For me, dpkg --purge --force-all powerlaunch partly worked but I got error messages about files in the /etc folder so I would delete them or move them (if they were mce ones) and keep on purging.

austin 2008-04-04 12:17

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by qwerty12 (Post 164863)
For me, dpkg --purge --force-all powerlaunch partly worked but I got error messages about files in the /etc folder so I would delete them or move them (if they were mce ones) and keep on purging.

It would be useful if someone could post what the error is. I've tried a couple successive "apt-get remove powerlaunch" and "apt-get install powerlaunch" with no problems. I noticed there might be an issue on removing if it's unable to restart mce/systemui. In particular, if mce/systemui is already running, an error is thrown on "invoke-rc.d mce start". If there's another problem of uninstalling when neither mce/systemui is running, that'd be good to know.

tso 2008-04-04 12:40

Re: Powerlaunch 0.7 Broken
 
On the screen lock thing i cant really pinpoint anything except that i believe i have found my n800 with the screen on but buttons locked. A combo that should not be possible Iirc as the screen turns of when the lock is turned off.

On the charge while of part its mostly that one can open the power menu while the device is charging, with on way of getting it to go away again Iirc. And i think the animation do not animate properly.

qwerty12 2008-04-04 12:55

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by austin (Post 164937)
It would be useful if someone could post what the error is. I've tried a couple successive "apt-get remove powerlaunch" and "apt-get install powerlaunch" with no problems. I noticed there might be an issue on removing if it's unable to restart mce/systemui. In particular, if mce/systemui is already running, an error is thrown on "invoke-rc.d mce start". If there's another problem of uninstalling when neither mce/systemui is running, that'd be good to know.

I can't rememeber exactly but it's something like
"/etc/rc2.d/S**powerd exists"
install failed
mv /etc/rc2.d/S**powerd /etc/rc2.d/S**powerd1
installing again
"/etc/rc2.d/S**powerlaunch exists"
mv /etc/rc2.d/S**powerlaunch /etc/rc2.d/S**powerlaunch1

(yes, sorry for the above but it's kinda what happens)
Now, if I move back the files, it still messes up so I symlink manually from /etc/init.d to the S**... etc files and it works.

Somehow, I've always noticed this problem when all the files in the rc2 folder are not symlinked back to the init.d folders - the files in rc2 are the files from init.d not symlinked and with the S** in front.

austin 2008-04-04 13:48

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by qwerty12 (Post 164947)
Somehow, I've always noticed this problem when all the files in the rc2 folder are not symlinked back to the init.d folders - the files in rc2 are the files from init.d not symlinked and with the S** in front.

I'm not sure how you get non-symlinks in rcN.d in the first place, but I just tried creating a couple non-symlink files and I couldn't replicate an error like that no matter what I did. I could always do an apt-get remove powerlaunch successfully.

tso 2008-04-04 14:08

Re: Powerlaunch 0.7 Broken
 
hmm, one more interesting thing. when i look at the menu now, it says "normal mode" as one of the options. funny thing is that im not in offline mode. sure, the wifi isnt connected to any AP, but nor is it fully turned of, and i have bluetooth turned on but not connected to anything either.

should it not read "offline mode"?

ah, never mind. its fixed in the latest update :)

austin 2008-04-04 14:19

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by tso (Post 164944)
On the screen lock thing i cant really pinpoint anything except that i believe i have found my n800 with the screen on but buttons locked. A combo that should not be possible Iirc as the screen turns of when the lock is turned off.

On the charge while of part its mostly that one can open the power menu while the device is charging, with on way of getting it to go away again Iirc. And i think the animation do not animate properly.

I assume by "buttons locked" you mean that it's disabled and not that you're in the software tklock mode. You are correct that it shouldn't be possible as dsme is responsible for re-enabling the keys/screen when the display turns on. The only thing I can think of is this previous bug https://bugs.maemo.org/show_bug.cgi?id=2311

Regarding the animation, it animates fine for me. The one known issue is that it doesn't detect battery state so doesn't tell you when it's fully charged. I just tested it and although I couldn't get the power menu to pop up, there is an issue of bringing it back on from the actdead state. That's something that should be fixed.

austin 2008-04-04 14:40

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by tso (Post 164971)
hmm, one more interesting thing. when i look at the menu now, it says "normal mode" as one of the options. funny thing is that im not in offline mode. sure, the wifi isnt connected to any AP, but nor is it fully turned of, and i have bluetooth turned on but not connected to anything either.

should it not read "offline mode"?

ah, never mind. its fixed in the latest update :)

Actually it's not fixed. It determines whether it's online by making a connection_status dbus call to wlancond. From what I can tell, this only returns whether there's a connection or not. So being in normal mode and not connected to an AP is indistinguishable from being in the offline mode. I don't believe there's a direct way of determining whether one is in offline mode (from dbus or gconf). Thanks for pointing out this problem.

Edit: Ok really fixed in latest update (v. 0.8-2). Now powerlaunch itself keeps track of the offline/normal state. It should be consistent now. The only difference is that when powerlaunch is initialized/reloaded, it forces it into normal mode regardless of the previous mode so that it knows what state it's in.

Benson 2008-04-04 15:05

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by tso (Post 164944)
On the screen lock thing i cant really pinpoint anything except that i believe i have found my n800 with the screen on but buttons locked. A combo that should not be possible Iirc as the screen turns of when the lock is turned off.

On the charge while of part its mostly that one can open the power menu while the device is charging, with on way of getting it to go away again Iirc. And i think the animation do not animate properly.

The screen lock trouble happens when the screen and keys are locked, then some alert message comes up and turns the screen on (but still locked) to display; at least that's what I recall.

That charging bit is rectifiable by changing the config; but as the power-button hold to wake out of charging mode didn't always seem to work (and as I rarely have it shut off or play-dead charging), I haven't messed with it.

OSEmuTech 2008-04-04 21:14

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by qwerty12 (Post 164863)
For me, dpkg --purge --force-all powerlaunch partly worked but I got error messages about files in the /etc folder so I would delete them or move them (if they were mce ones) and keep on purging.

Thanks qwerty12. This is what I get when I do that:

/home/user # dpkg --purge --force-all powerlaunch
dpkg - warning, overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 27583 files and directories currently installed.)
Removing powerlaunch ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S21powered"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S21powered"
dpkg: error processing powerlaunch (--purge):
subprocess pre-removal script returned error exit status 102
invoke-rc.d: not a symlink: "/etc/rc2.d/S21powered"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S21powered"
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 102
Errors were encountered while processing:
powerlaunch
:mad:

austin 2008-04-04 21:53

Re: Powerlaunch 0.7 Broken
 
What is /etc/rc2.d/S21powered? Is it a symlink or not? The two error messages are contradictory. I'm not sure how it can be "not a symlink" and a "dangling symlink" at the same time. This seems similar to https://bugs.launchpad.net/ubuntu/+s...mba/+bug/48082 and the solution seems to be just "rm /etc/rc2.d/S21powered". I can't find any reason for why something like this happens in the first place.

OSEmuTech 2008-04-04 23:46

Re: Powerlaunch 0.7 Broken
 
Thanks to everyone who added to this thread! ;)

I used X-Terminal to launch emelFM2 as root (sudo gainroot) and deleted the S21powered file in /etc/rc2.d/, then ran dpkg --purge --force-all powerlaunch.

This reported another symlink error for a different file in /etc/rc2.d/, so I deleted that one and ran dpkg --purge --force-all powerlaunch.

This reported another symlink error for a different file, etc.

After deleting a number of files, I finally have powerlaunch unistalled! :):):):):)

OSEmuTech 2008-04-06 13:50

Re: Powerlaunch 0.7 Broken
 
Damn. But now I can't shut off my N800 by pressing the power button! :mad:

In desperation, I tried installing the latest powerlaunch 0.8.2 but it also didn't install correctly and is broken. :mad:

Anyone know what OS 2008 system software package is installable in Red Pill Mode that will restore the file in /etc/rc2.d/ that will allow me to shut my N800 off?

qwerty12 2008-04-06 15:23

Re: Powerlaunch 0.7 Broken
 
Hehe, you did the same thing as me.

Purge all off the powerlaunch again and remove all the powerlaunch files and wait a sec :)

(Meanwhile halt as root will power off the unit)

Ok, before I help, do you want powerlaunch or mce (the default power thing :p)

OSEmuTech 2008-04-06 15:27

Re: Powerlaunch 0.7 Broken
 
Thank you for your offer of assistance qwerty12. After wasting time trying to get it fixed, I grew impatient and flashed my N800. Right now I'm about to start reinstalling everything. There goes my day off.

qwerty12 2008-04-06 15:30

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by OSEmuTech (Post 165803)
Thank you for your offer of assistance qwerty12. After wasting time trying to get it fixed, I grew impatient and flashed my N800. Right now I'm about to start reinstalling everything. There goes my day off.

:(, I know what you mean. I reflashed 1st time this happened to me. And I've just managed to reinstall everything now after reflashing a few days ago.

tso 2008-04-13 09:29

Re: Powerlaunch 0.7 Broken
 
i just bumped into a interesting feature/bug while using powerlaunch.

if the device is in offline mode, and something tries to get online, one would normally get a prompt asking if one want to leave offline mode. but with powerlaunch, it just silently ignores it so to speak.

austin 2008-04-13 20:04

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by tso (Post 169125)
if the device is in offline mode, and something tries to get online, one would normally get a prompt asking if one want to leave offline mode. but with powerlaunch, it just silently ignores it so to speak.

Should be fixed in 0.8-3. Thanks.

craves1 2008-04-13 20:26

Re: Powerlaunch 0.7 Broken
 
I had to uninstall powerlaunch from my N800 because the display would not shutoff when I stop using the tablet. I uninstalled powerlaunce and everything is fine. This is the second version I installed and the same thing happened with the first version I installed.

The other thing I found was if the N800 was charging and you shut it down with powerlaunce and disconnected the charger. The charger Icon would stay on the screen. I would have to remove the battery to get it to go away. All is now normal since I uninstalled it.

This is only what I have found on my tablet. I also have a lot of other software installed so who knows what conflicts there are.

craves1

tso 2008-04-13 22:36

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by austin (Post 169290)
Should be fixed in 0.8-3. Thanks.

the reason for me referring to it as a bug/feature is that said way of doing things could be interesting for some. so if there is a simple way to turn on or off said behavior it could be nice ;) (im guessing its a simple question of a comment marker in a config file somewhere?)

austin 2008-04-14 20:42

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by tso (Post 169340)
the reason for me referring to it as a bug/feature is that said way of doing things could be interesting for some. so if there is a simple way to turn on or off said behavior it could be nice ;) (im guessing its a simple question of a comment marker in a config file somewhere?)

I guess the whole point of powerlaunch is that there are an infinite number of such customizations that one may want to do and it doesn't stop you from doing it. I agree that a simple way to control such things would be useful. I've thought about creating a preferences config file which simply contains variables declaring user desires. But then I couldn't figure out what those standard preferences would be.

tso 2008-04-14 22:16

Re: Powerlaunch 0.7 Broken
 
heh, i guess so. and as pr default powerlaunch tries to mimic the default menu, i guess its mostly a bug. if me or anyone else want the "buggy" behavior, we have to mod it in there by ourselves.

qwerty12 2008-04-16 07:01

Re: Powerlaunch 0.7 Broken
 
Hehe, I love powerlaunch now. :)

Thanks Austin!

I've got the hang of the config files :)

The only things I would like are :
- Startup locking support. I switch it on Settings and my N800 carries on booting. But when I configured powerlaunch to use mce over powered it didn't. Any chance of loading mce temporarily? The lock screen gets executed at osso-systemui-early.
- Making Alarms work. Even with the device on, no alarms go off. With mce they work fine.

I also had a problem where if I shutdown the device with a song playing, it would play again next time I started up.. Not good where teachers confiscate such items doing that :P . I added mpc pause to the mpd init script which works fine but is there a cleaner way?

Also, thought about updating the mpc.conf file?

My one now has toggle set to the big play button, the screen refreshes itself 0.01 seconds, menu button is to choose random play and the home button launches mmpc.

austin 2008-04-29 16:40

Re: Powerlaunch 0.7 Broken
 
Quote:

Originally Posted by qwerty12 (Post 170392)
The only things I would like are :
- Startup locking support. I switch it on Settings and my N800 carries on booting. But when I configured powerlaunch to use mce over powered it didn't. Any chance of loading mce temporarily? The lock screen gets executed at osso-systemui-early.
- Making Alarms work. Even with the device on, no alarms go off. With mce they work fine.

I also had a problem where if I shutdown the device with a song playing, it would play again next time I started up.. Not good where teachers confiscate such items doing that :P . I added mpc pause to the mpd init script which works fine but is there a cleaner way?

Also, thought about updating the mpc.conf file?

Startup locking: In theory, you should be able to implement that via powerlaunch only. That is, on powerlaunch startup (in main.on_init), you could check if you should immediately switch to system.devicelock-locked. Currently, powerlaunch doesn't record whether it's in device lock so that state isn't being saved. You could either save it either by writing to a file or use what mce/systemui apparently use (the gconf value /system/osso/dsm/locks/devicelock_failed)

Alarms: I'm not too clear how alarms work or what mce's role is. I will have to look into it more.

Regarding mpd starting up on bootup, that's really a mpd problem. In some sense, it's a feature that it saves the state. But I agree it's annoying. Probably the right thing to do so that it doesn't depend on mpc is in the mpd init script to modify the mpd state file to have "state: stop" before starting mpd.


All times are GMT. The time now is 10:13.

vBulletin® Version 3.8.8