Skip to content

Instantly share code, notes, and snippets.

@arthurguedes375
Last active April 12, 2024 02:55
Show Gist options
  • Save arthurguedes375/6d3db07f460d1b58c505a89fccd37203 to your computer and use it in GitHub Desktop.
Save arthurguedes375/6d3db07f460d1b58c505a89fccd37203 to your computer and use it in GitHub Desktop.
ACL -- This does the backup of the permissions of the files
1. Typora
2. Postman
3. Insomnia
4. Mysql Workbench
5. Notion
6. Figma
7. Obsidian
8. Excalidraw
9. Spotify
10. Discord
11. Brave
12. Visual Studio Code
13. Nvim
14. Pinguy Builder (Making Backups of Linux)
15. Wireshark
16. Bettercap
17. Docker
18. Asdf
19. Flatpak
20. Snapd
21. Build essentials
22. org.gnome.baobab (Disk Usage Analyzer)
23. Waydroid to emulate, weston to create a wayland env... ONly run weston and there you go
It was happening because Ubuntu turned on the sound card power-saving capabilities. Turning it off can be the only way to get rid of the annoying sound:
Verify how is your sound card's power_save parameter:
```
cat /sys/module/snd_hda_intel/parameters/power_save
```
If it returns 1, do the following to change it temporally:
```
echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save
```
If the previous step worked for you, persist that configuration (otherwise the problem will continue after reboot):
```
echo "options snd_hda_intel power_save=0" | sudo tee -a /etc/modprobe.d/audio_disable_powersave.conf
```
(Optional) You can also do the same for power_save_controller parameter following the steps 1, 2 and 3 replacing power_save by power_save_controller also changing 0 to N.
Note: using the first step will probably return Y for this parameter, instead of 1.
# Set the Brightness
To set the brightness you first need to check the id of the display
```bash
xrandr -q | grep " connected"
DisplayPort-2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 280mm
```
In my case, the id is ``` DisplayPort-2 ```
To set the brightness to 70% just run. This number goes from 0 to 1.:
```
xrandr --output DisplayPort-2 --brightness 0.7
```
To Set the Gamma:
```
xrandr --output DisplayPort-2 --gamma 0.5
```
Play with gamma and brightness. Every time you se the brightness, the gamma is some how restored to it's original value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment