#StackBounty: #16.04 #power-management #shutdown #battery Battery drain when HP laptop is shut down from Ubuntu, but not from Windows

Bounty: 100

I have a dual-boot setup with Ubuntu 16.04 LTS and Windows 10 on an HP Pavilion 15-CC508NF. When I shutdown from Windows 10, my battery remains as it is, no discharge. But when I shutdown from Ubuntu, the battery loses 5% by day.

I have installed the TLP package and disabled WOL (Wake-On-Lan) on the Ethernet card. But the battery continues to discharge when the computer is off – 2% by day.

I think that some hardware continues to drain power while the computer sleeps.

Any idea to identify the problem/the hardware causing the problem?


Get this bounty!!!

#StackBounty: #16.04 #boot #grub2 #ubuntu-minimal Xenial LTS 16.04 Minimal – Can not get console to show with messages during boot up

Bounty: 50

I have new install of Xenial LTS 16.04 minimal(mini.iso)…which I installed bare min. system(no desktop, etc).

I would like boot messages…. a normal grub boot up with the console showing boot message. Instead, I just get a blank screen until it is done booting and I have to manually pull up a tty.

I modified my /etc/default/grub with:

root@laptop:/home/one# cat /etc/default/grub 
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Ran update-grub, and verified what looks correct on /boot/grub/grub.cfg:

root@laptop:/home/one# cat /etc/default/grub 
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
root@laptop:/home/one# 
root@laptop:/home/one# mount /dev/sda1 /boot/
mount: /dev/sda1 is already mounted or /boot busy
       /dev/sda1 is already mounted on /boot
root@laptop:/home/one# mount /dev/sda1 /boot/^C
root@laptop:/home/one# cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

terminal_input console
terminal_output console
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

but still not having success…no console and no console with messages during boot up.

Any ideas?


Get this bounty!!!

#StackBounty: #16.04 #command-line #vpn Command line connect to L2TP Windows Server VPN

Bounty: 50

I have been searching for a couple of days not much luck as and everything i come across relies on using the Network Manager UI.

Could someone provide me with a noobish tutorial on how I would configure the ubuntu server to automatically (on startup) connect to an L2TP over IPSec VPN with Windows Login credentials?

It does not have to be L2TP over IPSec, I do also have the Windows Server configured to allow PPTP VPN connections but I would prefer L2TP as it’s more secure.

I would also need to know if there is a special configuration I need to prevent the Internet connection being tunneled through the VPN as I know windows does this by default and it has to be turned off on the VPN Network Adapter in windows if the same need to happen on the Ubuntu server I will need to know how to do that so I don’t lock myself out of the server by it losing its internet connection 😀

The reason for this is that I have quite a lot of attempts on the SSH Port’s so I want to set the Hardware Firewall in front of the server to not allow SSH through it and make it so the only way to connect to the SSH server is via the Corporate VPN.


Get this bounty!!!

#StackBounty: #16.04 #software-installation 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or rem…

Bounty: 100

I was trying to install the cubemap package, using sudo apt-get install cubemap. I can’t remember whether I used the keyboard shortcut Ctrl+C while it was installing, or if the package just failed to install.

Anyway, now whenever I turn on my computer from a shutdown, a popup appears in the top left of my screen that says something along the lines of “system problem detected. do you want to report it?”

In addition, whenever I install, remove, upgrade, etc or do anything with apt-get, It will work fine, but at the end, after it finishes, it says E: Sub-process /usr/bin/dpkg returned an error code (1) I cant remove the cubemap package, and I have tried apt-get remove cubemap(returns this), I also tried apt-get purging, and apt-get autoremoving cubemap, but none work to remove it.

I know that in the above linked pastebin it says “Package ‘cubemap’ is not installed, so not removed”, but it also says ” 1 not fully installed or removed.”, and I think that the 1 package not fully removed is cubemap.

EDIT:
link to the full apt-get session


Get this bounty!!!

#StackBounty: #16.04 #drivers #bluetooth #firmware Some bluetooth devices not found

Bounty: 50

I just installed Ubuntu 16.04, so far I’ve only had this problem.
Bluetooth is working; in fact, my BT headphones are connected and working properly.
My BT mouse is not found, I just get “searching for devices” all the time. I know it’s compatible with Ubuntu because I tried it at work and no problem.

Weird, right?

I think it has something to do with the firmware, but this is a tad beyond my capabilities. I would appreciate any guidance.
I tried many of the suggestions that pop up in google :(, I updated everything.
Help to a fellow human.

By looking in /var/log I got the following

Feb 20 19:38:06 Uthred kernel: [    0.000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)
Feb 20 19:38:06 Uthred kernel: [    0.143961] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Feb 20 19:38:06 Uthred kernel: [    1.882708] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_01.bin failed with error -2
Feb 20 19:38:06 Uthred kernel: [    1.882709] i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/downloads/firmware], disabling runtime power management.
Feb 20 19:38:06 Uthred kernel: [    8.356777] ath10k_pci 0000:01:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
Feb 20 19:38:07 Uthred NetworkManager[844]: <info>  [1519173487.1039] manager[0xa11200]: monitoring kernel firmware directory '/lib/firmware'.
Feb 20 19:50:30 Uthred kernel: [    0.000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)
Feb 20 19:50:30 Uthred kernel: [    0.137387] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Feb 20 19:50:30 Uthred kernel: [    1.872620] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_01.bin failed with error -2
Feb 20 19:50:30 Uthred kernel: [    1.872622] i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/downloads/firmware], disabling runtime power management.
Feb 20 19:50:30 Uthred kernel: [    8.312739] ath10k_pci 0000:01:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
Feb 20 19:50:30 Uthred NetworkManager[809]: <info>  [1519174230.4601] manager[0x237c200]: monitoring kernel firmware directory '/lib/firmware'.
Feb 20 20:23:52 Uthred kernel: [    0.000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)
Feb 20 20:23:52 Uthred kernel: [    0.140260] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Feb 20 20:23:52 Uthred kernel: [    1.876657] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_01.bin failed with error -2
Feb 20 20:23:52 Uthred kernel: [    1.876658] i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/downloads/firmware], disabling runtime power management.
Feb 20 20:23:52 Uthred kernel: [    8.316400] ath10k_pci 0000:01:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
Feb 20 20:23:52 Uthred NetworkManager[885]: <info>  [1519176232.4860] manager[0xd7b200]: monitoring kernel firmware directory '/lib/firmware'.
Feb 20 22:41:57 Uthred NetworkManager[885]: <info>  [1519184517.8840] manager: kernel firmware directory '/lib/firmware' changed
Feb 20 22:42:01 Uthred NetworkManager[885]: <info>  [1519184521.8409] manager: kernel firmware directory '/lib/firmware' changed
Feb 20 22:45:01 Uthred kernel: [    0.000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)
Feb 20 22:45:01 Uthred kernel: [    0.144178] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Feb 20 22:45:01 Uthred kernel: [    2.047062] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_01.bin (v1.1)
Feb 20 22:45:01 Uthred kernel: [    8.563973] ath10k_pci 0000:01:00.0: firmware ver WLAN.RM.4.4.1-00051-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 c3fd4411
Feb 20 22:45:01 Uthred NetworkManager[863]: <info>  [1519184701.4353] manager[0x1356200]: monitoring kernel firmware directory '/lib/firmware'.
Feb 20 22:45:49 Uthred ureadahead[317]: ureadahead:/home/alberto/.cache/gnome-software/3.20/firmware/firmware.xml.gz.asc: Error retrieving chunk extents: Operation not supported

By running bluetooth status I get the following output

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-02-20 22:49:07 EST; 12min ago
     Docs: man:bluetoothd(8)
 Main PID: 27733 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─27733 /usr/lib/bluetooth/bluetoothd

Feb 20 22:49:07 Uthred bluetoothd[27733]: Current Time Service could not be registered
Feb 20 22:49:07 Uthred bluetoothd[27733]: gatt-time-server: Input/output error (5)
Feb 20 22:49:07 Uthred bluetoothd[27733]: Not enough free handles to register service
Feb 20 22:49:07 Uthred bluetoothd[27733]: Not enough free handles to register service
Feb 20 22:49:07 Uthred bluetoothd[27733]: Sap driver initialization failed.
Feb 20 22:49:07 Uthred bluetoothd[27733]: sap-server: Operation not permitted (1)
Feb 20 22:49:07 Uthred systemd[1]: Started Bluetooth service.
Feb 20 22:49:07 Uthred bluetoothd[27733]: Endpoint registered: sender=:1.72 path=/MediaEndpoint/A2DPSource
Feb 20 22:49:07 Uthred bluetoothd[27733]: Endpoint registered: sender=:1.72 path=/MediaEndpoint/A2DPSink
Feb 20 22:49:34 Uthred bluetoothd[27733]: /org/bluez/hci0/dev_00_02_5B_B2_47_F1/fd0: fd(23) ready


Get this bounty!!!