HP EliteBook 840 G2
Created 2016-06-07
Working Hardware, Tested
- CPU: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
- WLAN: Intel 7265
Nonworking or Untested Hardware
Not working hardware
- SD-Card reader
Untested hardware
- Bluetooth (USB based)
- Smart-card reader
Notes
TrueOS
TrueOS using Installation from TrueOS USB img works in CSM mode without further tweaks.
- Boot into BIOS setup (hit F10 after power-on)
- Select "Advanced" tab
- Select "Boot options"
- Select UEFI Hybrid (CSM compat mode)
- Save config and reboot
During boot for installation:
- Hit F9 for boot device selection
- Select UEFI image
- Navigate to USB down to boot64.efi
Install as usual, reboot works without issues. Boot with "UEFI Native mode" fails when loading video, CSM is fine.
Boot
This laptop requires a recent FreeBSD 11/CURRENT/HEAD.
At the loader(8) prompt you must enter
set gop=4 set gop=0
before booting, otherwise you will have no video output.
For FreeBSD-12 this is
gop set 4 gop set 0
Video
You cannot switch video. The only way to get output on the VGA or DisplayPort is to close the lid before BIOS POST is done.
Links
Manuals for HP EliteBook 840 G2 Notebook PC - HP Support Center
HP EliteBook 840 G2 Notebook PC (ENERGY STAR)(L2W81AW) in the Wayback Machine
GPU hang, Intel HD Graphics 5500, UEFI · Issue #129 · FreeBSDDesktop/freebsd-base-graphics (850 G2)
/boot/loader.conf
drm_load="YES" drm2_load="YES" iicbus_load="YES" vboxdrv_load="YES" crypto_load="YES" aesni_load="YES" geom_eli_load="YES" # Tune ZFS Arc Size - Change to adjust memory used for disk cache vfs.zfs.arc_max="512M" zfs_load="YES"
/boot/loader.conf.local
set gop 4 set gop 0
For FreeBSD 12 (Lua loader) you need
# /boot/lua/local.lua loader.command('gop set 4') loader.command('gop set 0')
/etc/rc.conf
vboxnet_enable="YES" # Auto-Enabled NICs from pc-sysinstall ifconfig_re0="DHCP" ifconfig_wlan0="DHCP" wlans_ath0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" # Auto-Enabled NICs from pc-sysinstall ifconfig_re0_ipv6="inet6 accept_rtadv" ifconfig_wlan0_ipv6="inet6 accept_rtadv" ifconfig_wlan0_ipv6="inet6 accept_rtadv" hostname="pcbsd.brnrd.eu" zfs_enable="YES" sshd_enable="YES" wlans_iwm0="wlan1" sysadm_enable="YES" ifconfig_wlan1="WPA SYNCDHCP"
devinfo -v
nexus0 vtvga0 cryptosoft0 apic0 ram0 aesni0 acpi0 cpu0 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU0 acpi_perf0 est0 p4tcc0 acpi_throttle0 cpufreq0 cpu1 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU1 acpi_perf1 est1 p4tcc1 acpi_throttle1 cpufreq1 cpu2 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU2 acpi_perf2 est2 p4tcc2 acpi_throttle2 cpufreq2 cpu3 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU3 acpi_perf3 est3 p4tcc3 acpi_throttle3 cpufreq3 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU4 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU5 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU6 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU7 unknown pnpinfo _HID=HPQ6001 _UID=0 at handle=\_SB_.WLBU pcib0 pnpinfo _HID=PNP0A08 _UID=0 at handle=\_SB_.PCI0 pci0 hostb0 pnpinfo vendor=0x8086 device=0x1604 subvendor=0x103c subdevice=0x2216 class=0x060000 at pci0:0:0:0 vgapci0 pnpinfo vendor=0x8086 device=0x1616 subvendor=0x103c subdevice=0x2216 class=0x030000 at pci0:0:2:0 handle=\_SB_.PCI0.GFX0 drm0 drmn0 acpi_video0 hdac0 pnpinfo vendor=0x8086 device=0x160c subvendor=0x103c subdevice=0x2216 class=0x040300 at pci0:0:3:0 handle=\_SB_.PCI0.B0D3 hdacc0 pnpinfo vendor=0x8086 device=0x2808 revision=0x00 stepping=0x00 at cad=0 hdaa0 pnpinfo type=0x01 subsystem=0x80860101 at nid=1 pcm0 at nid=3 xhci0 pnpinfo vendor=0x8086 device=0x9cb1 subvendor=0x103c subdevice=0x2216 class=0x0c0330 at pci0:0:20:0 handle=\_SB_.PCI0.XHC_ usbus0 uhub0 uhub2 pnpinfo vendor=0x0424 product=0x2134 devclass=0x09 devsubclass=0x00 devproto=0x02 sernum="" release=0x6082 mode=host intclass=0x09 ints at bus=0 hubaddr=1 port=3 devaddr=2 interface=0 ugen=ugen0.2 ums0 pnpinfo vendor=0x413c product=0x3012 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="" release=0x4301 mode=host intclass=0x03 ints at bus=0 hubaddr=2 port=4 devaddr=3 interface=0 ugen=ugen0.3 uhub4 pnpinfo vendor=0x0424 product=0x5534 devclass=0x09 devsubclass=0x00 devproto=0x03 sernum="" release=0x6082 mode=host intclass=0x09 ints at bus=0 hubaddr=1 port=14 devaddr=5 interface=0 ugen=ugen0.5 unknown pnpinfo vendor=0x8086 device=0x9cba subvendor=0x103c subdevice=0x2216 class=0x078000 at pci0:0:22:0 em0 pnpinfo vendor=0x8086 device=0x15a2 subvendor=0x103c subdevice=0x2216 class=0x020000 at pci0:0:25:0 handle=\_SB_.PCI0.LANC hdac1 pnpinfo vendor=0x8086 device=0x9ca0 subvendor=0x103c subdevice=0x2216 class=0x040300 at pci0:0:27:0 handle=\_SB_.PCI0.HDEF hdacc1 pnpinfo vendor=0x10ec device=0x0280 revision=0x00 stepping=0x03 at cad=0 hdaa1 pnpinfo type=0x01 subsystem=0x103c2347 at nid=1 pcm1 at nid=20,21,26 pcm2 at nid=18 pcib1 pnpinfo vendor=0x8086 device=0x9c90 subvendor=0x103c subdevice=0x2216 class=0x060400 at pci0:0:28:0 handle=\_SB_.PCI0.RP01 pci1 pcib2 pnpinfo vendor=0x8086 device=0x9c92 subvendor=0x103c subdevice=0x2216 class=0x060400 at pci0:0:28:1 handle=\_SB_.PCI0.RP02 pci2 unknown pnpinfo vendor=0x10ec device=0x5227 subvendor=0x103c subdevice=0x2216 class=0xff0000 at pci0:2:0:0 pcib3 pnpinfo vendor=0x8086 device=0x9c96 subvendor=0x103c subdevice=0x2216 class=0x060400 at pci0:0:28:3 handle=\_SB_.PCI0.RP04 pci3 iwm0 pnpinfo vendor=0x8086 device=0x095a subvendor=0x8086 subdevice=0x5010 class=0x028000 at pci0:3:0:0 handle=\_SB_.PCI0.RP04.WNIC ehci0 pnpinfo vendor=0x8086 device=0x9ca6 subvendor=0x103c subdevice=0x2216 class=0x0c0320 at pci0:0:29:0 handle=\_SB_.PCI0.EHC1 usbus1 uhub1 uhub3 pnpinfo vendor=0x8087 product=0x8001 devclass=0x09 devsubclass=0x00 devproto=0x01 sernum="" release=0x0003 mode=host intclass=0x09 ints at bus=1 hubaddr=1 port=1 devaddr=2 interface=0 ugen=ugen1.2 isab0 pnpinfo vendor=0x8086 device=0x9cc3 subvendor=0x103c subdevice=0x2216 class=0x060100 at pci0:0:31:0 handle=\_SB_.PCI0.LPCB isa0 sc0 vga0 orm0 fdc0 ppc0 uart0 uart1 ahci0 pnpinfo vendor=0x8086 device=0x9c83 subvendor=0x103c subdevice=0x2216 class=0x010601 at pci0:0:31:2 handle=\_SB_.PCI0.SATA ahcich0 at channel=0 (disabled) ahcich1 at channel=1 unknown pnpinfo vendor=0x8086 device=0x9ca2 subvendor=0x103c subdevice=0x2216 class=0x0c0500 at pci0:0:31:3 handle=\_SB_.PCI0.SBUS acpi_sysresource0 pnpinfo _HID=PNP0C02 _UID=1 at handle=\_SB_.PCI0.PDRC unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.HDEF.APPR acpi_ec0 pnpinfo _HID=PNP0C09 _UID=1 at handle=\_SB_.PCI0.LPCB.EC0_ atdma0 pnpinfo _HID=PNP0200 _UID=0 at handle=\_SB_.PCI0.LPCB.DMAC unknown pnpinfo _HID=INT0800 _UID=0 at handle=\_SB_.PCI0.LPCB.FWHD hpet0 pnpinfo _HID=PNP0103 _UID=0 at handle=\_SB_.PCI0.LPCB.HPET unknown pnpinfo _HID=PNP0000 _UID=0 at handle=\_SB_.PCI0.LPCB.IPIC acpi_sysresource1 pnpinfo _HID=PNP0C02 _UID=2 at handle=\_SB_.PCI0.LPCB.LDRC unknown pnpinfo _HID=PNP0C02 _UID=6 at handle=\_SB_.PCI0.LPCB.LDR2 (disabled) atrtc0 pnpinfo _HID=PNP0B00 _UID=0 at handle=\_SB_.PCI0.LPCB.RTC_ attimer0 pnpinfo _HID=PNP0100 _UID=0 at handle=\_SB_.PCI0.LPCB.TIMR unknown pnpinfo _HID=PNP0A06 _UID=0 at handle=\_SB_.PCI0.LPCB.SIO_ unknown pnpinfo _HID=PNP0C02 _UID=4 at handle=\_SB_.PCI0.LPCB.SIO_.HCOM (disabled) unknown pnpinfo _HID=PNP0501 _UID=0 at handle=\_SB_.PCI0.LPCB.SIO_.COM1 (disabled) unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.LPCB.SIO_.COM1.COMP unknown pnpinfo _HID=PNP0400 _UID=0 at handle=\_SB_.PCI0.LPCB.SIO_.LPT0 (disabled) unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.LPCB.SIO_.LPT0.LPP_ atkbdc0 pnpinfo _HID=HPQ8002 _UID=0 at handle=\_SB_.PCI0.LPCB.PS2K atkbd0 psm0 psmcpnp0 pnpinfo _HID=SYN3015 _UID=0 at handle=\_SB_.PCI0.LPCB.PS2M unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP02.PXP2 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP04.WNIC.WRST unknown pnpinfo _HID=HPQ6007 _UID=0 at handle=\_SB_.PCI0.ACEL unknown pnpinfo _HID=PNP0C01 _UID=2 at handle=\_SB_.MEM2 (disabled) pci_link0 pnpinfo _HID=PNP0C0F _UID=1 at handle=\_SB_.LNKA pci_link1 pnpinfo _HID=PNP0C0F _UID=2 at handle=\_SB_.LNKB pci_link2 pnpinfo _HID=PNP0C0F _UID=3 at handle=\_SB_.LNKC pci_link3 pnpinfo _HID=PNP0C0F _UID=4 at handle=\_SB_.LNKD pci_link4 pnpinfo _HID=PNP0C0F _UID=5 at handle=\_SB_.LNKE pci_link5 pnpinfo _HID=PNP0C0F _UID=6 at handle=\_SB_.LNKF pci_link6 pnpinfo _HID=PNP0C0F _UID=7 at handle=\_SB_.LNKG pci_link7 pnpinfo _HID=PNP0C0F _UID=8 at handle=\_SB_.LNKH battery0 pnpinfo _HID=PNP0C0A _UID=2 at handle=\_SB_.BAT0 battery1 pnpinfo _HID=PNP0C0A _UID=1 at handle=\_SB_.BAT1 acpi_acad0 pnpinfo _HID=ACPI0003 _UID=0 at handle=\_SB_.AC__ acpi_button0 pnpinfo _HID=PNP0C0E _UID=0 at handle=\_SB_.SLPB acpi_lid0 pnpinfo _HID=PNP0C0D _UID=0 at handle=\_SB_.LID_ unknown pnpinfo _HID=PNP0C32 _UID=1 at handle=\_SB_.HST1 (disabled) unknown pnpinfo _HID=PNP0C14 _UID=0 at handle=\_SB_.WMID unknown pnpinfo _HID=PNP0C02 _UID=5 at handle=\_SB_.HTAM (disabled) unknown pnpinfo _HID=IFX0102 _UID=0 at handle=\_SB_.GTPM unknown pnpinfo _HID=INT33A1 _UID=1 at handle=\_SB_.PEPD (disabled) acpi_tz0 pnpinfo _HID=none _UID=0 at handle=\_TZ_.CPUZ acpi_tz1 pnpinfo _HID=none _UID=0 at handle=\_TZ_.GFXZ acpi_tz2 pnpinfo _HID=none _UID=0 at handle=\_TZ_.EXTZ acpi_tz3 pnpinfo _HID=none _UID=0 at handle=\_TZ_.LOCZ acpi_tz4 pnpinfo _HID=none _UID=0 at handle=\_TZ_.BATZ acpi_tz5 pnpinfo _HID=none _UID=0 at handle=\_TZ_.PCHZ acpi_tz6 pnpinfo _HID=none _UID=0 at handle=\_TZ_.DM1Z acpi_tz7 pnpinfo _HID=none _UID=0 at handle=\_TZ_.DM2Z acpi_sysresource2 pnpinfo _HID=INT340E _UID=0 at handle=\PTID acpi_timer0 pnpinfo unknown at unknown
pciconf -lv
hostb0@pci0:0:0:0: class=0x060000 card=0x2216103c chip=0x16048086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'Broadwell-U Host Bridge -OPI' class = bridge subclass = HOST-PCI vgapci0@pci0:0:2:0: class=0x030000 card=0x2216103c chip=0x16168086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'HD Graphics 5500' class = display subclass = VGA hdac0@pci0:0:3:0: class=0x040300 card=0x2216103c chip=0x160c8086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'Broadwell-U Audio Controller' class = multimedia subclass = HDA xhci0@pci0:0:20:0: class=0x0c0330 card=0x2216103c chip=0x9cb18086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP USB xHCI Controller' class = serial bus subclass = USB none0@pci0:0:22:0: class=0x078000 card=0x2216103c chip=0x9cba8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP MEI Controller' class = simple comms em0@pci0:0:25:0: class=0x020000 card=0x2216103c chip=0x15a28086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection (3) I218-LM' class = network subclass = ethernet hdac1@pci0:0:27:0: class=0x040300 card=0x2216103c chip=0x9ca08086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP High Definition Audio Controller' class = multimedia subclass = HDA pcib1@pci0:0:28:0: class=0x060400 card=0x2216103c chip=0x9c908086 rev=0xe3 hdr=0x01 vendor = 'Intel Corporation' device = 'Wildcat Point-LP PCI Express Root Port' class = bridge subclass = PCI-PCI pcib2@pci0:0:28:1: class=0x060400 card=0x2216103c chip=0x9c928086 rev=0xe3 hdr=0x01 vendor = 'Intel Corporation' device = 'Wildcat Point-LP PCI Express Root Port' class = bridge subclass = PCI-PCI pcib3@pci0:0:28:3: class=0x060400 card=0x2216103c chip=0x9c968086 rev=0xe3 hdr=0x01 vendor = 'Intel Corporation' device = 'Wildcat Point-LP PCI Express Root Port' class = bridge subclass = PCI-PCI ehci0@pci0:0:29:0: class=0x0c0320 card=0x2216103c chip=0x9ca68086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP USB EHCI Controller' class = serial bus subclass = USB isab0@pci0:0:31:0: class=0x060100 card=0x2216103c chip=0x9cc38086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP LPC Controller' class = bridge subclass = PCI-ISA ahci0@pci0:0:31:2: class=0x010601 card=0x2216103c chip=0x9c838086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP SATA Controller [AHCI Mode]' class = mass storage subclass = SATA none1@pci0:0:31:3: class=0x0c0500 card=0x2216103c chip=0x9ca28086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP SMBus Controller' class = serial bus subclass = SMBus none2@pci0:2:0:0: class=0xff0000 card=0x2216103c chip=0x522710ec rev=0x01 hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTS5227 PCI Express Card Reader' iwm0@pci0:3:0:0: class=0x028000 card=0x50108086 chip=0x095a8086 rev=0x48 hdr=0x00 vendor = 'Intel Corporation' device = 'Wireless 7265' class = network
This program gathers and formats information for FreeBSD Wiki pages about notebooks
To use, run this program (as root if acpidump output is desired), redirecting output into a file: notebookstats > notebookinfo.txt
Create a new page for the new notebook, edit that page, and paste the saved output into that page.
Edit sections with editme entries, add other relevant information, then save the page.