My laptop's battery is broken, totally dead. It is also irreplaceable and I will not be able to replace it in the next 3 months at least. It is invoking notification messages almost every 3-5s, which quickly become annoying. I guess the same ones cause typing lag too, because as I explain it to myself, the battery or some watchdog in the OS sends an interrupt to the CPU, the OS does process switching, to execute the interrupt and hence lag.

Please, tell me how can I stop the battery of being used by the computer completely. So far, I have tried dconf settings,"critical-battery-action" = "nothing" and use time policy both true and false, nothing help. I uninstalled the battery indicator, that did not work either. Should I remove the drivers of the battery if so how and will that prevent the computer from running on charger only?


Solution 1:

Please, tell me how can I stop the battery of being used by the computer completely.

There is no method for that from within Ubuntu: a battery creates a loop between the power source and the motherboard so it is all hardware. You will need to physically remove the battery from the system.

Should I remove the drivers of the battery

Batteries do not have drivers. Anything inside Ubuntu is used for analytics purposes (percentages, life span, etc)

One extra remark: make sure the power cord is attached to the system with some tape; if the connector is as fickle as what I have now it will kill your system if is disconnects.

Solution 2:

A solution which for now works is, from Settings > Notifications I have completely switched off any notifications, clicking Notification Popups. The lag disappeared, the notifications as well. The problem is that none of my attempts to stop just the low-battery notifications locally worked. Hence, this solution prevents other apps' ones to be displayed, too.

If I see this solution not working in the future or I find a better one I will update this answer.

The battery is in the laptop.