Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CosmoAbdon/e1c166adda3a177105b9b47e8614e805 to your computer and use it in GitHub Desktop.
Save CosmoAbdon/e1c166adda3a177105b9b47e8614e805 to your computer and use it in GitHub Desktop.

Revisions

  1. @joaquimpedro joaquimpedro revised this gist Aug 3, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@ Habilitar modo grafico: service lightdm start

    Editar /etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
    For ubuntu -> acpi_backlight=vendor



  2. @joaquimpedro joaquimpedro created this gist Jul 5, 2015.
    28 changes: 28 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    * Funcionar controle brilho da tela

    Entrar no modo texto
    desabilitar o modo grafico: service lightdm stop
    Reconfigurar o modo grafico: X -configure
    Copiar arquivo xorg.conf para /etc/X11/xorg.conf
    Habilitar modo grafico: service lightdm start

    Editar /etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="



    * Ligar e desligar as luzes do teclado(Somente super usuário)

    Liga
    echo 5 > /sys/class/leds/samsung\:\:kbd_backlight/brightness
    Desliga
    echo 0 > /sys/class/leds/samsung\:\:kbd_backlight/brightness

    *Ativar WIFI após suspensão

    Criar arquivo: /etc/pm/sleep.d/10_resume_wifi
    #!/bin/sh

    case "${1}" in
    resume|thaw) nmcli nm sleep false ;;
    esac