2 Replies Latest reply on Jan 21, 2014 8:11 AM by Patrick_Sit

    ACPI Sleep for the Galileo running on Linux.

    Patrick_Sit

      Hi All,

       

      Sorry for post it to the general board, As I don't know I should post it to Software or Hardware zone.

       

      I'm running the Galileo with the Full image by following this blog.(http://www.malinov.com/Home/sergey-s-blog/intelgalileo-buildinglinuximage)

       

      Everythings run very fine. Included the GCC make. etc.

       

      However I'm working on the sleep function for the Linux.

       

      It should be good for sleep. But it can't awake.

       

      I'm using this command to sleep

       

      root@clanton:~# rtcwake -m mem -s 3 -v rtcwake: assuming RTC uses UTC ... Using UTC time.   delta   = -1   tzone   = 0   tzname  = UTC   systime = 1390068434, (UTC) Sat Jan 18 18:07:14 2014   rtctime = 1390068435, (UTC) Sat Jan 18 18:07:15 2014 alarm 0, sys_time 1390068434, rtc_time 1390068435, seconds 3 rtcwake: wakeup from "mem" using /dev/rtc0 at Sat Jan 18 18:07:19 2014 suspend mode: mem; suspending system

       

      and the Console displaying.

       

      [  102.712620] PM: Syncing filesystems ... done. [  102.794389] mmc0: card aaaa removed [  103.124714] Freezing user space processes ... (elapsed 0.02 seconds) done. [  103.153449] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [  103.191514] Suspending console(s) (use no_console_suspend to debug) Capsule -- capsule variable not set

       

      The "Capsule -- capsule variable not set" is displayed when it it going to be awake.

       

      However I can't find any related to "capsule variable not set" from Google. Now, I only know this message is come from the EFI

      As I found it in the EDK2 source code(EDK2 doxygen online documents -  Firmware Encoding Index: MdeModulePkg/Universal/CapsulePei/UefiCapsule.c Source File)

       

      Also I've checked the RTC in the Galileo is only supporting wake from ACPI S4

      However the Galileo is not able to sleep to S4 :S (I'm confused.) (I think mem is S3?)

      root@clanton:~# cat /sys/power/state mem

       

      I've also tried the "/sys/class/rtc/rtc0/wakealarm", However it is also doesn't work for "shutdown -h now" command.

      (It supposed to be go into the S5 state)


      Welcome to discuss.

        • 1. Re: ACPI Sleep for the Galileo running on Linux.
          Patrick_Sit

          Some update.

          Finally I make it able to resume after remove a lot of module by using rmmod.

           

          It seems to be working with just the following mod.

           

          Module                  Size  Used by

          ipv6                  252075  18

          g_serial               24296  3

          libcomposite           24078  1 g_serial

          udc_core               14227  1 libcomposite

          usb_common             12482  2 udc_core,libcomposite

           

          Before remove

           

          Module                  Size  Used by

          ipv6                  252075  18

          usbhid                 23185  0

          btusb                  18090  0

          bluetooth             206068  1 btusb

          m25p80                 16737  0

          rfkill                 20955  1 bluetooth

          i2c_dev                13147  0

          usb_storage            46674  0

          g_serial               24296  3

          libcomposite           24078  1 g_serial

          pch_udc                31633  0

          udc_core               14227  2 libcomposite,pch_udc

          ad7298                 12726  0

          industrialio_triggered_buffer    12686  1 ad7298

          kfifo_buf              13032  1 industrialio_triggered_buffer

          spidev                 13101  0

          industrialio           43174  3 industrialio_triggered_buffer,ad7298,kfifo_buf

          cy8c9540a              17580  0

          at24                   12977  0

          spi_pxa2xx             21688  0

          ehci_pci               12656  0

          ehci_hcd               44468  1 ehci_pci

          ohci_hcd               26510  0

          gpio_sch               13009  0

          intel_cln_gip          20150  2

          uio                    14405  1 intel_cln_gip

          i2c_core               27485  4 at24,intel_cln_gip,i2c_dev,cy8c9540a

          stmmac                 52698  0

          spi_pxa2xx_pci         13049  1 spi_pxa2xx

          usbcore               148859  6 btusb,usb_storage,ohci_hcd,ehci_hcd,ehci_pci,usbhid

          usb_common             12482  3 udc_core,libcomposite,usbcore

          evdev                  17469  0

          iwlwifi  Removed before lsmod

          cfg80211 Removed before lsmod

           

          However the Error "Capsule -- capsule variable not set" is still here.

           

          Also the filesystem become read only :-/

          1 of 1 people found this helpful
          • 2. Re: ACPI Sleep for the Galileo running on Linux.
            Patrick_Sit

            After Multi try and Error.

            I've found the issue is come from stmmac module

            That should be a module for the Ethernet Controller

             

            rmmod stmmac

             

            Will let you sleep and wake your Galileo.

            However It still have FS error. and will become read only file system.