Writings Photos Code Contact Resume

You are here

Acer Embedded Controller no spinlock patch updated to

Submitted by msameer on Mon, 12/06/2006 - 1:25pm

OK, Without this patch, My laptop suffers from jumpy touchpad and sticky keys. It's mainly because the Linux ACPI implementation is trying to access the battery state through the laptop embedded controller. The problem is that this access causes lost interrupts which leads to the above problems.

The patch was only for 2.6.14 and was not updated to 2.6.16. It doesn't apply. I was stuck until I decided to port it. It's working fine since a couple of minutes ;-)

Here it is anyway. But be aware. I feel the touchpad is not in the usual state I used to. I'm not sure how.

Linux 2.6 SUX!

Submitted by msameer on Sat, 18/02/2006 - 2:04am

First, I know that I should STFU because I'm not going to write a patch to fix it but I can't as I'm not a kernel developer and the knowledge I have about the kernel development is the same as the knowledge I have about T.V internals ;-)

Really 2.6 is annoying, I don't know what's wrong with Linus. Yes thanks Linus for releasing Linux as a GPL'ed kernel and for working on it but you still suck :-)

A few days ago I went to the office, Powered on my laptop, startx and errrrrrr. I'm not allowed to startx. WTF ?

After digging around for some times I discovered that the Xwrapper.config file has been replaced by a strange file, I discovered later that it was the fonts.dtd file from the fontconfig package. WTF !!

Simply, I fixed the file and managed to startx, Something wrong with the colors ? I finally discovered that the rgb.txt file has been truncated. I also discovered that a lot of directories has been turned into files. I was sure that someone didn't crack my laptop. After I fixed this, I was trying to switch my keyboard layout to Arabic but it didn't work. Open a terminal and damn! "setxkbmap" is crashing, Google told me that some files might be missing. I reinstalled the relevant debian packages and it worked.

I had to stop and consider it, Is it a file system corruption ? I never had this with Linux before. I rebooted using a live CD, Ran fsck but it was fine. Odd!

I booted my normal system back and started to work, I'm a full time employee after all and this suck when you want to poke around :-)

Never mind, I'll have a detailed look later.

I was doing something when I suddenly got a message on the terminal and the file system was remounted read only by the kernel.

ext3_free_blocks_sb: bit already cleared for block

Enough is enough, The night before I installed the 2.6.15 kernel from sid. Now I can say that it might be a corruption in the kernel data structures. I rebooted and fsck again, shit I never had any entries in my lost+found directory since I swotched to linux, Now I have something like 22 Megabytes.

That's it, I downgraded the kernel to the 2.6.15 from testing, kept rebooting and running fsck until it stopped reporting filesystem errors.

Now what ? I'm not going to reinstall ? Sure no.

I need to verify all the packages, I found debsums but I also discovered that not all the packages install an md5sum for their contents.

At that point I decided to go home.

I used debsums to verify all the packages with md5sumsand reinstalled all the packages with corrupted or missing files. I then reinstalled all the packages without md5sums for 2 reasons:
1) I can't tell whether they contain corrupted files or not.
2) To allow debsums to generate md5sums for them.

Now the only problem is that the md5sums files might be corrupted too but I decided that I'm still lucky ;-)

Everything was fine but I was really considering FreeBSD but then I thought about it again, I can't use it without trying to contribute but I don't like to contribute to a code under the BSD license which can be closed anytime.

Also, I won't be using stable, I'll be using release which is equivalent to Debian testing, It's also my fault that I used a kernel from unstable but come on, That's Linux, We are not talking about windows here. I mean even so, It should be stable.

Sure I wish I can report this as a bug but how ? I don't have any information to report.

The other problem is: How the hell am I supposed to use such a kernel when it enters testing ?

I can't also compile from source again for 2 reasons:
1) I've been building from source since the late 2.2, I tried building 2.6.15 some time ago but damn, mutt wasn't able to open my main inbos, grep complained about inability to allocate memory when I tried to grep through the ~500 MB file. Something is wrong and this makes me afraid.

2) If such a bug is there when we have a team of people maintaining the Debian package, How can I be sure that I won't hit something more sever when I'm on my own ?

I know that everything can have bugs but the filesystem driver ? Isn't this too much ??

كيفية تظبيط الوينموطم الموتورولا اللى باباه بوبى

Submitted by msameer on Sat, 01/10/2005 - 12:11am

اولا احب اكتب مقدمة

طبعا كلنا عارفين ان نظام التشغيل هو البرنامج اللى بينزل على الكمبيوتر علشان يخلينا نتعامل معاه
انا مثلا باستخدم جنو لينوكس و اتوقع ان اغلب الناس بتستخدم نسخ غير اصلية من نظام مايكروسوفت المعروف باسم النوافذ

المودم ده الجهاز اللى بيخلينا نتصل بالانترنت و ده كان منتشر قبل ال دى اس ال

اى مكون من مكونات الكمبيوتر حتى الشاشة و لوحة المفاتيح محتاجة برنامج صغير "driver" علشان نظام التشغيل يتعامل معاه

الوينمودم ده عبارة عن مودم عادى جدا بس الشركة اللى بتصنعة عملت يرنامج تشغيله لنظام النوافذ بس

ايه موضوع المودم الموتورولا "sm56" ؟

ده وينمودم عملته موتورولا و لما بطلت الشركة تدعمه قام بقدرة قادر باه يتباع فى مصر

طبعا الناس كانت بتفشل فى تشغيله على اللينوكس
و كان الحل يجيبوا مودم خارجى من النوع اللى بيتوصل بجهاز الكمبيوتر عن طريق المنفذ التسلسلى serial port لان ده بيشتغل و المضوع اتحل

فى يوم موتورولا نزلت driver علشان اللينوكس يعرف يتعامل مع المودم ده

بس طبعا نزلته ل ريدهات و لاصدار قديم منه

طبعا الناس بتحاول تشغله على اصدار اجدد ما يشتغلش ييجوا يسالونا نقولهم مش هايشتغل يقوموا يقولوا لا ليه درايفر

خلاص انتم احرار نزلوا الاصدار القديم من ريدهات

طبعا ينزلوه و يشغلو المودم بس يبطوا فى كذا مشكله منها ان البرامج قديمة و العربى مش شغال و كده

الحل ؟

اخر ما اتخنقنا يوسف اسعد

كتب البتاعة دى و اتنشرت على موقع مجموعة مستخدمى جنو لينوكس مصر

كنا ساعتها فى الاول و بنتناقش ايه هى حدود الحديث اللى ممكن نتكلم فيها

لما يوسف نشر دى الناس عقلت و لغينا نشرها

بدون تفاصيل مصطفى حسين مسحها و خلاص انتهت من على النت و ماحدش لاقيها
انا كنت متاكد ان عندى نسخة مطبوعة فى مكان ما

امبارح كنا عند غربية و افتكرناها "على فكرة احمد غربية عنده المودم ده"
دورت عليها و لقيتها و قعدت كتبتها على الكمبيوتر

على فكرة فيها شتيمة فاللى ماعندوش استعداد يقرا شتيمة بلاش يقراها
ادى البتاعة اهى

Replacing the laptop harddisk.

Submitted by msameer on Tue, 12/07/2005 - 2:28am

This should've been posted a few days ago.
I replaced the harddisk myself, Please take care that if you do this you'll lose the warrantee
Dad gave me his acer travel mate and took me Toshiba satellite.

[img_assist|fid=844|thumb=1|alt=The new one in a plastic bag]
[img_assist|fid=846|thumb=1|alt=Out of the plastic bag.]
[img_assist|fid=849|thumb=1|alt=Out of the plastic and antistatic coat.]
[img_assist|fid=851|thumb=1|alt=Take the old one out.]
[img_assist|fid=853|thumb=1|alt=The old and the new, Which is which ?]
[img_assist|fid=851|thumb=1|alt=Take the old one out.]
[img_assist|fid=857|thumb=1|alt=Prepare yourself for spinning.]
[img_assist|fid=859|thumb=1|alt=Laptop up and running now, Installing windows for my father.]
[img_assist|fid=861|thumb=1|alt=And GNU/Debian for myself.]

Please note that the manufacturers are smart, You shouldn't unscrew more than 2 screws to get to the harddisk because they don't want the maintenance guys to break anything. Find a blank lace on the side with a screw near it and start from there. for the toshiba one I had to unscrew only one screw which is in the other side of the CD-ROM and that's it. You'll find a plastic strip and the drive'll come out easely if u gently pull it.
In the acer one the harddisk is visible if you take the battery out.