Sunday, May 22, 2022

Asus FX 60V laptop with probably faulty battery not charging on mains and after removal boots twice before turn on , turns off after a pre-determined time ..weird problems

Laptop Model: Asus FX 60V

(1) The issue started with battery not charging with mains on. plugging and unplugging mains cord from laptop used to sometime resume charging. Finally, even plugging and unplugging did not start the charging



(2) Initially thought that the problem might be with the charging arrangement inside the laptop as the charger was giving proper 19 v output.



(3) opened the laptop and removed the battery. switched on the laptop, laptop used to get on for a second and then turn off and then restart again, google revealed that it was normal behaviour of asus laptop if battery not present. It was also found that the batt led was steady amber(condition when battery fully charged) even without battery present



(4) continued with this behaviour for few weeks, until I found that if power was also not switched off, after shutdown and then subsequent power-up, this "switch on once, then shutdown, then switch on" behaviour did not occur


(5) A new problem started after a few weeks, the laptop would shutdown automatically while working after a few minutes. opened and tested bios battery this time, found that bios battery was 0.7 volts.ordered new bios battery and fixed it somehow using tape. the original battery was rivetted to a wire using metal plates and 2 pin header at other end connecting to motherboard. even after changing the bios battery, this auto shutdown issue persisted. 


(6) this time re-inserted the main laptop battery, and found not charging. switched off the laptop,  here i made a mistake, should have removed the battery, but forgot. next morning , I found the battery voltage totally drained close to 0 v. so either some battery circuit inside has gone faulty discharging the battery or battery itself has grown dendrites and became faulty, either way I wouldn't know. That is the end of my laptop battery and not planning to replace it because of expenses.


(6) searched and got to this video..https://www.youtube.com/watch?v=mKNmYp3h2N8&lc=Ugzp8-mCVC9_pfVhUXN4AaABAg.9a48O7-4ZXd9a48ic7v7mE

 where many in comments were saying that this issue (auto shut down) happens due to faulty keyboard. so This time decided to open everything, heatsink, fans, flat ribbon cable to keyboard, LEDs, touchpad etc. initially suspected that some clogging might be there in heaksink and thereby due to thermal issue, auto shutdown was happening. however, the heatsink was not much clogged, cleaned it nevertheless. cleaned the motherboard backside as seen in pic, little bit of dust was there. 



(7) reconnected everything back and switched on, now the repeated switch on/switch off problem was not there and laptop straight away booted and did not shutdown after a pre-determined time, the battery led also blinks amber as it is supposed to do (trying to charge a non-existing battery) and is running ok ever since.


(8) Possible reasons for solving problem:-


(a) dust removed from the backside of the motherboard.


(b) keyboard connector removed and turned on resetting the chipset circuitary. later when keyboard connected as explained in step (6) and turned on, everything was fine. 


(C) battery was anyway failing, that is why charging circuit was not charging. may be due to dendrites, it might be overdrawing current thus charging circuit was shutting the charge circuit. 

 Misc:



Some zoomed in view of MOSFETS (NCE 4688) which I had tested, and apparently had no issues


Friday, December 24, 2021

Switching between Kerberos & Unix Authentication mechanism

 I had installed kerberos by mistake on my local VM for skol linux and ever since it would allow to create  users but won't allow to change password. Actually I had no need of Kerberos and had selected the option by mistake while installing the VM. 

Now, even after removing all kerberos packages and rebooting, it still did not exit my system. So I wanted local unix authentication. 

Problems faced: allowing creation of new user, but not allowing to set password

The solution is to use pam-auth-update and the resulting menu will allow you to unselect kerberos and keep the unix authentication. 

unselect kerberos authentication, block password change unix users and suggest Gosa instead and you are good for setting password of local users using unix authentication

What to do if you forget your password and even root password?

 If you forget your password and even the root password, you can stare into a blank login screen not knowing what to do. Here is one break for that situation.

While you are at Grub , instead of clicking enter on your linux distribution or kernel, click E, this will take you to edit mode for starting of that kernel. Try to find one line with "quiet" in the end. At the end of this line append init=/bin/bash and press F10 to boot further into single mode. 

The single user mode directly takes you to the root user. type passwd root at the prompt to set the new password for root. 

If you get error like "Authentication token manipulation error" or if root@none:/ is shown at the prompt, then, type the following command

mount -o remount, rw/

this will remount the filesystem and will allow to change the root password. 

Thursday, December 23, 2021

wifi Tethering to VM on virtualbox

 The usual and most common method to pass internet to the VM from host network is to keep the adapter of VM in bridged mode and the internet connection of the host is shared to the VM whether VM is linux or windows

