OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: totoetlititi on May 10, 2004, 10:13:40 am
-
I\'m searching a way to turn off the screen (the applet \"LCD switch\") when I push the button \"menu\"...
In \"settings\" \"Application key\", I can only launch application with the key, no applet...
It is possible ?
-
The easier way to do this is probably to create an icon that runs a script containing the following:
#!/bin/sh
qcop QPE/System \'setBlankLCD(int)\' 1
This script does the same thing as the LCD applet. Then you can define this to be run by pressing the Menu button.
-
Thanks !
But there is no way to use directly my applet ?
-
If you are using Cacko ROM 1.21 (at least), you can do something like that with Keyhelper.
PS: c\'est tout expliqué sur le forum PDAFrance ;-)
-
lol!
mon anglais est si terrible ???...!!!!
but I have a sl5500 with the sharp rom 3.13... no cacko rom !
And I can\'t use \"qcop ...\" in a script...
What is the end of the script ?$
\"&\", \";\",\"exit\"... ?
-
Thanks !
But there is no way to use directly my applet ?
Create a desktop icon to call your script. Then you can assign it to a key.
BTW, is there a list out there somewhere of everything that you can do with qcop? I would like to see what else can be done, hopefully things like changing screen brightness, rotating the screen, changing dimming timeouts, and I can probably think of many more.
-
Keyhelper will work with the SL5500 Sharp 3.x ROMs but that is not needed for something as simple as this. Like DrWowe said, create the script as a text file as above an put it in /home/QtPalmtop/bin ensuring it is in Unix text format. Make it executable and then create a desktop icon with the Tab Setting app and set the Exec field to the script file name (not the full path). You can then use this on the Menu button using the Application Keys app.
As for the QCOP messages, the standard Trolltech ones are listed here:
http://doc.trolltech.com/qtopia1.6/html/qcop.html (http://doc.trolltech.com/qtopia1.6/html/qcop.html)
However Sharp\'s Qtopia has a few extra undocumented ones, like setBlankLCD. Also you have to look at the Qtopia source code to figure out what you\'re supposed pass to things like setScreenSaverInterval which somewhat unintuitively controls the screen dimming and autosuspend. I\'m not sure if the Trolltech setDefaultRotation is the same as the one in Sharp\'s Qtopia since Sharp implemented rotation before Trolltech I think, or at least independently. Without the source code, the best you can do is grep libqpe for qcop strings.
-
I made a script, an icon an file.desktop, and.... it works !
(I just made an error: \"SetBlankLCD(int)\" instead of \"setBlankLCD(int)\"... !!!)