[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

eeepc-acpi-scripts - trying to fix



Hi folks, 

as the package eeepc-acpi-scripts is no more maintained, I am trying to fix 
some bugs for myself. 

However, I think I will need your help, as I am not much experienced in 
coding. Mostly, I need someone expert, whom I may ask some questions, so that 
I understand, how the scripts are working. I think, the acpi-maintainers might 
be the best choice?

My first question: Where is eeepc-acpi-scripts reading the keystroke, and what 
is it triggering?

At the moment I am working to find out, why Fn + F7 (Screen on/off) is not 
working any more. Maybe my solution will fix some other bugs. 

At the moment I found out the following:

In the shellscript "/usr/share/acpi-support/eeepc-acpi-scripts/hotkey.sh"
the line  
BACKLIGHT=/sys/class/backlight/eeepc/brightness
is wrong, as this ios not existing, but should be

BACKLIGHT=/sys/class/backlight/intel_backlight/brightness

if [ -e "$DEFAULT" ]; then . "$DEFAULT"; fi
. $FUNC_LIB

. $PKG_DIR/lib/notify.sh
code=$3
value=$(test "x$1" = x- && cat "$BACKLIGHT" || echo "0x$3")

# FIXME: should be defined in /usr/share/acpi-support/key-constants which
#   should be regenerated from a recent copy of /usr/include/linux/input.h
#   (see: #603471).
KEY_DISPLAY_OFF=245

Related to this script, I could not find any definition to the variable DEFAULT. 
Can someone confirm or deny this?


In /usr/share/acpi-support/eeepc-acpi-scripts/button.sh I think, the line

[ -d /sys/devices/platform/eeepc-wmi ] || exit 0 is wrong, too, as eeepc-wmi 
is not loaded. Instead it should be like in hotkey.sh:

[ -d /sys/devices/platform/eeepc ] || [ -d /sys/devices/platform/eeepc-wmi ] 
|| exit 0


Ok, it is still not working! There is still something else wrong. But I found 
out, that the commands 

echo 0 > /sys/class/backlight/intel_backlight/brightness
and 
echo 24500 > /sys/class/backlight/intel_backlight/brightness

are switching the display on and off. This means, Fn + F7 should work, but are 
not corectly triggered.

I believe, the same cause might be the reason for Fn + SPACE not working 
(switching Super Hybrid Engine ). If Fn + F7 is fixed, I will care about that.

I hope, someone is better experienced than me, and there is someone willing, 
to help. Might be nice!

Thanks for reading this. I will keep you informed, if I found out new errors.

Have a nice weekend.

Hans



Reply to: