[shr-testing] no screen lock
KaZeR
kazer at altern.org
Mon Apr 27 13:31:00 CEST 2009
KaZeR wrote:
>
>
>
> Helge Hafting wrote:
>>
>> Configurability is nice, but how about having "Desktop Simple Lock" set
>> up as default in the shipped image? Unless SHR is planning another
>> default use for the AUX button, that is.
>>
>> Helge Hafting
>>
>
> I second that. It was the default behavior until recently, and it was very
> convenient.
> One could then extend the use of the aux button with siglaunchd (like
> rotating the screen, i like the idea).
>
Here's the script for siglaunchd :
#!/bin/sh
# First, guess if we already are rotated
xrandr |grep "default connected 480x640+0+0 (normal left inverted right x
axis y axis) 0mm x 0mm" > /dev/null
IS_ROTATED=$?
if [[ $IS_ROTATED -gt 0 ]]; then
#Switch back to default mode
xrandr -o 0
else
#Switch to rotated mode
xrandr -o 1
fi
And the siglaunchd rule (amazing tool, btw) :
"/usr/local/bin/aux_rotate.sh"=org.freesmartphone.Device.Input;org.freesmartphone.oeventsd;/org/freesmartphone/Device/Input;Event;arg[0]=AUX,arg[1]=released,arg[2]>0
Now, short press lock screen, 1s press rotate the screen. Useful to quickly
switch to landscape mode for navit for example.
I tried omrotate in the past, but i didn't like auto-rotation. If the phone
was started in a position where it should be rotated, display was borked
until reboot.
--
View this message in context: http://n2.nabble.com/-shr-testing--no-screen-lock-tp2723596p2725453.html
Sent from the Openmoko Community mailing list archive at Nabble.com.
More information about the community
mailing list