Author Topic: Turn Off Lcd With Gpe Possible?  (Read 4522 times)

richie

  • Newbie
  • *
  • Posts: 44
    • View Profile
Turn Off Lcd With Gpe Possible?
« on: January 10, 2006, 03:40:47 pm »
Hi

Is it possible to switch off the LCD whilst listening to music using OZ/GPE? There was an applet thing for the Sharp roms using Qtopia, but I can't find anything for GPE, does anything exist?

thanks
Rich

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Turn Off Lcd With Gpe Possible?
« Reply #1 on: January 11, 2006, 07:46:47 am »
What machine are you using (and if it's a clamshell, what version of the kernel?)?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

richie

  • Newbie
  • *
  • Posts: 44
    • View Profile
Turn Off Lcd With Gpe Possible?
« Reply #2 on: January 11, 2006, 08:50:36 am »
Quote
What machine are you using (and if it's a clamshell, what version of the kernel?)?


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110419\"][{POST_SNAPBACK}][/a][/div]

Zaurus 5500 collie

thanks
Rich

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Turn Off Lcd With Gpe Possible?
« Reply #3 on: January 11, 2006, 09:18:49 am »
FYI the applets should work with the compat libs.

GPE has a screen off timeout afaik, but you need my version of bl from http://people.bath.ac.uk/enpsgp/Zaurus/bl/

Download the ipk file and extract the bl binary from it (as ipkg won't accept the arm5 arch) and stick that binary in /usr/bin.

You can then issue 'bl off', 'bl on', 'bl x' where x is from 0-255.

This will also allow the ipaq-sleep daemon to control the backlight settings.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

darmou

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Turn Off Lcd With Gpe Possible?
« Reply #4 on: January 12, 2006, 10:32:17 am »
Quote
You can then issue 'bl off', 'bl on', 'bl x' where x is from 0-255.

This will also allow the ipaq-sleep daemon to control the backlight settings.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110432\"][{POST_SNAPBACK}][/a][/div]

Lardman your binary does not work on a collie.  You need to use the slbl program instead.

Basic usage:
 slbl 0 (off) through to slbl 4 (very bright)

It is part of the slutils console package for openzaurus.

darmou

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Turn Off Lcd With Gpe Possible?
« Reply #5 on: January 12, 2006, 11:53:48 am »
My binary should work on the collie, it's been tested.

What was the error message?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

darmou

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Turn Off Lcd With Gpe Possible?
« Reply #6 on: January 13, 2006, 01:32:56 am »
Quote
My binary should work on the collie, it's been tested.

What was the error message?


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110656\"][{POST_SNAPBACK}][/a][/div]

collie:/media/card/home/root> # ./bl
on 25
Illegal instruction

using 1 as a parameter:

collie:/media/card/home/root> # ./bl 1
Illegal instruction

Hope this helps,

darmou
« Last Edit: January 13, 2006, 01:34:27 am by darmou »

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Turn Off Lcd With Gpe Possible?
« Reply #7 on: January 13, 2006, 03:53:39 am »
someone built it for armv5 probably...

lardman: qtopia applets/inputmethods will not work even with sharp-compat-libs.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Turn Off Lcd With Gpe Possible?
« Reply #8 on: January 13, 2006, 06:44:51 am »
Quote
someone built it for armv5 probably...

Indeed I did, but I'd heard that it ran okay on the collies.

I'll build a new version for arm4 (or if you have OE you can do it yourself - build bl-0.0 (not cvs))


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva