Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Radek Polak pson...@seznam.cz writes: On Thursday, December 06, 2012 08:25:36 PM Neil Jerram wrote: Neil Jerram n...@ossau.homelinux.net writes: Radek Polak pson...@seznam.cz writes: Could people who use GTA04 as phone report contents of the file? This could help us better to monitor the situation. Here's mine: Sun Nov 18 21:18:30 GMT 2012 modem reenumerated On reflection, though, I'm confused. What now calls fix-modem-reenumerate.sh (apart from the restart-when-modem-stops-working, if that is installed)? It's called only from serial port class when restart-when-modem-stops- working.patch is applied. Ah, OK, I think I understand now. You apply restart-when-modem-stops-working.patch to your tree when building for a QtMoko release - right? - which means that the reenumeration ability is included in QtMoko releases. But I lost that reenumeration ability as soon as I did and installed my own build - probably shortly after November 18th. It also means that the high CPU state that I described can only be observed by people who do their own builds, and hence won't have affected most people. I'll include restart-when-modem-stops-working.patch in my build from now on. I think I've been seeing the high CPU state about once every 1-2 days, so I guess I should now see modem reenumeration with similar frequency. Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Wednesday, December 05, 2012 11:36:34 PM Neil Jerram wrote: Therefore I doubt that adopting the serial state kernel fix was a good reason for removing AT_OPSYS=0,2, and I think that people who don't want AT_OPSYS=0,2 (such as me) might be better advised to keep installing restart-when-modem-stops-working.patch. It's probably better to restart QtMoko, even though that might lose some application state, than to leave the phone not working and draining lots of power. The patch is still applied when building the debian package and it looks that we cant get rid of it yet. Maybe we could rework it so that it does not touch code in serial port class, move it completely to gta04 plugin and commit it. Or we could commit - ugly as it is - in case that reworking is not possible and if it would help people building from sources. Or have I misunderstood some part of this? BTW, did we ever establish that AT_OPSYS=0,2 100% avoids reenumerations? I dont know way how to 100% avoid it. 1/ without AT_OPSYS=0,2 i could make the reenumeration happen always. 2/ with AT_OPSYS=0,2 it happened very rarely. 3/ with kernel patch + 3G enabled it happened just once in last 3 weeks or so. Btw in latest release when the reenumeration happens, it's logged to /modem_reenumerate.log Could people who use GTA04 as phone report contents of the file? This could help us better to monitor the situation. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Radek Polak pson...@seznam.cz writes: Could people who use GTA04 as phone report contents of the file? This could help us better to monitor the situation. Here's mine: Sun Nov 18 21:18:30 GMT 2012 modem reenumerated ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Neil Jerram n...@ossau.homelinux.net writes: Radek Polak pson...@seznam.cz writes: Could people who use GTA04 as phone report contents of the file? This could help us better to monitor the situation. Here's mine: Sun Nov 18 21:18:30 GMT 2012 modem reenumerated On reflection, though, I'm confused. What now calls fix-modem-reenumerate.sh (apart from the restart-when-modem-stops-working, if that is installed)? Thanks, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Thursday, December 06, 2012 08:25:36 PM Neil Jerram wrote: Neil Jerram n...@ossau.homelinux.net writes: Radek Polak pson...@seznam.cz writes: Could people who use GTA04 as phone report contents of the file? This could help us better to monitor the situation. Here's mine: Sun Nov 18 21:18:30 GMT 2012 modem reenumerated On reflection, though, I'm confused. What now calls fix-modem-reenumerate.sh (apart from the restart-when-modem-stops-working, if that is installed)? It's called only from serial port class when restart-when-modem-stops- working.patch is applied. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Saturday, December 1, 2012 11:56:37, Neil Jerram wrote: Sometimes my GTA04 gets into a state where the long Power key press is no longer recognised. I've tried to investigate this, but I can't see anything in the codebase that makes a link between a long Power key press and showing the shutdown/restart menu. Does anyone know how that happens? (This is running QtMoko git HEAD code, with Qt 4.8, so this problem might not affect any releases yet.) Thanks, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community I just discovered a bit more about the state where a long Power key press does not work. My GTA04 was hot in my pocket even though it should have been suspended. I looked at it and connected over SSH and found that: - it was not suspended - long Power key press did not work - top showed qpe constantly using around 95% CPU. Then: - strace on the qpe PID showed that it was continually reading fd 16, but not getting any data - /proc showed that fd16 was /dev/ttyHS3, i.e. the modem. This is all consistent with other recent occasions when I've noticed high CPU usage, or that the modem has stopped working, and I think also with two other UI symptoms: - scrolling stops being kinetic - when using the keyboard, the pressed key pops up but doesn't pop down again until I press the next key. My guesses: - the recent kernel fix for invalid serial state notifications unfortunately isn't quite right, or isn't a complete fix. - This is also related to recent reports of faster than expected battery drainage. Regards, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Wednesday, December 05, 2012 01:36:56 PM Neil Jerram wrote: I just discovered a bit more about the state where a long Power key press does not work. My GTA04 was hot in my pocket even though it should have been suspended. I looked at it and connected over SSH and found that: - it was not suspended - long Power key press did not work - top showed qpe constantly using around 95% CPU. Then: - strace on the qpe PID showed that it was continually reading fd 16, but not getting any data - /proc showed that fd16 was /dev/ttyHS3, i.e. the modem. This is all consistent with other recent occasions when I've noticed high CPU usage, or that the modem has stopped working, and I think also with two other UI symptoms: - scrolling stops being kinetic - when using the keyboard, the pressed key pops up but doesn't pop down again until I press the next key. I have seen this state too... My guesses: - the recent kernel fix for invalid serial state notifications unfortunately isn't quite right, or isn't a complete fix. I saw one modem dissappear even with the kernel fix, so the problem is still not completely solved - although it might work now better. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Radek Polak pson...@seznam.cz writes: On Wednesday, December 05, 2012 01:36:56 PM Neil Jerram wrote: My guesses: - the recent kernel fix for invalid serial state notifications unfortunately isn't quite right, or isn't a complete fix. I saw one modem dissappear even with the kernel fix, so the problem is still not completely solved - although it might work now better. Well I've reviewed the old Modem crashing? thread, and in fact Nikolaus wrote back in February: But that has nothing to do with the usb failing/re-enumeration. (http://lists.goldelico.com/pipermail/gta04-owner/2012-February/001643.html) Therefore I doubt that adopting the serial state kernel fix was a good reason for removing AT_OPSYS=0,2, and I think that people who don't want AT_OPSYS=0,2 (such as me) might be better advised to keep installing restart-when-modem-stops-working.patch. It's probably better to restart QtMoko, even though that might lose some application state, than to leave the phone not working and draining lots of power. Or have I misunderstood some part of this? BTW, did we ever establish that AT_OPSYS=0,2 100% avoids reenumerations? Thanks, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
robin spielr...@web.de writes: I quite like being able to bring the phone back from suspend with a quick press on the powerbutton, checking what time it is and then sending it back to suspend with another quick press on the power button (but this is the standard way qtmoko does it if I am not being mistaken, or in which state does qtmoko turn if I just do a quick press on the power button; I thought it goes to suspend?!?). As the freerunner has only two hardware buttons and the aux button is reported to break sometimes, it might be a good idea to have three press duration specific settings for the power button. One idea could also be to have something like this as standard: a) 1s - suspend b) 1s 4s - show shutdown/reboot dialog c) 4s - show shutdown/reboot dialog and this behaviour being read from a text config file. so anyone who needs the b) slot to do something differently could just change it to fit his/her needs. I think that's a bit complex, and 4s is a long time to press a button for any requirement. Also I doubt that the infrastructure supports 2 different long key press times - at the moment the config file has PressedAction fields and HeldAction fields, and there's no apparent way to specify 2 difference hold times. My preference would be: a) Power key pressed - show Home page b) Power key held - show shutdown/reboot dialog c) Change the Star icon on the Home page so that it does what a Power key press currently does: i.e. it brings up a page with Favorites, Recent, Frequent and Running tabs, instead of just the Favorites page. This is because when I use the Power key, it's almost always because I want to go back to the Home page in order to do some new thing (while the application that I was in still running). Then we'd have: - for quick suspend: Power key, Lock icon - for Home page: Power key - for Favorites: Power key, Star icon - for running programs: Power key, Star icon, Running tab. Thoughts? Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Sunday, December 02, 2012 12:44:31 PM Neil Jerram wrote: robin spielr...@web.de writes: I quite like being able to bring the phone back from suspend with a quick press on the powerbutton, checking what time it is and then sending it back to suspend with another quick press on the power button (but this is the standard way qtmoko does it if I am not being mistaken, or in which state does qtmoko turn if I just do a quick press on the power button; I thought it goes to suspend?!?). As the freerunner has only two hardware buttons and the aux button is reported to break sometimes, it might be a good idea to have three press duration specific settings for the power button. One idea could also be to have something like this as standard: a) 1s - suspend b) 1s 4s - show shutdown/reboot dialog c) 4s - show shutdown/reboot dialog and this behaviour being read from a text config file. so anyone who needs the b) slot to do something differently could just change it to fit his/her needs. I think android on Freerunner had this setup. IIRC short press was context menu, longer was home and very long was the power off dialog. If someone wants to send patch for 3 states i will have no problem to commit it although i personally dont need this. My preference would be: a) Power key pressed - show Home page b) Power key held - show shutdown/reboot dialog c) Change the Star icon on the Home page so that it does what a Power key press currently does: i.e. it brings up a page with Favorites, Recent, Frequent and Running tabs, instead of just the Favorites page. This is because when I use the Power key, it's almost always because I want to go back to the Home page in order to do some new thing (while the application that I was in still running). Then we'd have: - for quick suspend: Power key, Lock icon - for Home page: Power key - for Favorites: Power key, Star icon - for running programs: Power key, Star icon, Running tab. Thoughts? Yes i'd like it this way too. I am mostly doing short press and then select Home, so this would save few clicks. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
sounds reasonable to me +1 robin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Sunday 02 December 2012 12:44:31 Neil Jerram wrote: My preference would be: a) Power key pressed - show Home page c) Change the Star icon on the Home page so that it does what a Power key press currently does: i.e. it brings up a page with Favorites, Recent, Frequent and Running tabs, instead of just the Favorites page. How about making the Home-tab default? I also usually use the short powerpress to get to the home-screen, or the program menu (via Home). Or, something else: is there a way to add Home to favourites? Finally: 4 seconds is quite long indeed, but for normal use (perhaps differing from daily use for many of us...) there is not so often a need for the shutdown menu. (That is besides setting up the system to recognize between different lengths of key press of course.) Best regards, Boudewijn signature.asc Description: This is a digitally signed message part. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Sometimes my GTA04 gets into a state where the long Power key press is no longer recognised. I've tried to investigate this, but I can't see anything in the codebase that makes a link between a long Power key press and showing the shutdown/restart menu. Does anyone know how that happens? (This is running QtMoko git HEAD code, with Qt 4.8, so this problem might not affect any releases yet.) Thanks, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
On Saturday, December 01, 2012 12:56:37 PM Neil Jerram wrote: Sometimes my GTA04 gets into a state where the long Power key press is no longer recognised. I've tried to investigate this, but I can't see anything in the codebase that makes a link between a long Power key press and showing the shutdown/restart menu. Does anyone know how that happens? Hi Neil, is this what you need? https://github.com/radekp/qtmoko/blob/master/devices/gta04/src/libraries/qtopiabase/etc/defaultbuttons.conf Radek PS: hope i will have some minutes now for your patches.. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
this would be nice to know so maybe something like short press - suspend medium press - ??? eg favourite program long press - shutdown/menu could be implemented. If I remember correctly android on freerunner has these three states for the power button. robin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Radek Polak pson...@seznam.cz writes: On Saturday, December 01, 2012 12:56:37 PM Neil Jerram wrote: Sometimes my GTA04 gets into a state where the long Power key press is no longer recognised. I've tried to investigate this, but I can't see anything in the codebase that makes a link between a long Power key press and showing the shutdown/restart menu. Does anyone know how that happens? Hi Neil, is this what you need? https://github.com/radekp/qtmoko/blob/master/devices/gta04/src/libraries/qtopiabase/etc/defaultbuttons.conf Yes, indeed, many thanks. My grep for shutdown didn't find this, because of how it's encoded here: HeldActionArgs=@ByteArray(\0\0\0\x1\0\0\0\n\0\0\0\0\x10\0s\0h\0u\0t\0\x64\0o\0w\0n) Radek PS: hope i will have some minutes now for your patches.. Thanks! Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
robin spielr...@web.de writes: this would be nice to know so maybe something like short press - suspend We already have the lock icon for lock and suspend, so I'm not sure why we need this on the power key as well. Perhaps because you're thinking of wanting to suspend when looking at some application, and aren't on the home page? medium press - ??? eg favourite program long press - shutdown/menu Those are what we already have. Personally I'm not sure I could reliably distinguish between 3 press lengths... Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko: how is long Power key press (= shutdown/restart menu) handled?
Neil Jerram neil at ossau.homelinux.net writes: robin spielraum at web.de writes: this would be nice to know so maybe something like short press - suspend We already have the lock icon for lock and suspend, so I'm not sure why we need this on the power key as well. Perhaps because you're thinking of wanting to suspend when looking at some application, and aren't on the home page? medium press - ??? eg favourite program long press - shutdown/menu Those are what we already have. Personally I'm not sure I could reliably distinguish between 3 press lengths... Neil I quite like being able to bring the phone back from suspend with a quick press on the powerbutton, checking what time it is and then sending it back to suspend with another quick press on the power button (but this is the standard way qtmoko does it if I am not being mistaken, or in which state does qtmoko turn if I just do a quick press on the power button; I thought it goes to suspend?!?). As the freerunner has only two hardware buttons and the aux button is reported to break sometimes, it might be a good idea to have three press duration specific settings for the power button. One idea could also be to have something like this as standard: a) 1s - suspend b) 1s 4s - show shutdown/reboot dialog c) 4s - show shutdown/reboot dialog and this behaviour being read from a text config file. so anyone who needs the b) slot to do something differently could just change it to fit his/her needs. best regards robin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community