Logo
Marzo 12, 2010, 05:26:46
 
New PostsTotal Posts: 37301
New PostsTotal Topics: 2436
New PostsTotal Members: 373
New PostsLatest Member: Tibioplalay
Benvenuto! Accedi o registrati.
Hai dimenticato l'e-mail di attivazione?

Login with username, password and session length
Pagine: [1]   Go Down
  Print  
Autore Topic: Rimuovere il Lock Screen  (Read 599 times)
Gennaio 25, 2009, 01:54:15
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« on: Gennaio 25, 2009, 01:54:15 »

Come da oggetto, come si fa a rimuovere quell'odioso lock screen (quello di OM)Huh utilizzando siglaunchd sono riuscito ad assegnare al tasto AUX un altro lock, ma adesso non so come disabilitare questo!!! XD
Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Gennaio 25, 2009, 09:17:19
Treviño
WebDev
Hero Member
*****
Posts: 1150


| 3v1n0 |


View Profile WWW
« Rispondi #1 on: Gennaio 25, 2009, 09:17:19 »

Code:
# Remove the Enlightenment binding for AUX
enlightenment_remote -binding-key-del ANY "Keycode-177" NONE 1 "simple_lock" ""

# Restore Enlightenment mapping
enlightenment_remote -binding-key-add ANY "Keycode-177" NONE 1 "simple_lock" ""

Wink

