Lafité II suspend segfaulting on resume - debian stretch

rossbeazley

Bronze Level Poster
anyone got suspend working correctly in any linux distro?

attached my pm-suspend.log on the off chance there is a guru here

+ [ Sat 17 Oct 19:14:31 BST 2015: Awake. = -n ]
+ printf %s\n Sat 17 Oct 19:14:31 BST 2015: Awake.
Sat 17 Oct 19:14:31 BST 2015: Awake.
+ date
+ log Sat 17 Oct 19:14:31 BST 2015: Running hooks for resume
+ is_set true
+ return 0
+ local fmt=%s\n
+ [ Sat 17 Oct 19:14:31 BST 2015: Running hooks for resume = -n ]
+ printf %s\n Sat 17 Oct 19:14:31 BST 2015: Running hooks for resume
Sat 17 Oct 19:14:31 BST 2015: Running hooks for resume
+ run_hooks sleep resume suspend reverse
+ _run_hooks sleep resume suspend reverse
+ local syshooks=/etc/pm/sleep.d
+ local phooks=/usr/lib/pm-utils/sleep.d
+ command_exists before_hooks
+ type before_hooks
+ return 0
+ before_hooks
+ [ -z ]
+ return 0
+ local sort=sort
+ local base
+ local hook
+ local oifs=

+ local nifs=

+ IFS=

+ [ reverse = reverse ]
+ sort=sort -r
+ IFS=

