Power management: my battery is not charging in Ubuntu 18.04 while it is in use

I have an old HP laptop that I changed from Windows 10 to Ubuntu 18.04. I began to notice that while the laptop is on, the battery does not charge, but it is detected. For example, whatever the battery charge percentage, it will never rise (or fall) while the charger is plugged in. I ran the following command to see the battery status.

johan @ johanpc: ~ $ acpi -V

And this was the result:

Battery 0: Unknown, 0%
Battery 0: design capacity 2673 mAh, last total capacity 2673 mAh = 100%
Adapter 0: online
Thermal 0: ok, 0.0 degrees C
Thermal 0: trigger point 0 switches to critical mode at a temperature of 127.0 degrees C
Thermal 1: ok, 32.0 degrees C
Thermal 1: trigger point 0 switches to critical mode at a temperature of 110.0 degrees C
Thermal 1: trigger point 1 switches to hot mode at a temperature of 89.0 degrees C
Thermal 1: trigger point 2 switches to passive mode at a temperature of 88.0 degrees C
Cooldown 0: soc_dts0 no status information available
Cooling 1: INT3400 Thermal no status information available
Cooling 2: Processor 0 out of 10
Cooldown 3: intel_powerclamp no status information available
Cooling 4: B0DB no status information available
Cooling 5: soc_dts1 no status information available
Cooling 6: Processor 0 out of 10
Cooling 7: STR1 no status information available

I have read many tutorials but it seems that there is no solution for this error / error.

However, the laptop charges while it is turned off, alone. In Windows it is normally loaded, so I know that it is not a hardware problem.

Thanks for your help.

Slow start in the new installation of Ubuntu 18.04

I have a dual boot system of Ubuntu 21.04 with Windows 10, but I have a slow start in Ubuntu

graphical.target @ 46.678s
└─multi-user.target @ 46.676s
└─kerneloops.service @ 42.828s + 8ms
    └─network-online.target @ 42.827s
└─NetworkManager-wait-online.service @ 34.412s + 8.414s
        └─NetworkManager.service @ 31.018s + 3.392s
          └─dbus.service @ 30.460s
└─basic.target @ 30.247s
└─sockets.target @ 30.247s
└─snapd.socket @ 30.189s + 58ms
                  └─sysinit.target @ 30.188s
└─systemd-timesyncd.service @ 29.988s + 199ms
                      └─systemd-tmpfiles-setup.service @ 29.489s + 477ms
                        └─systemd-journal-flush.service @ 4.057s + 25.431s
                          └─systemd-journald.service @ 3.330s + 725ms
                            └─system-diary-dev-log.socket @ 3.329s
└─system.slice @ 3.323s
└─-.slice @ 3.302s

edition 1: system fault analysis

                25.431s systemd-journal-flush.service
18.934s dev-sda7.device
13.422s systemd-udevd.service
12.897s snap-gnome  x2d3  x2d26  x2d1604-74.mount
12.810s snap-gnome  x2dcharacters-139.mount
12.798s snap-gnome  x2dlogs-45.mount
12.253s plymouth-quit-wait.service
11.904s snap-vlc-1049.mount
9.220s snap-core-6350.mount
8.414s NetworkManager-wait-online.service
5.102s bolt.service
3.703s mnt-01D306309612D5D0.mount
3.436s accounts-daemon.service
3.404s udisks2.service
3.392s NetworkManager.service
3.231s ModemManager.service
3.105s mnt-3AB82379B82332B5.mount
2.964s snapd.service
2.427s systemd-fsck @ dev-disk-by  x2duuid-d71546ea  x2d38ec  x2d431c  x2d80
2.425s networkd-dispatcher.service
2,243s networking.service
2.192s polkit.service
2.131s systemd-fsck @ dev-disk-by  x2duuid-DE40  x2d72B8.service
1-23 lines

ubuntu 16.04 Vs 18.04 – Ask Ubuntu

I wonder if I can boot ubuntu 18.04 in an SSD and use files from a 2TB hard drive in Ubuntu 16.04. or should I use a double boot that would nullify my purpose? The reason why I ask is that I have some programs that only open in WINE, all this is good in 16.04 but I can not install it in 18.04. Any help would be appreciated, with instructions on how to do it.

virtualbox – Error of the virtual box – Error when opening session for Ubuntu 18.04

