Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo nano /etc/initramfs-tools/scripts/init-top/unbind_ehci
- #####################
- #!/bin/sh
- PREREQ=""
- prereqs()
- {
- echo "${PREREQ}"
- }
- case ${1} in
- prereqs)
- prereqs
- exit 0
- ;;
- esac
- log_success_msg "Unbind ehci for preventing error"
- echo -n "0000:00:1d.0" > /sys/bus/pci/drivers/ehci-pci/unbind
- exit 0
- #################
- sudo chmod a+x /etc/initramfs-tools/scripts/init-top/unbind_ehci
- sudo nano /etc/udev/rules.d/10_disable-ehci.rules
- ACTION=="add", SUBSYSTEM=="pci", DRIVER=="ehci_hcd",
- RUN+="/bin/sh -c 'echo -n %k > %S%p/driver/unbind'"
- sudo update-initramfs -k all -u
- sudo nano /etc/pm/sleep.d/99zcyapa
- #####################
- #!/bin/bash -x
- # File: "/etc/pm/sleep.d/99_cyapa".
- case "${1}" in
- hibernate)
- /sbin/rmmod cyapa
- ;;
- resume|thaw)
- COUNTER=0
- while [ $COUNTER -lt 10 ]; do
- date >>/tmp/99_cyapa
- /sbin/modprobe cyapa
- sleep 1
- dmesg | grep cyapa | tail -1 | grep error >/dev/null
- RES=$?
- echo "res=$RES"
- if [ ${RES} -ne 1 ] ; then
- /sbin/rmmod cyapa
- sleep 1
- else
- #done
- COUNTER=11
- fi
- COUNTER=`expr $COUNTER + 1`
- done
- ;;
- esac
- exit 0
- #################
- sudo chmod a+x /etc/pm/sleep.d/99zcyapa
- sudo nano /etc/default/grub
- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash boot=local i915.modeset=1 tpm_tis.interrupts=0 "
- sudo update-grub2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement