English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

3 Posts

03-23-2014

US

2 Signins

51 Page Views

  • Posts: 3
  • Registered: ‎03-23-2014
  • Location: US
  • Views: 51
  • Message 1 of 29

Yoga 2 13 (not Pro) Linux Warning

2014-03-23, 0:45 AM

 

Just received a brand new Yoga 2 13 (not the pro, but the new version with the screen that can actually display yellow).  It looks like a great system, but please be warned that it currently does not work properly with Ubuntu.  The "fixes" posted by many for fixing the wifi for the yoga 2 pro do not work and when you try to load or install Linux it actually diables the wifi completely (it say you need to switch on the wirless switch which does not exist).  It appears to be a significant bug in the BIOS for thi model, but the wifi radio will not turn on even after you do a complete restore and switch back to windows.  Hoping they fix this soon with a bios update...

Solved! See the solution
Reply
Options

7 Posts

04-08-2014

Czech Republic

22 Signins

174 Page Views

  • Posts: 7
  • Registered: ‎04-08-2014
  • Location: Czech Republic
  • Views: 174
  • Message 2 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-08, 6:40 AM

Hello,

confirm problem.
Only booting SystemRescueCD to fetch windows image from rescue partition broke wifi. I try instal latest 17.0.0 and also older drivers without success. Windows report HW button switched to off (but no button here)...

Reply
Options

7 Posts

04-08-2014

Czech Republic

22 Signins

174 Page Views

  • Posts: 7
  • Registered: ‎04-08-2014
  • Location: Czech Republic
  • Views: 174
  • Message 3 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-09, 6:28 AM

From linux seems:

# rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

