code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/sh # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
Shell
#!/bin/bash # Copyright 2009 Nicolas Bigaouette # This file is part of acpi-eeepc-generic. # http://code.google.com/p/acpi-eeepc-generic/ # # acpi-eeepc-generic is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation,...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null # Extract kernel version KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.$...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Disable access control. Needed for GUI notification. execute_commands "@xhost +localhost" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "The event of the pressed key is: \"...
Shell
# Maintainer: Nicolas Bigaouette <nbigaouette@gmail.com> # Greatly inspired by: # EeePC ACPI Utilities : http://eeepc-acpi-util.sourceforge.net # Other Eee acpi packages from AUR: http://aur.archlinux.org/packages.php?K=eee # TODO # XRandR toggle between (see acpi-eeepc900, display.sh): # -LVDS only # ...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Disable access control. Needed for GUI notification. execute_commands "@xhost +localhost" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "The event of the pressed key is: \"...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null # Extract kernel version KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.$...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # Find the right rfkill switch, but default to the first one rfkill="rfkill0" lsrfkill="" [ -e /sys/class/rfkill ] && lsrfkill=`/bin/ls /sys/class/rfkill/` for r in $lsrfkill; do name=`cat /sys/class/r...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # Find the right rfkill switch, but default to the first one rfkill="rfkill0" lsrfkill="" [ -e /sys/class/rfkill ] && lsrfkill=`/bin/ls /sys/class/rfkill/` for r in $lsrfkill; do name=`cat /sys/class/r...
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR" ] && mkdir -p $EEEPC_VAR KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.${KERNEL...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi cas...
Shell
# Maintainer: Nicolas Bigaouette <nbigaouette@gmail.com> # Greatly inspired by: # EeePC ACPI Utilities : http://eeepc-acpi-util.sourceforge.net # Other Eee acpi packages from AUR: http://aur.archlinux.org/packages.php?K=eee # TODO # Wifi module autodetection + hacks (See acpi-eee 10.0-1's wlan.sh) # Volume dev...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # eeepc_notify "Bluetooth toggle not fully implemented. Please report problems" stop BT_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find t...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "left" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="right...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi cas...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR" ] && mkdir -p $EEEPC_VAR KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.${KERNEL...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh if [ -e "$EEEPC_VAR/to...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/wifi-saved if [ -e ...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # eeepc_notify "Bluetooth toggle not fully implemented. Please report problems" stop BT_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find t...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "left" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="right...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh if [ -e "$EEEPC_VAR/to...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/wifi-saved if [ -e ...
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi case ...
Shell
# Maintainer: Nicolas Bigaouette <nbigaouette@gmail.com> # Greatly inspired by: # EeePC ACPI Utilities : http://eeepc-acpi-util.sourceforge.net # Other Eee acpi packages from AUR: http://aur.archlinux.org/packages.php?K=eee # TODO # XRandR toggle between (see acpi-eeepc900, display.sh): # -LVDS only # ...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to the second one rfkill="rfkill1" lsrfkill="" [ ...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi case ...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi if [ -e...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh BT_SAVED_STATE_FILE=$EEEPC_VAR/states/bluetooth if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find the right rfkill switch, but default to the second one rfkill="rfkill1" lsrfkill="" [ ...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh lock="${EEEPC_VAR}/power.lock" if [ -e "$lock" ]; then msg="You can now suspend normally" rm -f $lock logger "$msg" eeepc_notify "$msg" gnome-session-suspend exit 0 else msg="Suspend is now blocked" touch $lock logger "$msg" ...
Shell
#!/bin/sh # EeePC Configuration restore # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # # . /etc/rc.conf . /etc/rc.d/functions . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh case "$1" in restart|restore|...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh logger "#############################################" logger "acpi-eeepc-generic-suspend2ram.sh:" function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $proc...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "right" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="left...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # 0 means off, 1 means...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi if [ -e...
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR" ] && mkdir -p $EEEPC_VAR KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.${KERNEL...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi cas...
Shell
# Maintainer: Nicolas Bigaouette <nbigaouette@gmail.com> # Greatly inspired by: # EeePC ACPI Utilities : http://eeepc-acpi-util.sourceforge.net # Other Eee acpi packages from AUR: http://aur.archlinux.org/packages.php?K=eee # TODO # Wifi module autodetection + hacks (See acpi-eee 10.0-1's wlan.sh) # Volume dev...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # eeepc_notify "Bluetooth toggle not fully implemented. Please report problems" stop BT_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find t...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "left" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="right...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh get_model . /etc/acpi/eeepc/models/acpi-eeepc-$EEEPC_MODEL-events.conf # Needed, else libnotify can't display its magic su $XUSER --login -c "xhost +" SELECTION=$3 if [ "$KEY_SHOW" = "1" ]; then eeepc_notify "You pressed: \"$SELECTION\"" keyboard fi cas...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR" ] && mkdir -p $EEEPC_VAR KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.} KERNEL_rel=${k%%\.*} k=${KERNEL#${KERNEL_maj}.${KERNEL_min}.${KERNEL...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh if [ -e "$EEEPC_VAR/to...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/wifi-saved if [ -e ...
Shell
#!/bin/bash # # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh # eeepc_notify "Bluetooth toggle not fully implemented. Please report problems" stop BT_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved if [ -e $BT_SAVED_STATE_FILE ]; then BT_SAVED_STATE=$(cat $BT_SAVED_STATE_FILE) else BT_SAVED_STATE=0 fi # Find t...
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $processes ($p_num)" for ((i=0;i<${p_num};i++)); do p=${processes[${i}]} pid=`pidof $...
Shell
#!/bin/bash now=`date +"%Y%m%d_%Hh%m"` case "$1" in stop) mkdir -p /logs_backup/$now cp -Rp /var/log/* /logs_backup/$now/ ;; start) ;; *) echo 'Usage: /etc/init.d/console-setup {start||stop}' exit 1 ;; esac
Shell
#!/bin/sh . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function suspend_check_blacklisted_processes() { processes=( "$@" ) p_num=${#processes[@]} logger "Checking for processes before suspending: $processes ($p_num)" for ((i=0;i<${p_num};i++)); do p=${processes[${i}]} pid=`pidof $...
Shell
#!/bin/bash # # LVDS Rotate # Andrew Wyatt # Tool to rotate LVDS panel # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh function rotate_toggle { CURRENT=`xrandr | grep LVDS | awk '{print $4}'` if [ "$CURRENT" = "left" ]; then ROTATION="inverted" elif [ "$CURRENT" = "inverted" ]; then ROTATION="right...
Shell
#!/bin/bash # # EeePC Touchpad toggle # Tool to enable / disable touchpad # Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh if [ -e "$EEEPC_VAR/to...
Shell
#!/bin/bash # # EeePC WIFI Toggle # by Andrew Wyatt # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/wifi-saved if [ -e ...
Shell
#!/bin/bash # # EeePC LVDS resolution toggle # Andrew Wyatt # Tool to toggle LVDS output resolutions # Edited by Nicolas Bigaouette # Generic WIFI toggle utility which should work across EeePC models. # # http://code.google.com/p/acpi-eeepc-generic/ # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh tmp_xrandr=...
Shell
#!/bin/bash . /etc/conf.d/acpi-eeepc-generic.conf [ ! -d "$EEEPC_VAR/states" ] && mkdir -p $EEEPC_VAR/states chmod a+w /var/eeepc/states/* &> /dev/null # Extract kernel version KERNEL=`uname -r` KERNEL=${KERNEL%%-*} KERNEL_maj=${KERNEL%%\.*} k=${KERNEL#${KERNEL_maj}.} KERNEL_min=${k%%\.*} k=${KERNEL#${KERNEL_maj}.$...
Shell
#!/bin/bash # # Toggle between available displays using xrandr # . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh xrandr=`which xrandr` if [ ! -e "$xrandr" ]; then msg="Please install xorg-server-utils to be able to use xrandr." eeepc_notify "$msg" display logger "$msg" echo "$msg" exit 0 fi var...
Shell