However, though this works without problem if the host internet connection is through wired medium(Ethernet). When host gets the connection through wifi, this method of bridge does not work. 

Soultion:

The solution is rather simple, in the guest VM settings in virtualbox manager, go to network and in Advanced settings, copy the mac address of the host wifi adapter(which you can get by going to network connections, and rt clicking the wifi adapter and then clicking status and noting down the MAC address) and paste it in the MAC address box replacing whatever was existing in the box.

This can be done only when the VM is offline. once done, check using ip address or ipconfig command in guest VM  and you would find that that the eth1 adapter in VM has already been allotted an ip address in same series as wifi adapter of host OS. ping google dns 8.8.8.8 and it should ping. open browser and check if it is opening google, if not, then just add DNS entry in VM which would be same  as gateway of WiFi dongle/router.

Wednesday, December 22, 2021

Getting internet via usb tethering(JIOfi) on Debian skol Linux VM created on virtual box & installing guest additions on it.

 The VM was created after downloading a iso file of Debian Blue ray iso and installing it to the VM.

Guest additions were required to run the VM in full screen, here is where problems started.

step1 : getting the usb tethered internet working

The Oracle virtual box does not support sharing of wifi connection (there is a trick, another blog post for that!) of host to guest, even if it supports, it is choppy at best, sometimes working, sometimes not working. 


I didn't have a wired connection of ethernet variety, so the only option left was to plug in USB of jiofi modem to laptop running windows 11 host. thereafter using the virtualbox (rt control key + home) menu, selected the USB modem (listed as Android) and made it visible to Debian VM. immediately, it got unistalled from windows and got connected to Debian. Drivers were added automatically.

The device was showing in command ip address( IPconfig is depreacted it seems) as usb0 and given an ip address. The jiofi uses 255.255.0.0 subnet mask. However, routing was messed up as the default routes all go to eth0, so this has to be disabled from the host first. (use vm manager, click on debian vm configuration and in Networks, select "Not Attached" in Adapter1).

The above step resolved all gateway issues etc and was able to ping the google dns 8.8.8.8. Browsing was still not going through, and therefore, had to add the jiofi DNS entry (which is same as gateway) manually in USB0 configuration.

Now, internet was working fine.

Step2: Install kernel headers

Follow this post

https://www.tecmint.com/install-kernel-headers-in-ubuntu-and-debian/

Step3: installing the guest additions

Follow this post 

https://linuxize.com/post/how-to-install-virtualbox-guest-additions-on-debian-10/


Skol Linux is very useful for school students with many apps for school subjects like physics, chemistry,maths,geography and also for topics like astronomy and music.


Sunday, November 21, 2021

Repair of HMI of Allen-Bradley 6181P-122TSXP no display problem

 1. HMI of Allen-Bradley 6181P-122TSXP


Fig 1: The HMI make & Model 

was not showing any display when powered up. This HMI is  used in Centrifuge. The cost of this machine is around Rs Seven Lakhs. 


2. Inserted a 4 digit PC motherboard diagnostic  card in the PCI  slot and powered up the machine, the numbers on digit display in card were changing and these numbers correspond to errors on mainboard. for ex, if the numbers stopped at 01 , implies the cpu has gone faulty or 2C implies bad memory etc. However, the number did not stop at these stages and continued up-to full boot. Therefore, it was concluded that boot process was normal and problem was in LCD display. The video


shows how it is done.


3. The LCD/LED display has two connectors coming from the mainboard , one is the 20 pin LVDS signal and other the power. 


Fig 2: The Motherboard showing power & LVDS connectors

The LVDS stands for low voltage differential signalling, and has three pairs differential signal and one pair of clock signals. The LVDS signals were verified with oscilloscope, and positive (up going signal in oscilloscope) and negative (down going signal in oscilloscope) was seen in the respective + and - pins in each differential pairs. The clock signal yielded a steady 4 MHz clock.


4. Thus, the problem appears to be that of backlight in LED display. The model of the display used is G12S1-L02. 


Fig 3: The LCD display panel G121S1-L02 showing the LCD2MB PCB

The datasheet of the display was also found on net and shared here. The backlight is provided by a string of LEDs which illuminates the LCD display. The power connector pin-out is shown here 


5. To access the backlight string of LEDs, the display was opened , and indeed, the backlight was not glowing. The LCD display has two PCBs one is LCD2MB pcb (shown in fig 3) which gets the power from the mainboard and supplies the +12V power,EN signal to the E88441 PCB which generates the actual timing,control and backlight voltage for driving the LCD and backlight LEDs. 


