I had the phone on usb while I was testing this, so it never suspended.
The suspend scripts conflict with the new init script approach.
Can you also remove the suspend/unsuspend scripts?
r...@om-gta02 ~ $ opkg files omnewrotate
Package omnewrotate (0.5.7+svnr61-r0.4) is installed on root and has the
following files:
/etc/apm/resume.d/89omnewrotate-resume <- *remove*
/usr/share/pixmaps/omnewrotate.png
/etc/default/omnewrotate.conf <- *remove*
/usr/bin/omnewrotate
/etc/X11/Xsession.d/89omnewrotate <- *remove*
/usr/share/applications/omnewrotate.desktop
/usr/bin/omnewrotate.sh
/etc/apm/suspend.d/11omnewrotate-suspend <- *remove*
/etc/init.d/omnewrotate <- * chmod +x *
because once you've let the phone suspend you get a second omnewrotate
process outside of the control of the new init script and you can't turn
rotation off again.
*workaround*
pkill omnewrotate
rm -f /etc/apm/resume.d/89omnewrotate-resume
rm -f /etc/X11/Xsession.d/89omnewrotate
rm -f /etc/apm/suspend.d/11omnewrotate-suspend
thanks
Tim Abell
Tim Abell wrote:
Hiya,
Firstly, thanks ever so much for putting in the effort getting my
changes to omnewrotate through. I've upgraded my SHR-T today and got the
latest version complete with init script. Woo!
Here's some observations:
*missing exec permission*
The exec permission is missing from the init script which is causing the
desktop shortcut to fail. Any chance you could get this fix rushed out?
r...@om-gta02 ~ $ opkg install omnewrotate
Installing omnewrotate (0.5.7+svnr61-r0.4) to root...
Downloading
http://build.shr-project.org/shr-testing/ipk//armv4t/omnewrotate_0.5.7+svnr61-r0.4_armv4t.ipk.
Configuring omnewrotate.
r...@om-gta02 ~ $ ls -l /etc/init.d/omnewrotate
-rw-r--r-- 1 root root 1115 Apr 22 12:03
/etc/init.d/omnewrotate
r...@om-gta02 ~ $ ps -A | grep rot
r...@om-gta02 ~ $ /usr/bin/omnewrotate.sh
/usr/bin/omnewrotate.sh: line 3: /etc/init.d/omnewrotate: Permission
denied
*workaround*
chmod +x /etc/init.d/omnewrotate
r...@om-gta02 ~ $ chmod +x /etc/init.d/omnewrotate
r...@om-gta02 ~ $ /usr/bin/omnewrotate.sh
starting omnewrotate...done
r...@om-gta02 ~ $ /usr/bin/omnewrotate.sh
stopping omnewrotate...done
*unused config file*
I also noticed that /etc/default/omnewrotate.conf is used any more and
could be removed.
Thanks for all the hard work! One small step for omnewrotate, one giant
leap for SHR :-)
Tim Abell
Rui Miguel Silva Seabra wrote:
http://blog.1407.org/2010/04/04/omnewrotate-0-5-7-is-out/
After about 11 months since the previous release, I've just released
omnewrotate 0.5.7 (after short lived 0.5.5 and 0.5.6 as I found out a
dangling patch in SHR-Unstable's recipe and did a mistake on the 0.5.6
release) which integrates Tim Abell's init script change and the
aforementioned patch.
As I'm running SHR-Unstable, your mileage may vary but it's likely it
will work :)
As usual, the download links are at the project’s Google Code site for
omnewrotate (see the featured downloads section):
* the ipk of this release (OpenPGP sig).
* and its tar ball (OpenPGP sig)
Enjoy!
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user