Many discousion about linux recomend disable idepad_laptop kernel module, but this work only for "Pro" version.
I try compile own kernel without this module, and "hard blocked" stay...
... also try complete restore, restore bios settings etc... nothing help :(

Reply
Options

3 Posts

04-11-2014

USA

7 Signins

42 Page Views

  • Posts: 3
  • Registered: ‎04-11-2014
  • Location: USA
  • Views: 42
  • Message 4 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-11, 13:44 PM

Hey,

 

I fixed this on my Yoga 2, turns out theres persistent bits in the EC the windows driver doesnt touch either.  See my solution at: http://askubuntu.com/questions/434547/wireless-hard-block/446459#446459.

 

Short version: hack up your ideapad-laptop.c to do the following:

 

write_ec_cmd(ideapad_handle, VPCCMD_W_RF, 1);
write_ec_cmd(ideapad_handle, VPCCMD_W_BT, 1);
write_ec_cmd(ideapad_handle, VPCCMD_W_WIFI, 1);

 

run it once, unload it, and keep that module blacklisted!

0 person found this solution to be helpful.

This helped me too

Reply
Options

7 Posts

04-08-2014

Czech Republic

22 Signins

174 Page Views

  • Posts: 7
  • Registered: ‎04-08-2014
  • Location: Czech Republic
  • Views: 174
  • Message 5 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-12, 7:53 AM

Not work for me :(

# diff -Nar -U 5 drivers/platform/x86/ideapad-laptop.backup drivers/platform/x86/ideapad-laptop.c
--- drivers/platform/x86/ideapad-laptop.backup  2014-04-08 23:40:43.581058682 +0200
+++ drivers/platform/x86/ideapad-laptop.c       2014-04-12 09:33:38.991013424 +0200
@@ -486,10 +486,16 @@
 static int ideapad_register_rfkill(struct ideapad_private *priv, int dev)
 {
        int ret;
        unsigned long sw_blocked;
 
+        write_ec_cmd(priv->adev->handle, VPCCMD_W_RF, 1);
+        write_ec_cmd(priv->adev->handle, VPCCMD_W_BT, 1);
+        write_ec_cmd(priv->adev->handle, VPCCMD_W_WIFI, 1);
+        return 0;
+
+
        if (no_bt_rfkill &&
            (ideapad_rfk_data[dev].type == RFKILL_TYPE_BLUETOOTH)) {
                /* Force to enable bluetooth when no_bt_rfkill=1 */
                write_ec_cmd(priv->adev->handle,
                             ideapad_rfk_data[dev].opcode, 1);
Zdvori-Yoga2 linux # lsmod | grep idea
ideapad_laptop          9127  0
Zdvori-Yoga2 linux # rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

 BIOS Information
        Vendor: LENOVO
        Version: 96CN17WW(V1.03)
        Release Date: 12/24/2013

 

:smileysad:

Reply
Options

3 Posts

03-23-2014

US

2 Signins

51 Page Views

  • Posts: 3
  • Registered: ‎03-23-2014
  • Location: US
  • Views: 51
  • Message 6 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-16, 0:38 AM

 

vetrom, you are truly a genius.  I have never built and compiled a kernel module before, but after a bit of googling I did what you suggested and now my wifi is back on and working perfectly.  To help anyone else, I did the following...

 

used synaptic to download the latest kernel source

 

extracted the ideapad-laptop.c file from the source tar (under drivers/platform/x86)

 

modified the extracted file to include the additions from vetrom in the function ideapad_rfk_set

 

created a new kernel module using the instructions at this site http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html

 

used modprobe to load my new module, used rfkill unblock to force the above function to run, unloaded the new module, and rebooted.....

 

From that point on the wifi came right up with the iwlwifi module loaded, and stays on as long as you continue to blacklist the original ideapad-laptop....

 

 

Thank you again for the key input.

Reply
Options

7 Posts

04-08-2014

Czech Republic

22 Signins

174 Page Views

  • Posts: 7
  • Registered: ‎04-08-2014
  • Location: Czech Republic
  • Views: 174
  • Message 7 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-16, 9:09 AM

SOLVED. 

 

Super, finally this work for me also :-)

 

linux # diff -Nar -U 5 drivers/platform/x86/ideapad-laptop.backup drivers/platform/x86/ideapad-laptop.c
--- drivers/platform/x86/ideapad-laptop.backup  2014-04-08 23:40:43.581058682 +0200
+++ drivers/platform/x86/ideapad-laptop.c       2014-04-16 10:24:06.452003659 +0200
@@ -459,11 +459,14 @@
 };
 
 static int ideapad_rfk_set(void *data, bool blocked)
 {
        struct ideapad_rfk_priv *priv = data;
-
+       write_ec_cmd(priv->priv->adev->handle, VPCCMD_W_RF, 1);
+       write_ec_cmd(priv->priv->adev->handle, VPCCMD_W_BT, 1);
+       write_ec_cmd(priv->priv->adev->handle, VPCCMD_W_WIFI, 1);
+       return 0 ;
        return write_ec_cmd(priv->priv->adev->handle, priv->dev, !blocked);
 }
 
 static struct rfkill_ops ideapad_rfk_ops = {
        .set_block = ideapad_rfk_set,

 

Reply
Options

1 Posts

04-18-2014

Illinois

1 Signins

4 Page Views

  • Posts: 1
  • Registered: ‎04-18-2014
  • Location: Illinois
  • Views: 4
  • Message 8 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-18, 20:33 PM

I wish I could say the same, unfortunately I followed all of the above and mine is still hardware disabled. :/

Reply
Options

7 Posts

04-08-2014

Czech Republic

22 Signins

174 Page Views

  • Posts: 7
  • Registered: ‎04-08-2014
  • Location: Czech Republic
  • Views: 174
  • Message 9 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-22, 9:21 AM

Did you execute; "rfkill unblock all" after load module...

Then disable module, reboot... it should work...

Reply
Options

8 Posts

04-23-2014

France

8 Signins

49 Page Views

  • Posts: 8
  • Registered: ‎04-23-2014
  • Location: France
  • Views: 49
  • Message 10 of 29

Re: Yoga 2 13 (not Pro) Linux Warning

2014-04-23, 1:44 AM

Hi everybody :)

 

This is a few days I'm trying to understand your tutorial can you explain step by step or make a video on youtube please :)

 

PS: my english is very poor , i'm french :D 

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete