Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Hardware] Librem14 Debian 11 stable: Librem14 battery issues [SOLVED]

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

[Hardware] Librem14 Debian 11 stable: Librem14 battery issues [SOLVED]

#1 Post by AKM33 »

My battery doesn't seem to increase the percentage charged when my brand new Librem14 has been turned on. I looked up the problem, and for PureOS the issue seems to be resolved by installing the librem-ec-acpi package, according to the Purism Forums. Problem is, this driver isn't in the stable repos yet. I'm trying to get around this without creating a FrankenDebian by getting it from Salsa, since git is familiar to me from using the AUR coming from Manjaro. I cloned the https repo, but the Arch-based commands makepkg -si , make aren't found. I really just need one package, and so I don't feel the need to add an entire new repository and potentially destabilize my system.

Here is the output from the terminal session:

Code: Select all

austin@debian:~$ git clone https://salsa.debian.org/debian/librem-ec-acpi.git
Cloning into 'librem-ec-acpi'...
remote: Enumerating objects: 172, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 172 (delta 17), reused 0 (delta 0), pack-reused 141
Receiving objects: 100% (172/172), 47.80 KiB | 7.97 MiB/s, done.
Resolving deltas: 100% (74/74), done.
austin@debian:~$ cd /librem-ec-acpi
bash: cd: /librem-ec-acpi: No such file or directory
austin@debian:~$ cd ~/librem-ec-acpi
austin@debian:~/librem-ec-acpi$ makepkg -si
bash: makepkg: command not found
austin@debian:~/librem-ec-acpi$ make
bash: make: command not found
austin@debian:~/librem-ec-acpi$ sudo apt install make
[sudo] password for austin: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  make-doc
The following NEW packages will be installed:
  make
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 396 kB of archives.
After this operation, 1,630 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 make amd64 4.3-4.1 [396 kB]
Fetched 396 kB in 0s (1,389 kB/s)
Selecting previously unselected package make.
(Reading database ... 146851 files and directories currently installed.)
Preparing to unpack .../make_4.3-4.1_amd64.deb ...
Unpacking make (4.3-4.1) ...
Setting up make (4.3-4.1) ...
Processing triggers for man-db (2.9.4-2) ...
austin@debian:~/librem-ec-acpi$ make
make -C "/lib/modules/5.10.0-21-amd64/build" M="/home/austin/librem-ec-acpi" modules
make[1]: *** /lib/modules/5.10.0-21-amd64/build: No such file or directory.  Stop.
make: *** [Makefile:5: all] Error 2
And here is the output of history:

Code: Select all

   47  sudo apt install git
   48  git config --global user.name "Austin Miller"
   49  git config --global user.email austinkmiller@protonmail.com
   50  exit
   51  sudo apt install fonts-cmu
   52  exit
   53  sudo apt-get install praat
   54  exit
   55  sudo apt install librem-ec-acpi-dkms
   56  sudo apt install librem-ec-acpi
   57  sudo apt-get librem-ec-acpi-dkms
   58  sudo apt install librem-ec-acpi-dkms
   59  sudo apt-get install librem-ec-acpi-dkms
   60  sudo apt -t unstable install librem-ec-acpi-dkms
   61  sudo apt-get -t unstable install librem-ec-acpi-dkms
   62  git clone https://salsa.debian.org/debian/librem-ec-acpi.git
   63  cd /librem-ec-acpi
   64  cd ~/librem-ec-acpi
   65  makepkg -si
   66  make
   67  sudo apt install make
   68  make
Last edited by AKM33 on 2023-02-19 18:02, edited 2 times in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6477
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#2 Post by sunrat »

Code tags need to be in square brackets. Or just highlight the relevant text and click the code icon in the BBcode panel.
Sorry I can't help with your issue though.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Aki
Global Moderator
Global Moderator
Posts: 2933
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 72 times
Been thanked: 401 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#3 Post by Aki »

Hello,

You probably have to install the kernel headers and depending packages.

You can do it with the following command:

Code: Select all

# next command asks for root password
su -l -c "apt install linux-headers-amd64"
This is, for example, the output in my computer (a Debian Bookworm, but it should be the same with Debian Stable) after installing the previous package:

Code: Select all

