Tuesday, November 13, 2018

Installing Linux on Lenovo Yoga 920

Well I would like to thank Lafaspot ( Ubuntu 17.10 running on Lenovo Yoga 920 with HiDPI and touch screen support ) for their nice write up on installing Linux on a Lenovo Yoga 920.

I did use 16.04 xubuntu and solved some issues in the process. Also 17.10 and 18.04 both had issues with Suspend not working. I chose Xubuntu because I like its simplified interface. Not so heavy on the cpu or graphics etc..

I first installed 18.04, this worked fine right off the bat, except suspend would break everything. Whenever I would try to take it out of suspend, I would get a black screen. I tried to do a few things I found on the internet but nothing really remedied the issue. I then tried to use 17.04 and had similar issues.

Then on to 16.04 and it too had suspend issues but the were intermittent and did not force me to reboot since the issue was that it would not go into suspend all the time. The problem with 16.04 was that sometimes it would work for a few days without issues. I could work, suspend and wake it up again without issues. Then other times I had to shut it down because it would never suspend.

So one night I was frustrated with it and I remembered that during the few times I used windows partition I had issues with suspend also, but only when I accidentally touched the smart pen after suspend. It was frustrating but I forgot all about it.  So when I remembered about it, I looked it up and found that this is a problem with the laptop not shutting down wifi  or bluetooth on suspend.
So I decided to shut off bluetooth and suspend worked.

Now I am hoping to someday try 18.04 again and see how that goes. I may be able to set up a small partition on the 920 to see how it works or maybe even try to run it off of the sdcard and to see if suspend is fixed. I will update if I give it a try.

UPDATE:


For the suspend I created a script to handle the bluetooth issue. This will shutdown the Bluetooth on suspend and start it up again on resume.

Save this file as /lib/systemd/system-sleep/suspend.sh
Set it as executable and test it out.

#!/bin/bash SPLOG=/var/log/xfce-suspend.log DT=`date` echo "Running Suspend Script (${1}) : (${2}) - ${DT}" >> $SPLOG if [ "${2}" = "suspend" ]; then case "$1" in pre) rfkill block bluetooth echo "${1}-${2}: Shutdown bluetooth" >> $SPLOG ;; post) rfkill unblock bluetooth echo "${1}-${2}: Bring up bluetooth" >> $SPLOG ;; esac fi 

Update: 6/27/2019


I have switched to Arch Linux and I am still using Xfce as my Desktop. I did notice that now the script does not work as the suspend value $2 is not being set.
So I commented out the if statement to check for suspend.



No comments: