Author Topic: "bl" Backlight Control For 5500  (Read 1858 times)

mitt

  • Newbie
  • *
  • Posts: 16
    • View Profile
"bl" Backlight Control For 5500
« on: November 25, 2005, 10:31:14 pm »
Hi I am trying to find some way to do command-line backlight control for my 5500, which is running OZ 3.5.3

I see the tool "bl" from this page:
http://people.bath.ac.uk/enpsgp/Zaurus/bl/

I downloaeded the executable "bl" and tried to run "bl 1" and it says "Illegal Instruction".

When I try to compile it myself, with my native gcc compiler, it says errors about "g_strdup_printf" being an undefined reference.  Does anyone know what library I'd have to include to get this to work?

I couldn't find a package for bl.  Does anyone know where to get it and how to install it?

My suspend/resume button doesn't work unless I load up GPE for some reason, like if I just boot to console I can't suspend or else I'll have to hit the battery change button to get it to turn back on.

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
"bl" Backlight Control For 5500
« Reply #1 on: November 26, 2005, 10:00:43 am »
Quote
I see the tool "bl" from this page:
http://people.bath.ac.uk/enpsgp/Zaurus/bl/

I downloaeded the executable "bl" and tried to run "bl 1" and it says "Illegal Instruction".
Lardman has compiled them for ARM5 arch and your 5500 is ARM4.

That said, I have read here somewhere that if you extract the binary 'bl' from the ipk (not the 'bl' listed separately) you can copy it to /usr/bin and it works with the 5500? I think that binary is stripped?

Greg

mitt

  • Newbie
  • *
  • Posts: 16
    • View Profile
"bl" Backlight Control For 5500
« Reply #2 on: November 26, 2005, 10:29:43 am »
Ok thanks, I just tried it and that one in the ipk works well.

One thing, though, just in case someone reading this doesn't know, most sites say that ipk files are just tar'd and gzipped files, but because they only contain 3 files that are already gzipped, now they just archive the three gzipped files.  So this one you have to do:

ar -x bl-0.0.ipk

then tar zxf data.tar.gz and bl is in usr/bin

Mitt

mitt

  • Newbie
  • *
  • Posts: 16
    • View Profile
"bl" Backlight Control For 5500
« Reply #3 on: November 26, 2005, 10:55:52 am »
Ok now does anyone know why when I suspend my 5500 I can't get it to turn back on without resetting it?

I changed the boot scripts so instead of running "gpe-dm" it just runs /usr/bin/login.  So I log in before I load GPE.  Suspend/resume works in GPE.  I am wondering if there is some program or module I must load that didn't get loaded in my boot process.

Mitt

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
"bl" Backlight Control For 5500
« Reply #4 on: November 28, 2005, 07:06:24 am »
Quote
Ok now does anyone know why when I suspend my 5500 I can't get it to turn back on without resetting it?

Have you performed the kernel upgrade to fix this issue?: http://openzaurus.org/wordpress/2005/07/27...rnel-on-collie/

Quote
One thing, though, just in case someone reading this doesn't know, most sites say that ipk files are just tar'd and gzipped files, but because they only contain 3 files that are already gzipped, now they just archive the three gzipped files.

There are two formats for the wrapper - the ar format is less wasteful (as it doesn't try to re-compress the gzip compressed contents), however it requires that ar be available.
Quote
See here for more info on ipkg: http://www.handhelds.org/moin/moin.cgi/Ipkg

Quote
Lardman has compiled them for ARM5 arch and your 5500 is ARM4.

Yes, my build system is set up to build for arm5, however

Quote
That said, I have read here somewhere that if you extract the binary 'bl' from the ipk (not the 'bl' listed separately) you can copy it to /usr/bin and it works with the 5500? I think that binary is stripped?

this is also true; it's a very simple program and obviously there are no arm5 instructions in it.

Quote
I downloaeded the executable "bl" and tried to run "bl 1" and it says "Illegal Instruction".

Perhaps this is an older version; I'll replace it with the one from the ipk file.

Does anyone know what library I'd have to include to get this to work?
Quote

FYI: glibc


Si

P.S. This works on c7x0 machines with 2.6.x kernels and I've just had a report that it works on 5500s with 2.4.x kernels (plus this thread of course), if anyone else would be so kind as to try it out that would be great.
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