Lenovo Yoga 700 ideapad_laptop driver rfkill switch always on

Bug #1519900 reported by Shlomi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
High
Unassigned

Bug Description

As requested by Pilot6, i'm opening a new bug:

The bug is that there is no rfkill switch on this laptop, so the driver exports the rfkill switch is always on, which prevents the NetworkManager service from starting to configure the WiFi.

this is an immidiate follow up of https://bugs.launchpad.net/ubuntu/+source/linux-lts-utopic/+bug/1397021
The exact same issue was resolved for that Lenovo model by adding that model to the hardcoded list in ideapad_laptop.c

Here is another model that needs to be added to the same list:

System Information
    Manufacturer: LENOVO
    Product Name: 80QD
    Version: Lenovo YOGA 700-14ISK

I think a dynamic list of models might be a better idea for this driver, as there are likely more models without hardware kill switches, which are still not in that list.

Link to my original askubuntu question: http://askubuntu.com/questions/701924/lenovo-yoga-700-wifi-issues?noredirect=1#comment1029979_701924

Revision history for this message
Pilot6 (hanipouspilot) wrote :

You need to add

sudo dmidecode | grep -A8

Revision history for this message
Shlomi (shlomomatichin) wrote :

Are you sure this is the command line you had in mind? Grep doesn't seem to recognize the flags:

sudo dmidecode | grep -A8
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

Sry, that was a bit wrong

sudo dmidecode | grep 'System Information' -A8

Revision history for this message
Shlomi (shlomomatichin) wrote :

