Ubuntu 16.04 Compiz Hang Kernel

After Ubuntu published the latest Kernel Patches for Meltdown and Spectre the Kernel 4.4.0-104/109-generic let Intel Graphics freeze or hang on Compiz with Unity.

Howto fix:

Install the latest Kernel 4.4.0-112-generic

sudo apt-get install linux-image-4.4.0-112-generic
sudo apt-get install linux-image-extra-4.4.0-112-generic



sudo apt-get autoremove --purge -y

This removes older kernels and save Space! Do test the PC for hanging again!!!

Ubuntu Vivid Debian: Kernel I/O Errors SSD SATA NVIDIA Chipsets

If you use a PC with a SSD Drive and a Motherboard which uses NVIDIA chipsets you may see Errors on boot

Command „dmesg“ Output like..

Buffer I/O error on device sdc, logical block 41
ata5: EH complete
ata5: EH in SWNCQ mode,QC:qc_active 0x1 sactive 0x1
ata5: SWNCQ:qc_active 0x1 defer_bits 0x0 last_issue_tag 0x0
  dhfis 0x1 dmafis 0x1 sdbfis 0x0
ata5: ATA_REG 0x41 ERR_REG 0x84
ata5: tag : dhfis dmafis sdbfis sactive
ata5: tag 0x0: 1 1 0 1 
ata5.00: exception Emask 0x1 SAct 0x1 SErr 0x300000 action 0x6 frozen
ata5.00: Ata error. fis:0x21
ata5.00: cmd 60/08:00:07:04:00/00:00:00:00:00/40 tag 0 ncq 4096 in
         res 41/84:00:07:04:00/84:00:00:00:00/40 Emask 0x10 (ATA bus error)
ata5: hard resetting link
ata5: nv: skipping hardreset on occupied port
ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata5.00: configured for UDMA/133
sd 4:0:0:0: [sdc] 
Result: hostbyte=0x00 driverbyte=0x08
sd 4:0:0:0: [sdc] 
Sense Key : 0xb [current] [descriptor]
Descriptor sense data with sense descriptors (in hex):
        72 0b 47 00 00 00 00 0c 00 0a 80 00 00 00 00 00
        00 00 04 07
sd 4:0:0:0: [sdc] 
ASC=0x47 ASCQ=0x0...

This is a bug by the NVIDIA Manufacterer NOT by LINUX!

The Problem is that the hardware command „swncq“ (DMA-64bit) is set to on by the „default“ Kernels now, but older nvidia chips don’t support it! Only DMA-32bit

sata cable 600 with clip
sata cable 600 with clip

Info found here swnq libsata nvidia kernel (external Link)

Workaround on Gnome Terminal or Console:

  • $sudo echo ‚options sata_nv swncq=0‘ >> /etc/modprobe.d/sata_nv.conf
  • $sudo update-initramfs -u -k all
  • reboot and test with „dmesg“ command on Terminal! there should be NO Error now!
  • If the Problem still exists, then change SATA Cables to SATA-300/600 (II/III) „with Metal Clip on Connectors“ take „shortest length“
  • May be possible that this bug touches other OS like Windows too


Debian Squeeze Bug: udevd-work: kernel-provided name ‘uinput’ and NAME= ‘input/uinput’ disagree, please use SYMLINK+

Problem: After a fresh Setup and first Reboot of Squeeze the Boot Message

udevd-work[77]: kernel-provided name 'uinput' and NAME= 'input/uinput' disagree, please use SYMLINK+= or change the kernel to provide the proper name

sudo nano /lib/udev/rules.d/50-udev-default.rules

and change,
KERNEL=="uinput", NAME="input/%k"

KERNEL=="uinput", SYMLINK+="input/%k"

Ubuntu 10.04 Lucid Lynx AMD64 Nvidia 195 Current freeze hang randomly

System: AMD Phenom X4 Geforce 7900 GTS or 8400GS Lucid Lynx AMD64

Problem: The current driver fails on some Systems with default kernel 2.6.32

– go http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/
– download kernel images for your System and headers into a folder named kernel
– go into folder kernel with #cd kernel
– install pakets with #sudo dpkg -i *.deb
– reboot
– if Xserver fails select „start Xserver with low resolution“
– go Systemsettings/Hardware Drivers
– select Nvidia-Current install again
– reboot and test the System

Background: ACPI was renewed inside the kernel, cause at startup kernel echos
„ACPI: resource piix4_smbus [0xb00-0xb07] conflicts with ACPI region SOR1 [0x000b00-0x000b0f“ with 2.6.32

„ACPI: resource piix4_smbus [io 0x0b00-0x0b07] conflicts with ACPI region SOR1 [dma 2816-2831 pref disabled]“
(patched Kernel 2.6.34)

How to compile the Centos SME Server 7.4 Linux Kernel 2.6.34

Download the latest stable kernel from the http://www.kernel.org/ unpack the downloaded source file.

  1. # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
  2. # tar xjf tar xjf linux-2.6.34.tar.bz2
  3. # ln -s linux-2.6.34 linux
  4. # cd linux
  5. # cp /boot/config-`uname -r` ./.config
  6. # make menuconfig (here you can select .config as preselected .config from old kernel)
  7. # make rpm (Compile the Kernel and make a rpm-paket)
  1. During the compilation of linux-2.6.34 kernel the following error appears
  2. drivers/message/fusion/mptsas.c: In function `mptsas_port_delete'
  3.  drivers/message/fusion/mptsas.c: 105: sorry, unimplemented: inlining failed in call to 'mptsas_set_rphy': function body not available
  4.  drivers/message/fusion/mptsas.c: 467: sorry, unimplemented: called from here
  5. Because: The ‚mptsas_set_rphy‘ function is defined after the ‚mptsas_port_delete‘ function in the file

Solution :
Moved the ‚mptsas_set_rphy‘ function definition before to the function ‚mptsas_port_delete‘ function definition.

  1.  drivers/built-in.o(.init.text+0x3bad): In function `con_init': include/trace/events/kmem.h:47: undefined reference to `.L1452'

This bug was due to the result of allocating the memory using kzalloc() in con_init() function in the drivers/char/vt.c file.
The problem is:

vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT);

vc_cons[currcons].d = vc = alloc_bootmem(sizeof(struct vc_data));