Skip to content

Instantly share code, notes, and snippets.

View StevenMacias's full-sized avatar
🐻

Steven Macías StevenMacias

🐻
View GitHub Profile
@StevenMacias
StevenMacias / linux_mint_fix_backlight.txt
Created November 7, 2019 20:52
Linux mint fix backlight
Use the following command:
ls /sys/class/backlight/
If you have 'intel_backlight'
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
and write:
Section "Device"
@StevenMacias
StevenMacias / mic_as_headphones
Created November 8, 2019 00:48
Use microphone jack as audio output
sudo apt-get install alsa-tools-gui
hdajackretask
@StevenMacias
StevenMacias / Lenovo_Y540_Backlight_Fix
Created December 7, 2019 19:44
FIx backlight in Lenovo Y540 with Linux Mint. The backlight keys work but no changes in screen bightness after installing Nvidia Drivers.
Create this file with:
sudo nano /usr/share/X11/xorg.conf.d/10-nvidia-brightness.conf
Write in the file:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce RTX 2060 Mobile"
@StevenMacias
StevenMacias / Lenovo_Y540_Sleep_Fix
Created December 7, 2019 19:47
Lenovo Y540 tries to go to sleep but wakes up inmediatly in Linux Mint/Ubuntu.
Check the lines that are enable:
cat /proc/acpi/wakeup
Disable one by one until sleep works:
echo [Device] | sudo tee /proc/acpi/wakeup
In my case this one was the problem:
echo XHC | sudo tee /proc/acpi/wakeup
@StevenMacias
StevenMacias / Lenovo_Y540_Wifi
Created December 11, 2019 21:17
Wifi not working in Lenovo Y540
sudo -i
echo "blacklist ideapad-laptop" >> /etc/modprobe.d/blacklist.conf
modprobe -r ideapad-laptop
exit
steven@steven-legion:~$ sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf
Make your touchpad section look like:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "True"