~/Downloads/librem-ec-acpi$ make
make -C "/lib/modules/6.1.0-3-amd64/build" M="/home/aki/Downloads/librem-ec-acpi" modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-3-amd64'
  CC [M]  /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.o
  MODPOST /home/aki/Downloads/librem-ec-acpi/Module.symvers
  CC [M]  /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.mod.o
  LD [M]  /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.ko
  BTF [M] /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.ko
Skipping BTF generation for /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-3-amd64'
The content of the directory after building of the module is:

Code: Select all

~/Downloads/librem-ec-acpi$ ls -l
total 832
-rw-r--r-- 1 aki aki  18092 Feb  8 08:49 LICENSE
-rw-r--r-- 1 aki aki    182 Feb  8 08:49 Makefile
-rw-r--r-- 1 aki aki      0 Feb  8 08:51 Module.symvers
-rw-r--r-- 1 aki aki    352 Feb  8 08:49 README.md
drwxr-xr-x 3 aki aki   4096 Feb  8 08:49 debian
-rw-r--r-- 1 aki aki  19533 Feb  8 08:49 librem_ec_acpi.c
-rw-r--r-- 1 aki aki 385424 Feb  8 08:51 librem_ec_acpi.ko
-rw-r--r-- 1 aki aki     57 Feb  8 08:51 librem_ec_acpi.mod
-rw-r--r-- 1 aki aki   1881 Feb  8 08:51 librem_ec_acpi.mod.c
-rw-r--r-- 1 aki aki  94760 Feb  8 08:51 librem_ec_acpi.mod.o
-rw-r--r-- 1 aki aki 292088 Feb  8 08:51 librem_ec_acpi.o
-rw-r--r-- 1 aki aki     58 Feb  8 08:51 modules.order
drwxr-xr-x 3 aki aki   4096 Feb  8 08:49 usr
Otherwise, if you want create a binary debian package with the kernel module, you can issue the following commands:

Code: Select all

# next command asks for root password
su -l -c "apt install linux-headers-amd64 devscripts dh-sequence-dkms"
and in the ./librem-ec-acpi directory:

Code: Select all

dpkgbuild-packge -b -uc
The package librem-ec-acpi-dkms_0.9.1-4_all.deb will be built in the ../ directory and can be installed with the following command:

Code: Select all

# next command asks for root password
su -l -c "cd $PWD; dpkg -i ../librem-ec-acpi-dkms_0.9.1-4_all.deb
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#4 Post by AKM33 »

Aki wrote: 2023-02-08 08:00 Hello,

You probably have to install the kernel headers and depending packages.

You can do it with the following command:

Code: Select all

# next command asks for root password
su -l -c "apt install linux-headers-amd64"
This is, for example, the output in my computer (a Debian Bookworm, but it should be the same with Debian Stable) after installing the previous package:

Code: Select all

~/Downloads/librem-ec-acpi$ make
make -C "/lib/modules/6.1.0-3-amd64/build" M="/home/aki/Downloads/librem-ec-acpi" modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-3-amd64'
  CC [M]  /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.o
  MODPOST /home/aki/Downloads/librem-ec-acpi/Module.symvers
  CC [M]  /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.mod.o
  LD [M]  /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.ko
  BTF [M] /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.ko
Skipping BTF generation for /home/aki/Downloads/librem-ec-acpi/librem_ec_acpi.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-3-amd64'
The content of the directory after building of the module is:

Code: Select all

~/Downloads/librem-ec-acpi$ ls -l
total 832
-rw-r--r-- 1 aki aki  18092 Feb  8 08:49 LICENSE
-rw-r--r-- 1 aki aki    182 Feb  8 08:49 Makefile
-rw-r--r-- 1 aki aki      0 Feb  8 08:51 Module.symvers
-rw-r--r-- 1 aki aki    352 Feb  8 08:49 README.md
drwxr-xr-x 3 aki aki   4096 Feb  8 08:49 debian
-rw-r--r-- 1 aki aki  19533 Feb  8 08:49 librem_ec_acpi.c
-rw-r--r-- 1 aki aki 385424 Feb  8 08:51 librem_ec_acpi.ko
-rw-r--r-- 1 aki aki     57 Feb  8 08:51 librem_ec_acpi.mod
-rw-r--r-- 1 aki aki   1881 Feb  8 08:51 librem_ec_acpi.mod.c
-rw-r--r-- 1 aki aki  94760 Feb  8 08:51 librem_ec_acpi.mod.o
-rw-r--r-- 1 aki aki 292088 Feb  8 08:51 librem_ec_acpi.o
-rw-r--r-- 1 aki aki     58 Feb  8 08:51 modules.order
drwxr-xr-x 3 aki aki   4096 Feb  8 08:49 usr
Otherwise, if you want create a binary debian package with the kernel module, you can issue the following commands:

Code: Select all

# next command asks for root password
su -l -c "apt install linux-headers-amd64 devscripts dh-sequence-dkms"
and in the ./librem-ec-acpi directory:

Code: Select all

dpkgbuild-packge -b -uc
The package librem-ec-acpi-dkms_0.9.1-4_all.deb will be built in the ../ directory and can be installed with the following command:

Code: Select all

# next command asks for root password
su -l -c "cd $PWD; dpkg -i ../librem-ec-acpi-dkms_0.9.1-4_all.deb
I tried to follow your instructions:

Code: Select all

austin@debian:~$ cd ~/librem-ec-acpi
austin@debian:~/librem-ec-acpi$ make
make -C "/lib/modules/5.10.0-21-amd64/build" M="/home/austin/librem-ec-acpi" modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-21-amd64'
  CC [M]  /home/austin/librem-ec-acpi/librem_ec_acpi.o
  MODPOST /home/austin/librem-ec-acpi/Module.symvers
  CC [M]  /home/austin/librem-ec-acpi/librem_ec_acpi.mod.o
  LD [M]  /home/austin/librem-ec-acpi/librem_ec_acpi.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-21-amd64'
austin@debian:~/librem-ec-acpi$ ls -l
total 856
drwxr-xr-x 3 austin austin   4096 Feb  7 17:23 debian
-rw-r--r-- 1 austin austin  19533 Feb  7 17:23 librem_ec_acpi.c
-rw-r--r-- 1 austin austin 400416 Feb 10 16:13 librem_ec_acpi.ko
-rw-r--r-- 1 austin austin     46 Feb 10 16:13 librem_ec_acpi.mod
-rw-r--r-- 1 austin austin   1771 Feb 10 16:13 librem_ec_acpi.mod.c
-rw-r--r-- 1 austin austin  87592 Feb 10 16:13 librem_ec_acpi.mod.o
-rw-r--r-- 1 austin austin 314448 Feb 10 16:13 librem_ec_acpi.o
-rw-r--r-- 1 austin austin  18092 Feb  7 17:23 LICENSE
-rw-r--r-- 1 austin austin    182 Feb  7 17:23 Makefile
-rw-r--r-- 1 austin austin     46 Feb 10 16:13 modules.order
-rw-r--r-- 1 austin austin      0 Feb 10 16:13 Module.symvers
-rw-r--r-- 1 austin austin    352 Feb  7 17:23 README.md
drwxr-xr-x 3 austin austin   4096 Feb  7 17:23 usr
austin@debian:~/librem-ec-acpi$ sudo dpkg --install dpkgbuild-package
[sudo] password for austin: 
dpkg: error: cannot access archive 'dpkgbuild-package': No such file or directory
austin@debian:~/librem-ec-acpi$ dpkgbuild-package -b -uc
bash: dpkgbuild-package: command not found
austin@debian:~/librem-ec-acpi$ 
Coming from Manjaro and pacman, I'm unfamiliar with the Debian package managers; I tried using

Code: Select all

austin@debian:~/librem-ec-acpi$ sudo apt install dpkgbuild-package
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package dpkgbuild-package
I read the manual about the Debian package management tools; apt install and dpkg --install don't work for making the dpkgbuild-package available for use. How is one supposed to install the command dpkgbuild-package ?

Aki
Global Moderator
Global Moderator
Posts: 2933
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 72 times
Been thanked: 401 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#5 Post by Aki »

Hello,
Sorry, there was a typo in the command: it is dpkg-buildpackage , it's not dpkgbuild-package. This command should be already installed because its package (dpkg-dev) is a dependence of package named devscripts that you should have already installed.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#6 Post by AKM33 »

Aki wrote: 2023-02-11 10:00 Hello,
Sorry, there was a typo in the command: it is dpkg-buildpackage , it's not dpkgbuild-package. This command should be already installed because its package (dpkg-dev) is a dependence of package named devscripts that you should have already installed.
Alright, I completed the modified instructions, but after running:

Code: Select all

austin@debian:~/librem-ec-acpi$ su -l -c "cd $PWD; dpkg -i ../librem-ec-acpi-dkms_0.9.1-4_all.deb"
Password: 
Selecting previously unselected package librem-ec-acpi-dkms.
(Reading database ... 195657 files and directories currently installed.)
Preparing to unpack .../librem-ec-acpi-dkms_0.9.1-4_all.deb ...
Unpacking librem-ec-acpi-dkms (0.9.1-4) ...
Setting up librem-ec-acpi-dkms (0.9.1-4) ...
Loading new librem_ec_acpi-0.9.1 DKMS files...
Building for 5.10.0-21-amd64
Building initial module for 5.10.0-21-amd64
Done.

librem_ec_acpi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-21-amd64/updates/dkms/

depmod...

DKMS: install completed.
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-21-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8402-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
W: Possible missing firmware /lib/firmware/i915/skl_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_33.0.4.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_09.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_dmc_ver2_08.bin for module i915
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_02.bin for module i915
austin@debian:~/librem-ec-acpi$ 
Are any of these "possible missing firmware […]" messages a red flag, or something which could prevent the problem from being resolved? Everything up to this point worked fine.

Aki
Global Moderator
Global Moderator
Posts: 2933
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 72 times
Been thanked: 401 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#7 Post by Aki »

Hello,

The librem kernel module seems to be correctly built and installed.

The “Possible missing firmware” messages are generated by the Linux kernel. Some loaded kernel modules report a possible missing firmware [1]. If I read correctly your log, the missing firmware files are provided by the following packages from Debian repository: firmware-realtek and firmware-misc-nonfree. If you install them, the messages should disappear and some of the involved kernel modules could perform better.

As side note, the usage of firmware files has “ethical drawbacks" in “free as in freedom” Linux distribution [2]. Therefore, if the OS performs well, there should be no need to install them. Especially since the manufacturer of your computer endorses users’ freedoms. [3]

- - -
[1] https://wiki.debian.org/Firmware
[2] https://www.gnu.org/distros/common-distros.html
[3] https://puri.sm/why-purism/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#8 Post by AKM33 »

Aki wrote: 2023-02-12 22:14 Hello,

The librem kernel module seems to be correctly built and installed.

The “Possible missing firmware” messages are generated by the Linux kernel. Some loaded kernel modules report a possible missing firmware [1]. If I read correctly your log, the missing firmware files are provided by the following packages from Debian repository: firmware-realtek and firmware-misc-nonfree. If you install them, the messages should disappear and some of the involved kernel modules could perform better.

As side note, the usage of firmware files has “ethical drawbacks" in “free as in freedom” Linux distribution [2]. Therefore, if the OS performs well, there should be no need to install them. Especially since the manufacturer of your computer endorses users’ freedoms. [3]

- - -
[1] https://wiki.debian.org/Firmware
[2] https://www.gnu.org/distros/common-distros.html
[3] https://puri.sm/why-purism/
I attempted to install the two packages mentioned; this was the output:

Code: Select all

austin@debian:~$ sudo apt install firmware-realtek
[sudo] password for austin: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package firmware-realtek is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'firmware-realtek' has no installation candidate
austin@debian:~$ sudo apt install firmware-misc-nonfree
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package firmware-misc-nonfree is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'firmware-misc-nonfree' has no installation candidate
austin@debian:~$ 
Since this is a pretty new installation (from the official iso image), my blind conjecture is that the packages are both obsoleted.
That said, there are no *obvious* malfunctions (other than the laptop battery icon acting wonky), and the Debian Wiki does say nonfree firmware *isn't* required for the Librem14, so I'll try just watching my battery icon for the next few days to see if anything disconcerting happens.

User avatar
sunrat
Administrator
Administrator
Posts: 6477
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#9 Post by sunrat »

You need to add the non-free component to your sources for non-free firmware. It says so in the wiki link Aki posted above.

https://wiki.debian.org/Firmware
https://wiki.debian.org/SourcesList

But if you don't need it for your device, don't install it. Are there any error messages for firmware shown in logs? See:

Code: Select all

dmesg |grep -i firmware
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#10 Post by AKM33 »

UPDATE: My battery icon seems to be going down very slowly (about 1.5 h, from 98% to 97%). This is apparent only when I unplug the laptop, when the GNOME icon stops saying "fully charged" and then turns green, saying alternately "estimating…" and "97% (xx:xx until fully charged."

Aki
Global Moderator
Global Moderator
Posts: 2933
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 72 times
Been thanked: 401 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#11 Post by Aki »

Hello,

Is the original issue ("My battery doesn't seem to increase the percentage charged when my brand new Librem14 has been turned on.") solved ?
AKM33 wrote: 2023-02-14 03:42 UPDATE: My battery icon seems to be going down very slowly (about 1.5 h, from 98% to 97%). This is apparent only when I unplug the laptop, when the GNOME icon stops saying "fully charged" and then turns green, saying alternately "estimating…" and "97% (xx:xx until fully charged."
Compare the battery level shown by gnome with the output of the following program:

Code: Select all

acpi -V
Check if the librem_ec_acpi module is loaded with the following command:

Code: Select all

lsmod | grep librem_ec_acpi
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#12 Post by AKM33 »

Aki wrote: 2023-02-14 08:01 Hello,

Is the original issue ("My battery doesn't seem to increase the percentage charged when my brand new Librem14 has been turned on.") solved ?
AKM33 wrote: 2023-02-14 03:42 UPDATE: My battery icon seems to be going down very slowly (about 1.5 h, from 98% to 97%). This is apparent only when I unplug the laptop, when the GNOME icon stops saying "fully charged" and then turns green, saying alternately "estimating…" and "97% (xx:xx until fully charged."
Compare the battery level shown by gnome with the output of the following program:

Code: Select all

acpi -V
Check if the librem_ec_acpi module is loaded with the following command:

Code: Select all

lsmod | grep librem_ec_acpi
I don't think the original issue is solved, because I've never seen the battery icon go above 97% (except when it says "fully charged"):

Code: Select all

Battery 0: Unknown, 97%
Battery 0: design capacity 8800 mAh, last full capacity 8631 mAh = 98%
Adapter 0: on-line
Cooling 0: Processor 0 of 3
Cooling 1: Processor 0 of 3
Cooling 2: Processor 0 of 3
Cooling 3: Processor 0 of 3
Cooling 4: Processor 0 of 3
Cooling 5: Processor 0 of 3
Cooling 6: x86_pkg_temp no state information available
Cooling 7: LCD 2 of 15
Cooling 8: Processor 0 of 3
Cooling 9: Processor 0 of 3
Cooling 10: Processor 0 of 3
Cooling 11: Processor 0 of 3
Cooling 12: pch_cannonlake no state information available
Cooling 13: Processor 0 of 3
Cooling 14: Processor 0 of 3
Cooling 15: intel_powerclamp no state information available
austin@debian:~$ lsmod | grep librem_ec_acpi
librem_ec_acpi         20480  0
battery                24576  1 librem_ec_acpi
austin@debian:~$ 

User avatar
sunrat
Administrator
Administrator
Posts: 6477
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#13 Post by sunrat »

Batteries lose capacity over time. It seems yours now has maximum capacity of 98% of its spec. I doubt the battery level utility would be able to distinguish between 97% and 98%.
Does it go down when running on battery? No problem then! :wink:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

AKM33
Posts: 11
Joined: 2022-04-02 02:49
Has thanked: 1 time

Re: [Hardware] Librem14 Debian 11 stable: Librem14 battery issues

#14 Post by AKM33 »

sunrat wrote: 2023-02-18 01:28 Batteries lose capacity over time. It seems yours now has maximum capacity of 98% of its spec. I doubt the battery level utility would be able to distinguish between 97% and 98%.
Does it go down when running on battery? No problem then! :wink:
Whew! Thanks, and good to know. I feel confident the problem is solved now, and I'll mark this thread as such.

Post Reply