Giter Site home page Giter Site logo

ACPI Patch Error about modern_laptop HOT 21 CLOSED

MalpenZibo avatar MalpenZibo commented on June 8, 2024
ACPI Patch Error

from modern_laptop.

Comments (21)

vrolife avatar vrolife commented on June 8, 2024

The ACPI patch needs to be port to TM2119, please provide the ACPI tables generated by acpidump -b.

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Maybe it's caused by my tentative to install the acpi path changing the TM2107-Redmi_Book_Pro_14_2022 to make it work (with no luck) on my laptop but right now the acpidump -b command returns:

Table signature (0x4F324824) is invalid
Could not get ACPI table at index 34, AE_BAD_HEADER

I already launched the uninstall.sh acpi script to revert my tentative.

In any case, right now everything seems to work ok with the exception of the fingerprint sensor (I tried with the docker driver that work only for the first scan and after that the service crashed) and the internal microphone.

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Same result on a fresh arch linux installation

Table signature (0x4F324824) is invalid
Could not get ACPI table at index 34, AE_BAD_HEADER

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

Here is another way to dump ACPI table sudo cp /sys/firmware/acpi/tables/DSDT ./dsdt.dat.

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Here's a link to the dsdt.dat file https://drive.google.com/file/d/1nmx7xwiJRHZYG7OWSiXQQT0Z-Dusx7gE/view?usp=share_link

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

Need to know the BIOS version. dmidecode -t bios |grep Version

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

BIOS version: XMARB4B0P0B0B

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

Try this branch. https://github.com/vrolife/modern_laptop/tree/TM2119

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Thank you so much, you're a hero!!

I tried (I have systemd-boot).
NO_GRUB=1 sudo ./install.sh acpi and then I add to /boot/loader/entries/my_entry.conf

initrd  /acpi_override
options ... acpi_osi=! acpi_osi=Linux

After a reboot, the internal microphone still doesn't work

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

I notice that with the patch is not possible to set the screen brightness. Right now I removed the changes to the /boot/loader/entries/my_entry.conf file and the brightness can be changed again.

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

Could it be "initrd /boot/acpi_override"? I know nothing about systemd-boot.

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

Secure Boot will prevent Linux from loading ACPI patches, you may need to disable Secure Boot.

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Secure boot Is already disabled.

Now I tried with /boot/acpi_override but the system doesn't start anymore (I've to fix It)
The error is: "Error preparing initrd: Not found"

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Anyway, misconfig is fixed.
I think that the correct configuration is /acpi_override and something changes if I set that parameter (screen brightness cannot be changed anymore).

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

Check whether ACPI table is correctly overwritten sudo dmesg|grep -i acpi|grep -i override

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Ok! I can confirm that the patch is applied and the internal microphone now works. The only downside is that the screen brightness cannot be changed, without the patch the screen brightness can be changed but the internal microphone doesn't work.

sudo dmesg|grep -i acpi|grep -i override output

[    0.000000] Command line: initrd=\acpi_override initrd=\amd-ucode.img initrd=\initramfs-linux.img cryptdevice=PARTUUID=dacc3f71-e359-49a3-935f-1d0053247332:luksdev root=/dev/mapper/luksdev zswap.enabled=0 rw rootfstype=btrfs loglevel=3 acpi_osi=! acpi_osi=Linux
[    0.003712] ACPI: Table Upgrade: override [DSDT-XMCC  -XMCC2119]
[    0.003713] ACPI: DSDT 0x00000000BAFD7000 Physical table override, new table: 0x00000000AF881000
[    0.026974] Kernel command line: initrd=\acpi_override initrd=\amd-ucode.img initrd=\initramfs-linux.img cryptdevice=PARTUUID=dacc3f71-e359-49a3-935f-1d0053247332:luksdev root=/dev/mapper/luksdev zswap.enabled=0 rw rootfstype=btrfs loglevel=3 acpi_osi=! acpi_osi=Linux

system-boot entries:

title Arch Linux acpi override (linux)
linux /vmlinuz-linux
initrd /acpi_override # it seems important to place the `/acpi_override` option before the other initrd
initrd /amd-ucode.img
initrd /initramfs-linux.img
options ... acpi_osi=! acpi_osi=Linux

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Without adding options ... acpi_osi=! acpi_osi=Linux both internal microphone and screen brightness seems to work.

I'll test this setup to understand if cause other problems but for now it seems working well.

from modern_laptop.

vrolife avatar vrolife commented on June 8, 2024

acpi_osi=! acpi_osi=Linux fix that TM2113 cannot wake up without AC power. If your laptop doesn't have this problem, you may not need this option.

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

This problem seems not happen on this model.

Thank you so much. Now everything seems working correctly.

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

This solution stops working. I don't know why (probably some arch linux update) but right now if I try to boot the system using the entry with initrd /acpi_override I get a black screen and nothing more.

I'm currently booting the system without the acpi_override and with the internal microphone issue.

Do you have some ideas about this new problem?

from modern_laptop.

MalpenZibo avatar MalpenZibo commented on June 8, 2024

Fixed with a bios rollback

from modern_laptop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.