Differences between revisions 9 and 14 (spanning 5 versions)
Revision 9 as of 2013-08-27 18:45:22
Size: 12565
Editor: JoeyHess
Comment: wifi driver
Revision 14 as of 2013-12-31 04:55:51
Size: 12265
Editor: GeoffSimmons
Comment: Format compilation commands as code blocks, to avoid mailto links.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from InstallingDebianOn/Lenovo/IdeaPad Yoga 13 (wheezy)
Line 31: Line 32:
|| Sleep / Suspend || [?] || || Sleep / Suspend || {OK} ||
Line 39: Line 40:
|| Wireless/Wifi || X-( || || Wireless/Wifi || {i} ||
|| Bluetooth || {i} ||
Line 56: Line 58:

Line 90: Line 90:
 * Get the latest stable kernel sources from [[http://www.kernel.org/|Kernel.org]] (version 3.8.5 when I write this)
 * Unpack it: tar -Jxvf linux-3.8.5.tar.xz
 * cd linux-3.8.5/
 * Get the latest stable kernel sources from [[http://www.kernel.org/|Kernel.org]] (version 3.11.1 when I write this)
 * Unpack it: tar -Jxvf linux-3.11.1.tar.xz
 * cd linux-3.11.1/
Line 101: Line 101:
 * time fakeroot make-kpkg -j5 --initrd --revision=3.8.5 --append-to-version=-amd64 kernel_image kernel_headers  * time fakeroot make-kpkg -j5 --initrd --revision=3.11.1 --append-to-version=-amd64 kernel_image kernel_headers
Line 123: Line 123:
Hibernation and sleep/suspend seems to work in the Debian stock kernel and in Linux 3.8.5. I have had problems under Linux 3.8.2 but have not done any debugging. More testing is needed. Hibernation and sleep/suspend seems to work in the Debian stock kernel and in Linux 3.11.1.
Line 128: Line 128:
== WiFi ==
Wifi does NOT work out of the box at all. There is a beta-grade non-free driver which you can get by sending an e-mail to Realtek support and ask for the "RTL8723AS-VAU" driver.

 * Unpack the driver
 * ./make_drv
 * make
 * sudo make install

If you are running Linux 3.8, as suggested for the touch screen, you may get an error when running "make" mentioning the "daemonize" function. This function has been removed from the kernel, for reasons the author is not familiar with so the following may create security problems. Open ''include/osdep_service.h'' and remove the line calling the ''daemonize'' function. (You do this at your own risk. Neither the author nor the Debian team will take any responsibility if this makes your system unstable).

New free wifi driver, reported to work and targeted at the linux staging tree: <https://github.com/lwfinger/rtl8723au>
== WiFi and bluetooth ==
Wifi and bluetooth does NOT work out of the box at all. There is a beta-grade free driver by Larry Finger which you can download and compile. This is tested on both the stock Debian kernel and on a newer Linux 3.11 kernel.

Wifi (where ''amd64'' is your arch): {{{
sudo apt-get install git-core build-essential linux-headers-amd64
git clone git@github.com:lwfinger/rtl8723au.git
cd rtl8723au/
make
sudo make install
}}}

Bluetooth: {{{
git clone git@github.com:lwfinger/rtl8723au_bt.git
cd rtl8723au_bt/
make
sudo make install
}}}

Translation(s): none

DebianOn is an effort to document how to install, configure and use Debian on some specific hardware. Therefore potential buyers would know if that hardware is supported and owners would know how get the best out of that hardware.

The purpose is not to duplicate the Debian Official Documentation, but to document how to install Debian on some specific hardware.

If you need help to get Debian running on your hardware, please have a look at our user support channels where you may find specific channels (mailing list, IRC channel) dedicated to certain types of hardware.

Models covered
Lenovo IdeaPad Yoga 13

Sub-models options :

  • 128 GB/256 GB SSD
  • 4GB/8GB RAM

Overall Status

Core Components

[ATTACH]

Boot Standard Kernel:

{OK}

Detect hard drives:

{OK}

Extra Features

CPU Frequency Scaling

{OK}

Hibernation

[?]

Sleep / Suspend

{OK}

Xorg

{OK}

- OpenGL

{OK}

- Resize-and-Rotate(randr)

{OK}

Switch to External Screen

{OK}

Mouse

- Built-in (Touchpad)

{OK}

- Built-in (Touch screen)

{i}

Wireless/Wifi

{i}

Bluetooth

{i}

Webcam

{OK}

Keyboard's Hotkeys

{OK}

Legend :
{OK} = OK ; {X} Unsupported(No Driver) ; /!\ = Error (Couldn't get it working); [?] Unknown, Not Test ; [-] Not-applicable
{i} = Configuration Required; X-( = Only works with a non-free driver and or firmware

Important Note

BIOS must be set to legacy mode and disable secure boot.

There are a lot of partitions on the disk. I just removed the partition from the pre-installed operating system and kept the others. The SSD is larger than advertised so it evens out.

Create a swap partition large enough for your entire RAM if you want to use hibernate. The Debian installer does this automatically if you don't partition manually (it created 9.2 GB of swap for my 8 GB of RAM).

Configuration

Display

Intel HD4000. Works out of the box, although read on for touch screen and brightness controls. Uses the i915 kernel driver.

3D works flawless with 60 FPS in glxgears, matching the screen rate. xrandr and secondary HDMI screen works.

Brightness

Screen brightness does no work out of the box but is easy to configure. As root or with sudo, edit the file /etc/default/grub and change

  • GRUB_CMDLINE_LINUX_DEFAULT="quiet"

into

  • GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor"

Then update the Grub configuration by running (as root or with sudo):

  • dpkg-reconfigure linux-image-$(uname -r)

Multitouch Screen

The touch screen works using version 3.8 of the Linux kernel. Do not expect multi-finger touch at this point in time, though, because there are not many programs that support them. Compiling the kernel is not hard, and you end up with a .deb package to install if you follow these instructions:

  • sudo aptitude install kernel-package fakeroot build-essential
  • Get the latest stable kernel sources from Kernel.org (version 3.11.1 when I write this)

  • Unpack it: tar -Jxvf linux-3.11.1.tar.xz
  • cd linux-3.11.1/
  • Copy configuration from old kernel: cp /boot/config-$(uname -r) .config
  • make oldconfig
  • You will now get a lot of questions to answer. Ideally, you should take a stance on each and every one, but the defaults are mostly sensible so you may accept them all.
  • You will want to tune a few things: make menuconfig
    • Power management and ACPI Options -> Default resume partition: Set to your swap partition

    • Device Drivers -> Multimedia support -> Cameras/video grabbers support

    • Device Drivers -> Multimedia support -> Media USB Adapters -> USB Video Class (UVC)

  • make-kpkg clean
  • time fakeroot make-kpkg -j5 --initrd --revision=3.11.1 --append-to-version=-amd64 kernel_image kernel_headers
  • This will take a while (approx. 30 minutes).
  • When done, install the packages: sudo dpkg --install ../linux-*.deb

Reboot with your new kernel and the touch screen should be working without further configuration. Continue with the installation of the WiFi driver once you have the right kernel.

Audio

Intel 7 Series/C210 Series High Definition Audio Controller. Works out of the box. Uses the snd_hda_intel driver.

Mouse

The mousepad is a Synaptics pad that works out of the box.

Disable mouse on screen rotation

The mousepad is not disabled when rotating the screen (the keyboard is, however). You may disable it manually with:

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0

Power Management

Hibernation and sleep/suspend seems to work in the Debian stock kernel and in Linux 3.11.1.

Webcam

Lenovo Easycam. Works out of the box with the uvcvideo kernel module.

WiFi and bluetooth

Wifi and bluetooth does NOT work out of the box at all. There is a beta-grade free driver by Larry Finger which you can download and compile. This is tested on both the stock Debian kernel and on a newer Linux 3.11 kernel.

Wifi (where amd64 is your arch):

sudo apt-get install git-core build-essential linux-headers-amd64
git clone git@github.com:lwfinger/rtl8723au.git
cd rtl8723au/
make
sudo make install

Bluetooth:

git clone git@github.com:lwfinger/rtl8723au_bt.git
cd rtl8723au_bt/
make
sudo make install


System Summary

lspci

00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
00:04.0 Signal processing controller [1180]: Intel Corporation Device [8086:0153] (rev 09)
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation QS77 Express Chipset LPC Controller [8086:1e56] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller [8086:1e22] (rev 04)
00:1f.6 Signal processing controller [1180]: Intel Corporation 7 Series/C210 Series Chipset Family Thermal Management Controller [8086:1e24] (rev 04)

lsusb

lsusb -v | grep -E '\<(^Bus|iProduct|bDeviceClass|bDeviceProtocol)' 2>/dev/null

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
  iProduct                2 EHCI Host Controller
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
  iProduct                2 EHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         1 Single TT
  iProduct                2 xHCI Host Controller
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  bDeviceClass            9 Hub
  bDeviceProtocol         3 
  iProduct                2 xHCI Host Controller
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  bDeviceClass            9 Hub
  bDeviceProtocol         1 Single TT
  iProduct                0 
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  bDeviceClass            9 Hub
  bDeviceProtocol         1 Single TT
  iProduct                0 
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed (or root) hub
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. 
  bDeviceClass          255 Vendor Specific Class
  bDeviceProtocol       255 Vendor Specific Protocol
  iProduct                2 USB2.0-CRW
  bDeviceClass            0 (Defined at Interface level)
  bDeviceProtocol         0 
Bus 001 Device 004: ID 0bda:1724 Realtek Semiconductor Corp. 
  bDeviceClass          239 Miscellaneous Device
  bDeviceProtocol         1 Interface Association
  iProduct                2 802.11n WLAN Adapter
  bDeviceClass            0 (Defined at Interface level)
  bDeviceProtocol         0 
Bus 001 Device 005: ID 04f3:000a Elan Microelectronics Corp. 
  bDeviceClass            0 (Defined at Interface level)
  bDeviceProtocol         0 
  iProduct                2 Touchscreen
Bus 002 Device 003: ID 2047:0855 Texas Instruments 
  bDeviceClass            0 (Defined at Interface level)
  bDeviceProtocol         0 
  iProduct                2 Lenovo Yoga         
Bus 002 Device 004: ID 04f2:b322 Chicony Electronics Co., Ltd 
  bDeviceClass          239 Miscellaneous Device
  bDeviceProtocol         1 Interface Association
  iProduct                2 Lenovo EasyCamera
  bDeviceClass          239 Miscellaneous Device
  bDeviceProtocol         1 Interface Association

USB Host controllers entries (without OHCI, UHCI, EHCI) are removed too.

Resources

Attachments

Some configuration files and sample outputs.

Credits

Emil Vikström


CategoryLaptopComputer