[SOLVED] Install Debian on HP Notebook

Help with issues regarding installation of Debian

[SOLVED] Install Debian on HP Notebook

Postby Wheelerof4te » 2017-05-16 17:18

Hello everyone, it's been a while :D

I have HP Notebook, the model is 15-ac029nm. I went and downloaded Debian 8.7 .iso image, the one with additional non-free firmware just in case (pls don't hate me).

Now, since my notebook has dual graphic cards, Intel HD and Radeon, I've read on wiki pages it could cause some problems. Installation boots fine, there are minor problems with wi-fi (it asks for realtek firmware, which bugged me), but ethernet works good enough. I figure it will be trivial to install the right wi-fi firmware after. I've checked if Secure boot is on, it is not.

EDIT: Wi-fi works but you need broadcom-sta-source package. Build it with module assistant and install with:

Code: Select all
m-a a-i -t broadcom-sta-source

Don't forget to install broadcom-sta-common package!
Afterwards load the module with:

Code: Select all
modprobe wl

/end of EDIT

Current OS is Windows 10, which did not come pre-installed. Will that cause problems, or it will be perfectly fine to dual-boot (for now)?

TL;DR:
1. My rig is HP Notebook 15-ac029nm, with Windows 10 on it.
2. Secure boot is disabled.
3. Dual graphics
4. Wi-Fi needs non-free firmware, not a problem.
5. Will opt for GNOME desktop.
Last edited by Wheelerof4te on 2017-06-24 11:26, edited 3 times in total.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby Head_on_a_Stick » 2017-05-16 17:36

Wheelerof4te wrote:Current OS is Windows 10, which did not come pre-installed. Will that cause problems, or it will be perfectly fine to dual-boot (for now)?

I think it should be fine as long as you use a non-live (netinstall) ISO image to actually install the system, the live images do not support UEFI.

Be sure to use the Windows Disk Management tool to shrink the Windows partition and make space on the drive; right-click on the Windows button, it is an option in that menu.

If the hardware is relatively new then the stretch rc3 image may be a better choice, use the live images to check compatibility (if you haven't already).

Be aware that you will need to set Windows to use UTC rather than local time, run this command from a Windows Administrator prompt:
Code: Select all
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f

It is also vital to disable Fast Startup to prevent corruption of your Linux partitions, this is the incantation you need for that:
Code: Select all
powercfg /hibernate off

If your motherboard firmware is badly behaved, it may be necessary to set GRUB as the default bootloader from Windows:
Code: Select all
bcdedit /set "{bootmgr}" path "\EFI\debian\grubx64.efi"

Finally, Windows will reset these modifications after every major upgrade, see this guide for a solution:

https://forums.bunsenlabs.org/viewtopic.php?id=3624

I hate Windows so much.
No code is faster than no code.

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6536
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install Debian on HP Notebook

Postby Wheelerof4te » 2017-05-16 17:51

^Thank you for the detailed info. It looks like I can forget about dual-booting, seeing how much annoying it will be to set up. Microsoft really worked hard this time to prevent any other OS to be installed, LOL.

I have netinstall Jessie .iso, but Stretch live image sounds good, as a test. Will try to do that first before anything else.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby stevepusser » 2017-05-16 19:24

It would help others with the same notebook if you'd document here what you have to do to get everything up and working correctly.

A first step that can be done in the Live session is to install inxi, update the PCI and USB device databases as sysadmin:

Code: Select all
update-pciids
update-usbids


and report the output of

Code: Select all
inxi -F


That will give us an idea of the hardware and drivers the Live session is using.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-6, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8696
Joined: 2009-10-06 05:53

Re: Install Debian on HP Notebook

Postby stevepusser » 2017-05-18 00:01

No answer...the Google says that the notebook's CPU and GPU is fourth-generation Broadwell, which means you are not getting full graphics performance with the Jessie kernel and Intel graphics driver. It's possible to get it working well by upgrading the kernel and graphics stack from jessie-backports, or you could try installing Stretch now for out-of-box support.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-6, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8696
Joined: 2009-10-06 05:53

Re: Install Debian on HP Notebook

Postby Wheelerof4te » 2017-05-18 07:41

^Sorry, I couldn't find any USB large enough for the live image. Buying one isn't an option right now.

Yes, you are right, that's what I've read too. I need Stretch's kernel to get both of my cards working out of the box. Considering yours and Head_on_a_Stick's answer, my best bet is to wait for Stretch to be released and to wipe Windows. Dual booting will be a pain with this one, and I don't want to use testing for this notebook.

Thank you both for the help. If all goes well, I'll report it here.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby Wheelerof4te » 2017-05-18 17:04

Well, it seems like live XFCE image can fit in 1 GB USB, haha. I can not describe how happy I am right now :D

Image
new upload photos

Yes, this is Jessie XFCE live and it works like a charm on my notebook. Inxi report below...

Code: Select all
System:    Host: debian Kernel: 3.16.0-4-amd64 x86_64 (64 bit) Desktop: N/A
           Distro: Debian GNU/Linux 8
Machine:   System: Hewlett-Packard product: HP Notebook v: Type1ProductConfigId
           Mobo: Hewlett-Packard model: 80C2 v: 96.13
           Bios: Insyde v: F.0D date: 07/06/2015
CPU:       Dual core Intel Pentium 3825U (-HT-MCP-) cache: 2048 KB
           Clock Speeds: 1: 1900 MHz 2: 1730 MHz 3: 1900 MHz 4: 839 MHz
Graphics:  Card-1: Intel HD Graphics
           Card-2: Advanced Micro Devices [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430]
           Display Server: X.Org 1.16.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.02hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.5, 128 bits)
           GLX Version: 3.0 Mesa 10.3.2
Audio:     Card-1 Intel Wildcat Point-LP High Definition Audio Controller
           driver: snd_hda_intel
           Card-2 Intel Broadwell-U Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
Network:   Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           IF: eth0 state: up speed: 100 Mbps duplex: full
           mac: b0:5a:da:5a:8a:51
           Card-2: Broadcom Limited BCM43142 802.11b/g/n
           driver: bcma-pci-bridge
           IF: N/A state: N/A mac: N/A
Drives:    HDD Total Size: 1001.2GB (0.1% used)
           ID-1: USB /dev/sda model: TS1GJFV30 size: 1.0GB
           ID-2: /dev/sdb model: WDC_WD10JPVX size: 1000.2GB
Sensors:   System Temperatures: cpu: 54.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 146 Uptime: 12 min Memory: 515.9/7924.3MB
           Client: Shell (bash) inxi: 2.1.28


I haven't really tested it fully. As you can see, it doesn't use my radeon card, but it recognizes it. Installing kernel from backports might fix it. It recognizes pretty much everything else. I've noticed also that my battery is draining somewhat fast, installing non-free firmware could help. This is an official live image, which is so sweet. As for the Wi-Fi, it won't be a problem to set up.

RAM usage sits at 7% and CPU is barely struggling at 1-4% with Firefox, Task manager, Thunar and Terminal running.
I will play with this later and report any changes if there are any. Will try to get Wi-fi running next time.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby stevepusser » 2017-05-18 17:41

Well, as is well known by now, you are not getting full support from the Intel graphics driver and Jessie's kernel. With Intel, the tipoff is this:
Code: Select all
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.5, 128 bits)
GLX Version: 3.0 Mesa 10.3.2


