OMNewRotateLittle daemon that sits in the background and, with as low resources as possible, rotate your screen according to it's position.
|
Rating: 0 Rate:
|
||||||||||||
|
CommentsxChris wrote: (2009-07-14 12:25:47)
It works OK under the SHR(unstable).
Can you add, please, a deactivation feature? like when we run this application for second time, the application kills itself.. xChris wrote: (2009-07-14 13:14:01)
I just remove it from my SHR-unstable the reasons:
autostarts on the system boot and make a mess on the screen,, elhennig wrote: (2009-07-16 09:29:16)
A switch to start and stop omnewrotate interactively is pretty simple:
Add the following to /etc/init.d/omnewrotate and change the config in /etc/default/omnewrotate.conf to START="no" ----------------8<------------------ #!/bin/sh if [ -f ${sysconfdir}/default/omnewrotate.conf ] ; then . ${sysconfdir}/default/omnewrotate.conf fi export DIPLAY=:0 case "$1" in start) exec /usr/bin/omnewrotate $OPTIONS & ;; stop) pid=`ps ax | grep -v grep | grep /usr/bin/omnewrotate| awk '{print $1}'` [ -n "$pid" ] && kill $pid ;; restart) $0 stop $0 start ;; switch) pid=`ps ax | grep -v grep | grep /usr/bin/omnewrotate| awk '{print $1}'` if [ -n "$pid" ]; then $0 stop else $0 start fi ;; *) echo "Usage: /etc/init.d/omnewrotate {start|stop|restart|switch}" exit 1 ;; esac ----------------8<------------------ Then change the Exec line in /usr/share/applications/omnewrotate.desktop: ----------------8<------------------ Exec=/etc/init.d/omnewrotate switch ----------------8<------------------ bitwise wrote: (2009-08-10 00:37:45)
Thank you i have serched for long time it!!
mifa wrote: (2009-10-21 07:20:19)
Thanks elhennig, the start/stop script works great.
Tim Abell wrote: (2009-12-28 16:15:52)
i didn't like the fact it started itself everytime i resumed from suspend.
this fixed it: root@om-gta02 /etc/apm $ chmod -x resume.d/89omnewrotate-resume suspend.d/11omnewrotate-suspend
|