ok, here we go (blacked out the serial number, hope you don't mind...)

System Information
 Manufacturer: LENOVO
 Product Name: 80QD
 Version: Lenovo YOGA 700-14ISK
 Serial Number: XXXXXXXX
 UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 Wake-up Type: Power Switch
 SKU Number: LENOVO_MT_80QD_BU_idea_FM_Lenovo YOGA 700-14ISK
 Family: IDEAPAD

Revision history for this message
Pilot6 (hanipouspilot) wrote :

Do you confirm that with

sudo modprobe -r ideapad_laptop

the wireless work? If that is the case, I will build a test module for you with a patch.

Revision history for this message
Shlomi (shlomomatichin) wrote :

confirmed.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

You need also run

apport-collect 1519900

This will collect the necessary information for fixing the issue. We will need to add Lenovo Yoga 700 to the quirk list.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

And also I suggest upgrading kernel to 4.2 before you do collect.

It can be done by

sudo apt-get install linux-generic-lts-wily

Revision history for this message
Shlomi (shlomomatichin) wrote :

hi,

i'm already running 4.2, i believe its the default in 15.10?
uname -a
Linux shlompad 4.2.0-19-generic #23-Ubuntu SMP Wed Nov 11 11:39:30 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

regarding apport-collect, according to this page:
https://wiki.ubuntu.com/Apport

"Apport collects potentially sensitive data, such as core dumps, stack traces, and log files. They can contain passwords, credit card numbers, serial numbers, and other private material."

I would therefore very much like to avoid running it. Apologies. I can compile a ideapad_laptop.c driver myself with the added entry for "YOGA 700-14ISK" to confirm it solves the issue, if you prefer. If this is a a no-go for you, then i apologize for wasting your time.

Thanks,
Shlomi.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

apport-collect is a standard procedure to report bugs. It does not collect any personal data.

I suggest adding just "YOGA 700" there. It will cover all other similar models.

You can also send a patch upstream by yourself. That will fix the issue for later kernels.
Also you can add

CC: <email address hidden>

to get it backported to the current Ubuntu kernels.

Revision history for this message
Shlomi (shlomomatichin) wrote :

ok, will create a patch. I will try to make the patch load the model list from a file (a textual "firmware"), lets see how this would be received by the maintainer. Which mailing list is the right one for this patch?

Revision history for this message
Pilot6 (hanipouspilot) wrote :

I think it is not a great idea to load a list from a file.

A perfect solution is to create an option for ideapad_laptop module.
This will enable the quirk, if you add it to /etc/modprobe.d

I would suggest to write to these addresses:

Darren Hart <email address hidden>
Ike Panhc <email address hidden>
<email address hidden>
<email address hidden>

Revision history for this message
Pilot6 (hanipouspilot) wrote :
Revision history for this message
Shlomi (shlomomatichin) wrote :

awesome, i like you idea about module parameter better. Will create two patches, as it makes more sense this way. Thank you very much Pilot6.

Revision history for this message
Shlomi (shlomomatichin) wrote :

will do. Prob create the patch this week.

Please remove my email from the comments though. You have your email marked as private, and i don't have it. Feel free to email me personally. But anyways, i would not like mine to show up on a public comment. Thanks in advance.

penalvch (penalvch)
affects: linux-lts-utopic (Ubuntu) → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1519900

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote :

I see this problem on my Lenovo 700 14 laptop as well. Do you guys require any more information, or has a patch already been submitted?

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@vasuki

You need to do apport-collect if you want this to be fixed.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Pilot6 (hanipouspilot) wrote :

And also pleas post your

sudo dmidecode | grep 'System Information' -A8

Revision history for this message
Pilot6 (hanipouspilot) wrote :

But it looks like the patch has been added to kernel 4.5 already.
It nees a backport.

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : apport information

ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: vasuki 1121 F.... pulseaudio
CurrentDesktop: GNOME
DistroRelease: Ubuntu 15.10
HibernationDevice: RESUME=UUID=3188e2fd-da84-4d8a-a664-2cc85ca3837b
InstallationDate: Installed on 2016-02-09 (0 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: LENOVO 80QD
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-27-generic.efi.signed root=UUID=91c75fc8-ef3a-4d4f-b348-0e4f346a5c3f ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-27-generic N/A
 linux-backports-modules-4.2.0-27-generic N/A
 linux-firmware 1.149.3
Tags: wily
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
Uname: Linux 4.2.0-27-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/07/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: DBCN22WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: VIUU4
dmi.board.vendor: LENOVO
dmi.board.version: SDK0K45914WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo YOGA 700-14ISK
dmi.modalias: dmi:bvnLENOVO:bvrDBCN22WW:bd09/07/2015:svnLENOVO:pn80QD:pvrLenovoYOGA700-14ISK:rvnLENOVO:rnVIUU4:rvrSDK0K45914WIN:cvnLENOVO:ct10:cvrLenovoYOGA700-14ISK:
dmi.product.name: 80QD
dmi.product.version: Lenovo YOGA 700-14ISK
dmi.sys.vendor: LENOVO

tags: added: apport-collected wily
Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : AlsaInfo.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : CRDA.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : CurrentDmesg.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : IwConfig.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : JournalErrors.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : Lspci.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : Lsusb.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : ProcInterrupts.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : ProcModules.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : PulseList.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : RfKill.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : UdevDb.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote : WifiSyslog.txt

apport information

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote :

@Pilot6:
I have run apport-collect. The dmidecode information is already present in comment #22, however here it is again

System Information
 Manufacturer: LENOVO
 Product Name: 80QD
 Version: Lenovo YOGA 700-14ISK
 Serial Number: XXXXXXXX
 UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 Wake-up Type: Power Switch
 SKU Number: LENOVO_MT_80QD_BU_idea_FM_Lenovo YOGA 700-14ISK
 Family: IDEAPAD

Revision history for this message
Pilot6 (hanipouspilot) wrote :

The patch has been committed with <email address hidden> a fiew days ago.

It will be backported to stable Ubuntu kernels in a while.

If this bug makes problems, I can build a dkms module with the patch.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

As a workaround you can blacklist ideapad_laptop module.

Revision history for this message
qwerqewr (rmvasuki-deactivatedaccount-deactivatedaccount) wrote :

Yes, I just found the commit on kernel.org.
I have blacklisted the ideapad_laptop module for now. Thanks!

Changed in linux (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.