OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> "bl" Backlight Control For 5500
mitt
post Nov 25 2005, 07:31 PM
Post #1





Group: Members
Posts: 16
Joined: 8-October 05
Member No.: 8,272



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.
Go to the top of the page
 
+Quote Post
Greg2
post Nov 26 2005, 07:00 AM
Post #2





Group: Members
Posts: 790
Joined: 28-October 03
From: USA
Member No.: 792



QUOTE(mitt @ Nov 25 2005, 10:31 PM)
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
Go to the top of the page
 
+Quote Post
mitt
post Nov 26 2005, 07:29 AM
Post #3





Group: Members
Posts: 16
Joined: 8-October 05
Member No.: 8,272



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
Go to the top of the page
 
+Quote Post
mitt
post Nov 26 2005, 07:55 AM
Post #4





Group: Members
Posts: 16
Joined: 8-October 05
Member No.: 8,272



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
Go to the top of the page
 
+Quote Post
lardman
post Nov 28 2005, 04:06 AM
Post #5





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th November 2014 - 12:42 AM