Details error:

Error opening a session for the Ubuntu 18.04 virtual machine.

The main UUID {00000000-0000-0000-0000-000000000000} of the medium & # 39; C: Users ali VirtualBox VMs Ubuntu 18.04 Snapshots / {94b259c1-6804-4e0c-ad96-f33e6cfcfbc6} .vhd & # 39 ; does not match UUID {e0bc2fe3-f9eb-47e9-8544-2f1cbfac7c19} of its main media stored in the media registry (& # 39; C: Users ali.VirtualBox VirtualBox.xml & # 39;).

Result code: E_FAIL (0x80004005)
Component: Medium wrap
Interface: IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}

python – Obtaining a syntax error when I write pthon in Ubuntu 18.04

When I write echo $ PYTHONPATH I get


But when I write python as a root user I get

    File "/usr/lib/python3.6/site.py", line 183
file = sys.stderr)
Syntax error: invalid syntax

What is the reason for this error?

When I write python3.6 I do not get errors. If this question needs to be transferred to UNIX SE, let me know.

themes – How to remove rounded edges in 18.04 with Gnome shell

How can I make the edges of the windows square (instead of round) in Ubuntu 18.04? I'm using the Ambiance theme.

enter the description of the image here

What I tried (without success on 18.04):

  1. The solution of How do I remove the rounded edges in the GNOME shell, which was from an earlier version of Ubuntu (11.04) that used the GNOME shell.

  2. The solution of How to make the corners of the environment title bar square, which worked in Ubuntu 16.04 when the Unit was the default.

Interestingly, the question Rounded corners of windows is trying to remove square corners (which he achieved by eliminating ~ / .config / gtk-3.0 / gtk.css) so I presumably need to add some code to that file.

Any ideas on what CSS code is needed?

Ubuntu 18.04 PXE Network Boot Failure

Stack exchange network

The Stack Exchange network consists of 176 question and answer communities that include Stack Overflow, the largest and most reliable online community for developers to learn, share their knowledge and develop their careers.

Visit Stack Exchange

Packages and dependencies do not update {ubuntu 18.04 LTS}

I executed the following command in the terminal, even so it says that 9 packages can be updated.

sudo apt update && sudo apt upgrade

The minor problem is that it says

write apt list – cumulative to show packages that can be updated …………..

I have attached the screenshot that indicates the previous problem

enter the description of the image here

It accidentally skipped mokmanager when installing the Nvidia drivers with safe boot in 18.04

I tried to install the nvidia drivers through the GUI in Ubuntu 18.04 (Software and update tool). After requesting my password and taking some time (probably for installation / configuration), he warned me about possible problems with Secure Boot and asked me to set a code to use with mokmanager to avoid them. On the next restart, mokmanager appeared, but I accidentally told him to continue with the boot and I did not have the opportunity to enter the password I had previously established. I wonder how to recover this notice from mokmanager and complete the installation / signature of the driver.

I have tried to disable and re-enable the nvidia drivers through the GUI and also delete all the packages that match & # 39; ^ nvidia- * & # 39; through the terminal and then re-enable the nvidia drivers through the GUI, but never again have I been asked to create a code for mokmanager and mokmanager never appeared on startup. When you activate the nvidia drivers through the GUI, it shows them as active, but nvidia configuration It gives a lot of mistakes, starting with BUG: NVIDIA driver is not loaded. It is difficult to understand what is really happening.

How can I re-enable my mouse / touchpad and keyboard in 18.04?

I'm not exactly a novice, but I am when it comes to solving problems. I was trying to get RDP from my box of Win 10 to Ubuntu running, so I followed these instructions:


I did section 1 for Ubuntu 18.04 and followed everything, including the ufw part. Suddenly, my computer froze (or at least I thought it did), so I kept pressing the power button and rebooted. Now the keyboard and touchpad of my laptop no longer work when the login screen appears. I can say that it is not frozen because the time keeps increasing and the screen fades if I wait long enough.

I discovered how to ignore the GUI and enter the root by holding the shift key when the laptop is booted, so I disabled ufw and xrdp, deleted the file I had created, etc. But when I restart, I still do not get anything. I can ssh from my Windows machine, but I have no idea what I can do to fix the problem. I tried to connect USB keyboards and mice, but they do not work either.

Any ideas?