Posts Tagged ‘efi’

Debian installation on Lenovo h50-50

septiembre 27, 2016


I am going to describe some notes on how to install Debian on Lenovo h50.

BIOS / UEFI modification

First of all you need to press F1 several times at boot time so that Lenovo BIOS Setup Utility appears.

Under Security tab I enter into Secure Boot menu and I change Secure Boot into Disabled. Windows seems to boot ok despite this change.

Under Startup tab I see that CSM is disabled. I keep it disabled because Debian supports UEFI out of the box. I disable Quick Boot to avoid Windows starting in its own and bypassing out Boot order.

While we are still in Startup tab we open Primary Boot Sequence  and make sure the USB HDD entry is in the first place.

Finally I press F10 to save the changes and exit.

Shrink Windows

I won’t explain it here but you usually need to shrink Windows (even using Gparted live disk) so that you can install Debian in a partition of its own.

Boot from Debian AMD64 Netinst installation disk

I used Debian 8.6.0 Debian AMD64 Netinst installation disk myself. I used dd to put the iso image into a usb stick (also known as pendrive).

You just insert the usb stick into the computer and press the ON/OFF switch. The installation disk should appear.


You can add an additional usb stick so that the integrated wifi dongle works out of the box. I have not tested it myself. I used the Etherned card. Other than that it’s a pretty straight-forward Debian installation.

Enable Debian as the first OS

Once again you need to press F1 several times at boot time so that Lenovo BIOS Setup Utility appears.

Under Startup tab we open Primary Boot Sequence and under SATA 1 it shows:

  • Windows Boot Manager
  • debian

I modify its order thanks to + or – keys so that it shows:

  • debian
  • Windows Boot Manager

Finally I press F10 to save the changes and exit.

Nvidia boot

The first boot test was done with screens connected to the Nvidia video card. Grub was shown but then somehow it froze. By removing the quiet boot parametre at boot (press ‘e’ key) I saw the error:

fb: switching to nouveaufb from simple

As I don’t need a full effect desktop I decided to remove nouveau driver altoghether:

First of all at grub I need to edit the Debian entry with ‘e’ and at the kernel line which shows:

linux /boot/vmzlinuz... root=UUID=e39...    ro quiet

where I remove quiet and I blacklist nouveau driver on the fly:

linux /boot/vmzlinuz... root=UUID=e39...    ro modprobe.blacklist=nouveau

I press F10 to be able to boot.

Nvidia boot final fix

Once I am able to boot into my system I edit the file:


so that the line:





We save the file and apply changes by running:



Next time we reboot everything is working fine. However the simple xserver configuration does not detect the additional attached screen. Maybe nouveau with additional switches (or an updated nouveau driver) would do it.

Using Intel Graphics card

As I don’t need nvidia I don’t mind using Intel graphics card. But this BIOS does not enable it by default if it detects the Nvidia cards.

So we have to modify the BIOS once again to use the Intel Graphics card.

Once again you need to press F1 several times at boot time so that Lenovo BIOS Setup Utility appears.

Under Devices tab we open Video setup and in Select Active Video we select IGD instead of Auto .

Finally I press F10 to save the changes and exit.


Of course you don’t have to forget to connect the screens into the Intel graphics plugs (instead of the Nvidia) ones.

Now both screens are autodetected.

Anuncio publicitario

Integrated Intel card in Mac Book Pro 6,2 in Linux Kernel 3.10

julio 27, 2013

As I already explained I finally managed to make work my Integrated intel card in my Debian when using kernel 3.2. I needed to patch the kernel and use some boot parametres to make it work.

But, as expected, Linux Kernel 3.10 without any special patch was not working. But it had to. Why? Because I had asked Seth Forsee about this.

It was not until today that I found the answer in an gentoo forum post: Intel graphics not working on Macbook Pro in EFI mode .

In my old setup I had the kernel parametres:

pcie_aspm=force video=efifb i915.lvds_channel=2
i915.modeset=1 i915.lvds_use_ssc=0
drm.debug=0x14 log_buf_len=16M

among other options which I haven’t modified. I had to modify i915.lvds_channel to be i915.lvds_channel_mode which seems it’s the final name for that option.

So now the default kernel parametres are:

pcie_aspm=force video=efifb i915.lvds_channel_mode=2
i915.modeset=1 i915.lvds_use_ssc=0
drm.debug=0x14 log_buf_len=16M


Apart from having to tap with three-finger to get the right-click instead of only two-finger tap everything seems to be ok.