Come hai configurato siglaunchd, tanto per info (non l'ho ancora provato...)
Logged

Treviño's Misc Openmoko Files - http://3v1n0.net/openmoko
Gennaio 26, 2009, 08:31:56
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« Rispondi #2 on: Gennaio 26, 2009, 08:31:56 »

mi da questo output:
Code:
The E_IPC_SOCKET environment variable is not set. This is
exported by Enlightenment to all processes it launches.
This environment variable must be set and must point to
Enlightenment's IPC socket file (minus port number).
ERROR: Enlightenment_remote cannot set up the IPC socket.
Try setting DISPLAY=:0 in your environment.
l'ho dato da ssh ovviamente settando prima export DISPLAY=:0
Cosa devo fare?
Comunque siglaunchd è semplicissimo da usare, ha il suo file nella home (.siglaunchconf mi sembra) e li dentro basta che cambi il nome del comando da eseguire Wink
[EDIT] Ok ho esportato la variabile Smiley ho seguito il procedimento scritto qua per scoprirla
http://wiki.openmoko.org/wiki/Wrench
Grazie mille Trevi! Ciau! [/EDIT]
« Last Edit: Gennaio 26, 2009, 09:37:01 by xela92 » Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Gennaio 27, 2009, 10:41:46
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« Rispondi #3 on: Gennaio 27, 2009, 10:41:46 »

Scusa ma avrei un'altra cosa da chiederti... Visto che siglaunchd funziona solo col framework (e quindi su FTOM non funziona) come faccio a settare alla pressione di AUX l'esecuzione di un comando? Ho provato a usare enlightenment_remote ma ovviamente non riconosce il comando, e ho fatto anche un altro paio di prove ma non mi riconosce mai il comando... C'è un modo per farlo, oltre a siglaunchd?
Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Gennaio 28, 2009, 12:32:44
Treviño
WebDev
Hero Member
*****
Posts: 1150


| 3v1n0 |


View Profile WWW
« Rispondi #4 on: Gennaio 28, 2009, 12:32:44 »

Beh, basterebbe un semplice demone che scansiona un evento da input e se si tratta dell'AUX avvia un programma. Avevo trovato tempo fa uno script in python che lo faceva, ma ora non ricordo dove :| (guarda in ML, cmq... Non erano più di 40 righe)
Logged

Treviño's Misc Openmoko Files - http://3v1n0.net/openmoko
Gennaio 28, 2009, 10:07:42
djdas
Hero Member
*****
Posts: 2349


Namastè - Om Mani Pedmè Hung


View Profile
« Rispondi #5 on: Gennaio 28, 2009, 10:07:42 »

Faccio una ricerca anch'io perché una volta mi è capitato (giocando con le keycodes per attivare le accentate di qwo) di disattivare il tasto aux Wink Quindi magari c'è modo di rimapparlo in qualche modo.... dovrebbeessere comunque il keycode 177 se non ricordo male....ti farò sapere, ciau! (sarebbe utile ad es potere chiamare un programma qualunque ad es per il cambio del profilo Wink )
Ci studio sopra Wink
Ciau!
Logged

Distro FDTF Download: TAR ,JFFS2,Kernel
Gennaio 28, 2009, 12:04:13
BiggMatt
Mattia
Global Moderator
Hero Member
*****
Posts: 1880



View Profile
« Rispondi #6 on: Gennaio 28, 2009, 12:04:13 »

Magari si potrebbe associare alla pressine dell'AUX una specie di script grafico a mo di 2007.2, con varie opzioni, tipo ruota schermo, blocca schermo, attiva gps... riunendo i vari script sparsi come rotator o gpsdcontrol...
Logged

Per i lavoretti grafici che non potevo postare piu nella firma, perchè non ci entravano, visitate:
Il mio Blog nuovo nuovo, sezione openmoko!
Gennaio 28, 2009, 03:04:49
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« Rispondi #7 on: Gennaio 28, 2009, 03:04:49 »

Sì si potrebbe... Ma a me per ora basta assegnargli il blocco schermo (ovviamente NON quello di default!)...! Cheesy Magari più tardi faccio una ricerca...
[EDIT] non ho trovato niente... Se qualcuno trova qualcosa... Grazie mille... [/EDIT]
« Last Edit: Gennaio 28, 2009, 07:22:57 by xela92 » Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Gennaio 29, 2009, 04:42:58
Treviño
WebDev
Hero Member
*****
Posts: 1150


| 3v1n0 |


View Profile WWW
« Rispondi #8 on: Gennaio 29, 2009, 04:42:58 »

Eccolo trovato: http://filmsbykris.com/freerunner-debian/ko-user/ko-aux

Lo posto anche qui per tenerlo caro (ovviamente basta cambiare il comando in os.popen per farlo funzionare come si vuole):
Code:
#!/usr/bin/python

#Created by Kris Occhipinti
#filmsbykris.com
#Dec. 28 2008
#Copyright 2008 Kris Occhipinti
#program is distributed under the terms of the GNU GPL

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

import struct
from math import sqrt
import os
import time

button = "/dev/input/event0"
keyboard=0

#int, int, short, short, int
fmt = 'iihhi'

#Read button input
in_file = open(button,"rb")
event = in_file.read(16)
while event:
        (time1,time2, type, code, value) = \
                struct.unpack(fmt,event)

        if type == 1 & code == 169 & value == 1:
keyboard=keyboard+1
a = os.popen("screenlocker")
# if (keyboard % 2) == 0:
# a = os.popen("killall matchbox-keyboard;matchbox-keyboard")
# else:
#                 a = os.popen("killall matchbox-keyboard","w")

        event = in_file.read(16)
in_file.close()


Era linkato qui: http://lists.openmoko.org/nabble.html#nabble-td2039907 Wink
« Last Edit: Gennaio 29, 2009, 04:53:14 by Treviño » Logged

Treviño's Misc Openmoko Files - http://3v1n0.net/openmoko
Gennaio 29, 2009, 03:53:05
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« Rispondi #9 on: Gennaio 29, 2009, 03:53:05 »

Eccolo trovato: http://filmsbykris.com/freerunner-debian/ko-user/ko-aux

Lo posto anche qui per tenerlo caro (ovviamente basta cambiare il comando in os.popen per farlo funzionare come si vuole):
Code:
#!/usr/bin/python

#Created by Kris Occhipinti
#filmsbykris.com
#Dec. 28 2008
#Copyright 2008 Kris Occhipinti
#program is distributed under the terms of the GNU GPL

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

import struct
from math import sqrt
import os
import time

button = "/dev/input/event0"
keyboard=0

#int, int, short, short, int
fmt = 'iihhi'

#Read button input
in_file = open(button,"rb")
event = in_file.read(16)
while event:
        (time1,time2, type, code, value) = \
                struct.unpack(fmt,event)

        if type == 1 & code == 169 & value == 1:
keyboard=keyboard+1
a = os.popen("screenlocker")
# if (keyboard % 2) == 0:
# a = os.popen("killall matchbox-keyboard;matchbox-keyboard")
# else:
#                 a = os.popen("killall matchbox-keyboard","w")

        event = in_file.read(16)
in_file.close()


Era linkato qui: http://lists.openmoko.org/nabble.html#nabble-td2039907 Wink
Grandissimo!!!! Come fai ad avere sempre la soluzione ad ogni nostro problema??? Sei la nostra panacea!!! Tongue Grazie mille!!! Più tardi lo provo!! Smiley
Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Gennaio 30, 2009, 06:59:12
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« Rispondi #10 on: Gennaio 30, 2009, 06:59:12 »

Ci sono riuscito!!! Cheesy Ora ho solo una domanda: come faccio a metterlo all'avvio? XD
[EDIT] ce l'ho fatta Smiley ho creato lo script di /etc/init.d e ho dato updaterc.d screenlocker defaults 10 50, ora spero che funzioni! Smiley Grazie mille... Wink [/EDIT]
[EDIT2] ok mi si è impiantato il moko!!! Ho deciso che creo un file .desktop che gestisca il ko-aux, e direi che va più che bene (così se non mi serve è un processo in meno per il moko Wink )
Bye! [EDIT2]
« Last Edit: Gennaio 30, 2009, 09:36:34 by xela92 » Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Gennaio 31, 2009, 01:42:49
Treviño
WebDev
Hero Member
*****
Posts: 1150


| 3v1n0 |


View Profile WWW
« Rispondi #11 on: Gennaio 31, 2009, 01:42:49 »

Il file di avvio mettilo in /etc/X11/Xsession.d/ così verrà lanciato all'avvio di X.
Logged

Treviño's Misc Openmoko Files - http://3v1n0.net/openmoko
Gennaio 31, 2009, 02:07:27
xela92
Hero Member
*****
Posts: 3723



View Profile WWW
« Rispondi #12 on: Gennaio 31, 2009, 02:07:27 »

Geniale grazie mille!!! Smiley ti devo mooooolte birre mi sa Cheesy
Logged

~ I see your true colors, shining through... ~
Flash: Di tutto e di più XD A rotazione
SD: QtMoko V8, FDTF, SHR
Pagine: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC
Oranj By Burak