find ~/.config/netease-cloud-music -exec sudo chown $USER:$USER {} +
find ~/.config/netease-cloud-music -exec sudo chmod 755 {} +
find ~/.cache/netease-cloud-music -exec sudo chown $USER:$USER {} +
find ~/.cache/netease-cloud-music -exec sudo chmod 755 {} +
5/26/2020
5/24/2020
Ubuntu 18.04 fix mouse and fix wifi
If the bluetooth mouse doesn't work properly:
sudo add-apt-repository ppa:bluetooth/bluez
sudo apt install bluez
To fix it temporarily:
#!/bin/bash
sudo service bluetooth restart
If the WIFI adapter is lost after resume or hibernation:
#! /bin/bash
# Little sleep for safety (??)
sleep 5;
# Remove all of the wifi modules from the kernel
sudo modprobe -r mwifiex_pcie;
sudo modprobe -r mwifiex;
sudo modprobe -r cfg80211;
# Re-add all of the wifi modules
sudo modprobe -i cfg80211;
sudo modprobe -i mwifiex;
sudo modprobe -i mwifiex_pcie;
# Restart netmanager
sudo service NetworkManager restart;
sudo add-apt-repository ppa:bluetooth/bluez
sudo apt install bluez
To fix it temporarily:
#!/bin/bash
sudo service bluetooth restart
If the WIFI adapter is lost after resume or hibernation:
#! /bin/bash
# Little sleep for safety (??)
sleep 5;
# Remove all of the wifi modules from the kernel
sudo modprobe -r mwifiex_pcie;
sudo modprobe -r mwifiex;
sudo modprobe -r cfg80211;
# Re-add all of the wifi modules
sudo modprobe -i cfg80211;
sudo modprobe -i mwifiex;
sudo modprobe -i mwifiex_pcie;
# Restart netmanager
sudo service NetworkManager restart;
5/11/2020
Enable Ubuntu 18.04/22.04 hibernate
To make things easy: create a swap drive instead of using a swap file.
Then follow: https://fitzcarraldoblog.wordpress.com/2018/07/14/configuring-lubuntu-18-04-to-enable-hibernation-using-a-swap-file/
NOTE: don't use resumedelay because it'll increase the boot time. Use resumedelay=1
Enable the hibernation menu:
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Content:[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Subscribe to:
Posts (Atom)