Active Topics

 


Reply
Thread Tools
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#1
the bug with indicator LED not shining anymore when device gets locked in bright daylight (>1000LUX) got identified and fixed:

Create a backup of /usr/lib/mce/modules/libfilter-brightness-als.so, just in case
Code:
IroN900:~# ll /usr/lib/mce/modules/libfilter-brightness-als.so
-rw-r--r-- 1 root root 36952 2013-11-23 07:45 /usr/lib/mce/modules/libfilter-brightness-als.so
IroN900:~# md5sum /usr/lib/mce/modules/libfilter-brightness-als.so
b061876d6fe017bd3baeff2600c800e9  /usr/lib/mce/modules 1/libfilter-brightness-als.so

cp /usr/lib/mce/modules/libfilter-brightness-als.so \
/usr/lib/mce/modules/libfilter-brightness-als.so_backup
in any hex editor of your choice (e.g. mc) open the file /usr/lib/mce/modules/libfilter-brightness-als.so for edit, and change byte at address 0x86a8 from 0x00 to 0x05
save the file with byte changed

[edit] (probably needs sed-gnu! busybox sed seems to fail)
Code:
IroN900:~# od -A x -tx1 /usr/lib/mce/modules/libfilter-brightness-als.so \
|grep '05 00 00 00 05 00 00 00 00 00 00 00' \
&& sed -i -E 's/\x05\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00/\x05\x00\x00\x00\x05\x00\x00\x00\x05\x00\x00\x00/' \
     /usr/lib/mce/modules/libfilter-brightness-als.so \
&&od -A x -tx1 /usr/lib/mce/modules/libfilter-brightness-als.so|grep '0086a0'
0086a0 05 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00
0086a0 05 00 00 00 05 00 00 00 05 00 00 00 00 00 00 00
ATTENTION! This command sequence is a really nasty hack that doesn't check for byte position at all and simply replaces ALL occurences of the pattern. In this specific case the pattern _seems_ to be unique, so it works. No warranty though! if with the above code another than the 0086a0 line is printed, something went terribly wrong and you should restore your backup you made (mv /usr/lib/mce/modules/libfilter-brightness-als.so_backup /usr/lib/mce/modules/libfilter-brightness-als.so)

cheers
jOERG

http://mg.pov.lt/maemo-ssu-irclog/%2...11-23T06:20:48
Code:
als_profile_struct led_als_profiles_rx51[] = {
	{
		{ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
		{ 0, 0, 0, 0, 0, 0 }
	}, {
		{ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
		{ 0, 0, 0, 0, 0, 0 }
	}, {
		{
			{ 32, 64 },
			{ 100, 1000 },
			{ -1, -1 },
			{ -1, -1 },
			{ -1, -1 },
		}, { 5, 5, 0, 0, 0, 0 }
	}, {
		{ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
		{ 0, 0, 0, 0, 0, 0 }
	}, {
		{ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
		{ 0, 0, 0, 0, 0, 0 }
	}
};
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2016-02-08 at 14:28.
 

The Following 11 Users Say Thank You to joerg_rw For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#2
care to elaborate how to fix that on the source code level? I will put some time on mce these days and will include that fix.
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 10 Users Say Thank You to freemangordon For This Useful Post:
Reply

Tags
bugfix, mce-fix, notifier-led


 
Forum Jump


All times are GMT. The time now is 22:03.