====== LENOVO G40-30 / IDEAPAD LAPTOP ====== Here are some random notes for GnuLinux Support on this LenovO LapTop, if it HelpEd ? PleasE have fun , if not you can still ask me for HelP ===== NEWS ===== * 2015-04-31 : BackUp * 2015-05-01 : Install lubuntu * 2015-05-02 : WireLess * 2015-05-04 : http://rzr.online.fr/q/ideapad# #RTL8723BE #BlueTooth working : #bluez next on #Linux master + #UsbBt loads lib/firmware/rtl_bt/*.ko #AskMe * 2015-05-07 : https://loadaverage.org/url/2749743 My first #LinuxKernel patch is merged upstream ! It wasnt that long or hard @LinuxFoundation * 2016-05-29 : UpGrade UbuntU to LtS : ok ===== COMMUNITY ===== Please Join this mailing list for GnuLinux Lenovo Users and Support : * http://tech.groups.yahoo.com/group/Lenovo/ Other places to check : * https://forums.lenovo.com/t5/Lenovo-B-and-G-Series-Notebooks/Lenovo-G40-30-for-GNU-Linux-users/td-p/2073024 ===== STATUS ===== Working Out of the box : * OK : EtherneT * OK : GpU : WebGl under MozillA FireFox * OK : WebCam http://meet.jit.si worked on chromium * OK : PowerManagement : SuspenD and WakE * OK : Audio Output * OK : AudiO InPut (seems ok arecord -f cd | xxd ) need 4 signal jack * OK : 3D / Video / GfX Accelleration : could be improved Working after hacking : * TODO : WIfI : UpStream : KerneL ModulE : working with local fixes * TODO : BlueTooth : working with local fixes ToDo / MisC : * TOOO : BenchMark * TODO : OS : WinDows : ? "EULAID:WinS14_R3_2_ED_CON_O_fr-fr" Ask for ReFund ? HintS WelCome * TODO : ACPI : AsPm see FirmWare section ===== SPECS ===== SKU Number: LENOVO_MT_80FY_BU_idea_FM_Lenovo G40-30 Bios: InsydeH20 5.0 * http://support.lenovo.com/us/en/products/laptops-and-netbooks/lenovo-g-series-laptops/g40-30-notebook-lenovo * https://www.youtube.com/watch?v=vbgn6mXAznY# * http://download.lenovo.com/consumer/mobiles_pub/lenovo_g40_g50_z40_z50_ug_english.pdf * shipped with: WindowS 7 * https://support.lenovo.com/us/en/solutions/pd100009-product-overview-lenovo-g40-30 DDR3L, SODIMM × 1 / SODIMM × 2 (max 8 GB / 16 GB) ==== LSHW ==== system 80FY (LENOVO_MT_80FY_BU_idea_FM_Lenovo G40-30) /0/4 processor Intel(R) Celeron(R) CPU N2840 @ 2.16GHz /0/4/8 memory 32KiB L1 cache /0/4/9 memory 1MiB L2 cache /0/7 memory 24KiB L1 cache /0/25 memory 2GiB Mémoire Système /0/25/0 memory 2GiB SODIMM DDR3 Synchrone 1333 MHz (0,8 ns) /0/25/1 memory SODIMMProject-Id-Version: @(#) $Id$Report-Msgid-Bugs-To: PO-Revision-Date: 2024-04-04 21:56+0000Last-Translator: Lyonel Vincent Language-Team: MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2025-01-30 17:14+0000X-Generator: Launchpad (build b13dacce4a364151a813e3cdd6940bbff676214a) [vide] /0/100 bridge Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register /0/100/2 /dev/fb0 display Atom Processor Z36xxx/Z37xxx Series Graphics & Display /0/100/13 scsi0 storage Atom Processor E3800 Series SATA AHCI Controller /0/100/13/0.0.0 /dev/sda disk 250GB WDC WD2500LPCX-2 ==== SPECS / LSPCI ==== * RaM: 4G/2*DDR3 00:00.0 Host bridge: Intel Corporation ValleyView SSA-CUnit (rev 0e) 00:02.0 VGA compatible controller: Intel Corporation ValleyView Gen7 (rev 0e) 00:13.0 SATA controller: Intel Corporation ValleyView 6-Port SATA AHCI Controller (rev 0e) 00:1a.0 Encryption controller: Intel Corporation ValleyView SEC (rev 0e) 00:1b.0 Audio device: Intel Corporation ValleyView High Definition Audio Controller (rev 0e) 00:1c.0 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e) 00:1c.2 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e) 00:1c.3 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e) 00:1d.0 USB controller: Intel Corporation ValleyView USB Enhanced Host Controller (rev 0e) 00:1f.0 ISA bridge: Intel Corporation ValleyView Power Control Unit (rev 0e) 00:1f.3 SMBus: Intel Corporation ValleyView SMBus Controller (rev 0e) 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) cat /proc/version Linux version 4.1.0-rc1+ (root@cel) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #2 SMP Sat May 2 04:51:35 CEST 2015 00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e) 00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) 00:13.0 SATA controller: Intel Corporation Device 0f23 (rev 0e) 00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e) 00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e) 00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 0e) 00:1c.2 PCI bridge: Intel Corporation Device 0f4c (rev 0e) 00:1c.3 PCI bridge: Intel Corporation Device 0f4e (rev 0e) 00:1d.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB EHCI (rev 0e) 00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e) 00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 0e) 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) ==== BIOS ===== F2 to enter bios dmidecode (...) Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: LENOVO Version: A7CN40WW Release Date: 07/18/2014 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 4096 kB (...) * <2014-07-18> : A7CN40WW * http://download.lenovo.com/consumer/mobiles/a7cn43ww.txt * <2015-03-27> http://download.lenovo.com/consumer/mobiles/a7cn45ww_64.txt * Fix three security vulnerabilities:LEN-2014-004,LEN-2014-009,LEN-2014-010 ===== CPU ====== Specs: N2840 [[CELERON]] model name : Intel(R) Celeron(R) CPU N2840 @ 2.16GHz * https://cpu.userbenchmark.com/Compare/Intel-Celeron-N2840-vs-Intel-Atom-N450/m16086vsm3190# Gt AtoM ===== INSTALL LINUX ===== * http://cdimages.ubuntu.com/lubuntu/releases/15.04/release/lubuntu-15.04-desktop-amd64.iso url=https://launchpad.net/ubuntu/+source/linux/4.1.0-3.3/+build/7733039 wget -O- $url \ | grep -o 'http[^">]*\.deb' | grep -v 'udeb' | while read url ; do wget $url ; done * https://launchpad.net/ubuntu/+source/linux-firmware ==== EFI BOOT ==== I installed ubuntu from [[VirtualBox]] running in a linux system booted on UsB bios legacy mode... ([[Grub]] was installed to sda7) then boot it from the same device after regen grub. Installed EasyBcd on windows (it didnt help and failed on reboot) ==== GUMMIBOOT ==== Then I copied gummiboot files to /dev/sda2 (sda3 is untouched IICR) added gummieboot as entry of BcD (from admin's wcmd will fail on PowerShell) bcdedit /set {bootmgr} path ... Tweeked again using EasyUEFI.exe Resources : * http://andre.blaatschaap.be/tag/gummiboot/# ToRead ==== SECURE BOOT ===== Then selected new menu entry , but error happend : "has been blocked by the current security policy" Then disabled Security mode in BIOS/Firmware : set Admin password. save and quit enter again go to boot secure boot : disabled Then gummie appreared it failed to boot I fixed those files as shown and it worked : ls -l /dev/disk/by-id/ | grep sda2 lrwxrwxrwx 1 root root 10 mai 1 20:40 ata-WDC_WD2500LPCX-24C6HT0_WD-WX21E54AW223-part2 -> ../../sda2 cat<>/etc/fstab /dev/disk/by-id/ata-WDC_WD2500LPCX-24C6HT0_WD-WX21E54AW223-part2 /boot/efi auto auto 0 0 EOF mount /boot/efi/ root@cel:/etc# find /boot/efi/ | less (...) /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi (...) /boot/efi/EFI/Boot/bootx64.efi.orig /boot/efi/EFI/Boot/bootx64.efi /boot/efi/EFI/Boot/bootx64.efi.mine /boot/efi/EFI/8702874430274e929cec26c55a1c1e9b /boot/efi/EFI/8702874430274e929cec26c55a1c1e9b/3.19.0-15-generic /boot/efi/EFI/8702874430274e929cec26c55a1c1e9b/3.19.0-15-generic/initrd /boot/efi/EFI/8702874430274e929cec26c55a1c1e9b/3.19.0-15-generic/linux /boot/efi/EFI/loader /boot/efi/EFI/loader/entries /boot/efi/EFI/loader/entries/8702874430274e929cec26c55a1c1e9b-3.19.0-15-generic.conf /boot/efi/EFI/gummiboot /boot/efi/EFI/gummiboot/gummibootx64.efi /boot/efi/BOOT /boot/efi/BOOT/boot.sdi /boot/efi/loader /boot/efi/loader/entries /boot/efi/loader/entries/8702874430274e929cec26c55a1c1e9b.conf /boot/efi/loader/entries/8702874430274e929cec26c55a1c1e9b.conf~ /boot/efi/loader/loader.conf root@cel:/etc# ls -l /boot/efi/EFI/Boot total 1740 -rwxr-xr-x 1 root root 78107 Jul 21 2014 bootx64.efi -rwxr-xr-x 1 root root 78107 May 1 17:53 bootx64.efi.mine -rwxr-xr-x 1 root root 1617240 Jun 14 2014 bootx64.efi.orig cat /boot/efi/loader/loader.conf timeout 3 default 8702874430274e929cec26c55a1c1e9b-* -rwxr-xr-x 1 root root 78107 juil. 21 2014 /boot/efi/EFI/gummiboot/gummibootx64.efi cat /boot/efi/EFI/loader/entries/8702874430274e929cec26c55a1c1e9b-3.19.0-15-generic.conf title Ubuntu 15.04 version 3.19.0-15-generic machine-id 8702874430274e929cec26c55a1c1e9b options root=UUID=813b2cac-d813-42dd-86a5-6e3ff8c4885a ro quiet linux /8702874430274e929cec26c55a1c1e9b/3.19.0-15-generic/linux initrd /8702874430274e929cec26c55a1c1e9b/3.19.0-15-generic/initrd Booted in EFI mode it worked Then I reinstalled again to make sure the package scripts are working fine : aptitude reinstall gummiboot The following packages will be REINSTALLED: gummiboot 0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 20 not upgraded. Need to get 0 B/45.0 kB of archives. After unpacking 0 B will be used. [master 9bbc0f3] saving uncommitted changes in /etc prior to apt run Author: user 1 file changed, 1 insertion(+) (Reading database ... 118031 files and directories currently installed.) Preparing to unpack .../gummiboot_45-2_amd64.deb ... Unpacking gummiboot (45-2) over (45-2) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up gummiboot (45-2) ... Copied /usr/lib/gummiboot/gummibootx64.efi to /boot/efi/EFI/gummiboot/gummibootx64.efi. Copied /usr/lib/gummiboot/gummibootx64.efi to /boot/efi/EFI/Boot/bootx64.efi. Then I installed an other kernel to check if it is added to the boot menu : apt-get install linux-image-lowlatency Ok it added an other "Ubuntu 15" entry Let's add the 1st entry the "automatic way" sudo aptitude reinstall linux-image-3.19.0-15-generic === RESOURCES === * http://www.easyuefi.com/ * http://askubuntu.com/questions/221835/installing-ubuntu-on-a-pre-installed-windows-8-64-bit-system-uefi-supported af6fad138d2944e92f8a66a1f310c2b9 EasyUEFI_Setup.exe * https://forums.lenovo.com/t5/Linux-Discussion/How-do-I-dual-boot-kali-linux-and-Win8-1-on-S410/td-p/1770481 @TaG: BcD ===== HDD : 250 GB ===== It was shiped with WindowS 8.1 how to ask for ReFund ? df -h | grep sda /dev/sda1 1000M 295M 706M 30% /tmp/tmp-root.tmp/mnt/dev/sda1 /dev/sda2 256M 29M 228M 12% /tmp/tmp-root.tmp/mnt/dev/sda2 /dev/sda3 996M 524M 473M 53% /tmp/tmp-root.tmp/mnt/dev/sda3 /dev/sda5 191G 27G 165G 14% /tmp/tmp-root.tmp/mnt/dev/sda5 /dev/sda6 25G 1,9G 24G 8% /tmp/tmp-root.tmp/mnt/dev/sda6 /dev/sda7 15G 12G 3,4G 78% /tmp/tmp-root.tmp/mnt/dev/sda7 grep sda /proc/partitions 8 0 244198584 sda 8 1 1024000 sda1 8 2 266240 sda2 8 3 1024000 sda3 8 4 131072 sda4 8 5 199970816 sda5 8 6 26214400 sda6 8 7 15566848 sda7 WD2500LPCX HDD 250 GB 5400rpm, 2.5" / Serial ATA II 3.0Gb/s / 5400rpm / 8MB (bulk) Disk /dev/sda: 250.1 GB, 250059350016 bytes 256 heads, 63 sectors/track, 30282 cylinders, total 488397168 sectors ===== WIFI : RTL8723BE ===== lspci -k 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter Subsystem: Lenovo Device b736 Kernel driver in use: rtl8723be * https://wikidevi.com/wiki/Realtek_RTL8723BE_miniCard_%28HMC%29 * https://ask.fedoraproject.org/en/questions/scope:all/sort:activity-desc/tags:rtl8723be/page:1/ * https://bugzilla.kernel.org/show_bug.cgi?id=56381 * http://billauer.co.il/blog/2014/08/linux-ubuntu-yoga-hardware-blocked-wireless-lan/ sudo modprobe -r ideapad_laptop sudo rfkill unblock all rfkill list SolutioN : applies on linux-source-3.13.0 * https://www.dropbox.com/s/ivaogq03guukrmq/x86-ideapad-3.16.0-33.tar.gz * http://forums.linuxmint.com/viewtopic.php?t=192937&p=1000415 * http://community.linuxmint.com/hardware/view/22821 * http://community.linuxmint.com/hardware/view/21091 * http://community.linuxmint.com/hardware/view/21313 * http://askubuntu.com/questions/549392/ubuntu-on-lenovo-yoga-3-pro @TaG: RfKill @TaG: [[BCM4313]] ===== TODO / WORK IN PROGRESS ===== I am Upstreaming fixes : * https://lkml.org/lkml/2015/5/2/88# "ideapad_laptop: Add Lenovo G40-30 to devices without radio switch" * https://bugs.launchpad.net/ideapad-laptop/+bug/1450946# Enable wifi on lenovo g40 30 using linux's ideapad module I noticed that lenovo g40 30 wifi is disabled by default on Ubuntu 15.04 and cant be enabled without removing module... I made a simple kernel patch based on the yoga fixes and it works like charm... So I plan to commit this upstream and report progress in this bugtracker. If it's slow to be merged mentors are welcome... More info to be shared at : http://rzr.online.fr/q/ideapad HistorY : * <2016-11-01> : Working out of the box with latest UbuntU LtS (please confirm) * <2015-05-02> : https://bugs.launchpad.net/ideapad-laptop/+bug/1450946 * <2015-05-02> : https://lkml.org/lkml/2015/5/2/88 * https://github.com/rzr/linux/commit/for-upstream# UpStream ContriB * http://thread.gmane.org/gmane.linux.drivers.platform.x86.devel/6881 * http://www.kernelhub.org/?&p=7&dev=28390 * http://marc.info/?l=linux-kernel&m=143057248900636&w=2 * http://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git/commit/9b071a43553d6b2df4364951639f61076a8dd676 * http://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git/tag/refs/tags/platform-drivers-x86-v4.1-2 * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/platform/x86/ideapad-laptop.c?id=9b071a43553d6b2df4364951639f61076a8dd676 * https://github.com/torvalds/linux/commits?author=rzr * <2015-05-10> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tag/?id=v4.1-rc3 NexT : * https://wiki.ubuntu.com/Kernel/MainlineBuilds * http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D MisC : git remote add linux-platform-drivers-x86 git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git See later BT chapter for sources More: * https://freedomsponsors.org/issue/423/ideapad-laptop-driver-does-not-unblock-the-wireless-card-form-hard-block {{http://image-store.slidesharecdn.com/d107d496-31c2-40f5-90b5-9adde08d2f0d-large.png}} ==== COMMUNITY ==== * https://bugs.debian.org/779643# firmware-realtek - bluetooth not working on rtl8723be * http://forums.linuxmint.com/viewtopic.php?f=49&t=176654# DeB * https://forums.kali.org/showthread.php?22638-rtl8723be-wireless-driver-installation&p=37193&viewfull=1#post37193 * https://bugs.launchpad.net/ubuntu/+source/linux-lts-utopic/+bug/1397021# ==== UpStream: ==== * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/platform/x86/ideapad-laptop.c * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS IDEAPAD LAPTOP EXTRAS DRIVER L: platform-driver-x86@vger.kernel.org W: http://launchpad.net/ideapad-laptop S: Maintained F: drivers/platform/x86/ideapad-laptop.c * http://vger.kernel.org/vger-lists.html#platform-driver-x86 * http://search.gmane.org/?query=ideapad_laptop&author=&group=gmane.linux.drivers.platform.x86.devel&sort=relevance&DEFAULTOP=and&xP=Zideapad&xFILTERS=Glinux.drivers.platform.x86.devel---A * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/platform/x86/ideapad-laptop.c?id=ce363c2bcb2303e7fad3a79398db739c6995141b * http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git# QueueD * http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/?qt=grep&q=ideapad-laptop# ==== MISC ==== cat<> /etc/modprobe.d/rtl8723be.conf > options rtl8723be fwlps=0 swlps=0 ips=0 > EOF root@cel:/etc# modprobe -r rtl8723be ; modprobe -v rtl8723be * https://github.com/lwfinger/rtlwifi_new/issues/22 * http://askubuntu.com/questions/526214/how-to-set-parameters-for-realtek-wifi-rtl8723 * http://ubuntuforums.org/showthread.php?t=2220933 ===== BlueTooth : 0bda:b728 ==== lsusb # 0bda:b728 Realtek Semiconductor Corp. 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter Subsystem: Lenovo Device b736 Kernel driver in use: rtl8723be 02:00.0 0280: 10ec:b723 Subsystem: 17aa:b736 Kernel driver in use: rtl8723be sudo lshw *-usb:2 description: Bluetooth wireless interface product: Bluetooth Radio vendor: Realtek physical id: 3 bus info: usb@1:1.4.3 version: 2.00 serial: ???????????? capabilities: bluetooth usb-2.10 configuration: driver=btusb maxpower=500mA speed=12Mbit/s lsusb -v -d 0bda:b728 | less Bus 001 Device 006: ID 0bda:b728 Realtek Semiconductor Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.10 bDeviceClass 224 Wireless bDeviceSubClass 1 Radio Frequency bDeviceProtocol 1 Bluetooth bMaxPacketSize0 64 idVendor 0x0bda Realtek Semiconductor Corp. idProduct 0xb728 bcdDevice 2.00 iManufacturer 1 Realtek iProduct 2 Bluetooth Radio iSerial 3 ???????????? bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 177 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0000 1x 0 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0000 1x 0 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 2 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0009 1x 9 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0009 1x 9 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 2 bNumEndpoints 2 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0011 1x 17 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0011 1x 17 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 3 bNumEndpoints 2 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0019 1x 25 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0019 1x 25 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 4 bNumEndpoints 2 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0021 1x 33 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0021 1x 33 bytes bInterval 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 5 bNumEndpoints 2 bInterfaceClass 224 Wireless bInterfaceSubClass 1 Radio Frequency bInterfaceProtocol 1 Bluetooth iInterface 4 Bluetooth Radio Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0031 1x 49 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0031 1x 49 bytes bInterval 1 Binary Object Store Descriptor: bLength 5 bDescriptorType 15 wTotalLength 12 bNumDeviceCaps 1 USB 2.0 Extension Device Capability: bLength 7 bDescriptorType 16 bDevCapabilityType 2 bmAttributes 0x00000002 Link Power Management (LPM) Supported Device Status: 0x0001 Self Powered ==== SETUP ==== It did not work out of the box so some extra steps are needed Rebuild it all / This branch will work : * https://github.com/rzr/linux/tree/bluetooth * https://github.com/rzr/linux-firmware/tree/master sudo make install DESTDIR=/usr/local/opt/linux-firmware cd /usr/local/opt/linux-firmware d="lib/firmware/rtl_bt/" mkdir -p "/$d" find $d -type f | while read t ; do sudo ln -fsv $(pwd)/$t /$t ; done ==== USAGE ==== sudo apt-get install bluez-tools sudo grep -i bluetooth /sys/kernel/debug/usb/devices lsusb # 0bda:b728 Realtek Semiconductor Corp. lsmod | grep bluetooth systemctl restart bluetooth systemctl status bluetooth sudo rfkill list | grep 'blocked: yes' bluez-test-adapter list # [ /org/bluez/1616/hci0 ] # Powered = 1 hcitool dev # should list : Devices: hci0 2C:33:7A:??:??:?? sudo dmesg | tail # Bluetooth: HIDP (Human Interface Emulation) ver 1.2 hidd --search # nothing BUG here hcitool scan # nothing BUG here anyway, btmon is a good tool to try to decode the low-level communication with the adapter i.e. stop/kill bluetoothd and use only btmgmt for discovery etc @TaG: BlueTooth ==== UPSTREAM ==== * http://wireless.kernel.org/ * http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=b13c4addc359376f150f76d54c857490366050a8 * https://git.kernel.org/cgit/linux/kernel/git/linville/wireless-testing.git/log/ * https://git.kernel.org/cgit/linux/kernel/git/kvalo/wireless-drivers.git/log/ * https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/log * https://github.com/lwfinger/rtlwifi_new/issues/18# UpStream * https://github.com/troy-tan/driver_store/blob/master/bluetooth/8723BE/linux_bt_usb_2.11.20140423_8723be.rar * https://github.com/lwfinger/rtl8723au_bt/tree/troy/Linux_BT_USB_2.11.20140423_8723BE/8723B * https://github.com/lwfinger/rtl8723au_bt/commit/895929d5e66b7fbd0601f35975f54e7dd2e99a77 * http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=277&DownTypeID=3&GetDown=false&Downloads=true * https://wireless.wiki.kernel.org/en/users/Drivers/rtl819x * http://rockchip.fr/radxa/linux/patches/rtl8723au_bt/0001-Add-hci_recv_fragment-function.patch === DRIVER === You need to use the troy branch of http://github.com/lwfinger/rtl8723au_bt.git. Despite the name, its driver is for all Realtek BT devices. * https://github.com/lwfinger/rtl8723au_bt/blob/troy/Linux_BT_USB_2.11.20140423_8723BE/rtk_btusb.c * http://permalink.gmane.org/gmane.linux.kernel.wireless.general/101805# 2012 * http://search.gmane.org/?query=rtk_btusb * http://thread.gmane.org/gmane.linux.bluez.kernel/54587/focus=54606# 2015 * http://thread.gmane.org/gmane.linux.bluez.kernel/35398/focus=35665# rtk_btusb: RTL8723AE * http://thread.gmane.org/gmane.linux.kernel/1413377/focus=1414523# rtk_btusb * http://thread.gmane.org/gmane.linux.bluez.kernel/32865/focus=32997# Realtek RTL8723AE combo device * http://thread.gmane.org/gmane.linux.bluez.kernel/50748/focus=50906# Realtek 8723/8761 Intial efforts where into : "rtl8723au_bt" driver * https://github.com/dsd/rtl8723au_bt/commits/new Seems to be merged into BtUsb "Bluetooth: btusb: Add Realtek 8723/8761 support" : * http://thread.gmane.org/gmane.linux.bluez.kernel/50377 * http://thread.gmane.org/gmane.linux.bluez.kernel/50748/focus=50906 * http://marc.info/?l=linux-bluetooth&m=140421888920289&w=2 * http://marc.info/?l=linux-bluetooth&m=140421888920289&q=raw Merged into Maintainer repo : * <2015-04-16> http://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=a2698a9bf9b0cfcf7e556946e04c4456a13a6f5a * <2015-04-29> http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/bluetooth/btusb.c?id=a2698a9bf9b0cfcf7e556946e04c4456a13a6f5a * <2015-05-04> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=73e84313ee4178cac628009103a901af9dfe8920 * <2015-04-29> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/bluetooth/btusb.c?id=a2698a9bf9b0cfcf7e556946e04c4456a13a6f5a * <2015-05-10> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tag/?id=v4.1-rc3 To be tracked at : * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/bluetooth/btusb.c === FIRMWARE === dmesg | grep fw # I guess this is not enough # [ 11.590111] rtl8723be: Using firmware rtlwifi/rtl8723befw.bin apt-file search rtl8723b_fw.bin I guess this should be upstreamed too ? * <2015-02-13> https://github.com/dsd/linux-firmware/commit/d90ad18a2f935ad6663d973554961981f071a63e * <2015-05-08> https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/commit/?id=8e181320b11de501046cf75c8c30915cd09a1e39 * http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/log/?qt=grep&q=Realtek * https://tracker.debian.org/pkg/firmware-nonfree MisC : * https://github.com/lwfinger/rtl8723be/issues/10 Ubuntu ships it now : * https://launchpad.net/ubuntu/+source/linux-firmware wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-firmware_1.146_all.deb lib/firmware/rtl_bt/rtl8723b_fw.bin @TaG: BtUsb ==== COMMUNITY ==== * http://hw.rosalinux.ru/index.php?id=usb:0bda-b728 * http://forum.ubuntu-fr.org/viewtopic.php?id=1718231 CommunitY * https://forums.opensuse.org/showthread.php/506003-Lenovo-G40-RTL8723be-wireless-disabled-by-hardware-(wifi-and-bluetooth) * https://forum.manjaro.org/index.php?topic=19370.0# BtUsb rtk_btusb.c * http://askubuntu.com.80bola.com/questions/568138/buetooth-not-working-on-14-04-not-shown-in-lspci-or-lsusb# rtl8723au_bt * http://ubuntuforums.org/showthread.php?t=2262775&page=3# BtUsb * http://askubuntu.com/questions/617260/bluetooth-does-not-detect-devices-on-lenovo-with-12-04# UbuntU * http://unix.stackexchange.com/questions/170012/rtl8723be-realtek-wifi-card-driver-not-working-on-ubuntu-14-04 * http://askubuntu.com/questions/542768/wireless-problems-lenovo-g50-30 * http://ubuntuforums.org/showthread.php?t=2242379&p=13277972#post13277972 * https://forums.gentoo.org/viewtopic-p-7742462.html#7742462# GenToo ==== LINKS ==== * https://bugs.launchpad.net/ubuntu/+source/linux-lts-utopic/+bug/1433987# DownStream UbuntU * http://bugs.debian.org/779032# BlueTooth RealTek * https://bugs.debian.org/741708# DebiaN * https://wiki.debian.org/BluetoothUser/a2dp# BlueTooth * https://packages.debian.org/unstable/firmware-realtek# FirmWare * https://github.com/lwfinger/rtlwifi_new/issues/18# SourcE * https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1382404# BuG * http://www.theworkingparet.com/showthread.php?t=2262775&page=2# BtUsb * http://en.wikipedia.org/wiki/Comparison_of_open-source_wireless_drivers# ReferencE * https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/drivers/net/wireless/rtlwifi * http://sourceforge.net/projects/rtl-wifi/# RealTek ===== VIDEO : 8086:0f31 ===== rzr@cel:~/tmp$ glxinfo | head name of display: :1.0 display: :1 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.4 (...) OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Bay Trail OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.2 OpenGL core profile shading language version string: 3.30 glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 304 frames in 5.0 seconds = 60.736 FPS url="http://kino3d.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov" wget -c "$url" url=file://$(pwd)/$(basename -- "$url") gst-launch-1.0 playbin uri="${url}" video-sink="vaapisink" audio-sink=fakesink sudo apt-get install i965-va-driver vainfo libva-egl1 libva-drm1 libva-wayland1 WayLand ? * https://bugs.freedesktop.org/show_bug.cgi?id=66897 * https://bugs.freedesktop.org/show_bug.cgi?id=89689 * http://bugs.debian.org/771796 ===== FIRMWARE / ACPI / SENSORS etc ===== dmesg | grep -i failed [ 0.240547] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM [ 0.287838] pci 0000:00:1c.0: BAR 14: failed to assign [mem size 0x00200000] [ 0.287851] pci 0000:00:1c.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref] [ 0.287863] pci 0000:00:1c.2: BAR 15: failed to assign [mem size 0x00200000 64bit pref] [ 0.287875] pci 0000:00:1c.3: BAR 15: failed to assign [mem size 0x00200000 64bit pref] [ 0.287896] pci 0000:00:1c.3: BAR 15: failed to assign [mem size 0x00200000 64bit pref] [ 0.287908] pci 0000:00:1c.2: BAR 15: failed to assign [mem size 0x00200000 64bit pref] [ 0.287917] pci 0000:00:1c.0: BAR 14: failed to assign [mem size 0x00200000] [ 0.287929] pci 0000:00:1c.0: BAR 15: failed to assign [mem size 0x00200000 64bit pref] [ 0.965770] sdhci: module verification failed: signature and/or required key missing - tainting kernel [ 1.303472] usb: failed to peer 1-4-port3 and usb2-port1 by location (1-4-port3:none) (usb2-port1:usb1-port1) [ 1.303480] usb 1-4-port3: failed to peer to usb2-port1 (-16) [ 1.303539] usb: failed to peer 1-4-port4 and usb2-port1 by location (1-4-port4:none) (usb2-port1:usb1-port1) [ 1.303543] usb 1-4-port4: failed to peer to usb2-port1 (-16) ==== ACPI ==== dmesg | grep -i error [ 0.170329] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM * https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349740# DownStream * https://bugzilla.kernel.org/show_bug.cgi?id=85931# UpStream acpi -V || apt-get install acpi Battery 0: Full, 100% Battery 0: design capacity 1897 mAh, last full capacity 1946 mAh = 100% Adapter 0: on-line Thermal 0: ok, 39.0 degrees C Thermal 0: trip point 0 switches to mode critical at temperature 90.0 degrees C Thermal 0: trip point 1 switches to mode hot at temperature 85.0 degrees C Thermal 0: trip point 2 switches to mode passive at temperature 85.0 degrees C Cooling 0: intel_powerclamp no state information available Cooling 1: Processor 0 of 10 Cooling 2: Processor 0 of 10 ==== SOC ==== [ 10.373815] intel_soc_dts_thermal: request_threaded_irq ret -22 [ 10.430626] intel_soc_dts_thermal: request_threaded_irq ret -22 * https://bugzilla.redhat.com/show_bug.cgi?id=1198563 ==== FW ==== sudo fwfs -d # run through ssh in gnu screen , since dim=nolight sudo fwfs -b grep failed results.log 952 passed, 31 failed, 4 warnings, 0 aborted, 140 skipped, 11 info only. Test Failure Summary ================================================================================ Critical failures: 1 method: Detected error 'Type' when evaluating '\_SB_.ADP0._PCL'. High failures: 6 klog: HIGH Kernel message: [ 0.240536] \_SB_.PCI0:_OSC invalid UUID dmicheck: Out of range value 0x00 (range allowed 0x01..0x0b) while accessing entry 'Voltage Probe (Type 26)' @ 0x78b476da, field 'Location (bits 0..4)', offset 0x05 dmicheck: Out of range value 0x00 (range allowed 0x01..0x06) while accessing entry 'Voltage Probe (Type 26)' @ 0x78b476da, field 'Status (bits 5..7)', offset 0x05 syntaxcheck: Assembler error in line 60 syntaxcheck: Assembler error in line 13137 syntaxcheck: Compilation aborted early due to a parser detected syntax error. Medium failures: 2 apicedge: Legacy interrupt 8 is incorrectly level triggered. fan: Fan present but has no cur_state present. Low failures: 22 (...) Test |Pass |Fail |Abort|Warn |Skip |Info | apicedge | | 1| | | | | dmicheck | 52| 12| | | | | fan | 2| 1| | | | | klog | | 1| | | | | mcfg | 1| 1| | | | | method | 725| 1| | | 125| | syntaxcheck | 2| 14| | | | | grep FAILED results.log | sort FAILED [CRITICAL] AETtype: Test 123, Detected error 'Type' when evaluating FAILED [HIGH] AMLAsmASL_MSG_SYNTAX: Test 1, Assembler error in line 13137 FAILED [HIGH] AMLAsmASL_MSG_SYNTAX: Test 1, Assembler error in line 60 FAILED [HIGH] DMIValueOutOfRange: Test 2, Out of range value 0x00 (range allowed FAILED [HIGH] DMIValueOutOfRange: Test 2, Out of range value 0x00 (range allowed FAILED [HIGH] KlogOscInvalidUuid: Test 1, HIGH Kernel message: [ 0.240536] FAILED [HIGH] SyntaxCheckIASLCompilerAborted: Test 1, Compilation aborted early FAILED [LOW] AMLAsmASL_MSG_NOT_REFERENCED: Test 1, Assembler remark in line 89 FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] AMLAsmASL_MSG_SERIALIZED_REQUIRED: Test 1, Assembler remark in line FAILED [LOW] DMIAssetTag: Test 2, String index 0x01 in table entry 'System Power FAILED [LOW] DMIAssetTag: Test 2, String index 0x05 in table entry 'System Power FAILED [LOW] DMISerialNumber: Test 2, String index 0x01 in table entry 'Cache FAILED [LOW] DMISerialNumber: Test 2, String index 0x01 in table entry 'Cache FAILED [LOW] DMISerialNumber: Test 2, String index 0x01 in table entry 'Cache FAILED [LOW] DMISerialNumber: Test 2, String index 0x02 in table entry 'System FAILED [LOW] DMISerialNumber: Test 2, String index 0x03 in table entry 'Memory FAILED [LOW] DMISerialNumber: Test 2, String index 0x03 in table entry 'System FAILED [LOW] DMISerialNumber: Test 2, String index 0x04 in table entry 'System FAILED [LOW] DMISerialNumber: Test 2, String index 0x05 in table entry 'Memory FAILED [LOW] MCFGMMIONotReserved: Test 1, MCFG MMIO config space at 0xe0000000 FAILED [MEDIUM] LegacyIRQLevelTrig: Test 1, Legacy interrupt 8 is incorrectly FAILED [MEDIUM] NoFanCurState: Test 1, Fan present but has no cur_state present. sudo fwts --disassemble-aml * https://wiki.ubuntu.com/FirmwareTestSuite * https://wiki.ubuntu.com/Kernel/Reference/fwts ==== FAN ==== sudo apt-get install fancontrol sudo pwmconfig /usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed * https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1412042/ ==== SENSORS ==== sudo sensors-detect Driver `coretemp': * Chip `Intel digital thermal sensor' (confidence: 9) sensors acpitz-virtual-0 Adapter: Virtual device temp1: +34.0°C (crit = +90.0°C) coretemp-isa-0000 Adapter: ISA adapter Core 0: +33.0°C (high = +105.0°C, crit = +105.0°C) Core 1: +33.0°C (high = +105.0°C, crit = +105.0°C) ===== AUDIO ===== AudiO * http://superuser.com/questions/872204/how-to-record-with-an-external-microphone-on-my-lenovo-g50-70-laptop# ComboJack * http://www.ebay.fr/itm/Headset-adapter-Jack-headphone-microphone-plugs-Audio-Ports-for-headsets-Combo-/222143253774?hash=item33b8c50d0e:g:B9EAAOSwYGFUt5f6 * https://forums.lenovo.com/t5/ThinkPad-T400-T500-and-newer-T/Audio-combo-jack-vs-headphone-earphone-with-mic-and-speaker/ta-p/240186 cat /proc/asound/cards 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0x90810000 irq 92 00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e) 00:1b.0 0403: 8086:0f04 (rev 0e) * https://test.webrtc.org/ LANG=C arecord -l **** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: CX20751/2 Analog [CX20751/2 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 ===== POWER ===== * https://www.youtube.com/watch?v=Mz0_kjzlTKk# RepaiR JacK ===== MISC / HARDWARE ===== * G50 : http://ubuntuforums.org/showthread.php?t=2245876&p=13277980#post13277980 * https://bbs.archlinux.org/viewtopic.php?id=186892# WindowS * https://forums.openmandriva.org/en/discussion/857/can-t-turn-bluetooth-on-can-t-find-devices# RpM * http://www.2uzhan.com/both-bluetooth-and-wifi-not-connecting//# B5400 * https://www.notebookcheck.net/Lenovo-IdeaPad-500-15ACZ-Notebook-Review.160723.0.html IdeaPad 500-15ACZ ApU ===== MORE ===== @TaG: LenovO InteL RealTek WesternDigital N2840 AtoM ValleyView