my Ubuntu16.04 won’t boot from most recent kernel updates

By Jonathon Parker

Dual booting Ubuntu-16.04 and Windows 10 – on Ubuntu, after typing user and enter to login the system simply loops back to blank login screen – this happens every time since any update that requires authentication. First time authenticated update changed the login options from 3.19.0-64 generic by adding optional login 4.4.0-31 generic with (upstart) 4.4.0-31 and (recovery mode) 4.4.0-31, then with next authenticated update it added 4.4.0-34 generic with (upstart) 4.4.0-34 and (recovery mode) 4.4.0-34, then with next authenticated update it added 4.4.0-36 generic with (upstart) 4.4.0-36 and (recovery mode) 4.4.0-36, and none work except original 3.19

Source:: http://askubuntu.com/questions/818430/my-ubuntu16-04-wont-boot-from-most-recent-kernel-updates

Resume from hibernation fails with “Image mismatch: memory size”

By dummy@example.com (thblt)

I’m running a single boot ArchLinux on a MacBook Air 4,2 (late 2011). Everythings works perfectly except for hibernation. The system seems to hibernate correctly, but most of the time (but not all the time !) doesn’t wake up and boots normally instead. journalctk -k shows:

journalctl -k (full log is here):

août 29 23:08:48 anna kernel: PM: Starting manual resume from disk
août 29 23:08:48 anna kernel: PM: Hibernation image partition 254:2 present
août 29 23:08:48 anna kernel: PM: Looking for hibernation image.
août 29 23:08:48 anna kernel: PM: Image signature found, resuming
août 29 23:08:48 anna kernel: PM: Preparing processes for restore.
août 29 23:08:48 anna kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
août 29 23:08:48 anna kernel: Double checking all user space processes after OOM killer disable... (elapsed 0.000 seconds) 
août 29 23:08:48 anna kernel: PM: Loading hibernation image.
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x0008e000-0x0008ffff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x000a0000-0x000fffff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x20000000-0x201fffff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x40000000-0x401fffff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x87246000-0x87246fff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x87256000-0x87256fff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x8ad34000-0x8ad5efff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x8ad6f000-0x8ad8efff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x8ae2b000-0x8ae8efff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x8aed1000-0x8aefefff]
août 29 23:08:48 anna kernel: PM: Marking nosave pages: [mem 0x8afa2000-0xffffffff]
août 29 23:08:48 anna kernel: PM: Basic memory bitmaps created
août 29 23:08:48 anna kernel: PM: Using 3 thread(s) for decompression.
                               PM: Loading and decompressing image data (147635 pages)...
août 29 23:08:48 anna kernel: PM: Image mismatch: memory size
août 29 23:08:48 anna kernel: PM: Read 590540 kbytes in 0.01 seconds (59054.00 MB/s)
août 29 23:08:48 anna kernel: PM: Error -1 resuming
août 29 23:08:48 anna kernel: PM: Failed to load hibernation image, recovering.
août 29 23:08:48 anna kernel: PM: Basic memory bitmaps freed
août 29 23:08:48 anna kernel: Restarting tasks ... done.
août 29 23:08:48 anna kernel: video LNXVIDEO:00: Restoring backlight state
août 29 23:08:48 anna kernel: PM: Hibernation image not present or could not be loaded.

refind_linux.conf

"Boot"        "rw cryptdevice=UUID=80d4d59f-ddf2-4179-a1d7-3208b6ca6458:lvm:allow-discards root=/dev/mapper/VolGroup00-lvolroot resume=/dev/mapper/VolGroup00-lvolswap add_efi_memmap acpi_osi=Darwin"

Note: I’ve just added add_efi_memmap as a test, but it didn’t seem to change anything.

mkinitcpio.conf

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="i915"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES="/etc/modprobe.d/hid_apple.conf"

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev  autodetect modconf block keymap encrypt lvm2 resume filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

Thanks to anyone who can help 🙂

Source:: https://bbs.archlinux.org/viewtopic.php?id=216475&action=new

Connecting android device for debugging does not show in lsusb

By Thom

I believe I’ve read all of the related posts on the web and now I’m reaching out for help.

I’m trying to connect my HTC 610 Desire Android 4.4.2 phone to my Ubuntu 16.06 desktop. My goal is to run with Android Developer Studio 2.1 to develop android apps.

I run lsusb with phone unplugged:

thomas@thomas-desktop:/var/log$ lsusb
Bus 003 Device 010: ID 17f6:0822 Unicomp, Inc 
Bus 003 Device 009: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 008: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Plug the phone in and try again:

thomas@thomas-desktop:/var/log$ lsusb
Bus 003 Device 010: ID 17f6:0822 Unicomp, Inc 
Bus 003 Device 009: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 008: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So no change with that. What’s up with that? I looked in the system log, but don’t see anything instructive.

I have created the 51-android-rules file. Here’s the contents:

thomas@thomas-desktop:/var/log$ cat /etc/udev/rules.d/51-android.rules 
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

With both the old and new HTC vendor ID since I’m not sure which one’s mine. I added my user to plugdev group.

Here’s my fuse file:

thomas@thomas-desktop:/var/log$ cat /etc/fuse.conf 
# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)

# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#mount_max = 1000

# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other

I have enabled USB Debugging on my phone and selected Verify apps over USB. When I plug my phone in, it indicates that it’s charging over the cable from my computer, but nothing else.

I now have nothing else to look at and am stuck.

Source:: http://askubuntu.com/questions/818426/connecting-android-device-for-debugging-does-not-show-in-lsusb

Ubuntu Gnome 16.04 won’t boot with kernel 4.4, 4.2 ok – how to debug

By erols

Stuck on logo. Animation is frozen

I have an install of Ubuntu Gnome 16.04 that does not boot with kernel 4.4.0-34 but does boot with 4.2.0-42. I gets stuck on the boot animation ususally. Sometimes it just goes to a black screen.

I upgraded from 14.04 and I think the 4.2 kernel is from that.

I have looked in syslog, boot.log and kernel.log nd did not see anything that explained the problem.

My question is how should I go about analyzing this problem?

Source:: http://askubuntu.com/questions/818425/ubuntu-gnome-16-04-wont-boot-with-kernel-4-4-4-2-ok-how-to-debug

(Xubuntu) prompts me for authentication so it can suspend the computer

By Henry J. Douglas

I left Xubuntu idle for the amount of time needed for it to suspend automatically (and it locks the screen too). When coming back, I typed my password and there was another box floating on the desktop asking for authentication to allow the system to suspend!

I’m assuming my computer is not suspending because it’s asking permission to suspend! That’s crazy. I wanna know why it’s happening and how to deal with it. I have to type my password twice: first to unlock the screen and then again to allow it to suspend (which appearently didn’t happen before and won’t happen from there. I just continue to use my laptop).

Please help me track this issue down.

Source:: http://askubuntu.com/questions/818424/xubuntu-prompts-me-for-authentication-so-it-can-suspend-the-computer

Dual monitor display settings reset when unplugging and replugging hdmi cable in Ubuntu 16.04

By xClunky

So I am using the Nouveau driver because I was having problems with the Nvidia proprietary drivers. The thing is though, with the Nouveau driver, when I unplug my laptop from the HDTV that I use as a second monitor and plug it back in again, I get the default display settings, i.e. mirrored displays, with the lower resolution of my laptop screen being used instead of extended displays with my HDTV’s resolution being used. I do not know what to do because I have saved the settings multi-time, but it doesn’t seem to resolve the issue.

It all works fine until I unplug the cable… when I plug it back in, I need to do everything over again…

Thank you all in advance!

Source:: http://askubuntu.com/questions/818422/dual-monitor-display-settings-reset-when-unplugging-and-replugging-hdmi-cable-in

[ubuntu] wth is my path? (Trying to add my scripts to my “command list”)

By Delupara

I’m trying to modify my $PATH so it can read scripts command I made as a command. Not only it doesn’t work but the path is… well weird. Take a look at this:

Quote:

/home/delupara/scripts:/home/delupara/bin:/home/delupara/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


^this is my path

Quote:

/home/delupara/scripts:….


^my scripts are in there. But I want you to take a look at this

Quote:

/home/delupara/bin


^this doesn’t exist on my system. I’m gonna assume it’s normal. But in case it isn’t let me know.

So in any case, why won’t any of my scripts get called?

Source:: https://ubuntuforums.org/showthread.php?t=2335527&goto=newpost

No internet (Wi-Fi and Ethernet) on latest version of Ubuntu

By hiru

It’s been 12 hours and I’m still here trying to make internet work with Ubuntu so I hope you can help me somehow.. I’ll start with my specs:

  • Foxconn G33M
  • Realtek RTL8110SC Ethernet Controller

I can tell the LAN cable is not the problem since I tested it with a different pc with Windows installaed and it works. I tried unplugging everything from the pc, keeping the power button pressed for 30 seconds, waiting 3-4 minutes with all the cables plugged off, I tried installing the latest version of the drivers, the previous version of these, I tried manually installing packages with errors since I don’t know what dependencies they need. I tried using a wi-fi dongle, it can connect with my router but there is still no internet. I tried re-installing Ubuntu and same problems. I don’t know what to do right now

This is a screenshot of my latest try http://i.imgur.com/gU9293E.png

And these are previous screenshots (before I decided to reinstall Ubuntu): http://i.imgur.com/NFp3ivl.png and [can’t post more than 2 links..] http://i[dot]imgur[dot]com/n5ZVpCR[dot]png

Source:: http://askubuntu.com/questions/818416/no-internet-wi-fi-and-ethernet-on-latest-version-of-ubuntu