Including a custom ACPI DSDT with (K)Ubuntu 18.04 (RC1)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a new Thinkpad X1 Yoga 2018 which requires a patch to the ACPI DSDT to make suspend-to-RAM work. I've built a patched DSDT following these instructions, and created a CPIO archive called acpi_override.



How do I customize the configuration in /etc/grub.d or /etc/initramfs-tools (or elsewhere) to have this loaded along with Kubuntu's initrd? I was looking for a line where initrd [...] was emitted in /etc/grub.d/10_linux but it seems things have been rearranged for this release.







share|improve this question
























    up vote
    0
    down vote

    favorite












    I have a new Thinkpad X1 Yoga 2018 which requires a patch to the ACPI DSDT to make suspend-to-RAM work. I've built a patched DSDT following these instructions, and created a CPIO archive called acpi_override.



    How do I customize the configuration in /etc/grub.d or /etc/initramfs-tools (or elsewhere) to have this loaded along with Kubuntu's initrd? I was looking for a line where initrd [...] was emitted in /etc/grub.d/10_linux but it seems things have been rearranged for this release.







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a new Thinkpad X1 Yoga 2018 which requires a patch to the ACPI DSDT to make suspend-to-RAM work. I've built a patched DSDT following these instructions, and created a CPIO archive called acpi_override.



      How do I customize the configuration in /etc/grub.d or /etc/initramfs-tools (or elsewhere) to have this loaded along with Kubuntu's initrd? I was looking for a line where initrd [...] was emitted in /etc/grub.d/10_linux but it seems things have been rearranged for this release.







      share|improve this question












      I have a new Thinkpad X1 Yoga 2018 which requires a patch to the ACPI DSDT to make suspend-to-RAM work. I've built a patched DSDT following these instructions, and created a CPIO archive called acpi_override.



      How do I customize the configuration in /etc/grub.d or /etc/initramfs-tools (or elsewhere) to have this loaded along with Kubuntu's initrd? I was looking for a line where initrd [...] was emitted in /etc/grub.d/10_linux but it seems things have been rearranged for this release.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 23 at 18:34









      josePhoenix

      1165




      1165




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          There ended up being a different way to accomplish the same thing.



          1. Extract the CPIO file: cpio --extract < ./acpi_override

          2. Copy the result to /boot: cp kernel/firmware/acpi/dsdt.aml /boot/fixed_dsdt.aml

          3. Create or update /boot/grub/custom.cfg to contain

            acpi /fixed_dsdt.aml


          Since /boot/grub/custom.cfg isn't managed by apt, this should persist.



          Note: If you're not confident you've got the right DSDT, you could end up in a reboot loop. You could instead manually edit the grub.cfg and add the acpi /fixed_dsdt.aml line inside of a boot entry. That way if grub tries to process it and fails, it will do so only after selecting the boot entry (not before showing the menu). Once you are confident that it all works, you can move your edits to custom.cfg.






          share|improve this answer



























            up vote
            0
            down vote













            This approach was what worked for me using (K)Ubuntu 18.04 on a 6th gen X1 carbon. The use of "initrd /boot/acpi_override /boot/initrd.img-4.14.0-20-generic" in the grub.cfg did not load the configuration, but removing "/boot/acpi_override" from this line and loading the .aml file on its separate line in grub.cfg now shows S3 as a supported power mode in dmesg and "s2idle [deep]" in /sys/power/mem_sleep.






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027552%2fincluding-a-custom-acpi-dsdt-with-kubuntu-18-04-rc1%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote













              There ended up being a different way to accomplish the same thing.



              1. Extract the CPIO file: cpio --extract < ./acpi_override

              2. Copy the result to /boot: cp kernel/firmware/acpi/dsdt.aml /boot/fixed_dsdt.aml

              3. Create or update /boot/grub/custom.cfg to contain

                acpi /fixed_dsdt.aml


              Since /boot/grub/custom.cfg isn't managed by apt, this should persist.



              Note: If you're not confident you've got the right DSDT, you could end up in a reboot loop. You could instead manually edit the grub.cfg and add the acpi /fixed_dsdt.aml line inside of a boot entry. That way if grub tries to process it and fails, it will do so only after selecting the boot entry (not before showing the menu). Once you are confident that it all works, you can move your edits to custom.cfg.






              share|improve this answer
























                up vote
                1
                down vote













                There ended up being a different way to accomplish the same thing.



                1. Extract the CPIO file: cpio --extract < ./acpi_override

                2. Copy the result to /boot: cp kernel/firmware/acpi/dsdt.aml /boot/fixed_dsdt.aml

                3. Create or update /boot/grub/custom.cfg to contain

                  acpi /fixed_dsdt.aml


                Since /boot/grub/custom.cfg isn't managed by apt, this should persist.



                Note: If you're not confident you've got the right DSDT, you could end up in a reboot loop. You could instead manually edit the grub.cfg and add the acpi /fixed_dsdt.aml line inside of a boot entry. That way if grub tries to process it and fails, it will do so only after selecting the boot entry (not before showing the menu). Once you are confident that it all works, you can move your edits to custom.cfg.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  There ended up being a different way to accomplish the same thing.



                  1. Extract the CPIO file: cpio --extract < ./acpi_override

                  2. Copy the result to /boot: cp kernel/firmware/acpi/dsdt.aml /boot/fixed_dsdt.aml

                  3. Create or update /boot/grub/custom.cfg to contain

                    acpi /fixed_dsdt.aml


                  Since /boot/grub/custom.cfg isn't managed by apt, this should persist.



                  Note: If you're not confident you've got the right DSDT, you could end up in a reboot loop. You could instead manually edit the grub.cfg and add the acpi /fixed_dsdt.aml line inside of a boot entry. That way if grub tries to process it and fails, it will do so only after selecting the boot entry (not before showing the menu). Once you are confident that it all works, you can move your edits to custom.cfg.






                  share|improve this answer












                  There ended up being a different way to accomplish the same thing.



                  1. Extract the CPIO file: cpio --extract < ./acpi_override

                  2. Copy the result to /boot: cp kernel/firmware/acpi/dsdt.aml /boot/fixed_dsdt.aml

                  3. Create or update /boot/grub/custom.cfg to contain

                    acpi /fixed_dsdt.aml


                  Since /boot/grub/custom.cfg isn't managed by apt, this should persist.



                  Note: If you're not confident you've got the right DSDT, you could end up in a reboot loop. You could instead manually edit the grub.cfg and add the acpi /fixed_dsdt.aml line inside of a boot entry. That way if grub tries to process it and fails, it will do so only after selecting the boot entry (not before showing the menu). Once you are confident that it all works, you can move your edits to custom.cfg.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 23 at 18:51









                  josePhoenix

                  1165




                  1165






















                      up vote
                      0
                      down vote













                      This approach was what worked for me using (K)Ubuntu 18.04 on a 6th gen X1 carbon. The use of "initrd /boot/acpi_override /boot/initrd.img-4.14.0-20-generic" in the grub.cfg did not load the configuration, but removing "/boot/acpi_override" from this line and loading the .aml file on its separate line in grub.cfg now shows S3 as a supported power mode in dmesg and "s2idle [deep]" in /sys/power/mem_sleep.






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        This approach was what worked for me using (K)Ubuntu 18.04 on a 6th gen X1 carbon. The use of "initrd /boot/acpi_override /boot/initrd.img-4.14.0-20-generic" in the grub.cfg did not load the configuration, but removing "/boot/acpi_override" from this line and loading the .aml file on its separate line in grub.cfg now shows S3 as a supported power mode in dmesg and "s2idle [deep]" in /sys/power/mem_sleep.






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          This approach was what worked for me using (K)Ubuntu 18.04 on a 6th gen X1 carbon. The use of "initrd /boot/acpi_override /boot/initrd.img-4.14.0-20-generic" in the grub.cfg did not load the configuration, but removing "/boot/acpi_override" from this line and loading the .aml file on its separate line in grub.cfg now shows S3 as a supported power mode in dmesg and "s2idle [deep]" in /sys/power/mem_sleep.






                          share|improve this answer












                          This approach was what worked for me using (K)Ubuntu 18.04 on a 6th gen X1 carbon. The use of "initrd /boot/acpi_override /boot/initrd.img-4.14.0-20-generic" in the grub.cfg did not load the configuration, but removing "/boot/acpi_override" from this line and loading the .aml file on its separate line in grub.cfg now shows S3 as a supported power mode in dmesg and "s2idle [deep]" in /sys/power/mem_sleep.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 3 at 3:53









                          Topher

                          1011




                          1011



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027552%2fincluding-a-custom-acpi-dsdt-with-kubuntu-18-04-rc1%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

                              `kcmshell` modules relation with `/usr/share/applications`

                              How to enroll fingerprints to Ubuntu 17.10 with VFS491