How does one get working deep/S3 sleep with Ubuntu Focal/5.7 mainline kernel?
#3
So: It works now, as far as deep sleep goes! Sound won't work after sleep/resume, but that's a separate issue. I have deep sleep/resume working Ubuntu 20.04 and the 5.7 kernel from https://gitlab.manjaro.org/tsys/linux-pinebook-pro

Install the auyfan Focal image - I'm using 0.10.12

Using the pbp-tools script, build the 5.7 kernel and install it. Reboot, you should have a 5.7 kernel series, instead of the 5.6 series that the Ubuntu 20.04 image ships with.

Then, using the blobs and flashing script from https://gitlab.manjaro.org/manjaro-arm/p...ookpro-bsp, update the firmware on the eMMC. Yes, it looks like you're writing in the middle of a partition. Yes, you probably are. No, I don't think this is sane, but it does work (just don't put anything on /boot/efi - you might overwrite the firmware if you do that).

sudo dd if=idbloader.img of=/dev/mmcblk2 seek=64 conv=notrunc
sudo dd if=uboot.img of=/dev/mmcblk2 seek=16384 conv=notrunc
sudo dd if=trust.img of=/dev/mmcblk2 seek=24576 conv=notrunc

With this completed, you should be good in terms of deep sleep/wake. My PBP used about 2% battery overnight, and resumed properly in the morning.

Sound still does not work after the resume, though. A reboot seems to fix it, but that's no improvement over not having deep sleep...

//EDIT: The following seems to fix sound. I'll put it in a resume hook: pulseaudio -k && sudo alsa force-reload


Messages In This Thread
RE: How does one get working deep/S3 sleep with Ubuntu Focal/5.7 mainline kernel? - by Syonyk - 06-14-2020, 02:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Slackware Linux working on PBP vxzero 0 1,147 06-05-2024, 04:30 PM
Last Post: vxzero
  USB 3 port not working with Armbian zaius 3 2,755 11-13-2023, 01:54 PM
Last Post: zaius
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 13,175 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  Sleep and external display - Are there any options? chris88233 7 4,722 09-04-2023, 09:03 PM
Last Post: wdt
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 10,297 08-31-2023, 04:20 PM
Last Post: TRS-80
  Camera not working with Cheese cypresstwist 1 2,784 08-18-2023, 02:02 AM
Last Post: juliamenendez
  kernel module that supports usb-c hdmi alexandre 16 20,591 05-14-2023, 09:58 PM
Last Post: rathofkhan3
  With the help of a friend, I installed a beautiful deep os distribution, but I won't wangyukunshan 0 1,190 03-03-2023, 10:56 PM
Last Post: wangyukunshan
  5GHz wifi not working snorwood 11 10,472 01-16-2023, 03:41 PM
Last Post: ehcorn
Question Debian (Vanilla) no output on display after Kernel update (6.0.8-1) as365n4 1 2,271 12-09-2022, 12:43 PM
Last Post: as365n4

Forum Jump:


Users browsing this thread: 1 Guest(s)