My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

acpi-eeepc-generic

Simple ACPI event handler for the EeePC line:

  • Model agnostic
  • Many On Screen Display (OSD) options:
    • libnotify (GTK)
    • knotify (KDE)
    • dzen2
    • none
  • Allow multiple commands to be executed for a single keypress
  • Depends only on vanilla kernel features ("eeepc_laptop" and "rfkill" kernel module): no need to use a custom kernel or hacked kernel module. Should be present in vanilla kernel (tested with 2.6.28.*)
  • Helper scripts for:
    • Suspend to ram
    • Wifi on/off
    • Bluetooth on/off (full support with 2.6.29 or patches, see here)
    • Synaptics touchpad on/off
    • Rotate screen
    • Change LVDS resolution (all supported resolution for your screen)
    • Change between LVDS, VGA or both (clone)
  • When both bluetooth and wireless are disabled, the blue "wireless" led turns off.
  • Suspend is disable if:
    • desktop shortcut (.desktop) is used to toggle
    • some processes are running (can be changed in configuration file)

Supported models: 700, 701, 900, 900A, 901, 904HD, S101, 1000, 1000H, 1000HD, 1000HE, 1005HA, 1005-HA-H, 1005PE, 1008HA, 1201N, T91MT

Developed for ArchLinux, it should work on any distribution where ACPI works. It would need repackaging though which I can't provide. It sure is a simple task though: acpi-eeepc-generic is written in bash.

See http://aur.archlinux.org/packages.php?ID=23318

Development has switched to GitHub: http://github.com/nbigaouette/acpi-eeepc-generic


Screenshots

Using KDE's knotify/kdialog:

Using GTK's libnotify (under KDE):


Changelog

0.9.2-1 (2009 04 14)

  • Switching to VT1 should not be needed for suspending to ram (option in config file to get back switching)
  • Configuration of different XRandR modes (Any combinations of clone, VGA only or both)
  • Catch (useless) events generated by suspending to prevent notifications
  • X access control disabling has been removed (should not be necessary)
  • OSD duration now configurable
  • Many fix and cleanups in the handler script
  • Fix dzen notifications (delays)
  • Fix notifications by quoting text
  • Added modules for madwifi and intel (4965 and such)
  • Modules loading and unloading functions
  • Use SAVED_STATES in device_restore()
  • Use "eval" to evaluate calls in variables
  • Fix wifi/wlan name problems
  • Harmonization of events files
  • Many other small fixes and cleanups

0.9.1-1 (2009 04 02)

  • Fix a bug in generic toggling where a device was always detected as being up.

0.9.0-1 (2009 03 31)

  • Changed to GPL3
  • New model supported: 1000HE
  • Added a script to toggle webcam
  • Added a script to toggle between laptop screen and/or external monitor
  • Unification of wifi, bluetooth and webcam toggle script.
  • Refactoring of some devices (wifi & bluetooth) status detection

0.8.1-1 (2009 02 22)

  • Fix: acpid-ted1 reports different events then extra/acpid (power button, sleep button)
  • Removed everything /proc/acpi (which is deprecated) related (except lid state, still not ported to /sys)
  • Small fix in wifi toggle
  • Better user autodetection. Should be more reliable
  • Small fixes and cleanups

0.8.0-1 (2009 02 19)

  • Wifi toggle events corrected for 901 and 900A
  • Updated and fixed user autodetection
  • Execute command as user by putting a "@" in front of the command in the configuration file
  • Don't do anything nor notify if volume is at 100% and volume up is pressed. Same thing for 0% and volume down, and same thing for brightness too.
  • Execute "xhost +" and "xhost -" before and after a key press.
  • More verbose KEYSHOW
  • Work began on automatic display toggle using xrandr
  • Before restoring touchpad, check if X is running
  • Hide cursor when disabling cursor (needs "unclutter" from AUR)
  • Refactoring of wifi and bluetooth toggle. Mainly simpler if/then/else
  • Many small fixes

0.7.0-2 (2009 02 06)

  • Fixed md5sum

0.7.0-1 (2009 02 03)

  • New restore feature: you can restore hardware states on boot with "eeepc-restore" in your DAEMONS array. Support wifi, bluetooth, brightness and touchpad (touchpad might not work)
  • Refactoring of OSD functions
  • New OSD possibility: dzen2
  • New suspension lock: execute that script and it will toggle a lock, preventing suspension from happening. There is a .desktop file for it too.
  • External monitor toggling script

0.6.3-1 (2009 01 27) Changelog:

  • Mainly fixes
  • New acpi event for 'processor' (prevents OSD when waking up)
  • bluetooth icon
  • test for deprecated radio control just in case
  • OSD display of suspend blacklisted processes

0.6.2-1 (2009 01 26)

  • Fix CPU autodetection
  • Added --no-desktop to pcmanfm
  • Print warning if shm is disabled
  • Display warning for 20sec if user has not reviewed the configuration file
  • Fix OSD notify for certain key press (power, suspend)
  • Fix suspend's processes blacklist check

0.6-1 (2009 01 25)

  • A lot of bluetooth fix
  • Possibility to use "kdialog" instead of libnotify. This also opens the door to many different OSD.

0.5-1 (2009 01 25)

  • Initial support for bluetooth toggling. Please test and report!

0.4-1 (2009 01 25)

  • Changed 'toggle' script's name
  • Added a touchpad toggle
  • Added a resolution toggle script
  • Refactoring of the get_model function
  • No need anymore to source the configuration file, only the function file

0.3.3.1-1 (2009 01 24)

  • Corrected a bug where XUSER was still used instead of user.

0.3.3-1 (2009 01 24)

  • Default to just shut down screen when lid close on AC
  • New user autodection
  • More information/comments for users in the configuration file and at installation.
  • New debug for wifi. As root, execute this: /etc/acpi/eeepc/acpi-eeepc-generic-wifi-toggle.sh debug
  • It should print some info that you can paste if there is a problem. It should also show a window with text "Can you see this?". If you do, then the OSD should work.

0.3.2-1 (2009 01 22)

  • Wifi/Bluetooth toggle: verify if rfkill switch really exist before access
  • Fix md5dums

0.3.1-1 (2009 01 22)

  • Wifi toggle: Don't fail if rfkill switch does not exist

0.3-3 (2009 01 22)

  • Added a conflicts=() array to prevent installation with other ACPI packages from AUR.

0.3-2 (2009 01 22)

  • More information on install/upgrade

0.3-1 (2009 01 22)

  • Import/Fix of some ACPI events from other packages for models other then the 1000
  • I started working on bluetooth support. I just don't know how it works.

0.2-4 (2009 01 21)

  • Forgot dmidecode dependency

0.2 (2009 01 21)

  • Backup of the right file (etc/conf.d/acpi-eeepc-generic.conf)
  • New model supported: 700, 701, 900, 900A, 901, 904HD, S101, 1000, 1000H, 1000HD

0.1.1 (2009 01 20)

  • A forgoten "exit 0" prevented the script "acpi-eeepc-generic-suspend2ram.sh" to suspend.

Powered by Google Project Hosting