Fig 4: The LCD display opened revealing E88441 PCB containing the backlight controller

The LED display driver in E88441 PCB was identified by using 10X magnification on mobile camera and the part number noted down. Datasheet of this IC was downloaded. and can be viewed here


6. On studying the datasheet it was found that that pin # 28 of this IC had to be supplied with EN signal, which is a 5 v PWM signal, which can also control the brightness depending on PWM on time. The EN signal was being generated by the LCD2MB card in the display panel.  There is a touch point (TP) to verify the presence of this signal, which yielded no value with multimeter, so, this signal did not reach the display driver and failure was traced  to faulty resistors (R94,R82 & R104) on board.


Fig 5:  A8501 magnified 10x

7. The circuit in and around the LED driver IC U1 was traced with the help of multimeter continuity testing and all the required transistors and MOSFET identified and re-drawn on paper to understand the working. The circuit is given <here>


Fig 6: The backlight driver power save mechanism redrawn

8. It appeared that the resistors which were damaged were part of a 'power saving' mechanism to give reduced supply voltage of 10.73 V instead of 12 V to the display driver IC in the absence of EN signal.This mechanism was built around transistor Q7 and Q14 and MOSFET Q15 .  These resistors are 1% tolerance SMD resistors following the EIA-96 pattern of naming. The reistors which were damaged were marked as 70D, and 10S which have the value of  536K and 12.4 ohm respectively.


9. These resistors could not be sourced so a workaround was found to get the EN signal directly to IC U1 by shorting a path in PCB and bypassing the 'power save' circuitary by running the driver IC at 10.73 volts as is evident by seeing the circuit diagram traced above. The repair is shown in figure 7. The resulting voltage at LED backlight end was 20 V, which was sufficient to drive the backlight LEDs.



Fig 7: The soldered portion to supply EN signal directly to backlight controller

10. Assembled everything back, the display working ok.


Fig 8: HMI giving output after the repair

4. Annexure:-

4.1  For Full HD TV, 30 pin (10 pairs) connector is used. For HDTV, 20 pin (5 pairs--> 4 data pairs & 1 clock pair , 4 data pairs give 8 bits)  connector is sufficient. The three data pairs correspond to R,G,B signal and the fourth data pair is for B+Hsync and V.  For this particular 12 inch display 3 data pairs (Rin 0,1 & 2 corresponding to R,G,B) and one clock pair is used , the unused  1 data pair (Rin3 for B+Hsync & V) the + is connected to ground and - is NC. Therefore, 3 data pairs contribute 6 bits . The more number of pairs means more bits can be shown implying higher resolution. 


4.2 Youtube video about LVDS 


4.3 Some of the ICs identified in mainboard (DS90C385A-> LVDS serializer, Chrontel CH7308B--> PLL transmitter, ISL6262CRZ--> 2 phase buck converter) 


Fig 9 : 20 pin LVDS connector pin-out


Key Learnings:

1. Details of backlight LED driver IC and its working

2. LVDS signals and 4/6/8 bit differential signalling

3. EiA -96 1% resistor naming convention

 

Saturday, January 18, 2020

Design Notes

One stop reference for all design related stuff. 
Post all design related articles in continuation by editing this post
First up, the most simple, Saturated switch using BJT and Darlington. Notes in the attached figure.


(a) Saturated Switch  using BJT

(1) The ratio of Ic/Ib < hfe (min) of the selected transistor.

(2) take care that calculated Ic is less than Ic max which can be found in the datasheet.

(3) How did we determine ic/ib < hfe for saturation?
Consider the simple circuit shown in figure, with one base resistor Rb, One collector load RL ,

 Let's assume for example RB = 1M, RL = 1k, B1 = 9V, hFE = 300 and VBE = 0.6V.
The voltage across RB will be VS-VBE=8.4V, so IB=8.4/1M=8.4µA. IC=IB·hFE=8.4µA·300=2.52mA. So the voltage across RL will be 2.52V.

Now, What will happen if in the example above, RB=100k instead of 1M?
IB=8.4/100k=84µA. You may expect that IC will be 84µA·300=25.2mA, but that isn't possible since the voltage across RL would be 25.2V which is more than B1.

 IC,max in this circuit is B1/RL=9/1k=9mA. So even if IB=84µA, IC will be 9mA. IC/IB=107, which is less than hFE. In such a case, when IC/IB < hFE, we say that the transistor has become saturated and can be considered as a closed switch (between C and E).

(b) Saturated Darlington
As explained in figure attached, if Ib loads the weak base supply, then a more powerful high beta transistor called darlington can be used. This will saturate even with tens of microamps of base current and won't load the weak base power supply.