code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
#
#
. /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
eeepc_notify "Bluetooth toggle not implemented yet!!!" stop
exit 0
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved
if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then
RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVED_STATE_FILE)
else
RADIO_SAVED_STATE... | 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
# Get username
if [ -S /tmp/.X11-unix/X0 ]; then
export DISPLAY=:0
user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
# If autodetection fails, try another way...
[ "x$user" == "x" ] && user=`ps aux | ... | 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 implemented yet!!!" stop
exit 0
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved
if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then
RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVED_STATE_FILE)
else
RADIO_SAVED_STATE... | 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
CONSOLE_NUMBER=$(fgconsole)
# Get username
if [ -S /tmp/.X11-unix/X0 ]; then
export DISPLAY=:0
user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
# If autodetection fails, fallback to default user
# set in /etc/conf.d/acpi-eeepc-generic.conf
[ "x$user" == "x" ] && user=$XUSER
... | Shell |
#!/bin/sh
source /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
source /etc/conf.d/acpi-eeepc-generic.conf
get_model
source /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_... | 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
# Fix Bluetooth
# Some models ACPI events might be wrong or not there at all
# ... | Shell |
#!/bin/bash
#
#
. /etc/conf.d/acpi-eeepc-generic.conf
. /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
eeepc_notify "Bluetooth toggle not implemented yet!!!" stop
exit 0
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved
if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then
RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVE... | 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 WIFI Toggle
# by Andrew Wyatt
# Edited by Nicolas Bigaouette
# Generic WIFI toggle utility which should work across EeePC models.
#
. /etc/conf.d/acpi-eeepc-generic.conf
. /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/wifi-saved
if [ -e $EEEPC_RADIO... | Shell |
#!/bin/sh
# EeePC Configuration restore
#
### BEGIN INIT INFO
# Provides: eeepc-restore
# Default-Start: 2 3 4
# Default-Stop: 1 5
# Required-Start:
# Required-Stop:
# Short-Description: Restores EeePC settings from last boot.
### END INIT INFO
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/acpi/eeepc/a... | Shell |
#!/bin/bash
#
# LVDS Rotate
# Andrew Wyatt
# Tool to rotate LVDS panel
#
source /etc/conf.d/acpi-eeepc-generic.conf
source /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
[ ! -d "$EEEPC_VAR" ] && mkdir $EEEPC_VAR
function rotate_toggle {
CURRENT=`xrandr | grep LVDS | awk '{print $4}'`
if [ "$CURRENT" = "left" ... | Shell |
#!/bin/bash
#
#
. /etc/conf.d/acpi-eeepc-generic.conf
. /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
eeepc_notify "Bluetooth toggle not implemented yet!!!" stop
exit 0
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/bluetooth-saved
if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then
RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVE... | Shell |
#!/bin/sh
source /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
source /etc/conf.d/acpi-eeepc-generic.conf
get_model
source /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_... | Shell |
#!/bin/bash
CONSOLE_NUMBER=$(fgconsole)
# Get username
if [ -S /tmp/.X11-unix/X0 ]; then
export DISPLAY=:0
user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
# If autodetection fails, fallback to default user
# set in /etc/conf.d/acpi-eeepc-generic.conf
[ "x$user" == "x" ] && user=$XUSER
... | Shell |
#!/bin/sh
source /etc/conf.d/acpi-eeepc-generic.conf
source /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
... | 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
# EeePC Configuration restore
#
### BEGIN INIT INFO
# Provides: eeepc-restore
# Default-Start: 2 3 4
# Default-Stop: 1 5
# Required-Start:
# Required-Stop:
# Short-Description: Restores EeePC settings from last boot.
### END INIT INFO
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/acpi/eeepc/a... | Shell |
#!/bin/sh
source /etc/conf.d/acpi-eeepc-generic.conf
source /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
... | Shell |
#!/bin/bash
#
# LVDS Rotate
# Andrew Wyatt
# Tool to rotate LVDS panel
#
source /etc/conf.d/acpi-eeepc-generic.conf
source /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
[ ! -d "$EEEPC_VAR" ] && mkdir $EEEPC_VAR
function rotate_toggle {
CURRENT=`xrandr | grep LVDS | awk '{print $4}'`
if [ "$CURRENT" = "left" ... | Shell |
#!/bin/bash
#
# EeePC WIFI Toggle
# by Andrew Wyatt
# Edited by Nicolas Bigaouette
# Generic WIFI toggle utility which should work across EeePC models.
#
. /etc/conf.d/acpi-eeepc-generic.conf
. /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/wifi-saved
if [ -e $EEEPC_RADIO... | 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 +"
SELECTION=$3
if [ "$KEY_SHOW" = "1" ]; then
eeepc_notify "The event of the pressed key is: \"$SELECTIO... | 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 +"
SELECTION=$3
if [ "$KEY_SHOW" = "1" ]; then
eeepc_notify "The event of the pressed key is: \"$SELECTIO... | 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
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi
if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then
RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVED_STATE_FILE)
else
RADIO_SAVED_STATE=0
fi
# Find the right 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
EEEPC_RADIO_SAVED_STATE_FILE=$EEEPC_VAR/states/wifi
if [ -e $EEEPC_RADIO_SAVED_STATE_FILE ]; then
RADIO_SAVED_STATE=$(cat $EEEPC_RADIO_SAVED_STATE_FILE)
else
RADIO_SAVED_STATE=0
fi
# Find the right 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/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
#
# 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/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 |
# Contributor: Nicolas Bigaouette nbigaouette a_t gmail c o m
pkgname=acpi-eeepc-generic
pkgver=0.9.2
pkgrel=1
pkgdesc="ACPI scripts for EeePC netbook computers (700, 701, 900, 900A, 901, 904HD, S101, 1000, 1000H, 1000HD, 1000HE)"
url="http://code.google.com/p/acpi-eeepc-generic/"
arch=(any)
license=(GPL3)
depends=(ac... | 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/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/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
# 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.