+ sort -r
+ + [ -Ouniq /etc/pm/sleep.d/*[!~]
]
+ [ -O /usr/lib/pm-utils/sleep.d/000kernel-change ]
+ echo 000kernel-change
+ [ -O /usr/lib/pm-utils/sleep.d/00logging ]
+ echo 00logging
+ [ -O /usr/lib/pm-utils/sleep.d/00powersave ]
+ echo 00powersave
+ [ -O /usr/lib/pm-utils/sleep.d/50unload_alx ]
+ echo 50unload_alx
+ [ -O /usr/lib/pm-utils/sleep.d/60_wpa_supplicant ]
+ echo 60_wpa_supplicant
+ [ -O /usr/lib/pm-utils/sleep.d/75modules ]
+ echo 75modules
+ [ -O /usr/lib/pm-utils/sleep.d/90clock ]
+ echo 90clock
+ [ -O /usr/lib/pm-utils/sleep.d/94cpufreq ]
+ echo 94cpufreq
+ [ -O /usr/lib/pm-utils/sleep.d/95anacron ]
+ echo 95anacron
+ [ -O /usr/lib/pm-utils/sleep.d/95hdparm-apm ]
+ echo 95hdparm-apm
+ [ -O /usr/lib/pm-utils/sleep.d/95led ]
+ echo 95led
+ [ -O /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler ]
+ echo 98video-quirk-db-handler
+ [ -O /usr/lib/pm-utils/sleep.d/99video ]
+ echo 99video
+ IFS=

+ [ reverse -a reverse = reverse -a 99video ]
+ [ 99video > 99video ]
+ [ ! reverse ]
+ update_parameters
+ [ -f /var/run/pm-utils/pm-suspend/storage/parameters.new ]
+ return
+ [ -f /etc/pm/sleep.d/99video ]
+ [ -f /usr/lib/pm-utils/sleep.d/99video ]
+ hook=/usr/lib/pm-utils/sleep.d/99video
+ run_hook /usr/lib/pm-utils/sleep.d/99video resume suspend
+ _run_hook /usr/lib/pm-utils/sleep.d/99video resume suspend
+ log Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
+ is_set true
+ return 0
+ local fmt=%s\n
+ [ Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend: = -n ]
+ printf %s\n Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
+ hook_ok /usr/lib/pm-utils/sleep.d/99video
+ local hook=99video
+ [ -f /var/run/pm-utils/pm-suspend/storage/disable_hook:99video ]
+ [ -f /var/run/pm-utils/pm-suspend/storage/disable_hook:video ]
+ [ -x /usr/lib/pm-utils/sleep.d/99video ]
+ return 0
+ /usr/lib/pm-utils/sleep.d/99video resume suspend
+ QUIRK_VBE_POST=true
+ QUIRK_DPMS_ON=true
+ QUIRK_DPMS_SUSPEND=true
+ QUIRK_VBESTATE_RESTORE=true
+ QUIRK_VBEMODE_RESTORE=true
+ QUIRK_VGA_MODE_3=true
+ command_exists vbetool
+ type vbetool
+ return 0
+ command_exists radeontool
+ type radeontool
+ return 127
+ resume_video
+ quirk
+ is_set
+ return 2
+ quirk true
+ is_set true
+ return 0
+ [ -z ]
+ vbe_post
+ local rom=/var/run/video.rom
+ [ -f /var/run/video.rom ]
+ unset rom
+ vbe post
+ vbetool post
Segmentation fault
+ sleep 0.1
+ quirk true
+ is_set true
+ return 0
+ [ -z ]
+ vbe_restorestate
+ + restorestate vbestate
vbe vbestate restore
+ state_exists vbestate+
vbetool vbestate restore
+ [ -O /var/run/pm-utils/pm-suspend/storage/state:vbestate ]
+ cat /var/run/pm-utils/pm-suspend/storage/state:vbestate
Function not supported
+ quirk true
+ is_set true
+ return 0
+ [ -z ]
+ vbe_restoremode
+ restorestate vbemode
+ state_exists vbemode
+ [ -O /var/run/pm-utils/pm-suspend/storage/state:vbemode ]
+ cat /var/run/pm-utils/pm-suspend/storage/state:vbemode
+ local vbemode=16767
+ [ 16767 = 3 ]
+ vbe vbemode set 16767
+ vbetool vbemode set 16767
Segmentation fault
+ resume_fbcon
+ local con
+ [ -f /sys/class/graphics/fb0/state ]
+ echo 0
+ quirk
+ is_set
+ return 2
+ quirk true
+ is_set true
+ return 0
+ [ -z ]
+ vbe dpms on
+ vbetool dpms on
 

miks

Member
Hi Ross, I am keen on getting a Lafité II so have a vested interest in this thread. I guess you have checked whether anything HERE is relevant? No specific info for Stretch on it unfortunately. Just wondering what desktop environment you are using and also which kernel?

Is everything else working ok? I would prefer to install LMDE as I like an easy way of running Debian Stable but I will run Testing if I have to.
 

rossbeazley

Bronze Level Poster
Hi Miks,

im only really having two issues:
1. suspend to ram not resuming
2. power button not being detected (wtf?), no acpi events, key events or anything

when setting up the system you will need the firmware for the intel wireless card on a pen drive: think i got it here http://www.intel.com/support/wireless/wlan/sb/CS-034398.htm

i think the segfaulting vbetool is a red herring, the system is still up and running (can shell into it) but the screen is black but is the backlight is on

in other news, it boots from cold into XFCE4 about 4 seconds, weighs nothing and is very shiny, touchpad comes with two finger scroll out of the box and has "soft" left and right buttons as well as two finger right click
 

rossbeazley

Bronze Level Poster
ive just tweaked the touchpad settings using synclient, now the soft buttons are gone and three fingered click acts like the middle button
 

miks

Member
Thanks for that. It may be worth installing a later kernel with better support for Skylake processors. I am not sure what the latest is for Stretch. Have you used smxi? You could run it to check what Liquorix kernel is available and try it to see if it fixes the suspend issue.
 

rossbeazley

Bronze Level Poster
got suspend to ram working, these are the settings s2ram needs to use

s2ram --acpi_sleep 3 --vbe_mode

this is currently running against a 4.2 kernel
 

rossbeazley

Bronze Level Poster
then it took me a day to work out how to make systemd use s2ram for suspend... im a sysV init guy really... guess that makes me old.
 

miks

Member
Just ordered it! I will be trying to get Linux Mint Debian Edition to work, which still uses sysvinit, not that I have anything against systemd, because I have not tried it yet. If LMDE doesn't work, I will install Debian Stretch with Cinnamon desktop.
 

miks

Member
Well, it was a painful wait of 5 weeks and 2 days, but it did arrive yesterday. I have mint debian edition running on it, after installing the 4.2 kernel and various firmware packages from Jessie backports. The main problem to fix is that hardware acceleration does not work, and I have drawn a blank on getting it working. Suspend works sometimes and resumes sometimes, probably related to the video problem. A debian 4.3 kernel looks a long way off as it is only in Experimental at the moment. This is what inxi says about the graphics:
mike@lafite ~ $ inxi -G
Graphics: Card: Intel Device 1916
Display Server: X.Org 1.16.4 drivers: fbdev,vesa,intel
Resolution: [email protected]
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits)
GLX Version: 3.0 Mesa 10.3.2
 
Ubuntu 15.10 with kernel 4.2 works great including lightning fast suspend/resume because Ubuntu backported some skylake support from 4.3 .

So for now I would stick to Ubuntu if I were you. You can go Ubuntu Mate for example.
 

miks

Member
Thanks freechelmi, that's useful to know. Might try the mate version until I get LMDE working. Does the screen scaling work ok? What setting do you use?
 

latentexistence

New member
My Lafité II wouldn't suspend with Ubuntu 15.10 until I upgraded the kernel to 4.3. Now suspend works but it still won't come back after the screen blanks, so I've had to set it not to turn off the display.
 

miks

Member
I tried Ubuntu Mate live but the wifi was not supported so tried and installed Mint 17.3. Everything seems to be working since installing 4.2.0-19-generic #23~14.04.1-Ubuntu SMP, so that kernel may sort out your issues. I suspect 4.3 is not quite ready for production use yet?
 
Last edited:
Top