You can also have inxi just only report the graphics information with "inxi -G".

If you really want to get it working correctly, follow the HOWTO thread here, and it will look similar to this (for my Skylake 520 graphics):

Code: Select all
GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) GLX Version: 3.0 Mesa 13.0.6
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-6, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8696
Joined: 2009-10-06 05:53

Re: Install Debian on HP Notebook

Postby Wheelerof4te » 2017-06-22 11:47

So I have downloaded live image of Debian 9 GNOME, since that annoying installation bug has been fixed. It is working well :D
This is the image:
https://ibb.co/kGUoL5

Here is the output of inxi for graphics

Code: Select all
Graphics:  Card-1: Intel HD Graphics
           Card-2: Advanced Micro Devices [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430]
           Display Server: X.Org 1.19.2 driver: N/A
           Resolution: 1366x768@60.02hz
           GLX Renderer: Mesa DRI Intel Broadwell GT1
           GLX Version: 3.0 Mesa 13.0.6


Do I need non-free drver for Radeon card, will the performance get any better?

Network:

Code: Select all
Network:   Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           Card-2: Broadcom Limited BCM43142 802.11b/g/n


I have some problems with wi-fi even after checking this wiki page:
https://wiki.debian.org/brcm80211

Which driver do I need in order for my wi-fi to work? That is my only issue so far.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby orythem27 » 2017-06-22 12:07

Wheelerof4te wrote:Card-2: Advanced Micro Devices [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430]
Do I need non-free drver for Radeon card, will the performance get any better?

The "original" non-free driver for Radeon HD 8000 series "fglrx" has been abadoned by AMD long long ago. Some people have luck building it on Debian 9. Personally I would not recommend it anymore to avoid creating a huge mess.

For casual use, stick with the open source driver "radeon". Make sure you have non-free firmware installed.

New driver "amdgpu" 's support for GCN 1.0/1.1 cards are still experimental and not really suitable for every day use. (From my own tests it actually performs worse.)

Wheelerof4te wrote: Card-2: Broadcom Limited BCM43142 802.11b/g/n
Which driver do I need in order for my wi-fi to work?

Open source drivers currently don't and possibly won't ever support BCM43142. Your only option is the proprietary driver 'wl'.
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Install Debian on HP Notebook

Postby Wheelerof4te » 2017-06-22 12:10

Thank you for your reply. I will try that wl driver and if it works, I'll report.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby Wheelerof4te » 2017-06-22 12:36

EDIT: This guy did it somehow:
https://unix.stackexchange.com/question ... -in-debian

PROBLEM SOLVED by installing debian from live-cd version which has firmware included. Now I have my wi-fi.


but it fails to load wl module on kernel version 4.9 in Stretch. I will try non-free live image sometime in the future. Now I will opt for other distros.

/end of EDIT

After

Code: Select all
sudo apt-get install broadcom-sta-dkms wl


I get an error:

Code: Select all
wl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.0-3-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...


It is failing, too bad...seems like I can't run Debian using this notebook. I wonder if Jessie will work, but since I will need kernel 4.9 for graphics, I might give up.

Thank you all for help, it was fun experimenting.
User avatar
Wheelerof4te
 
Posts: 388
Joined: 2015-08-30 20:14

Re: Install Debian on HP Notebook

Postby orythem27 » 2017-06-22 16:42

Well, maybe the complete output of "apt install broadcom-sta-dkms" would reveal more. One of the most common problems is the lack of linux headers for the current running kernel. And if you managed to get it built, sometimes wl.ko would refuse to load with secure boot enabled.

Personally I always found the non-free driver to be a bit of lottery, so yes, maybe with another distro it will work.
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: [FAILED] Install Debian on HP Notebook

Postby stevepusser » 2017-06-22 17:41

I read the stackexchange thread, the guy's build failed because he didn't have access to the repos to install headers & compilers, no doubt because they were disabled when the installer could not get a connection. Very common issue here. His "firmware got it to work" seems to be mistaken.

Also, there also is no "wl" package, instead "wl.ko" is the driver file (providing the wl driver) that is built and installed by the broadcom-sta-dkms package. To make certain your running kernel can build the driver, install module assistant and run as sysadmin:

Code: Select all
m-a prepare


Tip--in case you ever just need a deb of the completed wl driver for the same kernel in the future, it can be created by installing broadcom-sta-source and using module assistant as sysadmin:
Code: Select all
m-a build broadcom-sta-source


Pay attention to the last line of the output.

This comes in handy if you have a bunch of machines with the same hardware and kernel and just want to install the driver without having to build it on each one, or a machine without a Net connection.

Someone running Stretch here might charitably build you the "wl" driver deb if you don't have a wired connection. Also you could possibly just get an inexpensive USB wi-fi adapter that works well with Debian that doesn't have the crappy Broadcom or Realtek hardware, or maybe even swap out the internal Wi-Fi card for an Intel or Qualcomm one, if HP doesn't have a freaking whitelist in the BIOS, and provides easy access to it like my older HP laptop did. Often you can find a service manual or disassembly video for your laptop out there on the Web.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-6, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8696
Joined: 2009-10-06 05:53

Re: [FAILED] Install Debian on HP Notebook

Postby stevepusser » 2017-06-22 18:02

Hmmm, if this is the service manual: http://h10032.www1.hp.com/ctg/Manual/c04763947

it looks easy to replace...though they seem to have a whitelist. Best to call HP technical support to see what hardware is supported first--no doubt these are, but I don't know how the support in Debian are for the other two.

WLAN module
Description
Spare part number
Ralink RT3290LE 802.11 bgn 1×1 Wi-Fi and Bluetooth 4.0 combo adapter
690020-001
Realtek RTL8188EE 802.11 bgn Wi-Fi adapter
709848-001
Broadcom BCM43142 802.11 bgn 1x1 Wi-Fi + BT4.0 HMC Combo Adapter
753076-001
CAUTION:
To prevent an unresponsive system, replace the wireless module only with a wireless module
authorized for use in the computer by the governmental agency that regulates wireless devices in your
country or region. If you replace the module and then receive a warning message, remove the module to
restore device functionality, and then contact technical support
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.4.2, Liquorix kernel 4.12-6, mpv 0.26.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8696
Joined: 2009-10-06 05:53

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable